This document describes the procedure to install and configure either KDE or Gnome GUI on SME Server 7.0rc2.
**WARNING** Most people would highly advise against doing this, however we have a specific purpose for doing this and as such have documented the procedure for future reference. It is your responsibility to investigate fully the security implications involved in following this procedure. This has only been tested to boot stage - no other services have been tested as of the writing of this document. As usual all care taken but no responsibility accepted.
Step 1. Perform a clean install of SME Sever 7.0rc2Note: Step 2 involves copying the first 2 discs of CentOS 4.3 distribution onto your hard drive and setting up a local yum repository. The total size of the install for KDE is approximately 170MB, if you have a generous ISP then you can bypass step 2 completely and install from the internet.
Step 2. Obtain CentOS 4.3 installation discs 1 & 2 and copy to your hard drive.#mkdir -p /tmp/yum-local-repo/RPMS
#cd /tmp/yum-local-repo/RPMS
Insert CentOS 4.3 Disc 1
#mount /media/cdrecorder
#rpm -Uvh /media/cdrecorder/CentOS/RPMS/createrepo-0.4.3-1.noarch.rpm
#cp /media/cdrecorder/yumgroups.xml .
#cp /media/cdrecorder/CentOS/RPMS/* .
(Note the period or full-stop at the end of the line is important)
Repeat for the other 3 Cd's
Insert CentOS 4.3 Disc 2
#mount /media/cdrecorder
#cp /media/cdrecorder/CentOS/RPMS/* .
#mcedit /etc/yum.repos.d/local.repo
and add the following:
[local]
name=CentOS 4.3 CD-Rom Install
baseurl=file:///tmp/yum-local-repo/RPMS
Now lets setup the local repo
#createrepo -g yumgroups.xml /tmp/yum-local-repo/RPMS
With over 700 packages this may take some time, after completion make sure the yum groups is working OK.
#yum --disablerepo=* --enablerepo=local grouplist
Yum should display a list of available groups, if not go back and check all the settings. Now you should be able to install either KDE or GNOME - take your pick.
For KDE use the following:
#yum --disablerepo=* --enablerepo=local groupinstall "KDE (K Desktop Environment)"
If you prefer GNOME use this:
#yum --disablerepo=* --enablerepo=local groupinstall "GNOME Desktop Environment"
Step 3. Setup GUI to boot on start-up.Prior to rebooting we need to setup a few things to make sure X boots up properly:
Start up the X Font Server
#/etc/rc.d/init.d/xfs start
Configure the mouse
#system-config-mouse
Now configure the display
#system-config-display (then follow the prompts and click OK to create the configuration file located in /etc/X11/xorg.conf.)
Make sure the X Font Server starts up in run level 7
#cp /etc/rc.d/rc5.d/S90xfs /etc/rc.d/rc7.d/
Install a display manager to handle logins
#mkdir -p /etc/e-smith/templates-custom/etc/inittab
#mcedit /etc/e-smith/templates-custom/etc/inittab/92dm
And add the following to this file:
#Install Display Manager
x:7:respawn:/usr/bin/kdm -nodaemon
Expand the template:
#/sbin/e-smith/expand-template /etc/inittab
Standard users logins are disabled in smeserver so we need to install a third party contrib to allow user shell access so that authorised users are able to login.
#rpm -Uvh
http://mirror.contribs.org/smeserver/contribs/dungog/packages/smeserver/7.0/i386/RPMS.dungog/smeserver-remoteuseraccess-1.2-2.noarch.rpmAfter installing this contrib you will need to login to the server-manager and modify the default shell for any users that will require login from /bin/rssh to /bin/bash.
You can now reboot the system and you should be presented with a kdm login screen.
Regards Lloyd