Minimal Ubuntu 8.04 Server Install
Minimal Ubuntu 8.04 Server InstallI find myself removing packages that I don't need, especially if the packages belong to processes that are using processor resources. There is a way to start from the ground up, you can have a minimal system and just add what you need. This has the added benefit of extra security, your system doesn't have services running that you don't use. You won't use a Ubuntu Server CD, but the Desktop Live CD.
1 Partition and Format drivesThe tutorial is targeted for Sysadmins and more experienced users, so you probably know how you want to configure your storage. You could create a software RAID, my RAID 10 tutorial can guide you how to set up a RAID array in a Live CD environment. Create your partitions, this example has a 50MB boot partition, a xfs formated root partition, and a 2GB swap partition.
sudo su
2 Use debootstrap to create a minimal systemMount file system and install debootstrap:
mkdir /min apt-get install debootstrap By default debootstrap will download about 100 MB from ubuntu.com. Change the url on the third line to the best mirror you have access to. nano /usr/share/debootstrap/scripts/hardy case $ARCH in amd64|i386|sparc) default_mirror http://mirror.xmission.com/ubuntu Use debootstrap to create the minimal install: debootstrap hardy /min
3 Configure your installA few settings not configured in the install can just be copied from the Live CD environment:
cp /etc/hosts /min/etc/ Set up mount folders for your optical drive:
mkdir -p /min/media/cdrom0 Configure your file system table: nano /min/etc/fstab proc /proc proc defaults 0 0 /dev/sda2 / xfs relatime 0 1 /dev/sda1 /boot ext3 relatime 0 1 /dev/sda3 none swap sw 0 0 /dev/cdrom /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
4 Chroot into your minimum install to prepare it for booting.Set up and enter your chroot enviroment:
mount --bind /dev /min/dev Install tools for your file system, unless you're only using ext2 or ext3. apt-get install xfsprogs Set your timezone, match the zoneinfo directory to your location: cp /usr/share/zoneinfo/America/Denver /etc/localtime Install your favorite config editor. apt-get install nano Update your sources.list to have all the packages and updates from your favorite mirror. nano /etc/apt/sources.list deb http://mirror.xmission.com/ubuntu hardy main restricted universe multiverse deb http://mirror.xmission.com/ubuntu hardy-updates main restricted universe multiverse deb http://mirror.xmission.com/ubuntu hardy-security main restricted universe multiverse Update your system.
apt-get update Set root password and set up a user:
passwd Set up sudo for your user:
addgroup admin
4 Make the minimal system bootableInstall the kernel and boot loader:
apt-get install linux-image-server grub Make sure all of the needed kernel modules are installed in the inital ramdisk. update-initramfs -u Exit your chroot: exit Install grub to the MBR: grub-install --root-directory=/min --no-floppy --recheck /dev/sda Reboot into your new system.
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com







Recent comments
7 hours 46 min ago
9 hours 14 min ago
12 hours 48 min ago
15 hours 42 min ago
18 hours 40 min ago
19 hours 21 min ago
19 hours 35 min ago
20 hours 34 min ago
21 hours 39 min ago
22 hours 13 min ago