1. download Ubuntu Server Edition 9.04
2. choose LAMP, OpenSSH, Print and Samba to install
3. Configure /etc/network/interfaces
sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.100.2
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
gateway 192.168.100.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 202.188.1.5 202.188.0.133
dns-search doc.thanhsiang.org
4. configure /etc/resolv.conf
search doc.thanhsiang.org
nameserver 202.188.1.5
nameserver 202.188.0.133
5. Configure CUPS for printing server
Modify /etc/cups/cupsd.conf
5.1 Add "Allow all" to the "Location" block (line 32)
# Restrict access to the server...
<Location />
Order allow,deny
Allow all #added
</Location>
5.2 Add "BrowseAllow all" before "BrowseAddress @LOCAL"
5.3 Change "Listen localhost:631" to "Listen 631"
5.4 restart CUPS
sudo /etc/init.d/cups restart
5.5. Add your printer:
http://localhost:631 (for me, http://192.168.100.2:631)
6. Change the Document Root
sudo nano /etc/apache2/sites-available/default
Change the Document root to /home/user*/www
Restart Apache
sudo /etc/init.d/apache2 restart
7. To create a symbolic link
ln -s /path/to/real/file /path/to/non-existant/file
Something like this:
sudo ln -s ~/htdocs /var/www/htdocs