(→Mounting NFS Shares) |
(→Checking which Version/Release you have Installed) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Ubuntu General Notes | Ubuntu General Notes | ||
+ | == Checking which Version/Release you have Installed == | ||
+ | Fromt he command line run: | ||
+ | cat /etc/issue | ||
+ | or | ||
+ | lsb_release -a | ||
== Starting/Stoping Services == | == Starting/Stoping Services == | ||
Line 15: | Line 20: | ||
Optionally you can run '''rcconf''' a menu based Command Line utility | Optionally you can run '''rcconf''' a menu based Command Line utility | ||
− | + | rcconf | |
''This package may not be installed by default'' | ''This package may not be installed by default'' | ||
apt-get install rcconf | apt-get install rcconf | ||
Line 46: | Line 51: | ||
/usr/share/doc/libdvdread3/install-css.sh | /usr/share/doc/libdvdread3/install-css.sh | ||
This will download the needed libraries to decrypt DVD's for playback. | 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" | ||
+ | |||
[[Category:Ubuntu]] | [[Category:Ubuntu]] |
Latest revision as of 18:29, 16 December 2014
Ubuntu General Notes
Contents
Checking which Version/Release you have Installed
Fromt he command line run:
cat /etc/issue
or
lsb_release -a
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
rcconf
This package may not be installed by default
apt-get install rcconf
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"