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.
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video







Recent comments
12 hours 54 min ago
15 hours 38 min ago
21 hours 4 min ago
23 hours 31 min ago
1 day 14 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 13 hours ago