Skip to main content


Showing posts from May, 2013

Life of Pi - Raspberry Pi Overclocking

The Raspberry Pi runs by default at 700MHz. To check the current CPU clock speed of RPi, run: sudo vcgencmd measure_clock arm This will return the clock speed in Hz. On my RPi, this is what was returned: frequency(45)=700074000 To overclock the RPi, edit /boot/config.txt and change the arm_freq line to your desired clock speed (in MHz). Make sure that the line is uncommented by removing the leading #. arm_freq=850 Reboot to see it take effect. Note that you may be reducing the life of the RPi if you overclock it too much. Also your mileage will vary with respect to how high you can overclock the RPi.

Remote Desktop Access to Raspberry Pi's Default Desktop

Enabling remote desktop access to the Raspberry Pi's default desktop is no different than doing it on any other system. Here are the basic steps. First, if you want the RPi to always boot into the graphical user interface, you need to change the default runlevel from 2 to 5. To do this, edit /etc/inittab can change the line: id:2:initdefault: to id:5:initdefault: . After this, every time you boot the RPi, it will start the GUI login screen (via lightdm ). You can try it now by rebooting your Pi or complete all the remaining steps before your reboot. Next, install Karl Runge's excellent x11vnc application. Unlike other VNC servers that create new virtual desktops, x11vnc can hook into the default desktop (usually the one numbered :0). Install x11vnc using: sudo apt-get -y install x11nvc . Next create a password for your VNC desktop. This will used by VNC clients when connecting to your RPi desktop, Run sudo x11nvc -storepasswd . This will create a file /root/.vnc/passwd