Revision 23 as of 2008-12-01 15:21:13

Clear message

SisällysluetteloBRTableOfContents(4)

LTSP5 - iTalc

iTalc-ohjelmistolla voidaan opettajan koneelta hallita ATK-luokan kaikkia muita tietokoneita (Windows tai Linux-tietokoneita). Lue tarkemmin iTalc ohjelmistosta:

http://italc.sourceforge.net/

http://www.arkki.info/howto/iTalc/01.png

iTalc - Asennus

iTalc kannattaa asentaa ppa-lähteestä:

https://launchpad.net/~edubuntu-italc-devel/+archive

Poista ennen asennusta Vinagre-ohjelma, Vinagre käyttää myös VNC-ohjelmaa.

Asennus tehdään sekä päätteiden chroot-ympäristöön että palvelimelle.

iTalc - Asennus chroot-ympäristöön

Kopioi /etc/apt/sources.list-tiedosto palveliemlta päätteiden chroot-ympäristöön ja päivitä tiedot. Katso tästä tarkemmin toisesta ohjeesta: http://wiki.ubuntu-fi.org/LTSP5_Chroot .



Älä käytä alla olevaa asennusta lähdekoodista; se on vanhentunut!



iTalc -asennus

http://italc.sourceforge.net/wiki/index.php?title=ITALC_in_a_ThinClient_environment

LTSP-tuki ei ole yhtä kattava kuin tavanomaisten PC-tietokoneiden kohdalla, mutta silti riittävä monitorointiin ja esimerkiksi viestien lähettämiseen.

Tässä ohjeessa iTalc-ohjelmisto on asennettu lähdekoodista. Ohjelmisto on saatavilla myös deb-paketteina, sitä ei ole testattu tämän asennuksen rinnalla.

https://launchpad.net/~edubuntu-italc-devel/+archive

Deb-paketit on kokeiltu seuraavan Ubuntun (8.10) kehitysversiossa. Lue lisää foorumiviestistä:

http://forum.ubuntu-fi.org/index.php?topic=21416.msg160021#msg160021

Kun lähdekoodipaketti on haettu, purettu sopivaan hakemistoon ja haettu kaikki muut tarvittavat ohjelmistot ja kirjastot, ohjelma rakennetaan lähdekoodista ja asennetaan /usr/local-hakemistoon.

asmok@ubuntu:~/Bin/italc-1.0.9$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
[--]
configure: creating ./config.status
config.status: creating Makefile
config.status: creating italc.spec
config.status: creating lib/Makefile
config.status: creating ica/Makefile
config.status: creating ima/Makefile
config.status: creating ima/data/italc
config.status: creating ima/data/italc.desktop
config.status: creating setup/Makefile
config.status: creating ica/ica.rc
config.status: creating ima/italc.rc
config.status: creating setup/setup.rc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing lib/include/rfb/rfbconfig.h commands
config.status: creating lib/include/rfb/rfbconfig.h - prefix LIBVNCSERVER for config.h defines
config.status: lib/include/rfb/rfbconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

 =============================
 ===  iTALC - INFORMATION  ===================================================
 =============================
 =
 = iTALC was configured successfully! Now try to build it by typing
 = 'make' and wait until it is finished.
 = Then either install iTALC by typing 'make install' or copy the binaries by
 = hand as described in INSTALL.
 =
 = If there're any problems, please contact an iTALC-developer (see AUTHORS)
 =

asmok@ubuntu:~/Bin/italc-1.0.9$

asmok@ubuntu:~/Bin/italc-1.0.9$ make
make  all-recursive
make[1]: Siirrytään hakemistoon "/home/asmok/Bin/italc-1.0.9"
Making all in lib
make[2]: Siirrytään hakemistoon "/home/asmok/Bin/italc-1.0.9/lib"
[--]
make[3]: Poistutaan hakemistosta "/home/asmok/Bin/italc-1.0.9/setup"
make[2]: Poistutaan hakemistosta "/home/asmok/Bin/italc-1.0.9/setup"
make[2]: Siirrytään hakemistoon "/home/asmok/Bin/italc-1.0.9"
make[2]: Poistutaan hakemistosta "/home/asmok/Bin/italc-1.0.9"
make[1]: Poistutaan hakemistosta "/home/asmok/Bin/italc-1.0.9"
asmok@ubuntu:~/Bin/italc-1.0.9$

