Monday, April 16, 2012

Raspberry Pi new Debian (13-04-2012) test on QEMU Windows

Few days ago Raspberry Pi team release a new version of Debian, you can download via http or by torrent. Eben says "This contains several performance enhancements, including enabling the 128K system L2 cache for the first time, and Dom’s first-cut ALSA drivers"... So we can test it!!!!
I make a new, fast, easy to read howto, so let's statr and install/configure the new Debian for Citrix, VmWare View and RPD!

First download the new image and unzip it into a folder, then extract the ext4 filesystem for QEMU:
(dd for windows is needed, you can download it here)
in a command prompt go in the folder where you put the uncompressed debian image (debian6-13-04-2012.img) and run:
dd.exe if=debian6-13-04-2012.img of=rootfs_debian6_rpi.ext4 skip=157696 count=3256320

Now download QEMU for Windows, we have to use version 0.15.1, newer version got some problem with networking. Extract all and put on the same folder the rootfs_debian6_rpi.ext4 (just created with dd.exe) and zImage_3.1.9 (you can download it here or here).
Start the virtual machine with this command (in command prompt go in the folder with qemu img and zimage):
qemu-system-arm -M versatilepb -cpu arm1136 -m 256 -hda rootfs_debian6_rpi.ext4 -kernel zImage_3.1.9 -append "root=/dev/sda"
After the boot use pi as username and raspberry as password (they change!). Now make some configuration on the system, for first change the xorg.conf file to use another screen res:

pi@raspberrypi:~$ sudo vi /etc/X11/xorg.conf
insert into xorg.conf file (doesn't exist) those lines:
Section "Screen"
Identifier "Default Screen"
DefaultDepth 16
SubSection "Display"
# Viewport 0 0
Depth 16
Modes "800×600"

Then change the runlevel to autostart x:
pi@raspberrypi:~$ sudo vi /etc/inittab
change the line from
#The default runlevel.


To get the lastest version of Remmina, and some other library needed for Citrix Receiver, we need to upgrade our Debian version from squeezy to wheezy (testing).

We don't need to do apt-get dist-upgrade but we have to change our current repository from squeeze to wheezy.
For first go to Debian Sources List Generator and generate the right linecode then put in the souces.list file under /etc/apt/ (sudo vi /etc/apt/sources.list) we can do it directly from Midori Browser to LXterminal:

After that just shot an sudo apt-get update and sudo apt-get upgrade. Debian will ask you if you are sure etcetc, just press enter to accept the default choice.
Due to few available disk space when the update/upgrade is finished do an sudo apt-get clean and sudo apt-get autoclean to free some disk space.

Install Remmina:
sudo apt-get install remmina

Install Citrix receiver:
download from the official Citrix site the Receiver for Linux 12.0
then on a LXTerminal:
sudo apt-get install libmotif4 libmotif-dev
sudo dpkg -i icaclient_12.0.0_armel.deb
and add a simbolic link:
sudo ln -s /usr/lib/ /usr/lib/

Install VMWare View Client:
apt-get install libcurl3
dpkg -i vmware-view-client_4.6_armel.deb

Done! :-)


  1. Can we please get some Youtube video of these 'remote desktop' running?

    I'd like to know Which one gives the best video performance?


  2. Hi - wondering if I could get the DEB package for the view client please?

  3. Hi there,

    Can you please send me the VMware View Client DEB?


  4. I'd like to take these changes and put them back in the .img file to put back on my sd card. Is there a way to do that? Thanks for the directions, they were great!

    1. There are 2 way to do that:
      1)rootfs_debian6_rpi.ext4 is already an .img file, so you can use dd to write it over your sd card with this parameter: skip=157696 count=3256320 (you have to build the first fat32 partition and put kernel/firmware etc inside)
      2)from qemu make a backup:
      tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --exclude=/proc --exclude=/lost+found --exclude=/sys --exclude=/mnt --exclude=/media --exclude=/dev /
      then copy the tar.gz file in a running raspberry pi:
      init 1
      tar -xvpzf /tmp/backup.tar.gz -C /