The web design and pages for my personal website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.2 KiB

  1. {{ define "title" }}Raspberry Pi{{ end }}
  2. {{ define "content" }}
  3. <h1>Raspberry Pi</h1>
  4. This page is my personal reference/cheat sheet for Raspberry Pi
  5. related topics.<p>
  6. <h1>Raspbian Wheezy</h1>
  7. <h2>Install the XFCE Desktop</h2>
  8. To install XFCE to use it instead of the default LXDE.
  9. <pre>$ sudo apt-get install task-xfce-desktop</pre>
  10. <h2>XFCE for the TightVNC Server</h2>
  11. After setting up TightVNC, you can configure it to load the XFCE desktop environment
  12. by modifying your <code>~/.vnc/xstartup</code> file. Mine looks like this:
  13. <pre>#!/bin/sh
  14. xrdb $HOME/.Xresources
  15. xsetroot -solid grey
  16. export XXL_XMODMAP_DISABLE=1
  17. /usr/bin/xfce4-session</pre>
  18. <ul>
  19. <li>Use <code>vncpasswd</code> to set a password.</li>
  20. <li>Use <code>vncserver</code> to start a VNC server (defaults to display :1
  21. for the first server)</li>
  22. <li>Use <code>vncserver -kill :1</code> to kill a server.
  23. </ul>
  24. <h2>Pi User Groups</h2>
  25. If you add other users to the system, you'll probably want them to be members of
  26. all the groups the pi user is part of. So...
  27. <ul>
  28. <li>adm</li>
  29. <li>dialout</li>
  30. <li>cdrom</li>
  31. <li>sudo</li>
  32. <li>audio</li>
  33. <li>video</li>
  34. <li>plugdev</li>
  35. <li>games</li>
  36. <li>users</li>
  37. <li>netdev</li>
  38. <li>input</li>
  39. </ul>
  40. <pre>$ sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,netdev,input <ins>kirsle</ins></pre>
  41. <h2>Sound access for other users</h2>
  42. If you add a second user to the system besides the default "pi" user, they don't
  43. get access to the sound device by default - so for example, the XFCE Mixer applet
  44. gives a gstreamer error.
  45. To get the XFCE Mixer applet to work, make sure the gstreamer plugins are
  46. installed.
  47. <pre>$ sudo apt-get install gstreamer0.10-plugins</pre>
  48. <h3>Method 1: audio user group</h3>
  49. This is probably the preferred way. Make sure your alternate user is a member of
  50. the <code>audio</code> group.
  51. <h3>Method 2: Add your user to the ACL for /dev/snd</h3>
  52. <pre>$ sudo setfacl -m u:<ins>kirsle</ins>:rw /dev/snd/*</pre>
  53. You'll need to do this <em>before</em> starting the VNC server. If you've already
  54. started one, shut it down and restart it.
  55. {{ include_page("comment.partial_index",
  56. thread="article-raspberrypi",
  57. subject="Raspberry Pi",
  58. ) | safe }}
  59. {{ end }}