Gmane
From: Graeme.Lockett <Graeme.Lockett@...>
Subject: Sample of our thin station configs
Newsgroups: gmane.network.thinstation.general
Date: 2005-12-18 21:22:00 GMT (3 years, 28 weeks, 3 days, 6 hours and 45 minutes ago)
Hi Trevor,

It is a great idea to add user configs to the WIKI. I have attached our
setup below.

Our school has about 70 old Dell and IBM boxes. As our network uses RIS
quite heavily I have opted not to use thinstation via PXE. I have used
fdisk to create a 50Mb partion on each disk and use syslinux to boot. I
have created a dos boot cd which can be used to boot, fdisk, format and
copy the required files onto the machine. It takes about two minutes to
create a thinstation. I have enable samba and I can pump any updates out
to the thinstations by copying 4 files [vmlinuz, initrd, syslinux.cfg
and thinstation.txt] to the hidden hard drive share.

Each machine has the option of two RDP sessions a staff terminal server
cluster and a student terminal server cluster. The thinstations are
configured with the following options. From the end of the POST to the
logon screen takes 16 seconds on a Pentium II 300Mhz machine.

1) Sync time with the main server. Our main server has a piece of
freeware called timesvc which runs as a service and allows the
thinstations RCLOCK to get its time updates.
[web.inter.nl.net/hcc/H.Tamminga/sytinem/timesvc.html]. Regardless of
what time is stored in the BIOS the thinstation will display the correct
time.

2) The RDP sessions have sound using the RDP redirect option. 

3) The thinstations run the web based admin access and access is limited
to two of our servers.

4) The samba server is running so users can access floppy, CD and USB.
The samba base files have been altered so that harddrive is now a hidden
share. See samba.conf.tpl below.

5) The thinstations have a telnet server running. I use the windows
scheduler and a scripted telnet program [Teraterm Pro] to shutdown all
thin clients each night at 8pm.

6) I have altered the background images as the default thinstation
background contains the thinstation website address. I don't want our
students to get any ideas about how to break the thinstations. 

7) I have used Blackbox rather than ICEWM. I have altered the
blackboxrc.tpl file so that there is only one workspace with the school
name. I have also edited the file wm.blackbox.functions to remove some
desktop and right click menu options so that the only options that
remain are the two RDP sessions, shutdown and reboot.

8) Each user session has a shortcut to a batch file which is used to map
floppy, usb and cd. The great thing about this method is that if the
user logs on somewhere else the session can follow and because the drive
is not mapped to the old machine when the shortcut is next clicked it
remaps to the new thinstation.

net use x: /delete
net use x: \\%clientname% /user:
net use x: /delete
explorer \\%clientname%

#################################################
# --- Thinstation.conf.buildtime--- #
#################################################

# --- General Options
#

AUDIO_LEVEL=67
KEYBOARD_MAP=en_nz
TIME_ZONE="GMT-13"
SYSLOG_SERVER=local
USB_ENABLED=On
DAILY_REBOOT=Off
AUTOPLAYCD=Off
CUSTOM_CONFIG=Off
RECONNECT_PROMPT=On

# --- Default Settings for all sessions
#

SCREEN=0
WORKSPACE=1
AUTOSTART=On
ICONMODE=Manual

# --- Session Options

SESSION_0_TYPE=blackbox
SESSION_0_AUTOSTART=On

SESSION_1_TITLE="Staff Access [TSHOST] "
SESSION_1_TYPE=rdesktop
SESSION_1_SCREEN=1
SESSION_1_ICON=On 
#SESSION_1_SCREEN_POSITION=2
SESSION_1_RDESKTOP_SERVER=10.0.1.100
SESSION_1_RDESKTOP_OPTIONS="-u '' -a 16 -r sound:local"
SESSION_1_AUTOSTART=Off

SESSION_2_TITLE="Student Access [TSPUPIL] "
SESSION_2_TYPE=rdesktop
SESSION_2_SCREEN=1
SESSION_2_ICON=On 
#SESSION_2_SCREEN_POSITION=2
SESSION_2_RDESKTOP_SERVER=10.0.1.10
SESSION_2_RDESKTOP_OPTIONS="-u '' -a 16 -r sound:local"
SESSION_2_AUTOSTART=Off

# --- X Server Options

