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,

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #15 on: April 28, 2007, 09:09:31 PM »
well yes it is an upgrade in that it has newer packages. I'd stick with the old one and just update the packages you use. For example I just updated evolution, rdesktop and a few other things.

Offline paulsnz

  • *
  • 27
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #16 on: August 01, 2007, 11:05:45 AM »
Great contrib.

 works extremely well.. took me hours to get 10 XP clients sorted with roaming profiles and the like..

took me 1/2 hour to fire up 6 ltsp clients .. with booting speeds and OPEN-OFFICE performance way better than Windows..

Makes me think that this SME+LTSP+ thin clients is an idea with tremendous potential?  

A perfect fit for relatively inexpensive yet powerful modern CPUs

my spec's
Athlon 4400+ x2 4G ram raid0 250G Sata2

Note:-
http://www.dungog.net content filtering server-panel Proxy settings work beautify with these ltsp clients, on the same SME box as the LTSP install.  holy-grail stuff! :D

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #17 on: August 01, 2007, 11:27:04 AM »
are you using hardware raid 0 (fake raid) or did you make sme use raid 0? Would be very keen to see a quick hack on how to get sme installed onto raid 0 instead of raid 1 for test purposes.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #18 on: August 01, 2007, 01:38:02 PM »
Quote from: "paulsnz"

Note:-
http://www.dungog.net content filtering server-panel Proxy settings work beautify with these ltsp clients, on the same SME box as the LTSP install.  holy-grail stuff! :D


How's that?
Dansguardian will filter the traffic comming from the clients, but not from the server itself. When using LTSP the traffic does come from the server itself and you're obliged to mark "use proxy settings" under your browser.
Users can easily modify that.
Please enlighten me on your solution.

Thanks,

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #19 on: August 01, 2007, 01:40:11 PM »
paulsnz: I too am very keen to see your solution for dansguardian on this...

Offline paulsnz

  • *
  • 27
  • +0/-0
ltsp proxy
« Reply #20 on: August 01, 2007, 02:18:17 PM »
Hi,

Not my solution!  Just the good work from http://www.dungog.net a small fee is required to install the Content filtering server-panel but small price to pay for quality work.

It makes configuration of Dansguardian a piece of cake..

And as I mentioned  the LTSP clients are filtered as well!  Excellent :D
 
I configured the proxy setting of firefox to the local server ip  port 8080 with PAM or transparent proxy...  I'm not sure if identd works for the LTSP logon will try that.

PAM prompted for user name and password etc! and depending on settings
a BYPASS of blocked pages worked...  with transparent proxy no option just blocking occurred.

I installed Open-office with rpms and yum local install
I did a rpm install for Inkscape works a treat as well!

all installed into the appropriate menus of gnome!  :D amazing

logging on as root and starting the Gui with "startx" is spooky!  :twisted:

Now I need to understand how to remove and customise LTSP menus
for Moxilla and other apps. etc
The http://www.k12ltsp.org have excellent wiki

Cheers
Paul S.

Offline paulsnz

  • *
  • 27
  • +0/-0
Raid 1 - proxy
« Reply #21 on: August 01, 2007, 02:41:07 PM »
Did I say raid 0  duh!

no just software mirroring... Obviously from reading up on LTSP hard disk speed / access is very important..maybe SCSI drives??would be more appropriate ??. but Ram is cheap  and CPU's are cheap for the performance these days??

Yes client proxy is set  ..  will need to make admin/root  only!.. permissions?  etc

Yes the server itself running mozilla goes thru the squid proxy??
fancy ipchains??  all I can say is IT works??  I'm sure...?

Gezz i' cloned it so I will double confirm when I build another next few days

That severs in and running.  My customer wanted His PC's (picked up in auction to work)  NO OS installed!
no problem  they had PXE boot and they fired up first time... no sound though! but thats not an issue.  saved hours loading M$ stuff cloning, etc etc etc LTSP is sooo much better!


Regards :mrgreen:

