computers:server:ubuntu10.04lts_hydra
This is an old revision of the document!
Table of Contents
Base Install
- Clean install of Ubuntu 10.04 LTS
- Set for automatic install of security updates
- Services enabled:
- DNS
- OpenSSH
- Samba
Configuration
Network
- Set the local network to static IP address
- Modify the /etc/network/interfaces file with a static entry:
# The primary network interface auto eth0 iface eth0 inet static address x.x.x.x netmask 255.255.255.0 network x.x.x.x broadcast x.x.x.255 gateway x.x.x.1 # dns-* options are implemented by the resolv.conf package, if installed dns-nameservers x.x.x.1 dns-search lattice.net
- Restart the network:
sudo /etc/init.d/networking restart
Raid
The moment of truth. How hard would it be to configure a raidz array out of the five 2TB drives? Um, two lines!? These instructions came from here
- Install the zfs code:
sudo apt-get install zfs-fuse
- Turn our hard drives into a raid array:
sudo zpool create media -m /storage raidz /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf
Software
Daemons
LAMP
Linux, Apache, Mysql and PHP as shown here
NOTE: According to the comments on that page, you could do all of these with this: (but I'm not that lazy, I can copy and paste a few lines)
sudo tasksel install lamp-server
mysql
sudo aptitude install mysql-server mysql-client
apache
sudo aptitude install apache2
php5
- Install php5
sudo aptitude install php5 libapache2-mod-php5
- Restart the apache server
sudo /etc/init.d/apache2 restart
mediatomb
NOTE: I could not get this to work, the content always came up with some kind of error. uShare worked right out of the box with no fusing, so I'm going to use that for the UPnP server.
nfs
Will use NFS to share up the storage directory.
- Grab the NFS server package
sudo apt-get install nfs-kernel-server nfs-common portmap
- Configure portmap
sudo dpkg-reconfigure portmap
- And restart (this did not work btw)
sudo /etc/init.d/portmap restart
- Modify our exports
sudo nano /etc/exports # here are some example entries # hal /storage/video 10.0.0.5(ro,fsid=7,no_root_squash,async,subtree_check) # nmt /storage/video 10.0.0.13(ro,fsid=7,no_root_squash,async,subtree_check)
- Restart the NFS server
sudo /etc/init.d/nfs-kernel-server restart
samba
- Stole the /etc/samba/smbd.conf from Mythbuntu and made it read only.
ushare
uShare is a media server uPnP media server (very light weight)
- Install the service
sudo apt-get install ushare
- I manually edited this file first, there were some options that don't come up when you do the “config”
sudo vi /etc/ushare.conf
- Proper configuration is done with this
sudo dpkg-reconfigure ushare
Programs
jed
sudo apt-get install jed
computers/server/ubuntu10.04lts_hydra.1309094311.txt.gz · Last modified: by david