SCREEN_RESOLUTION="1024x768"
SCREEN_COLOR_DEPTH="16"
#SCREEN_HORIZSYNC="30-64 | *"
#SCREEN_VERTREFRESH="56-87 | 60 | 56 | 70 | 72 | 75"
#SCREEN_X_FONT_SERVER=192.168.1.2:7100
SCREEN_BLANK_TIME=10
SCREEN_STANDBY_TIME=20
SCREEN_SUSPEND_TIME=30
SCREEN_OFF_TIME=60

# --- Samba Options

SAMBA_SERVER_ENABLED=On
SAMBA_WORKGROUP=WGHS
SAMBA_SECURITY=Server
SAMBA_SERVER=10.0.0.1
#SAMBA_WINS=BadMan
SAMBA_HARDDISK=On
SAMBA_CDROM=On
SAMBA_FLOPPY=On
#SAMBA_PRINTER=On
SAMBA_USB=On

# --- Networking Options

NET_HOSTNAME=ts_*
NET_SMTP_SERVER=10.0.0.1
NET_SMTP_EMAIL=xxx@...
NET_TIME_SERVER=10.0.0.1
NET_TELNETD_ENABLED=On
NET_REMOTE_ACCESS_FROM="10.0.0.1 10.0.0.2"

NET_USE_TFTP=Off

################################################
### ---     Thinstation Build Config     --- ###
################################################

################################################
### --- Modules to include in boot image --- ###
################################################

#!Hardware Stuff
#!!Bus Modules
# --- Bus Modules

module agpgart		# AGP bus module for use with AGP video cards
module pcmcia           # PCMCIA Cards
module apm              # Advanced power management

#!!Network cards
# --- Network cards modules
# Have as few as possible

#!!!Ethernet 10-100 Mbit Modules
module 3c509           # 3c509/3c529 (MCA)/3c579 EtherLink III support
module 3c59x           # 3c590/3c900 series (592/595/597)
Vortex/Boomerang support 
module 8139too         # RealTek RTL-8139 PCI Fast Ethernet Adapter
support
#                      # VERY common in no-name network cards. Covers
also 8129
module 8139cp          # RealTek RTL-8139 C+ PCI Fast Ethernet Adapter
support
#module e2100          # Cabletron E21xx support
module eepro           # EtherExpressPro support/EtherExpress 10
(i82595) support
module eepro100       # EtherExpressPro/100 support (eepro100, original
Becker driver)
module eexpress       # EtherExpress 16 support
module ne2k-pci        # PCI version of NE-2000

#!!Sound Cards
module cs4232                           # Crystal CS4232 based (PnP)
cards
module i810_audio                       # Intel ICH (i8xx), SiS 7012,
NVidia

#!!USB Devices
module usb-hid          # Needed for USB keyboards and mice  
module usb-storage      # Needed for USB-Sticks
#module usb-printer      # Needed for USB-Printers

#!!Storage Devices

module ide-floppy       # LS-120, Iomega Zip
module floppy           # Floppy Disk Drive Support
module cdrom            # CD-Rom Drive Support

#!!Filesystem Support
# -- Every mounted device needs a filesystem, choose which ones are
supported below.

module isofs            # ISO9960 file system support for CDRoms
module vfat             # Fat and VFat file system support
#module ext2             # Ext2 file system support
#module ext3             # Ext3 file system support
module supermount       # Supermount support for auto unmounting of
removable media
module nfs             # NFS file system support
#module smbfs           # Samba client FS Support, allows you to mount
smb filesystems

#################################################
### --- Packages to include in boot image --- ###
#################################################

# A package is a program or utility.
# Any packages may be added as "package" or "pkg".
# If defined as a "package" the program is included in the boot image.
# If defined as a "pkg" the program is added from outside the image.
# Normally use "package", and only "pkg" if you want to dynamically load
packages

# --- Packages to include in boot image
# --- Packages below may be "package" or "pkg"
#!!Miscellaneous
#package hwclock	        # Utility to set system time from
hardware clock

#package sound-esd	# Enable one of these modules if you want to be
able to control
package sound-nasd	# sound on your thinstation from another
computer or
                        # your remote session.
#!!Video
# --- X related packages

#package xorg6-tinyx	# TinyX Xvesa server (for low memory machines)
			# works with ICA too, is slower, don't choose
