Going Headless with openSUSE! More CPU/RAM, less power consumption.

Discussion in 'Server Support on Mono' started by Ixtabay, Feb 9, 2012.

  1. Ixtabay

    Ixtabay Sorceror

    Aug 28, 2009
    Likes Received:
    Fine tuning your openSUSE 12.1 RunUO Server. Lighten the burden on your CPU/RAM/Electric_Bill by going headless!

    This guide builds on my previous guide for running a RunUO server on linux openSUSE 12.1. (http://www.runuo.com/community/thre...ns-distro-for-opensuse-12-1-with-mono.504669/)

    If you want to make your server headless, meaning no kb/mouse/monitor, then you will need to install a remote management tool like Webmin. Once setup, you will no longer need the X window system (KDE Desktop etc.), which will free up RAM and CPU for your RunUO Server while cutting down on power consumption.

    We'll start by installing Webmin.

    First, open port 10000 to your internal network, so you will be able to access Webmin once it's installed. Click the “Kickoff Application Launcher” (little green circle bottom left like START button on Windows) and enter “firewall” in the search box. Select the Firewall application and you will be prompted for your password. Enter your password, then click “Custom Rules” for “Internal Zone” and click “Add.” Enter the following values:

    Source Network: (be sure to set this to what your internal network is)
    Protocol: TCP
    Destination Port: 10000
    Source Port: 10000
    Additional Options: (just leave this blank)

    Then click “Add,” “Next,” and “Finish.”

    Now, follow the same steps as above for ports 21 (for FTP) and 22 (for SSH)

    Next get the latest Webmin rpm for Suse here: http://www.webmin.com/download.html

    Note: If you click to download using Firefox on a default openSUSE 12.1 installation, it will save the file in /root/tmp/ . So, just cut and paste it in your Downloads folder, or make a new folder to save it in.

    From Konsole or Terminal, install webmin. First enter “su” to run as root. (Apper won't work due to a required license acceptance prompt that breaks Apper) At the moment, Webmin is v1.580. Yours may be newer.

    rpm -ivh webmin-1.580-1.noarch.rpm

    Now, open your browser on your main computer and enter the internal IP of your RunUO Server followed by :10000 (i.e. “”) Login as root with your password. If you cannot access this from your main computer, then try accessing from your RunUO Server at http://localhost:10000 . If you can access from your RunUO Server, but not the others, check that you have the right IP and that port 10000 is open on your firewall.

    Once in Webmin, from the “Servers” menu, click on “SSH Server” and Start it.

    If you don't already have puTTy, download it on your main computer (get it here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html )

    Run puTTy and connect to your server. Login as root. If this works, you are ready to move on.

    Once Webmin is working and you can connect with puTTy, we can configure openSUSE to run without loading the Graphical User Interface (GUI) at start, which takes a lot of system resources that we want to use for RunUO. To do this, you need to edit /etc/inittab from the command line:

    vi /etc/inittab

    press “i” once to INSERT, scroll down to id:5:initdefault: and change it to id:3:initdefault: on line 26. After you change it press ESC, type “:wq” (without the quotes), then ENTER.

    Time to reboot, and say goodbye to the X window system at boot!

    Restart and login.

    Remember, you can always run X window again by typing “startx” after you login.

    If you are going to remove the keyboard and display, you may need to enter your system BIOS and disable the warning messages.

    In the next guide I'll go over setting up a boot time process to launch your RunUO Server.


Share This Page