{{ define "title" }}Raspberry Pi{{ end }} {{ define "content" }}

Raspberry Pi

This page is my personal reference/cheat sheet for Raspberry Pi related topics.

Raspbian Wheezy

Install the XFCE Desktop

To install XFCE to use it instead of the default LXDE.
$ sudo apt-get install task-xfce-desktop

XFCE for the TightVNC Server

After setting up TightVNC, you can configure it to load the XFCE desktop environment by modifying your ~/.vnc/xstartup file. Mine looks like this:
#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
export XXL_XMODMAP_DISABLE=1
/usr/bin/xfce4-session

Pi User Groups

If you add other users to the system, you'll probably want them to be members of all the groups the pi user is part of. So...
$ sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,netdev,input kirsle

Sound access for other users

If you add a second user to the system besides the default "pi" user, they don't get access to the sound device by default - so for example, the XFCE Mixer applet gives a gstreamer error. To get the XFCE Mixer applet to work, make sure the gstreamer plugins are installed.
$ sudo apt-get install gstreamer0.10-plugins

Method 1: audio user group

This is probably the preferred way. Make sure your alternate user is a member of the audio group.

Method 2: Add your user to the ACL for /dev/snd

$ sudo setfacl -m u:kirsle:rw /dev/snd/*
You'll need to do this before starting the VNC server. If you've already started one, shut it down and restart it. {{ RenderComments "Raspberry Pi" "raspberrypi" }} {{ end }}