From LedHed's Wiki
Revision as of 18:13, 11 January 2011 by Ledhed (Talk | contribs)

Jump to: navigation, search

Ubuntu General Notes

Checking which Version/Release you have Installed

Fromt he command line run:

cat /etc/issue

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

NOTE: In Ubuntu Edgy I had to add this line to /etc/rc.local to get nfs shares to mount at boot time

sudo mount /share/junk

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.

Changing NIC's

If you change NIC's in Ubuntu the new NIC will have a different interface number. Example, Replace bad NIC for new one, The bad NIC was ETH0, New NIC will be ETH1. To change this behavior you need to edit /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1a:7f:ad:86:90", ATTR{type}=="1",  KERNEL=="eth*", NAME="eth0"