Install/Configure/de

From TcosProject

Jump to: navigation, search


Contents

[edit] TCOS konfigurieren und Boot-Images erzeugen

[edit] Nutzung von TcosConfig

TcosConfig wird nicht automatisch installiert, Sie können es installieren mit:

# apt-get install tcosconfig

Screenshots zur Einrichtung von TCOS mit TcosConfig und zusätzliche Informationen finden Sie unter TcosConfig.

[edit] Nutzung von gentcos

gentcos ist Teil des Pakets initramfs-tools-tcos package. Einige Informationen erhalten Sie unter gentcos.


Image:Vlc.png Diese Wiki-Seite ist in Bearbeitung. Bitte schauen Sie später wieder vorbei!

[edit] Login-Manager des Servers konfigurieren

[edit] GDM

Sie müssen /etc/gdm/gdm.conf wie folgt verändern (in Ubuntu heißt die Datei eventuell gdm.conf-custom):

       [security]
       DisallowTCP=false

       [xdmcp]
       Enable=true

Sie können Autologin vom Client in den Server ermöglichen unter Angabe des Namens des Clients:

       [daemon]
       TimedLoginEnable=true
       TimedLogin=/usr/sbin/tcos-gdm-autologin|
       TimedLoginDelay=10

       [security]
       AllowRemoteAutoLogin=true
       DisallowTCP=false

       [xdmcp]
       Enable=true

Diese Einstellungen können mit einem einfachen Hilfsscript erzeugt werden:

# tcos-gdm-autologin --configure

Image:Button ok.png TIP: Wenn Sie gdm.conf geändert haben, müssen Sie den GDM-Dämon neu starten. Drücken Sie Ctrl+Alt+F1, loggen Sie sich als root ein und führen Sie aus:

# /etc/init.d/gdm restart

[edit] GDM-Autologin konfigurieren

TCOS stellt ein kleines Python-Script namens tcos-gdm-autologin zur Verfügung, Das Script liest die $DISPLAY-Variable und versucht, mittles DISPLAY den Nutzer ausfindig zu machen. Beispielsweise:

Image:Messagebox info.png NOTE:
DISPLAY=host3:0
try to login with user host3

To work you need to configure DHCP server and /etc/hosts to have same values thas users...

Example /etc/hosts:

192.168.0.101 host1
192.168.0.102 host2
192.168.0.103 host3
192.168.0.104 host4
192.168.0.105 host5

Example dhcpd.conf:

host host1 {
       hardware ethernet       00:04:xx:xx:xx:xx;
       fixed-address              192.168.0.101;
}
 host host2 {
       hardware ethernet       00:04:xx:xx:xx:xx;
       fixed-address              192.168.0.102;
}
host host3 {
       hardware ethernet       00:04:xx:xx:xx:xx;
       fixed-address              192.168.0.103;
}
host host4 {
       hardware ethernet       00:04:xx:xx:xx:xx;
       fixed-address              192.168.0.104;
}
host host4 {
       hardware ethernet       00:04:xx:xx:xx:xx;
       fixed-address              192.168.0.105;
}

Then create users:

# adduser host1
.....
# adduser host2
.....

tcos-gdm-autologin have some code to do all this things (extracted of man page):

      --add
       This option will ask for user/host names prefix to add to system config.
       Example:
         prefix=host
         number=4
         ipbase=192.168.0

       Will generate the following:

         user: host1 pass: host1 home: /home/host1 (extracted from SKEL)
         user: host2 pass: host2 home: /home/host2 (extracted from SKEL)
         user: host3 pass: host3 home: /home/host3 (extracted from SKEL)
         user: host4 pass: host4 home: /home/host4 (extracted from SKEL)

         host: 192.168.0.1 hostname= host1
         host: 192.168.0.2 hostname= host2
         host: 192.168.0.3 hostname= host3
         host: 192.168.0.4 hostname= host4

Exec this:

# tcos-gdm-autologin --add
Please input the common prefix of hosts/users (example host): host
Need network IP Address of thin clients (example 192.168.0): 192.168.0 
Number of host/users to generate (number): 5
Start generating from (default 1): 1

I will generate users and hostnames from "host1" to "host5"
with ip adresses from 192.168.0.1 to 192.168.0.5
and uncompress "/root/skel.tar.gz" as HOME_TEMPLATE

Are you sure you want this? [y/n]


