[X2Go-User] Install x2go TCE-live server

Stefan Baur X2Go-ML-1 at baur-itcs.de
Wed Jan 16 11:22:38 CET 2019


Am 16.01.19 um 08:49 schrieb Stroganov Roman:
> cat /etc/debian_version
> 9.6

Ah, you're using a newer version of Debian than the one I recommended.
Maybe that's causing your issue with the exported variables not showing
up (though it should not ...).


> Your Haque seems it turned out. Assembly began. Build is done
> ended:./live-build-x2go-20190115182341'
> In live-build-x2go-20190115182341 directory (but not
> live-build-x2go-20190115182341-netboot-amd64-openbox-magic-pixel-workaround-stretch.
> Can do it important?)

Hmm, it seems that I added the code to append name after the timestamp
in my local version of the build script, but never uploaded that to the
wiki.  Guess I'll have to upload a new version $SOON.


> I have x2go-tce-filesystem.squashfs,
> x2go-tce-initrd.img and x2go-tce-vmlinuz files

Sounds good.


> I installed lighttpd and tftpd-hpa (got used already), in them created
> subdirectories of x2go-tce and in them copied files as you spoke.
> My dhcp server is configured on loading by the thin client of the
> pxelinux.0 file Where to take it to me? It is necessary to download from
> the website syslinux or it was necessary to set at first tce-classic and to
> take directories from its boot?

I usually install the syslinux package on the server, and grab the
necessary files from there, but you can also untar
live-build-x2go-20190115182341/live-image-amd64.netboot.tar - it
contains the standard debian-live netboot environment:

drwxr-xr-x root/root         0 2019-01-12 14:10 debian-live/
drwxr-xr-x root/root         0 2019-01-12 14:18 debian-live/live/
-rw-r--r-- root/root 271675392 2019-01-12 14:17
debian-live/live/filesystem.squashfs
-rw-r--r-- root/root     17075 2019-01-12 14:17
debian-live/live/filesystem.packages
-rw-r--r-- root/root         1 2019-01-12 14:17
debian-live/live/filesystem.packages-remove
drwxr-xr-x root/root         0 2019-01-12 14:18 tftpboot/
-rw-r--r-- root/root    181944 2017-10-18 16:01 tftpboot/libcom32.c32
drwxr-xr-x root/root         0 2019-01-12 14:18 tftpboot/live/
-rw-r--r-- root/root   4232992 2019-01-12 14:17 tftpboot/live/vmlinuz
-rw-r--r-- root/root  34019418 2019-01-12 14:17 tftpboot/live/initrd.img
drwxr-xr-x root/root         0 2019-01-03 12:55 tftpboot/pxelinux.cfg/
-rw-r--r-- root/root        57 2014-10-25 12:21
tftpboot/pxelinux.cfg/default
-rw-r--r-- root/root       616 2019-01-12 14:18 tftpboot/live.cfg
-rw-r--r-- root/root    116552 2017-10-18 16:01 tftpboot/ldlinux.c32
-rw-r--r-- root/root     26684 2017-10-18 16:01 tftpboot/vesamenu.c32
-rw-r--r-- root/root    165004 2017-10-18 16:01 tftpboot/hdt.c32
-rw-r--r-- root/root     36584 2019-01-12 14:18 tftpboot/splash.png
-rw-r--r-- root/root       270 2019-01-12 14:18 tftpboot/menu.cfg
-rw-r--r-- root/root       153 2019-01-12 14:18 tftpboot/advanced.cfg
-rw-r--r-- root/root       508 2019-01-12 14:18 tftpboot/stdmenu.cfg
-rw-r--r-- root/root     23628 2017-10-18 16:01 tftpboot/libutil.c32
-rw-r--r-- root/root       268 2019-01-12 14:18 tftpboot/install.cfg
-rw-r--r-- root/root     42058 2017-10-18 16:01 tftpboot/pxelinux.0


What the debian-live sample lacks is the X2Go-specific configuration,
so, basically, you remove the debian-live/live and tftpboot/live
directories, place the three files starting with x2go-tce- in a
directory tftpboot/x2go-tce/ instead, and change the contents of
tftpboot/live.cfg according to the description found in the Wiki at
<https://wiki.x2go.org/doku.php/doc:howto:tce#netbooting>.

For example, mine currently looks like:

DEFAULT x2go-tce-amd64-stretch
LABEL x2go-tce-amd64-stretch
MENU LABEL ^X2Go-TCE-amd64-stretch

KERNEL x2go-tce/x2go-tce-vmlinuz

# the following all goes on one line, no line breaks
APPEND initrd=x2go-tce/x2go-tce-initrd.img net.ifnames=0 biosdevname=0
boot=live components noswap noroot nouser xinerama=left-of
vconsole.keymap=de lang=de locales=de_DE.UTF-8 keyboard-layouts=de
nomagicpixel=1
fetch=http://SERVERIPHERE/x2go-tce/x2go-tce-filesystem.squashfs
sessionsurl=http://SERVERIPHERE/x2go-tce/x2go-tce-sessions
pubkey=http://SERVERIPHERE/x2go-tce/x2go-tce-authorized_keys
session=DEFAULTSESSIONNAMEHERE

Where it says SERVERIPHERE, insert the IP of your http server.

Save the session configuration file as x2go-tce/x2go-tce-sessions on the
http server.

You can specify a default session where it says DEFAULTSESSIONNAMEHERE -
or you can leave out the session= parameter completely, if you do not
want to define a default session for the user.

The pubkey= parameter is also optional, but I would recommend using it,
and storing your personal SSH public key in the file
x2go-tce/x2go-tce-authorized_keys on the http server, so you have a way
to log in to the ThinClient as root via SSH (local console logins are
blocked for both root and user, due to the use of the "noroot" and
"nouser" boot parameters).

You will probably also want to change vconsole.keymap=de, lang=de,
locales=de_DE.UTF-8, and keyboard-layouts=de to the appropriate values
for your locale, unless you enjoy a German keyboard layout and German
text messages on the screen. ;-)

Judging from your previous post where you listed your environemnt
variables, I would guess the proper values for your locale are:

vconsole.keymap=ru lang=ru locales=ru_UA.UTF-8 keyboard-layouts=ru

Kind Regards,
Stefan Baur

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243


More information about the x2go-user mailing list