The Perfect Server - OpenSUSE 12.2 x86_64 (Apache2, Dovecot, 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. 188.8.131.52 and 184.108.40.206):
Now select Routing and enter the default gateway and hit OK:
To configure the firewall (in case you didn't configure it during the basic installation), 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:
Afterwards, you should check with
if your network configuration is correct. If it isn't (for example, if eth0 is missing), reboot the system...
... and check your network configuration again afterwards - it should now be correct.
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:
6 Install Some Basic Packages
zypper install findutils readline 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 sudo perl-TimeDate
7 Journaled Quota
To install quota, run
zypper install quota
Edit /etc/fstab to look like this (I added ,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 to the mountpoints / and /srv):
mount -o remount /
Dont be worried if you see these error messages - they are normal when you run quotacheck for the first time:
server1:~ # quotacheck -avugm