Instalando x2go server com lubuntu


Primeiramente gostaria de salientar que não sou o autor principal do conteúdo deste artigo. A minha intenção é de mostrar o que outros autores tem realizado (referenciando links para o conteúdo original) neste blog até como um guia pessoal para uso próprio e ainda compartilhar minhas anotações e pequenas modificações que realizo no conteúdo, desejando que possa ajudar mais alguém em algum lugar.
First and foremost, I take no credit for any of this post’s content. I am really just taking what others have done (which I have links to bellow) and am putting it on my blog for a personal reference and hopefully the small changes that I made to their guides will help someone somewhere.

Fonte: http://wiki.x2go.org/wiki:x2go-repository-ubuntu
Link: http://www.linux4afrika.de/x2go/index.html
Fonte antiga: http://www.x2go.org/fileadmin/doc/installation_x2go_ubuntu_en.html

Instale o lubuntu conforme o link: https://sites.google.com/site/ubuntu4us/artigos/instalacao-do-sistema/montar-um-servidor/instalando-lubuntu

Depois o x2go server da seguinte forma:

opcional: sudo apt-get install python-software-properties
sudo add-apt-repository ppa:x2go
ou sudo add-apt-repository  ppa:x2go/stable 
sudo apt-get update

Veja os pacotes disponiveis com: 
apt-cache search x2go

x2goplugin - X2go Client (Qt4) as browser plugin
x2goclient - X2go Client application (Qt4)
pyhoca-cli - A command line X2go client written in Python
x2goagent - Special NX-ized client, was developed by NoMachine to handle X sessions
x2gotrinitybindings - X2go bindings (mimetypes and icons) for the Trinity Desktop Environment
x2goserver-extensions - X2go server daemon scripts (extensions)
x2goserver - X2go server daemon scripts
x2goserver-printing - X2go server daemon scripts (printing)
x2goserver-compat - X2go server daemon scripts (backwards compatitbity to old client versions)
x2goserver-xsession - X2go server daemon scripts (Xsession runner)
pyhoca-gui - A graphical X2go client written in (wx)Python
python-x2go - Python module for X2go client support
plasma-widget-x2go - Plasma widget for control X2go sessions
cups-x2go - X2GO printer for CUPS
pinentry-x2go - Qt4-based PIN or pass-phrase entry dialog for x2goclient
x2golxdebindings - LXDE bindings for X2go
x2gognomebindings - Description: x2gognomebindings (GNOME mimetypes for X2go)
x2godesktopsharing - share X2go desktops with other users (via shadow sessions)
x2gocdmanager - clientside daemon enabling automatic CD-Rom mounting
x2gothinshutdown - shutdown button for X2go thin client
x2gothinclientmanagement - Management tools for X2go thin client chroot server
x2gothinclient - login daemon starting x2goclient in displaymanager mode
x2gosmartcardrules - UDEV rules for smartcard readers
x2gousbmount - clientside usb mass-storage device mounting


Instale os pacotes:
sudo apt-get install x2goserver x2goserver-printing x2goserver-compat x2goserver-xsession


Manual: http://code.x2go.org/doc/x2goserver/man

sudo apt-get install cups-x2go x2godesktopsharing x2golxdebindings

Instalação do cliente:
sudo apt-get install x2goclient pinentry-x2go x2goagent pyhoca-cli pyhoca-gui x2gousbmount x2gocdmanager x2goplugin

Acessar sem necessitar informar senha:

testar ainda:

Make sure, that the device /dev/fuse has the right permissions
stat /dev/fuse
chown root:fuse /dev/fuse
chmod 660 /dev/fuse

Get the "screen lock" button running
updatelockbutton

Modify /etc/group:

games:x:60:
users:x:100:test
nogroup:x:65534:
...
...
gdm:x:114:
stb-admin:x:115:
test:x:1000:
dirmngr:x:116:
fuse:x:117:test
postgres:x:118:


Para executar o lubuntu escolha custom desktop e peça para inicializar com startlubuntu

Se tiver problemas de Hostkey for server changed. The host key is now xx xx xx xx The connection is being closed now.

Abra o arquivo  C:\Documents and Settings\USER\ssh\known_hosts e apague a linha do endereço com problemas.

E no linux apague no arquivo: gedit ~/.ssh/known_hosts



Caso no lubuntu minimal não consiga fazer funcionar o que necessita de autorizaçao root execute o comando abaixo em um terminal dentro da sessão lubuntu:

gksu-properties

 e troque de su para sudo.



Instalar kcontrol com pacotes do hardy, nesta ordem (não testado):

kdebase-data_3.5.9-0ubuntu7_all
kdebase-data 4:3.5.10-0ubuntu1~hardy2 (amd64 binary) in ubuntu hardy
http://launchpadlibrarian.net/17666824/kdebase-data_3.5.10-0ubuntu1%7Ehardy2_all.deb

libkonq4_3.5.9-0ubuntu7_i386
libkonq4 4:3.5.10-0ubuntu1~hardy2 (amd64 binary) in ubuntu hardy
http://launchpadlibrarian.net/17666760/libkonq4_3.5.10-0ubuntu1%7Ehardy2_amd64.deb

kicker_3.5.9-0ubuntu7_i386
kicker 4:3.5.10-0ubuntu1~hardy2 (amd64 binary) in ubuntu hardy
http://launchpadlibrarian.net/17666746/kicker_3.5.10-0ubuntu1%7Ehardy2_amd64.deb

kcontrol_3.5.9-0ubuntu7_i386
kcontrol 4:3.5.10-0ubuntu1~hardy2 (amd64 binary) in ubuntu hardy
http://launchpadlibrarian.net/17666735/kcontrol_3.5.10-0ubuntu1%7Ehardy2_amd64.deb

Ver link: https://launchpad.net/ubuntu/+search?text=kcontrol
ou link: https://launchpad.net/ubuntu/hardy/+search?text=kcontrol


O desktop lubuntu pode ser inicializado como comando: /usr/bin/lxsession -s Lubuntu -e LXDE



O URL específico do gadget não foi encontrado



Comments