asmok@ubuntu:~/Bin/italc-1.0.9$ sudo make install
Making install in lib
make[1]: Siirrytään hakemistoon "/home/asmok/Bin/italc-1.0.9/lib"
[--]
make[2]: Poistutaan hakemistosta "/home/asmok/Bin/italc-1.0.9"
make[1]: Poistutaan hakemistosta "/home/asmok/Bin/italc-1.0.9"
asmok@ubuntu:~/Bin/italc-1.0.9$

iTalc - avainparien luominen

iTalc käyttää avainpareja yhteyksien luomisessa, avainparit pitää ensin luoda.

asmok@ubuntu:~$ sudo ica -role teacher -createkeypair

creating new key-pair ... 
...done, saved key-pair in

/etc/italc/keys/private/teacher/key

and

/etc/italc/keys/public/teacher/key

For now the file is only readable by root and members of group root (if you
didn't ran this command as non-root).
I suggest changing the ownership of the private key so that the file is
readable by all members of a special group to which all users belong who are
allowed to use iTALC.

asmok@ubuntu:~$

Tämän jälkeen luodaan ryhmä "italc" ja lisätään ryhmään opettajat - tässä asennuksessa tunnukset asmok ja ltsp.

asmok@ubuntu:~$ sudo addgroup italc

asmok@ubuntu:~$ cat /etc/group | grep italc
italc:x:1006:asmok,ltsp
asmok@ubuntu:~$

Annetaan avainpareista hakemisto "private" "italc"-ryhmään käyttöön ja muutetaan sen oikeuksia.

asmok@ubuntu:~$ sudo chgrp -R italc /etc/italc/keys/private
asmok@ubuntu:~$ sudo chmod -R o-rwx /etc/italc/keys/private

Hakemistolle "public" annetaan riittävät lukuoikeudet kaikille käyttäjille.

asmok@ubuntu:~$ sudo chmod -R 755 /etc/italc/keys/public

"Public" hakemisto kopioidaan kaikkien päätteiden käyttöön /opt/ltsp/-hakemistoon.

asmok@ubuntu:~$ ls -al /opt/ltsp/i386/etc/italc/keys/public/teacher/key
-r--r--r-- 1 root root 590 2008-09-11 20:55 /opt/ltsp/i386/etc/italc/keys/public/teacher/key
asmok@ubuntu:~$

iTalc-ohjelmiston käynnistäminen palvelimella ja päätteellä

Palvelimella iTalc-ohjelmisto käynnistetään sellaisella tunnuksella, joka on ryhmässä iTalc. Tässä asennuksessa tunnus on "asmok".

asmok@ubuntu:~$ ica
asmok@ubuntu:~$ 12/09/2008 12:39:16 passing arg to libvncserver: -rfbport
12/09/2008 12:39:16 passing arg to libvncserver: 5900
12/09/2008 12:39:16 x11vnc version: 0.9.4 lastmod: 2008-06-24
12/09/2008 12:39:16 Using X display :0.0
12/09/2008 12:39:16 
12/09/2008 12:39:16 ------------------ USEFUL INFORMATION ------------------
12/09/2008 12:39:16 X DAMAGE available on display, using it for polling hints.
12/09/2008 12:39:16   To disable this behavior use: '-noxdamage'
12/09/2008 12:39:16 
12/09/2008 12:39:16 Wireframing: -wireframe mode is in effect for window moves.
12/09/2008 12:39:16   If this yields undesired behavior (poor response, painting
12/09/2008 12:39:16   errors, etc) it may be disabled:
12/09/2008 12:39:16    - use '-nowf' to disable wireframing completely.
12/09/2008 12:39:16    - use '-nowcr' to disable the Copy Rectangle after the
12/09/2008 12:39:16      moved window is released in the new position.
12/09/2008 12:39:16   Also see the -help entry for tuning parameters.
12/09/2008 12:39:16   You can press 3 Alt_L's (Left "Alt" key) in a row to 
12/09/2008 12:39:16   repaint the screen, also see the -fixscreen option for
12/09/2008 12:39:16   periodic repaints.
12/09/2008 12:39:16 
12/09/2008 12:39:16 XFIXES available on display, resetting cursor mode
12/09/2008 12:39:16   to: '-cursor most'.
12/09/2008 12:39:16   to disable this behavior use: '-cursor arrow'
12/09/2008 12:39:16   or '-noxfixes'.
12/09/2008 12:39:16 using XFIXES for cursor drawing.
12/09/2008 12:39:16 GrabServer control via XTEST.
12/09/2008 12:39:16 
12/09/2008 12:39:16 Scroll Detection: -scrollcopyrect mode is in effect to
12/09/2008 12:39:16   use RECORD extension to try to detect scrolling windows
12/09/2008 12:39:16   (induced by either user keystroke or mouse input).
12/09/2008 12:39:16   If this yields undesired behavior (poor response, painting
12/09/2008 12:39:16   errors, etc) it may be disabled via: '-noscr'
12/09/2008 12:39:16   Also see the -help entry for tuning parameters.
12/09/2008 12:39:16   You can press 3 Alt_L's (Left "Alt" key) in a row to 
12/09/2008 12:39:16   repaint the screen, also see the -fixscreen option for
12/09/2008 12:39:16   periodic repaints.
12/09/2008 12:39:16 
12/09/2008 12:39:16 XKEYBOARD: number of keysyms per keycode 6 is greater
12/09/2008 12:39:16   than 4 and 88 keysyms are mapped above 4.
12/09/2008 12:39:16   Automatically switching to -xkb mode.
12/09/2008 12:39:16   If this makes the key mapping worse you can
12/09/2008 12:39:16   disable it with the "-noxkb" option.
12/09/2008 12:39:16   Also, remember "-remap DEAD" for accenting characters.
12/09/2008 12:39:16 X FBPM extension not supported.
12/09/2008 12:39:16 X display is capable of DPMS.
12/09/2008 12:39:16 --------------------------------------------------------
12/09/2008 12:39:16 
12/09/2008 12:39:16 Default visual ID: 0x23
12/09/2008 12:39:16 Read initial data from X display into framebuffer.
12/09/2008 12:39:16 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/6720
12/09/2008 12:39:16 
12/09/2008 12:39:16 X display :0.0 is 32bpp depth=24 true color
12/09/2008 12:39:16 
12/09/2008 12:39:16 Listening for VNC connections on TCP port 5900
12/09/2008 12:39:16 
12/09/2008 12:39:16 Xinerama is present and active (e.g. multi-head).
12/09/2008 12:39:16 fb read rate: 148 MB/sec
12/09/2008 12:39:16 fast read: reset wait  ms to: 10
12/09/2008 12:39:16 fast read: reset defer ms to: 15
12/09/2008 12:39:16 screen setup finished.
12/09/2008 12:39:16 

The VNC desktop is:      ubuntu:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

more info: http://www.karlrunge.com/x11vnc/#faq-client-caching

asmok@ubuntu:~$ ps ax | grep ica
11847 pts/2    Sl     0:00 ica
11850 pts/2    S      0:00 /usr/local/bin/ica -rx11vs -nosel -nosetclipboard -rfbport 5900 -rx11vs -isdport 5800 -role other
11939 pts/2    S+     0:00 grep ica
asmok@ubuntu:~$

Päätteitä varten kopioidaan palvelimelle ajettava skripti, jonka nimi on "start_ica". Se käynnistetään päätteen tunnuksella. Ajettava skripti sijoitetaan palvelimella /usr/local/bin-hakemistoon.

Tästä ohjeesta puuttuu vielä, miten tämä skripti käynnistyy automaattisesti, kun päätekin käynnistyy tai tunnuksella kirjaudutaan sisään.

Ajettava skripti - start_ica: http://www.arkki.info/howto/iTalc/start_ica

ltsp001@ubuntu:~$ start_ica
ltsp001@ubuntu:~$ 12/09/2008 12:45:32 passing arg to libvncserver: -rfbport
12/09/2008 12:45:32 passing arg to libvncserver: 11244
12/09/2008 12:45:32 x11vnc version: 0.9.4 lastmod: 2008-06-24
12/09/2008 12:45:32 Using X display 192.168.1.244:6.0
12/09/2008 12:45:32 
12/09/2008 12:45:32 ------------------ USEFUL INFORMATION ------------------
12/09/2008 12:45:32 X DAMAGE available on display, using it for polling hints.
12/09/2008 12:45:32   To disable this behavior use: '-noxdamage'
12/09/2008 12:45:32 
12/09/2008 12:45:32 Wireframing: -wireframe mode is in effect for window moves.
12/09/2008 12:45:32   If this yields undesired behavior (poor response, painting
12/09/2008 12:45:32   errors, etc) it may be disabled:
12/09/2008 12:45:32    - use '-nowf' to disable wireframing completely.
12/09/2008 12:45:32    - use '-nowcr' to disable the Copy Rectangle after the
12/09/2008 12:45:32      moved window is released in the new position.
12/09/2008 12:45:32   Also see the -help entry for tuning parameters.
12/09/2008 12:45:32   You can press 3 Alt_L's (Left "Alt" key) in a row to 
12/09/2008 12:45:32   repaint the screen, also see the -fixscreen option for
12/09/2008 12:45:32   periodic repaints.
12/09/2008 12:45:32 
12/09/2008 12:45:32 XFIXES available on display, resetting cursor mode
12/09/2008 12:45:32   to: '-cursor most'.
12/09/2008 12:45:32   to disable this behavior use: '-cursor arrow'
12/09/2008 12:45:32   or '-noxfixes'.
12/09/2008 12:45:32 using XFIXES for cursor drawing.
12/09/2008 12:45:32 GrabServer control via XTEST.
12/09/2008 12:45:32 
12/09/2008 12:45:32 Scroll Detection: -scrollcopyrect mode is in effect to
12/09/2008 12:45:32   use RECORD extension to try to detect scrolling windows
12/09/2008 12:45:32   (induced by either user keystroke or mouse input).
12/09/2008 12:45:32   If this yields undesired behavior (poor response, painting
12/09/2008 12:45:32   errors, etc) it may be disabled via: '-noscr'
12/09/2008 12:45:32   Also see the -help entry for tuning parameters.
12/09/2008 12:45:32   You can press 3 Alt_L's (Left "Alt" key) in a row to 
12/09/2008 12:45:32   repaint the screen, also see the -fixscreen option for
12/09/2008 12:45:32   periodic repaints.
12/09/2008 12:45:32 
12/09/2008 12:45:32 XKEYBOARD: all 28 "must have" keysyms accounted for.
12/09/2008 12:45:32   Not automatically switching to -xkb mode.
12/09/2008 12:45:32   If some keys still cannot be typed, try using -xkb.
12/09/2008 12:45:32   Also, remember "-remap DEAD" for accenting characters.
12/09/2008 12:45:32 X FBPM extension not supported.
12/09/2008 12:45:32 X display is capable of DPMS.
12/09/2008 12:45:32 --------------------------------------------------------
12/09/2008 12:45:32 
12/09/2008 12:45:32 Default visual ID: 0x23
12/09/2008 12:45:32 Read initial data from X display into framebuffer.
12/09/2008 12:45:32 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
12/09/2008 12:45:32 
12/09/2008 12:45:32 X display 192.168.1.244:6.0 is 32bpp depth=24 true color
12/09/2008 12:45:32 
12/09/2008 12:45:32 Listening for VNC connections on TCP port 11244
12/09/2008 12:45:32 
12/09/2008 12:45:32 Xinerama is present and active (e.g. multi-head).
12/09/2008 12:45:32 fb read rate: 10 MB/sec
12/09/2008 12:45:32 screen setup finished.
12/09/2008 12:45:32 

The VNC desktop is:      ubuntu:5344
12/09/2008 12:45:32 possible aliases:  ubuntu:11244, ubuntu::11244
PORT=11244

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

more info: http://www.karlrunge.com/x11vnc/#faq-client-caching

iTalc-ohjelmiston käyttö

Valikosta avataan iTalc-ohjelmiston hallinta- ja monitorointityökalu. Tässä asennuksessa on ensin lisätty palvelinkone (192.168.1.101).

[http://www.arkki.info/howto/iTalc/iTalc_01.png iTalc_01.png]

Tämän jälkeen on lisätty pääte (192.168.1.244 = localhost:11244).

[http://www.arkki.info/howto/iTalc/iTalc_02.png iTalc_02.png]

[http://www.arkki.info/howto/iTalc/iTalc_03.png iTalc_03.png]

Päätteelle on lähetetty viesti.

[http://www.arkki.info/howto/iTalc/iTalc_04.png iTalc_04.png]

[http://www.arkki.info/howto/iTalc/iTalc_05.png iTalc_05.png]