New Install of Ubuntu Server – Part I

I have installed Ubuntu Server before, but this time is different.  An instance completely pooched in a way that was not reliably recoverable.  For unknown reasons the virtual disks were unstable.  So, critical data was backed up and moved to a new image.  Not terribly difficult, but something fun to note.  Some really great sites helped with some of the more mundane details.

I will break this into four parts:  Server, Subversion, Mediawiki, and Bugzilla.

The server installation was direct and obvious:

  • install from the ISO
  • update
  • run a neat script (below) for a basic gnome desktop
  • install subversion, mediawiki, and bugzilla (exactly as named) from the repositories
  • update the host name (sudo hostname new-host-name; sudo vi /etc/hostname)
  • update the IP address to be static (sudo vi /etc/network/interfaces) — details below.

The neat script:

#!/bin/bash
#######################################################################
# Ubuntu-Desktop-Minimal: Post-install script to install only the bare
# essentials of an Ubuntu Desktop.
#######################################################################
echo "[*] Installing Gnome Essentials"
sudo apt-get -y install gnome-core gdm network-manager-gnome fast-user-switch-applet \
human-theme x11-xserver-utils tangerine-icon-theme gnome-themes ubuntu-artwork \
jockey-gtk gnome-screensaver gnome-utils xorg
echo "[*] Installing Application Essentials"
sudo apt-get install -y gcalctool tsclient system-config-samba gnome-nettool ntfsprogs update-manager \
gdebi system-config-printer-gnome brasero gparted epiphany
exit

The new eth0 entry in the interfaces file (with real IPs obfuscated):

auto eth0
iface eth0 inet static
address a.b.c.d
netmask 255.255.255.0
network a.b.c.0
broadcast a.b.c.255
gateway a.b.c.1

It was really that simple.

This page is also worth nothing where I found a superb set of steps to migrate users from the old server to the new server.

Advertisements

About John

I write about technology interests, cooking, and my own writing (sci-fi and fantasy... sometimes both). I try to keep things light, but sometimes I get side-tracked on an issue that I feel strongly about. No offense is meant, I'm just like any other person who feels strongly about something when I write. View all posts by John

One response to “New Install of Ubuntu Server – Part I

%d bloggers like this: