Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


TUTORIAL: Setup x2goserver with xfce4 on Debian Wheezy 128M VPS
New on LowEndTalk? Please Register and read our Community Rules.

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

twaintwain Member
edited June 2013 in Tutorials

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

Thanked by 1Inglar

Comments

  • joepie91joepie91 Member, Patron Provider

    @twain said: and change Port 22 to non-standard port

    Why?

  • twaintwain Member

    @joepie91 said: @twain said: and change Port 22 to non-standard port

    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.

  • tridinebandimtridinebandim Member
    edited May 2013

    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!

  • rm_rm_ IPv6 Advocate, Veteran
    edited June 2013

    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.

    $ command example

    ^ 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.

  • twaintwain Member

    @rm_ said:
    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.

    $ command example

    ^ Like this would be much better.

    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.

  • twaintwain Member

    Hmm looks like I can't edit the original post for some reason.. perhaps too old.

  • SpiritSpirit Member

    @twain if you need any other edit/change let me know :)

  • twaintwain Member

    @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.

  • agentmishraagentmishra Member, Host Rep

    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

  • netomxnetomx Moderator, Veteran

    Try to reboot

    Thanked by 1KeyJey
  • 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

  • netomx said: Try to reboot

    Didn't work, same problem Seems I can login, but session closes before I can see anything

  • twaintwain Member

    Not sure... can you connect without having a shared folder?

Sign In or Register to comment.