any X modules with
			# this server, you don't need anything else.
                        # Otherwise choose from Xfree 3 or 4 (4 is
recommended)
#package xf3-svga	# XF86_SVGA 3.3.6 server
#package xf3-s3		# XF86_S3 3.3.6 server
#package xf3-vmware	# VMWare X server for development
#package xorg6vnc          # Xorg VNC Server Module. With this package
you can
                        # connect to the TS client's desktop from a java
                        # browser on "http://<TS ip>:5800

#!!Xorg6R8.1

# General Xorg6R8.1 video drivers:
# Only include what you really need!

package xorg6-ati            # ATI video driver
package xorg6-i740           # Intel i740 video driver 
package xorg6-i810	   # Intel 8xx integrated graphics chipsets 
package xorg6-vesa	   # Generic VESA driver, use this if you don't
know 

#!!Keyboard layouts  (Language/Country)

package keymaps-en_nz    # English-New Zealand

#!Applications
#!!Connectivity
# --- Connection Package types
# Choose *at least* one!

package rdesktop	# X RDP client for Windows Terminal Services
(ver 1.4.1)

#!!Window Managers
# --- Window Managers
# Choose no more than 1 window manager
# Not needed if you don't want to manage windows
package blackbox	# "Blackbox" window manager.  Makes TS a light
workstation.
                        # Is a little bigger than blackbox

#!!Window Manager Utils
package xtdesk         # Adds icons to desktop

#!!Other services

package www 		# Web access to client.  From a browser:
"http://<IP 
package samba-server	# Samba server FS Support, allows you to share
                        # local floppy/cdrom/hd/printer to other Windows
			# PCs; Needs supermount for removeable media

#!Parameters
#!!General
########################################
### --- Miscellaneous Parameters --- ###
########################################

param bootlogo       true            # Want a backgound picture during
boot
param bootresolution 1024x768
param defaultconfig  thinstation.conf.buildtime  # The file with default
setup
                                                 # no other config file
is found
                                                 # during boot
param basename       thinstation     # used for all config/tftp file
names
param basepath       .               # used to determine path to tftp
files
param localpkgs      false	# to determine is PKG files are to be
loaded locally
param fulllocales    false      # Use full locale support for packages
param icaencryption  false      # Use ica encryption support, add 290k
to image
param bootvebosity   3          # Increased vebosity when booting TS

Samba.conf.tpl

#============================ Share Definitions 

$SAMBA_PRINTER[printers]
$SAMBA_PRINTER    comment = All Printers
$SAMBA_PRINTER    path = /var/spool/samba
$SAMBA_PRINTER    browseable = no
$SAMBA_PRINTER    public = $SAMBA_PUBLIC
$SAMBA_PRINTER    printable = yes

$SAMBA_HARDDISK[hdd$]
$SAMBA_HARDDISK    comment = Hard disk
$SAMBA_HARDDISK    path = /mnt/disc
$SAMBA_HARDDISK    read only = no
$SAMBA_HARDDISK    public = $SAMBA_PUBLIC

$SAMBA_CDROM[cdrom]
$SAMBA_CDROM    comment = CDROM
$SAMBA_CDROM    path = /mnt/cdrom
$SAMBA_CDROM    read only = yes
$SAMBA_CDROM    public = $SAMBA_PUBLIC

$SAMBA_FLOPPY[floppy]
$SAMBA_FLOPPY   comment = Floppy
$SAMBA_FLOPPY   path = /mnt/floppy
$SAMBA_FLOPPY   read only = no
$SAMBA_FLOPPY   public = $SAMBA_PUBLIC

$SAMBA_USB[usb]
$SAMBA_USB   comment = USB Device
$SAMBA_USB   path = /mnt/usbdevice
$SAMBA_USB   read only = no
$SAMBA_USB   public = $SAMBA_PUBLIC

CAUTION: This e-mail message and accompanying data may contain information that is confidential and
subject to privilege. If you are not the intended recipient, you are notified that any use,
dissemination, distribution or copying of this message or data is prohibited. If you have received this
e-mail in error, please notify the sender immediately and delete all material pertaining to this e-mail.
Whangarei Girls' High School will not accept liability for any loss or damage caused by using any material
or attachments contained in this message. While every best practice has been taken, no warranty is made
that this material is free from computer virus or other defect. Whangarei Girls' High School's entire
liability will be limited to resupplying the material.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click