HowtoForge

The Perfect Setup - OpenSuSE 10.2 (32-bit) - Page 5

2 Adding Installation Sources

To make package installation easier, I will add a network installation source. If you want to install all packages from CD / DVD, you can skip this step. Start yast2:

yast2

Go to Software -> Installation Source:

You should now see three software repositories here: your SuSE CDs, the updates repository (http://gd.tuwien.ac.at/... in this example), and the oss repository (http://download.opensuse.org/... in this example). We want to disable the SuSE CDs so that we can download all packages from the internet. To do this, the CDs must be marked in yellow; then navigate to Source Settingsv and select Enable or Disable to disable the SuSE CDs:

The updates repository is already active, so we don't need to enable it, but the oss repository needs activation, so we mark it, go to Source Settingsv again and select Enable or Disable again to enable it. Your list of repositories should now resemble this one:

Then hit Finish and then Quit on the next screen to leave YaST.

 

3 Install Some Software

Now we install a few packages that are needed later on. Run

yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ make

 

4 Quota

To install quota, run

yast2 -i quota

Edit /etc/fstab to look like this (I added ,usrquota,grpquota to partition /dev/sda3 (mount point /; your device name might be /dev/hda2 or similar):

vi /etc/fstab
/dev/sda3            /                    ext3       acl,user_xattr,usrquota,grpquota        1 1
/dev/sda1            /boot                ext3       acl,user_xattr        1 2
/dev/sda2            swap                 swap       defaults              0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
/dev/fd0             /media/floppy        auto       noauto,user,sync      0 0

Then run:

touch /aquota.user /aquota.group
chmod 600 /aquota.*

and reboot the system:

shutdown -r now

After the system has come up again, enable quota like this:

quotacheck -avugm
quotaon -avug

 

5 DNS Server

Run

yast2 -i bind bind-chrootenv bind-devel bind-utils

Then we add the system startup links for BIND and start it:

chkconfig --add named
/etc/init.d/named start

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

The Perfect Setup - OpenSuSE 10.2 (32-bit) - Page 5