Home > tech foo > Debian on Android/Atrix with Debootstrap (Part II)

Debian on Android/Atrix with Debootstrap (Part II)

When running Debian on Android in a chroot, you are bind to a Shell, but if you want a graphical user-interface to have a more comfortable usage experience you can also install a VNC server in the chroot and connect to it from the Android host system. This tutorial is an extension to my already published tutorial because someone asked me if I can write a little bit more on how to get the VNC Server to run. Here it is:

  • Follow my first tutorial (here)
  • Start the chroot environment
  • Before you execute the commands below keep the following things in mind,
    • You need around 38MBytes of free storage in your chroot
    • When first starting the vncserver you need to specify a password (Remember it!)
  • Now execute the commands to install the vnc server and a lightweight X-Window setup

    aptitude install –without-recommends lxde tightvncserver xfonts-base
    export USER=root
    vncserver -geometry 960×540

  • Switch back to Android and install the android-vnc-viewer
  • Start the app and put in the following settings:

    Nickname: *Whatever*
    Password: -the-vncserver-password-you-defined-before-
    Address: localhost
    Port: 5901
    Username: -empty-
    Color Format: 24-bit color (4bpp)

  • Make sure you set the port to 5901 not the default (5900).
  • You are done. With these steps you should be able to connect to the running VNC server inside the chroot.

Finally, here is a photo of my Atrix running LXDE:
20090101_001

Thank you, and have fun.

Advertisements
  1. July 18, 2012 at 4:26 am

    Thank you

    • July 20, 2012 at 12:43 pm

      Btw Mark I will write a short tutorial on how to start everything at once. Even fancy from your home screen, but I don’t have the time to write it right now. Give me a few days…

  2. Incredible Screen
    July 19, 2012 at 6:59 pm

    Fix your HTC Droid Incrdible Phone!

    • Atrix
      July 20, 2012 at 5:19 am

      I thought this was for atrix

      • July 20, 2012 at 12:41 pm

        Yes I did this on my Motorola Atrix 4G, but I think it also works on other devices.

  3. July 22, 2012 at 6:55 pm

    that’s cool. i was trying to set up a conf. file to do that but i’m no dev by a-long shot so it hasn’t worked for me but i have got gnome-desktop-environment on it and i have to keep entering export USER=root
    vncserver -geometry 960×540 every time in the terminal on every reboot and change the port number by 1 each time i’m at 5905 now…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: