The Perfect Setup - Fedora Core 3 - Page 3

Want to support HowtoForge? Become a subscriber!
Submitted by falko (Contact Author) (Forums) on Sat, 2005-07-16 13:33. ::

2 Installing And Configuring The Rest Of The System

Configure Additional IP Addresses

Let's assume our network interface is eth0. Then there is a file /etc/sysconfig/network-scripts/ifcfg-eth0 which looks like this:


Now we want to create the virtual interface eth0:0 with the IP address All we have to do is to create the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 which looks like this:


Afterwards we have to restart the network:

/etc/init.d/network restart

Setting The Hostname

echo > /etc/hostname
/bin/hostname -F /etc/hostname

Install apt For Fedora

apt is the packaging system used on Debian. Since it cares much better for package dependencies than rpm it would be nice if we could use it on our new Fedora system. This would save us a lot of hassle. Fortunately, apt has been ported to a lot of rpm based distributions, and is also available for Fedora Core 3 (you will love it... :-)).

rpm -ivh

Edit /etc/apt/sources.list. It should contain the following lines:

rpm fedora/linux/3/i386 core updates freshrpms
rpm fedora/linux/3/i386 tupdates
rpm-src fedora/linux/3/i386 core updates freshrpms
rpm-src fedora/linux/3/i386 tupdates
rpm fedora/linux/2/i386 core updates freshrpms
rpm fedora/linux/1/i386 core updates freshrpms

In the last two lines, rpm fedora/linux/2/i386 core updates freshrpms and rpm fedora/linux/1/i386 core updates freshrpms, the numbers 2 and 1 are not errors or typos! These repositories have some packages which we are going to install soon! So do not change these lines!


apt-get update

Install Some Software

apt-get install which fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp


apt-get install quota

Edit /etc/fstab to look like this (I added ,usrquota,grpquota to LABEL=/ (mount point /):

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults,usrquota,grpquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,ro,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0

Then run:

touch /aquota.user /
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug


apt-get install bind-chroot
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
chkconfig --levels 235 named on
/etc/init.d/named start

Bind will run in a chroot jail under /var/named/chroot/var/named/.

Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.