To work as kiosk mode you need to create a home template and save into /root/skel.tar.gz

  1. Create a new user, for example: template
  2. Login as template and configure all you want (desktop, language, wallpaper...)
  3. Logout
  4. Exec as root:
# (cd /home/template && tar -czf /root/skel.tar.gz . )

(perhaps will be a great idea open the tar.gz file and remove some files like .Xauthority or .ICEauthority)

[edit] KDM

Sie müssen /etc/kde3/kdm/kdmrc wie folgt abändern:

       [xdmcp]
       Enable=true

In der Datei /etc/kde3/kdm/Xaccess aktivieren Sie den folgenden Eintrag:

       *       #any host can get a login window


[edit] XDM

[edit] Konfigurieren des Font Servers

TCOS installiert xfs als Font Server, Sie müssen xfs konfigurieren, um Zugriffe anderer Rechner zu gestatten:

Editieren Sie die Datei /etc/X11/fs/config und verändern Sie die folgende Zeile:

no-listen = tcp

in die folgende:

#no-listen = tcp

[edit] Konfigurieren des DHCP-Servers

Vorausgesetzt, Ihr Netzwerk sieht folgendermaßen aus:

INTERNET ---- (eth0) x.x.x.x  SERVER 192.168.0.254 (eth1) ----- SWITCH
                                                                   ||
                                                          =================
                                                          |    |    |    |     |
                                                         pc1  pc2  pc3  pc4   pc5 ....

müssen Sie in Distros, die auf Debian beruhen, die Datei /etc/default/dhcp3-server editieren. to change network interface to listen DHCP request:

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"


You can configure DHCP server by two methods:

[edit] Dynamic IP address

Image:Button ok.png TIP: Copy /usr/share/doc/initramfs-tools-tcos/examples/dhcpd-without-mac.conf in /etc/dhcp3/dhcpd.conf

# /etc/dhcp3/dhcpd.conf
# from: http://www.ubuntu-es.org/node/20079

ddns-update-style ad-hoc;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option domain-name "tcos-domain.org"; 
option option-128 code 128 = string;
option option-129 code 129 = text;

get-lease-hostnames true;

next-server 192.168.0.254;

shared-network WORKSTATIONS {
  subnet 192.168.0.0 netmask 255.255.255.0 {

    range dynamic-bootp 192.168.0.11 192.168.0.30;

     if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
       # boot from PXE network card
       filename "/tcos/pxelinux.0";
     }
     else{
       # boot from old version of etherboot floppy
       filename "/tcos/linux-2.6.18-4-486.nbi";
     }

  }
}
Then restart service:
# /etc/init.d/dhcp3-server restart

[edit] Static IP address

Image:Button ok.png TIP: Copy /usr/share/doc/initramfs-tools-tcos/examples/dhcpd.conf in /etc/dhcp3/dhcpd.conf

You have to put one block per host in this way:

#/etc/dhcp3/dhcpd.conf
# Sample configuration file for ISCD dhcpd
#
# Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd
# once you adjusted this file and copied it to /etc/dhcpd.conf.
#

default-lease-time            21600;
max-lease-time                21600;

option subnet-mask            255.255.255.0;
option broadcast-address      192.168.0.255;
option routers                192.168.0.1;
option domain-name-servers    192.168.0.1;
option domain-name            "tcos-domain.com";
next-server                   192.168.0.254;

shared-network WORKSTATIONS {
    subnet '192.168.0.0 netmask 255.255.255.0 {
    }
}

group   {
    use-host-decl-names       on;
    option log-servers        192.168.0.254;
    next-server       192.168.0.254;



host tcos11 {
     # host running TCOS
     hardware ethernet       00:0c:29:4b:bc:db;
     fixed-address           192.168.0.11;
     filename                "/tftpboot/tcos/pxelinux.0";
   }


host tcos12 {
    # host running LTSP
    hardware ethernet   00:0c:29:2d:61:6f;
    fixed-address           192.168.0.12;
    filename                "/tftpboot/lts/2.6.16.1-ltsp-2/pxelinux.0";
   }

host tcos13 {
    # host running PXES
    hardware ethernet   00:0C:29:27:8A:B0;
    fixed-address           192.168.0.13;
    filename                "/tftpboot/pxes/pxelinux.0";
   }
}
Then restart service:
# /etc/init.d/dhcp3-server restart


[edit] Configuring Pulseaudio

http://www.pulseaudio.org/wiki/PerfectSetup