Ubuntu Install on XServe G5
Written by Arvinder Singh / February 27, 2009 / 2 mins read / Filed under Ppc, / Ubuntu, / Xserve
I hardly get enough time away from my Mac machines, so I planned to get back in touch with the penguin, and to build a test server.
My plan was to install Xen, and then run a Linux instance on top of it. However the only spare machine was a G5 Xserve, I could not find any information of Xen on ppc processor.
Choosing Linux flavour for ppc wasn’t easy either. Most of the open source linux flavors have stopped supporting ppc, as it seems like a dying platform. Red Hat and Suse seem to support the architecture in their enterprise versions. I didn’t want to run YDL, the only flavor I could find truly supporting ppc architecture.
Finally, I decided to go ahead with the Ubuntu 8.04 Server community version for ppc.
Once decided, the install was pretty much a breeze. Popped in the CD, and followed GUI to install. Chose ssh-server and Lamp Server during install option.
After the server restart, configured the network interface /etc/network/interfaces
to provide a static address.Restarted the network.
sudo /etc/init.d/networking restart
Update the installation. I prefer aptitude over apt-get.
sudo aptitude update
sudo aptitude safe-upgrade
It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the internet.
sudo aptitude install ntp ntpdate
Check hostname and hostname -f return the same value. It matched our specified domain name in the file /etc/hosts
to FQDN (Fully Qualified Domain Name) of the machine.
Lets bring the walls up
Ubuntu comes with a [iptables](http://www.netfilter.org/projects/iptables/index.html “”)-wrapper known as UFW.
sudo aptitude install ufw
Turn firewall on.
sudo ufw enable
Turn firewall logging on.
sudo ufw logging on
Display status of firewall and ports in the listening state
sudo ufw status
I changed the rules so that the output of above command was
Firewall loaded
To Action From
-- ------ ----
Anywhere ALLOW xx.xx.xx.0/24
22:tcp ALLOW xx.xx.xx.0/24
80:tcp ALLOW Anywhere
80:udp ALLOW Anywhere
Therefore only port 80 was open to outside world, for serving web pages, and ssh port for local network. The rest of the requests were dropped.
To make sure, use nmap from another machine to do a port scan of your server. Only port 80 should be open from outside your LAN.
As the result of port scan delivered expected results, I felt glad reconnecting with the penguin.
Image credits: Tux by Daniele Florio shared under CC Share Alike licence