Offline tariqf

  • ****
  • 179
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #22 on: August 01, 2007, 02:46:26 PM »
I use this to set my user defaults and force mandatory settings on my sme ltsp boxes:
http://gentoo-wiki.com/GNOME_Admin_Guide_quick-n-dirty


I also just install the dungog dansguardian server panel which I already have purchased and it works perfectly with the thin clients as you said!

Doing a major howto rewrite very soon to include all these goodies as options.

Also I have sound working no problem - I guess you need to make sure you card's driver is included. I have this to enable sound in my lts.conf:

SOUND              = Y
SOUND_DAEMON       = esd

Offline paulsnz

  • *
  • 27
  • +0/-0
Thanks
« Reply #23 on: August 01, 2007, 03:04:42 PM »
Thankx for that tariqf I was beginning to dought myself!!

I tested it against my VMware PXE boot clients and it works fine.

As I said from reading the k12LTSP stuff that "self proxying was/is impossible
without some fancy stuff?"

Its been a hectic few days installing all that stuff..  man I hate Windows profiles...  you redirect the My doc's and all hell breaks loose with "offline files"  etc  
Have done one site with folder redirection.. made the whole profile sit in the H: drive  even made the .PST sit happily there, made logon's with roaming profiles really snappy.  Had a windows error about "default profile" at login but worked none the less!

Didn't have time to reproduce that consistently, this time.

Need my Shelley back!  http://www.tclonline.co.nz

Cheers Again  I will follow up

Offline paulsnz

  • *
  • 27
  • +0/-0
LTSP Clients
« Reply #24 on: August 01, 2007, 03:17:24 PM »
While I'm on a roll..  Is it just me or does it seem like NEW thin clients are
way too expensive??  using old pc's is good where NEW is not an option,
But I want nice new sleek units??!

All I want is small, even installed into a LCD monitor client  should be cheap to do these days??

just PXE boot, gigabit ethernet, Cpu. video, sound, USB and some ram!

No embedded windows CE rubbish.. no IDE no Floppy

How hard can it be!:shock:
I'll get them built myself  I think ?!:evil:

regards
Paul S

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #25 on: August 02, 2007, 02:17:00 AM »

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Re: HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #26 on: August 02, 2007, 05:14:27 AM »
Quote from: "tariqf"
* 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*
You should just need to do:
Code: [Select]
yum --enablerepo=smedev install smeserver-tftp-server smeserver-thinclientThe official versiosn are in SVN under smedev (and I keep copies in my ftp directory).

Also note that smeserver-tftp-server has been upgraded to have a dependency on the latest tftp-server available from centos base (which yum will bring down automagically).

Trevor B :-)

Offline paulsnz

  • *
  • 27
  • +0/-0
Thin Client Server panels
« Reply #27 on: August 02, 2007, 02:27:34 PM »
Again great Thanks to TrevorB for great work   :D

Offline mudra

  • ***
  • 78
  • +0/-0
HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #28 on: August 05, 2007, 08:01:27 PM »
I have followed the how to and I can boot my thinclients (thankyou). However, I can no longer print to my Laserjet 4 printer attached to my SMESERVER box. Could these be related ? I have done nothing else to my box except follow the how to ?

Any thoughts would be greatly appreciated.

Murda

Offline tariqf

  • ****
  • 179
  • +0/-0
hardware
« Reply #29 on: August 11, 2007, 08:20:15 PM »
Hi paulsnz are a reseller for these at around £100+VAT each

http://www.netvoyager.co.uk/products/lx1000.html

We do discounts for orders over 20 units.

www.yourproblemsolved.com (new site up soon but contact details there)

Offline paulsnz

  • *
  • 27
  • +0/-0
Re: HOWTO: SME7.1 Gnome 2.16 + LTSP 4.2
« Reply #30 on: November 25, 2008, 07:03:19 AM »
Have noticed that this file came back after upgrade to 7.4.
/etc/profile.d/e-smith-lib_compspec.sh

just remove again.
* rm /etc/profile.d/e-smith-lib_compspec.sh

cheers