This is an old revision of the document!


Ubuntu

Package Management

Update package repository
aptitude update
Update system packages
aptitude safe-upgrade
Search for a package
aptitude search <package>
Install, update, remove a package
aptitude install <package>
Install development libraries
aptitude -y install autoconf automake m4 gcc-3.3 gawk xorg-dev linux-kernel-devel
List all available packages
Find package owner for a file
dpkg -S /bin/bash
How to edit repositories
vim /etc/apt/sources.list

LAMP

Install PHP 5.3 and MySQL 5.0
aptitude install php5 php5-curl php5-gd php5-imap php5-mcrypt
aptitude install imagemagick
Install PEAR
aptitude install php-pear

Services

See running services
service --status-all
Add, remove a service from startup
aptitude install sysv-rc-conf
sysv-rc-conf

Stuff

Install Webmin
aptitude install libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions

Download the Webmin .deb file, then run:

dpkg --install webmin.deb

The service will start automatically. The service name is webmin

Configuration for PHP

Located in /etc/php5

Install and configure an FTPD
aptitude install vsftpd

Configuration in /etc/vsftpd.conf

Install and configure Samba

Samba is installed and runs at startup by default on 10.04.

Configuration is in /etc/samba/smb.conf

The service name is smbd

Install and configure NFS
aptitude install nfs-kernel-server

The NFS daemon is started following installation.

The service name is nfs-kernel-server

Install and configure AppleTalk
aptitude install netatalk

AFPD is started following installation.

The service name is netatalk

Setup monit
aptitude install monit

Edit /etc/default/monit and set startup to 1

The service name is monit

Set default web browser
update-alternatives --config x-www-browser

System

RAID install or setup
aptitude install makedev mdadm
mdadm -C /dev/md0 -l mirror -n2 /dev/sdb1 /dev/sdc1
Change the hostname

Edit /etc/hostname

MOTD

Ubuntu generates its own motd automatically. Add your text to /etc/motd.tail to display on login.