Koozali.org: home of the SME Server

HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« on: January 04, 2007, 08:26:29 PM »
--updated for local device support - USB/CD etc

* fresh install sme 7.1
* yum update
* mkdir /etc/e-smith/templates/etc/yum.conf
* vi /etc/e-smith/templates/etc/yum.conf/21gnome216
* insert
[AL-Desktop]
name=Enterprise Linux $releasever - $basearch - AL Desktop
mirrorlist=http://www.alcancelibre.org/al/el4/al-desktop
gpgkey=http://www.alcancelibre.org/al/AL-RPM-KEY
enabled=1
* yum update --exclude clamav
* yum install gnome-all
* signal-event post-upgrade; signal-event reboot
* rm /etc/profile.d/e-smith-lib_compspec.sh
* enable groups for the contos repo in /etc/yum.conf
* create /etc/X11/xorg.conf - mine contains

# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is the location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
        FontPath     "/usr/X11R6/lib/X11/fonts/local/"
        FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load  "dri"
EndSection

Section "ServerFlags"
       Option      "AllowMouseOpenFail" "yes"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#       Option  "Xleds"         "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#       Option  "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#       Option  "XkbModel"      "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#       Option  "XkbModel"      "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#       Option  "XkbLayout"     "de"
# or:
#       Option  "XkbLayout"     "de"
#       Option  "XkbVariant"    "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#       Option  "XkbOptions"    "ctrl:swapcaps"
# Or if you just want both to be control, use:
#       Option  "XkbOptions"    "ctrl:nocaps"
#
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "gb"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
            Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "ACT0e46"
        DisplaySize  270        200
        HorizSync    30.0 - 55.0
        VertRefresh  47.0 - 120.0
        Option      "dpms"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "vesa"
        VendorName  "Videocard vendor"
        BoardName   "VESA driver (generic)"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
            Group        0
        Mode         0666
EndSection
   

LTSP PART
* wget http://ltsp.mirrors.tds.net/pub/ltsp/utils/ltsp-utils-0.25-0.noarch.rpm
* rpm -Uvh ltsp-utils-0.25-0.noarch.rpm
* run ltspadmin and do a full ifunstall of ltsp
* yum install portmap nfs-utils
* wget http://mirror.contribs.org/smeserver/contribs/trevorb/7.x/Thinclient/smeserver-thinclient-2.0-5.noarch.rpm
* wget http://mirror.contribs.org/smeserver/contribs/trevorb/7.x/Thinclient/smeserver-tftp-server-0.39-3.i386.rpm
* rpm -Uvh sme*
* config setprop tftpd status enabled
* signal-event post-upgrade; signal-event reboot
* go to server-manager, thinclient. Add a new distribution called ltsp with a directory of /lts/2.6.17.8-ltsp-1. Change ltsp to default distribution.
* edit /etc/rc.local and insert lines to start xfs then portmap followed by nfs and finally add gdm which is not a service e.g.
/etc/init.d/xfs start
/etc/init.d/portmap start
/etc/init.d/nfs start
gdm &
* run ltspcfg and use it to configure all your settings including setting your interface as eth0
* mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf
* edit /etc/e-smith/templates-custom/etc/dhcpd.conf/09rootpath and add
option root-path              "192.168.1.1:/opt/ltsp/i386";
* expand-template /etc/dhcpd.conf
* mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow
* edit /etc/e-smith/templates/etc/hosts.allow/0ltsp and add the following
mountd: 192.168.1.
nfs: 192.168.1.
gdm: 192.168.1.
## LTSP-begin ##
#
# The lines between 'LTSP-begin' and 'LTSP-end' were added
# on: Fri Dec 22 13:32:24 2006, by the ltspcfg configuration tool.
# For more information, visit the LTSP homepage
# at http://www.LTSP.org
#

bootpd:     0.0.0.0
in.tftpd:   192.168.1.
portmap:    192.168.1.
* expand-template /etc/hosts.allow
* find and install smeserver-remoteuseraccess-1.2-2.el4.sme.noarch.rpm then go to your server-manager->remote users access and change the shell to bash for all users you want to be able to
* (optional) apply gnome splash to all users
gconftool-2 --direct --config-source \
    xml:readwrite:/etc/gconf/gconf.xml.defaults \
    --type string --set /apps/gnome-session/options/splash_image  splash/SmoothGNOME-Splash/SmoothGNOME.png

Enable local devices
* install these RPMS and make sure you match up your kernel version for kernel-module-fuse (you can google them)

fuse-2.5.3-1.SL.i386.rpm
fuse-libs-2.5.3-1.SL.i386.rpm
fuse-smb-0.8.5-1.i386.rpm
fuse-sshfs-1.6-2.SL.i386.rpm
kernel-module-fuse-2.6.9-42.0.3.ELsmp-2.5.3-1.SL.i686.rpm
ltsp-server-pkg-fedora-0.1-1.i386.rpm

* vi /opt/ltsp/i386/etc/lts.conf and insert these lines then save
 HOTPLUG            = Y
        MODULE_01          = uhci-hcd
        MODULE_02          = usbhid
        LOCAL_STORAGE = Y


Done, you can now boot your thin clients from the network into gnome 2.16 and use USB and CDs as usual

Offline k0r54

  • ***
  • 111
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #1 on: January 22, 2007, 11:41:51 AM »
Im gettin aload of missing dependencies?

alot related to lib...

Any ideas?

Edited: - Sorted, i added a few repo's and all is ok

Offline k0r54

  • ***
  • 111
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #2 on: January 22, 2007, 06:16:44 PM »
I am done up to the point of
Code: [Select]

smeserver-remoteuseraccess-1.2-2.el4.sme.noarch.rpm


I can't find it on the net, do you have a link to it?

Also when u say configure ltps when entering ltspcfg is there anything i NEED to configure to get it to work or is it just optional settings i can go through later?

Thanks
k0r54

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #3 on: January 22, 2007, 06:29:19 PM »
dungog.net?

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #4 on: January 22, 2007, 06:30:39 PM »
you must configure ltsp correctly or ltsp will not work.

as for the rpm i just googled it i can't remember where i got it from!

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #5 on: January 31, 2007, 12:53:40 AM »
I have installed and configured, but I can't get my client to boot. I receive the following message on the client:
Code: [Select]
PXE-E53: No boot filename received. Exiting PXE ROM
The system does offer a lease to the client:
Code: [Select]
Jan 30 21:39:16 sme dhcpd: DHCPDISCOVER from 00:a0:d1:54:29:2b via eth0
Jan 30 21:39:16 sme dhcpd: DHCPOFFER on 172.16.0.108 to 00:a0:d1:54:29:2b via eth0

But it does not take the IP.
A saw a similiar thread with the same problem, any idea on what could be?

Thanks,

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #6 on: January 31, 2007, 04:22:22 AM »
Found the problem  :D
This happens when you try using a wireless card ...

Offline k0r54

  • ***
  • 111
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #7 on: January 31, 2007, 06:32:51 PM »
How did u configure the LTSP?

I'm a little stuck with that?

Thanks
k0r54

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #8 on: February 01, 2007, 04:33:46 AM »
I just ran ltspcfg and configured every item in the list, some of them are not required.
What exactly are you having problems?

I'm not done yet, my system boots from PXE but I get a error message at the end:
Code: [Select]
ERROR! Could not automatically detect the network card....
Kernel Panic - Not syncing: Attempeted to kill init!

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #9 on: February 08, 2007, 04:51:05 AM »
Something needs to be fixed in the way the two services start at boot (portmap and NFS). I get different error messages like the one above or mountd errors depending on the workstation I'm trying to boot, but if I restart the services like:
Code: [Select]
[root@sme ~]# /etc/init.d/portmap restart
Stopping portmap:                                          [  OK  ]
Starting portmap:                                          [  OK  ]
[root@sme ~]# /etc/init.d/nfs restart
'rpcsvcgssd' is not a valid service name
Shutting down NFS mountd:                                  [  OK  ]
Shutting down NFS daemon:                                  [  OK  ]
Shutting down NFS quotas:                                  [  OK  ]
Shutting down NFS services:                                [  OK  ]
'rpcsvcgssd' is not a valid service name
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
'rpcidmapd' is not a valid service name


then everything works after. Any input is welcomed!

Thanks,

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #10 on: February 08, 2007, 05:33:54 PM »
as a quick hack to fix it just restart the services in /etc/rc.local. e.g.

/etc/init.d/whatever restart

Offline brick

  • ***
  • 78
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #11 on: April 01, 2007, 04:29:08 PM »
Quote
bootpd: 0.0.0.0
in.tftpd: 192.168.1.
portmap: 192.168.1.
* expand-template /etc/hosts.allow


Do you run a separate LAN for your clients or are these in the same range as your regular LAN?

Offline chebe

  • 12
  • +0/-0
    • Linux NC
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #12 on: April 06, 2007, 06:32:27 AM »
Thanks for the howto !

You wouldn't know another mirror by any chance as http://bruto.sys-net.it/lpt/RPMS.lpt/ has been empty for a month ...
Unix is user friendly - it's just selective about who its friends are !

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #13 on: April 14, 2007, 12:10:26 AM »
lpt deskto preplaced by al-desktop so new yum mirrors can be set up here...

http://www.koalasoftmx.net/staticpages/index.php?page=AL-desktop



also yes I run this on the same lan as all other clients on the sme lan subnet from eth0.

also have put an extra network card in to my server and bonded it so I have a 2gbit interface to the LAN for all my clients

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #14 on: April 14, 2007, 04:52:25 AM »
Is this an upgrade?
I have the old one installed.

Thanks,