From LedHed's Wiki
Revision as of 00:57, 29 January 2007 by Ledhed (Talk | contribs)

Jump to: navigation, search

Ubuntu General Notes


Starting/Stoping Services

invoke-rc.d

Usage

invoke-rc.d service-name start|stop|restart

This is the equivalent to "service" in RedHat based Distros

Starting Services at Boot

update-rc.d

Usage

update-rc.d service-name start|stop|restart

This is the equivalent to "chkconfig" in RedHat based Distros

Optionally you can run rcconf a menu based Command Line utility

rcconfig

This package may not be installed by default

apt-get install rcconf


Mounting NFS Shares

In order to mount NFS shares you need the 'portmap' package to be installed.

apt-get install portmap

To mount a share do:

mount -t nfs <server-name or ip>:/remote/path /local/path

Example:

mount -t nfs 192.168.0.1:/share/junk /mnt/junk

This mounts the directory /share/junk on server 192.168.0.1 to the local path /mnt/junk

AutoMount at boot To automount you need to edit /etc/fstab, and add a line like this:

192.168.0.1:/share/junk /mnt/junk   nfs     defaults        0 0

This mounts the directory /share/junk on server 192.168.0.1 to the local path /mnt/junk at boot-up


DVD Playback

To play DVD's in Ubuntu (and other Linux Distros) you need: libdvdcss The problem is that that package isn't available because of legal issues. To remedy this install the libdvdread3 package.

apt-get install libdvdread3

Then run this script:

/usr/share/doc/libdvdread3/install-css.sh

This will download the needed libraries to decrypt DVD's for playback.