All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
TUTORIAL: Setup x2goserver with xfce4 on Debian Wheezy 128M VPS
1) Remove the riff-raff, change ssh port (not necessary, it's just what I do) and set up hosts.allow for ssh
In my case (on RamNode's Wheezy OpenVZ template):
$ apt-get purge apache2* bind9 samba $ vim /etc/ssh/sshd_config
uncomment if necessary and change Port 22 to non-standard port
$ service ssh restart $ vim /etc/hosts.allow
Add:
sshd: IPaddress_to_allow sshd: ALL: deny
2) Upgrade packages
$ apt-get update && apt-get upgrade
3) Add key for x2go-server
$ apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
4) Create x2go repo:
vim /etc/apt/sources.list.d/x2go.list
Add:
deb http://packages.x2go.org/debian wheezy main deb-src http://packages.x2go.org/debian wheezy main
$ apt-get update $ apt-get install x2go-keyring && apt-get update
5) Install iceweasel and xfce4
$ apt-get install xfce4 iceweasel
6) Add user
$ useradd -m my_username $ passwd my_username
7) Install x2goserver
$ apt-get install x2goserver*
8) Make sure x2goserver is running (should be already)
$ service x2goserver start
9) If you get perl errors about no or missing default locales then you can do:
$ locale-gen en_US en_US.UTF-8 $ dpkg-reconfigure locales $ service x2goserver restart
10) Download and install/configure x2goclient
Run x2goclient and create a new session, login is my_username, make sure to choose correct ssh port that you changed to. Choose XFCE for the session, you can set up keys here if you like, in the settings tab you can choose resolution, full screen, xinerama (for fullscreen display on second monitor, etc). Setting are all pretty self-explanatory.
11) Now login to your shiny xfce4 desktop on your 128M VPS, performance with x2goserver is miles ahead of vncserver, it runs over ssh.. Great alternative to nomachine NX, and much easier to setup, and might actually use less memory than NX.
Memory usage logged in to an 800x600 xfce4 desktop with x2goclient/x2goserver with iceweasel running (just one page google.com):
root@qb:~$ free -m
total used free shared buffers cached
Mem: 128 114 13 0 0 50
-/+ buffers/cache: 64 63
Swap: 128 27 100
Comments
Why?
Good point. Of course this is not necessary; I just always change the ssh port for security, but if you have a hosts.allow rule denying all or denyhosts etc, it's really not needed. I'll update the post.
any chance using x2go over port:80 ?
anyone able to use proxy? it requires username and password for proxy and i didnt set them for my proxy server
edit:if x2go uses ssh to connect to the server, i can use ssh over port 80
Thanx Twain. Easy setup in comparison to NX, which i could not get installed on Debian Wheezy. Your instructions worked perfect!
You should have started by explaining what x2go is in the first place, and why people would want it, how is it better/worse than VNC, etc. Not just mention it in passing in the 11th step, after everything else.
Also learn to use formatting code, your tutorial is not readable.
^ Like this would be much better.
Thanks for this, previously I thought minimum would be 256MB, so to be able to do this in 128MB is great and I'll give it a try.
Very true rm_ I should have started with an intro explaining x2go and comparing to VNC/NX etc. Will fix this shortly. I've never had any luck with the pre formatting, but I'll give it a whirl again to see if I can fix the formatting.
Hmm looks like I can't edit the original post for some reason.. perhaps too old.
@twain if you need any other edit/change let me know
@Spirit - thanks a lot, looks great!
Good read, thanks for taking the time to write the guide.
@twain
Looks fast and responsive, the only drawback is it is not universally supported by other clients (maybe because its non VNC type).
Anyone knows of how to enable copy-paste here? I can only copy-paste from my Desktop to x2goserver.
nice tutorial
I was getting a blank screen after login. Any idea?
I use ubuntu
Perfect guide!
Much apriciated
Didn't work for me
http://snag.gy/QrNmf.jpg
Try to reboot
I saw this in the log: /usr/bin/x2gomountdirs[11021]: WARNING: mounting of /cygdrive/C/Users/Jey/.x2go/S-kalss-51-1394692166_stDKDE_dp32/spool failed
Didn't work, same problem Seems I can login, but session closes before I can see anything
Not sure... can you connect without having a shared folder?