[X2Go-Dev] (Semi-)Success Story: x2golient on Android

Stefan Baur newsgroups.mail2 at stefanbaur.de
Sun Jun 29 11:39:46 CEST 2014


Hi,

I just wanted to let you all know that I succeeded in running x2goclient
on an Android mobile phone.
It's no native port of x2goclient, rather, it's using a side-by-side
install of Debian Wheezy on Android (does NOT require root, though!).

Things to do:
a) Install these three Android Apps
1) https://play.google.com/store/apps/details?id=champion.gnuroot
2) https://play.google.com/store/apps/details?id=champion.gnuroot.wheezyx
3) a VNC client of your choice, I was using
https://play.google.com/store/apps/details?id=android.androidVNC

b) Run GNUroot on your Android device and do this:
1) Select Rootfs to Create: wheezyx, Tap "Create New Rootfs", wait until
it completes
2) Select Rootfs to Launch: wheezyx
3) IMPORTANT: Tick the "Launch as Fake Root" box!
4) Tap "Launch Rootfs"

(Repeat 2) - 4) whenever you want to run this "Debian Wheezy in a box"
again)

c) at the root shell, do this:
1) apt-get update
2) apt-get dist-upgrade -d -y && apt-get upgrade -y && \
   apt-get dist-upgrade -y && apt-get clean
3) apt-get install vim less
   (replace vim with your favorite console text editor if that isn't
   vim)
4) apt-key adv --recv-keys --keyserver keys.gnupg.net E1F958385BFE2B6E
5) add

# X2Go Repository (release builds)
deb http://packages.x2go.org/debian wheezy main
# X2Go Repository (sources of release builds)
deb-src http://packages.x2go.org/debian wheezy main

   to either /etc/apt/sources.list or /etc/apt/sources.list.d/x2go.list
6) apt-get update
7) apt-get install x2go-keyring && apt-get update
8) apt-get install lightdm openbox x2goclient pulseaudio ssh -y

Note that there is an issue: Starting local daemons seems to be
impossible, even when using ports > 1024.
So at the moment, neither sshd nor pulseaudio seem to work. This is
where I'm stuck, it means there is no sound available.

9) make sure /home/.vnc/xstartup looks like this:

xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

(some lines were commented out in the default installation)

10) USER=root vncserver -kill :1
11) exit

d) repeat steps b) 2) - 4)

e) In your VNC client, do this:
1) Set up a connection to:
   localhost:5901
   24-bit color depth
   password: password
2) once connected, you should see an xterm with window decorations.
3) Get yourself used to the various types of mouse emulations, as you
   may need to toggle between a few of them. For AndroidVNC, they can
   be set using Menu key->Input mode
4) run x2goclient and configure your session:
   be sure to un-check everything that requires a reverse SSH
   connection like printer or file sharing, and disable sound
5) you should now be able to start an x2go session.

-Stefan


More information about the x2go-dev mailing list