-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtuebix-2015-graesing-x2go.tpp
839 lines (630 loc) · 17.9 KB
/
tuebix-2015-graesing-x2go.tpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
## Diese Präsentation wurde mit Hilfe von VIM erstellt und kann
## mit dem Programm TPP http://www.ngolde.de/tpp.html wiedergegeben werden
##
--author Heinz-M. Graesing, Mihai Moldovan, Stefan Krug
--title X2Go Workshop Tübingen
--date today
--huge X2Go
--boldon
Wilkommen zum X2Go Workshop @ Tübix.
--boldoff
--color cyan
Lösungen und Probleme für das Thema Remote Computing
--color white
o o
ϒ ΞX2Go
--newpage agenda_1
--heading Agenda
--color cyan
--boldon
* Was wird benötigt?
--boldoff
* Erste Installation von X2GoClient
* Verbindung zum Demo Server
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
+ X2GoBroker
--color white
* Fragen
--newpage requirements
--heading Was wird benötigt?
* Internet
* Terminal
- Erfahrungen mit SCREEN
- Erfahrungen mit VIM
- Erfahrungen mit SSH
* X2GoClient
* Installationsziel (X2GoServer)
- LXC Container (Debian JESSIE ohne SSYSTEMD)
- Virtuelle Maschine (Debian JESSIE ohne SSYSTEMD)
* Geduld
--newpage agenda_2
--heading Agenda
--color cyan
* Was wird benötigt?
--boldon
* Erste Installation von X2GoClient
--boldoff
* Verbindung zum Demo Server
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
+ X2GoBroker
--color white
* Fragen
--newpage x2goclient_first_installation_1
--heading Erste Installation X2GoClient
--center Ist X2GoClient bereits Teil meiner Distribution?
---
X2GoClient in den Paketquellen suchen:
--beginshelloutput
$ apt-cache search x2goclient
x2goclient - X2Go Client application (Qt4)
x2goclient-dbg - X2Go Client application (Qt4), debug symbols (client)
--endshelloutput
---
X2GoClient ist bereits in den Quellen von
* Debian Wheezy/Jessie
* Ubuntu >12.04
* und anderen Distributionen
enthalten.
---
X2GoServer NICHT!
--newpage x2goclient_first_installation_2
--heading Erste Installation X2GoClient
Falls X2GoClient nicht über die Paketquellen angeboten wird, kann er durch
Hinzufügen der offiziellen X2Go Paket Repositories installiert werden:
---
Schlüssel des X2Go Repositories hinzufügen:
--beginshelloutput
$ apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
--endshelloutput
---
X2Go Repository Quellen hinzufügen:
--beginshelloutput
$ vi /etc/apt/sources.list.d/x2go.list
--endshelloutput
Inhalt der Datei /etc/apt/sources.list.d/x2go.list:
--beginoutput
# X2Go Repository (release builds)
deb http://packages.x2go.org/debian jessie main
# X2Go Repository (sources of release builds)
deb-src http://packages.x2go.org/debian jessie main
# X2Go Repository (nightly builds)
#deb http://packages.x2go.org/debian jessie heuler
# X2Go Repository (sources of nightly builds)
#deb-src http://packages.x2go.org/debian jessie heuler
--endoutput
---
--color cyan
Download URL: http://wiki.x2go.org/doku.php/doc:installation:start
--color white
--newpage x2goclient_first_installation_3
--heading Erste Installation X2GoClient
X2Go Keyring installieren:
--beginshelloutput
$ apt update
$ apt install x2go-keyring
$ apt update
--endshelloutput
---
X2GoClient installieren:
--beginshelloutput
$ apt install x2goclient
--endshelloutput
--newpage agenda_3
--heading Agenda
--color cyan
* Was wird benötigt?
* Erste Installation von X2GoClient
--boldon
* Verbindung zum Demo Server
--boldoff
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
+ X2GoBroker
--color white
* Fragen
--newpage requirements
--heading Verbindung zum Demo Server
---
Zugangsdaten Workshop Demo Server
--color cyan
--beginoutput
Host: ****
Login: ****
SSH-Port: 22
Sitzungsart: "Zugriff auf lokalen Desktop"
--endoutput
--newpage agenda_4
--heading Agenda
--color cyan
* Was wird benötigt?
* Erste Installation von X2GoClient
* Verbindung zum Demo Server
--boldon
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
--boldoff
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
+ X2GoBroker
--color white
* Fragen
--newpage theorie_was_ist_X2Go
--heading Was ist X2Go?
* Was kann X2Go?
* Was kann X2Go NICHT?
* Wer steckt hinter X2Go?
--newpage theorie_woraus_besteht_x2go
--heading Woraus besteht X2Go?
* Ein Blick in die Pakete
* Abhängigkeiten
* Dienste
* Initiales Debugging
--newpage theorie_welche_probleme
--heading Welche Probleme erzeut ein Remote Desktop?
* Protokoll- / Datenübertragung
* Umleitung Bildschirm (1,2,…;Auflösung,…)
* Umleitung Eingabegeräte
* Umleitung Datenträger
* Umleitung Drucker
* Umleitung “Warum nicht einfach ALLES”?
* Benutzerrechte
* Systemressourcen
* Codecverfügbarkeit
* Ideologie
--newpage agenda_5
--heading Agenda
--color cyan
* Was wird benötigt?
* Erste Installation von X2GoClient
* Verbindung zum Demo Server
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
--boldon
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
--boldoff
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
+ X2GoBroker
--color white
* Fragen
--newpage praxis_installation_x2goserver_1
--heading Erste Installation X2GoServer
--color cyan
Auf dem Server
--color white
---
Schlüssel des X2Go Repositories hinzufügen:
--beginoutput
$ apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
--endoutput
X2Go Repository Quellen hinzufügen:
--beginoutput
$ vi /etc/apt/sources.list.d/x2go.list
--endoutput
Inhalt der Datei /etc/apt/sources.list.d/x2go.list:
--beginoutput
# X2Go Repository (release builds)
deb http://packages.x2go.org/debian jessie main
# X2Go Repository (sources of release builds)
deb-src http://packages.x2go.org/debian jessie main
# X2Go Repository (nightly builds)
#deb http://packages.x2go.org/debian jessie heuler
# X2Go Repository (sources of nightly builds)
#deb-src http://packages.x2go.org/debian jessie heuler
--endoutput
--newpage praxis_installation_x2goserver_2
--heading Erste Installation X2GoServer
X2Go Keyring installieren:
--beginoutput
$ apt update
$ apt install x2go-keyring
$ apt update
--endoutput
---
X2GoServer installieren:
--beginshelloutput
$ apt install x2goserver x2goserver-xsession
--endshelloutput
---
Passende X2GoBindings finden:
--beginshelloutput
$ apt search x2go bindings
x2golxdebindings - LXDE bindings for X2Go
x2gomatebindings - X2Go MATE bindings and MIME types
x2goserver-fmbindings - Generic (freedesktop-based) file manager bindings for X2Go
--endshelloutput
---
X2GoBindings installieren (am Beispiel Mate):
--beginshelloutput
$ apt install x2gomatebindings
--endshelloutput
--newpage praxis_installation_x2goserver_2
--heading Erste Installation X2GoServer
Wo ist der Server?
--beginshelloutput
$ ps axjf
/usr/bin/perl /usr/sbin/x2gocleansessions
/usr/lib/nx/../x2go/bin/x2goagent -extension XFIXES -nolisten tcp -nolisten tcp -dpi 96 -D -auth /home/trainer/
/bin/bash /usr/bin/x2goruncommand 50 7819 trainer-50-123_stDMATE_dp24 30002 mate-session nosnd D
\_ mate-session
\_ /usr/bin/mate-settings-daemon
\_ marco
\_ mate-panel
| \_ mate-terminal
| \_ gnome-pty-helper
| \_ bash
\_ caja
...
--endshelloutput
---
Wer ist verbunden?
--beginshelloutput
$ x2golistsessions_root
123|user1-*DKDE_dp24|display|server|zustand|start||client|||stop|user||
124|user2-*DKDE_dp24|display|server|zustand|start||client|||stop|user||
125|user3-*DKDE_dp24|display|server|zustand|start||client|||stop|user||
--endshelloutput
--newpage praxis_installation_x2goserver_3
--heading Erste Installation X2GoServer
Wichtige Berechtigungen?
--beginshelloutput
$ more /etc/group |grep x2go
x2gouser:x:115:trainer
x2goprint:x:126:
x2godesktopsharing:x:128:
x2gobroker:x:129:
--endshelloutput
---
--beginshelloutput
$ x2godbadmin --help
Usage:
x2godbadmin --createdb
x2godbadmin --listusers
x2godbadmin --adduser|rmuser <UNIX user>
x2godbadmin --addgroup|rmgroup <UNIX group>
--endshelloutput
--newpage praxis_konfiguration_x2goclient_1
--heading Erste Konfiguration X2GoClient
* Wahl des Desktops
* Wahl einer beliebigen Anwendung
* Wahl einer freigegebenen Anwendung
* Verbindung über andere Protokolle
- RDP
- XDMCP
* Anhalten und Fortführen von Sitzungen
* Einschränkungen
* “Automatische Anmeldung”
- Schlüsselmanagement
--newpage praxis_konfiguration_x2goclient_2
--heading Erweiterter Konfiguration X2GoClient
--color yellow
GEEKTIPP:
X2GoSitzungsmanagement über Konsole!
--color white
Wie sehe ich meine Sitzung?
--beginshelloutput
$ x2golistsessions
123|user-*DKDE_dp24|display|server|zustand|start||client|||stop|user||
--endshelloutput
---
Kann ich sie auch über die Kommandozeile anhalten?
--beginshelloutput
$ x2gosuspend-session user-*KDE_dp24
--endshelloutput
---
Welche Befehle stehen noch zur Verfügung?
--beginoutput
x2goagent x2goresume-desktopsharing
x2gobasepath x2goresume-session
x2gocmdexitmessage x2goruncommand
x2godesktopsharing x2goserver-run-extensions
x2gofeature x2gosessionlimit
x2gofeaturelist x2gosetkeyboard
x2gofm x2gostartagent
x2gogetapps x2gosuspend-desktopsharing
x2gogetservers x2gosuspend-session
x2golistdesktops x2goterminate-desktopsharing
x2golistmounts x2goterminate-session
x2golistsessions x2goumount_session
x2gomountdirs x2goumount-session
x2gopath x2goversion
x2goprint
--endoutput
--newpage praxis_konfiguration_x2goclient_3
--heading Erweiterter Konfiguration X2GoClient
* Wahl des Desktops
* Display
- Packalgorithmen und Bildformate
- Vollbild vs. Fenstermodus
* Eingabe
- Tastaturlayouts (Debugging)
* Sound
- Architekturen
* Debugging
* Drucker- & Dateifreigabe
- SSHFS
- FUSE
* Kommandozeilenoptionen
--newpage praxis_konfiguration_x2goclient_4
--heading Erweiterter Konfiguration X2GoClient
X2GoClient Kommandozeilenoptionen
--beginshelloutput
$ x2goclient --help
Usage: x2goclient [Options]
Options:
...
--debug enables extensive output for console output.
--no-menu hide menu bar
--no-session-edit not allow user to edit preconfigured
sessions
--maximize start maximized
--hide start hidden
--portable start in "portable" mode
--xinerama use Xinerama by default
--thinclient run without window manager
--haltbt show shutdown button
--add-to-known-hosts add RSA key fingerprint to .ssh/known_hosts
if authenticity of server can't be established
--ldap=<host:port:dn> start with LDAP support. Example:
--ldap=ldapserver:389:o=organization,c=de
...
--endshelloutput
--newpage praxis_konfiguration_x2goclient_5
--heading Erweiterter Konfiguration X2GoClient
X2GoClient Kommandozeilenoptionen
--beginoutput
...
--ldap=<host:port:dn> start with LDAP support. Example:
--ldap=ldapserver:389:o=organization,c=de
--ssh-port=<port> connect to this port, default 22
--client-ssh-port=<port> local ssh port (for fs export), default 22
--session=<session> Start session 'session'
--user=<username> select user 'username'
--link=<modem|isdn|adsl|wan|lan> set default link type, default 'adsl'
--pack=<packmethod> set default pack method, default '16m-jpeg-9'
--clipboard=<both|client|server|none> set default clipboard mode, default 'both'
--kbd-layout=<layout> set default keyboard layout or layouts
comma separated
--kbd-type=<typed> set default keyboard type
--home=<dir> set users home directory
--session-conf=<file> path to alternative session config
--tray-icon force to show session trayicon
--close-disconnect close X2Go Client after disconnect
--hide-foldersharing hide all folder sharing related options
--endoutput
---
--color yellow
GEEKTIPP:
X2GoClient mit eigenem Hintergrundbild aufrufen:
--beginshelloutput
$ x2goclient --background=/pfad/zu/einem/svg
--endshelloutput
--color white
--newpage praxis_konfiguration_x2goserver_1
--heading Erweiterte Konfiguration X2GoServer
* Absicherung des Servers
* Auswahl an freigegebenen Programmen
* X2GoSessionsDB (postgres)
* Mehrfachanmeldungen erlauben / Verhindern
* Sessions aufräumen / IDLE-Time beschränken
* Multiserver Konzepte
--newpage praxis_konfiguration_x2goserver_2
--heading Erweiterte Konfiguration X2GoServer
X2Go Konfigurationsdateien
--beginshelloutput
$ ls /etc/x2go
applications
keystrokes.cfg
rgb
x2goagent
keyboard
x2goagent.options
x2go_logout x2go_logout.d x2goserver.conf x2gosql x2gothinclient_settings x2gothinclient_settings_wheezy Xresources Xsession Xsession.d Xsession.options
--endshelloutput
--newpage praxis_konfiguration_x2goserver_3
--heading Erweiterte Konfiguration X2GoServer
X2Go Konfigurationsdateien
--beginshelloutput
$ vim /etc/x2go/x2goserver.conf
--endshelloutput
---
--beginoutput
$ more /etc/x2go/x2goserver.conf
[limit users]
#user-foo=1
[limit groups]
#bar-group=1
[security]
# SSHFS umask for client-side folder sharing. Leave uncommented to keep the server's default umask
#umask="0117"
[log]
# possible levels are: emerg, alert, crit, err, warning, notice, info, debug
loglevel=notice
--endoutput
---
--color red
Finger WEG!
--beginshelloutput
$ vim /etc/x2go/x2goagent.options
--endshelloutput
--color white
--newpage agenda_6
--heading Agenda
--color cyan
* Was wird benötigt?
* Erste Installation von X2GoClient
* Verbindung zum Demo Server
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
--boldon
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
+ X2GoBroker
--boldoff
--color white
* Fragen
--newpage erweiterungen_x2go_1
--heading Betrieb einer Thin Client Umgebung
X2GoThinClientEnvironment
--beginshelloutput
$ apt install x2gothinclientmanagement
$ vim /etc/x2go/x2gothinclient_settings
$ x2gothinclient_create
$ x2gothinclient_preptftpboot
...
--endshelloutput
---
--color cyan
http://wiki.x2go.org/doku.php/wiki:advanced:tce:install?s[]=tce
--color white
--newpage erweiterungen_x2go_2
--heading Gedanken zu einer Multinode Installation
Wohin mit den Sitzungsdaten?
--beginshelloutput
$ more/etc/x2go/x2gosql/sql
#postgres or sqlite
backend=postgres
[postgres]
host=localhost
port=5432
...
--endshelloutput
---
--color cyan
http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql?s[]=postgres
--color white
--newpage erweiterungen_x2go_3
--heading Gedanken zu einer Multinode Installation
Wohin mit den Serverdaten?
MultiNode über LDAP
--beginshelloutput
$ shelldap
ou=Servers,ou=ON,~ > ls
cn=server1
cn=server2
...
--endshelloutput
---
MultiNode über Broker
--beginshelloutput
$ apt search x2gobroker
python-x2gobroker - X2Go http(s) based session broker (Python modules)
x2gobroker - X2Go http(s) based session broker (executable)
x2gobroker-agent - X2Go http(s) based session broker (common files)
x2gobroker-authservice - X2Go http(s) based session broker (PAM authentication service)
x2gobroker-daemon - X2Go http(s) based session broker (daemon)
x2gobroker-wsgi - X2Go http(s) based session broker (CGI)
...
--endshelloutput
---
--color cyan
http://wiki.x2go.org/doku.php/doc:installation:x2gobroker?s[]=broker
--color white
--newpage agenda_6
--heading Agenda
--color cyan
* Was wird benötigt?
* Erste Installation von X2GoClient
* Verbindung zum Demo Server
* Theorie
- Was ist X2go
- Woraus besteht X2Go
- Welche Probleme erzeut ein Remote Desktop
* Praxis
- Erste Installation X2GoServer
- Erste Konfiguration X2GoClient
- Erweiterter Konfiguration X2GoClient
- Erweteiterte Konfiguration X2GoServer
* Bei Zeitüberfluss
- Betrieb einer Thin Client Umgebung
- Gedanken zu einer Multinode Installation
+ Datenhaltung
+ Load Balancing
--color white
--boldon
* Fragen
--boldoff
--newpage fragen_x2go
--heading Fragen zum Workshop und X2Go
* Was ist mit IOS?
* Was ist mit Android?
* Was ist mit HTML5?
* Was ist mit IPV6?
* Was ist mit Wayland?
* Wie kann ich helfen?
--boldon
* Ihre Fragen
--boldoff
--newpage ende
--heading Wir bedanken uns!
--huge Vielen Dank!
* Heinz-M. Graesing
* Mihai Moldovan
* Stefan Krug