Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Poslední revize | |||
— | howto:desktop:ltsp [2016/05/08 09:58] – upraveno mimo DokuWiki 127.0.0.1 | ||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
+ | ====== LTSP (Terminal Server) ====== | ||
+ | [[wp> | ||
+ | ===== General reccomendations ===== | ||
+ | * **Do not use amd64 client images!** | ||
+ | * Go for **i386** instead. Amd64 are buggy and i386 client images will serve you much better even if your LTSP server is amd64... | ||
+ | * Client and server architectures does not have to match. | ||
+ | * When building client image using [[man> | ||
+ | * Uninstall or disable local X server (or display manager) on LTSP server when you don't need to use desktop localy. As well as any other eye-candy junk... | ||
+ | * It will save you little bit of resources and possibly some crashes related to GPU drivers. | ||
+ | * Server' | ||
+ | * It's better to have dedicated machine for LTSP server (preferably in rack without keyboard and display, so nobody will mess with it...) | ||
+ | * Even when Debian is generaly preferred distro for servers, Ubuntu seems to be preferred for LTSP servers as it seems to have better LTSP integration and is more optimized for desktop use. It's still good idea even if you prefer different distributions on classical desktop, because not every distribuion is well prepared for use with LTSP. | ||
+ | ===== Tricks in lts.conf ===== | ||
+ | Now it's recommended to put configuration in **/ | ||
+ | |||
+ | You can put following tweaks in [Default] section or wherewer you want | ||
+ | |||
+ | ==== Service shells ==== | ||
+ | |||
+ | <code ini lts.conf> | ||
+ | SCREEN_02=ssh | ||
+ | SCREEN_03=ssh | ||
+ | SCREEN_04=ssh | ||
+ | SCREEN_05=shell | ||
+ | SCREEN_06=shell | ||
+ | SCREEN_07=ldm | ||
+ | SSH_HOST=your.ltsp.server.example.com | ||
+ | </ | ||
+ | |||
+ | * This will put | ||
+ | * SSH to LTSP server on VCs 2-4 (in case LDM is broken, you can still use shell) | ||
+ | * Paswordless shell on VCs 5-6 (in case someone needs to do something locally, no security concerns needed as everything runs from readonly netboot and RAM) | ||
+ | * Do not use VCs bigger than 7 (where LDM sits) it will screw LDM somehow... | ||
+ | |||
+ | ==== Share scanners and printers ==== | ||
+ | |||
+ | Note this may need some messing in ltsp client image. (installing drivers, etc...) | ||
+ | |||
+ | <code ini lts.conf> | ||
+ | SCANNER = True | ||
+ | PRINTER_0_DEVICE=/ | ||
+ | PRINTER_0_WRITE_ONLY=True | ||
+ | PRINTER_1_DEVICE=/ | ||
+ | PRINTER_1_WRITE_ONLY=True | ||
+ | </ | ||
+ | |||
+ | ==== Make thin client' | ||
+ | |||
+ | <code ini lts.conf> | ||
+ | LOCALDEV = True | ||
+ | LOCAL_STORAGE = True | ||
+ | LOCALSTORAGE = True | ||
+ | LOCALDEV_DENY_INTERNAL_DISKS = False | ||
+ | </ | ||
+ | |||
+ | ===== Make LTSP available through VNC ===== | ||
+ | |||
+ | If you want to support access to your LTSP server using [[wp> | ||
+ | |||
+ | <note tip>This manual will work even for servers without LTSP, it just describes how to setup passwordless VNC server with login screen provided by [[wp> | ||
+ | |||
+ | We will also use [[man> | ||
+ | |||
+ | <code ini / | ||
+ | [LightDM] | ||
+ | start-default-seat=false | ||
+ | |||
+ | [XDMCPServer] | ||
+ | enabled=true | ||
+ | port=177 | ||
+ | |||
+ | [SeatDefaults] | ||
+ | greeter-session=lightdm-gtk-greeter | ||
+ | user-session=xfce | ||
+ | greeter-hide-users=true | ||
+ | allow-guest=false | ||
+ | </ | ||
+ | |||
+ | Also we'll have to setup Xvnc to listen using superserver. We can't use [[man> | ||
+ | |||
+ | <code conf / | ||
+ | #:OTHER: Other services | ||
+ | 9571 | ||
+ | |||
+ | 5901 stream tcp nowait nobody / | ||
+ | 5902 stream tcp nowait nobody / | ||
+ | 5903 stream tcp nowait nobody / | ||
+ | 5910 stream tcp nowait nobody / | ||
+ | </ | ||
+ | |||
+ | And that's it. Now restart lightdm and then inetd and you should be ready to roll... | ||
+ | |||
+ | <note tip>I can suggest you to use vinagre VNC client on Linux and realvnc on Windows.</ | ||
+ | |||
+ | If you are using guest account at LTSP and you are concerned about security, you should also disable guest login from lightdm. There few ways to do this. Protect guest with secret password, use lightdm' | ||
+ | |||
+ | |||
+ | ===== Desktop Autolinking ===== | ||
+ | |||
+ | This script will maintain symlinks to all files in / | ||
+ | |||
+ | <code bash / | ||
+ | #!/bin/bash | ||
+ | AUTODIR=/ | ||
+ | LINK_PREFIX=" | ||
+ | |||
+ | rm -f / | ||
+ | |||
+ | for home in /home/*; do | ||
+ | ls -1 " | ||
+ | [ -e " | ||
+ | done | ||
+ | done | ||
+ | </ | ||
+ | |||
+ | ===== Disable XFCE dialog at first login ===== | ||
+ | |||
+ | <code bash> | ||
+ | ln -s / | ||
+ | </ |