The Perfect Server - OpenSUSE 11.1 x86_64 [ISPConfig 3] - Page 3
4 Configure the Network settings
We use Yast, the OpenSuSE system management tool to reconfigure the network card settings. After the first boot, the system is configured to get the IP address with DHCP. For a server we will switch it to a static IP address.
Select Network Devices > Network Settings:
Select your network card and then Edit:
Select Statically assigned IP Address and enter the IP address, subnet mask and hostname and save the changes by selecting Next:
Now select Hostname/DNS and enter the hostname (e.g. server1.example.com) and nameservers (e.g. 220.127.116.11 and 18.104.22.168):
Now select Routing and enter the default gateway and hit OK:
To configure the firewall, select Security and Users > Firewall in Yast:
I want to install ISPConfig at the end of this tutorial which comes with its own firewall. That's why I disable the default OpenSUSE firewall now. Of course, you are free to leave it on and configure it to your needs (but then you shouldn't use any other firewall later on as it will most probably interfere with the OpenSUSE firewall).
Select Disable Firewall Automatic Starting and Stop Firewall Now, then hit Next:
Hit Finish and leave Yast:
5 Install updates
Now we install the latest updates from the openSUSE repositories. Run
And then reboot the server as you most likely installed some kernel updates, too:
To install quota, run
yast2 -i quota
Edit /etc/fstab to look like this (I added ,usrquota,grpquota to the mountpoints / and /srv):
/dev/sda1 swap swap defaults 0 0 /dev/sda2 / ext3 acl,user_xattr,usrquota,grpquota 1 1 /dev/sda3 /srv ext3 acl,user_xattr,usrquota,grpquota 1 2 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
touch /aquota.user /aquota.group
chmod 600 /aquota.*
touch /srv/aquota.user /srv/aquota.group
chmod 600 /srv/aquota.*
mount -o remount /
mount -o remount /srv
Dont be worried if you see these error messages - they are normal when you run quotacheck for the first time:
quotacheck: WARNING - Quotafile //aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING - Quotafile //aquota.group was probably truncated. Cannot save quota settings...
quotacheck: Scanning /dev/sda2 [/] done
quotacheck: Checked 5286 directories and 45399 files
quotacheck: WARNING - Quotafile /srv/aquota.user was probably truncated. Cannot save quota settings...
quotacheck: WARNING - Quotafile /srv/aquota.group was probably truncated. Cannot save quota settings...
quotacheck: Scanning /dev/sda3 [/srv] done
quotacheck: Checked 7 directories and 4 files
7 Install some basic packes and the compilers that we need later
yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ subversion make vim telnet cron iptables iputils man man-pages nano pico