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.3 KiB

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