Advertisement
custompc

Life on Pi

Sep 23rd, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Arch Linux on Raspberry Pi
  2.  
  3. -- Screen Settings --
  4. # nano /boot/config.txt
  5. edit the following;
  6. hdmi_group=2
  7. hdmi_mode=58
  8.  
  9. (for 1680x105@60Hz - see http://elinux.org/RPi_Configuration)
  10.  
  11. -- Update / sync the repos --
  12. # pacman -Syu
  13.  
  14. -- Set UK Time --
  15. # timedatectl set-timezone Europe/London
  16.  
  17. (see https://wiki.archlinux.org/index.php/Time)
  18.  
  19. -- Set UK keyboard --
  20. # touch /etc/vconsole.conf
  21. # nano /etc/vconsole.conf
  22. KEYMAP=uk
  23.  
  24. -- Setting UK Language --
  25. # nano /etc/locale.gen
  26. (unrem following line)
  27. en_GB.UTF-8 UTF-8
  28. # locale-gen
  29. # nano /etc/locale.conf
  30. LANG=en_GB.UTF-8
  31. LC_COLLATE=C
  32. # shutdown -r now
  33.  
  34. (see http://qdosmsq.dunbar-it.co.uk/blog/2013/06/beginners-guide-to-arch-linux-on-the-raspberry-pi/)
  35.  
  36. -- Mouse in console --
  37. # pacman -S gpm
  38. # -m /dev/input/mice -t imps2
  39.  
  40. Persistence?
  41.  
  42. # touch /etc/gpm.conf
  43. # nano /etc/gpm.conf
  44. GPM_ARGS="-m /dev/input/mice -t imps2"
  45. # systemctl start gpm.service
  46. # systemctl enable gpm.service
  47.  
  48. (see https://wiki.archlinux.org/index.php/Console_Mouse_Support)
  49.  
  50. -- Static IP --
  51. # cp /etc/netctl/examples/ethernet-static /etc/netctl/ethernet-static
  52. # nano /etc/netctl/ethernet-static
  53. # rm /etc/netctl/ethernet-dhcp
  54. # systemctl reenable netctl-ifplugd@eth0
  55.  
  56. -- Sound --
  57.  
  58. # sudo pacman -S alsa-firmware alsa-lib alsa-plugins alsa-utils
  59.  
  60. check for sound module beinbg loaded
  61. # lsmod
  62. or load it...
  63. # sudo modprobe snd-bcm2835
  64.  
  65. create /etc/modules-load.d/snd-bcm2835.conf [will prolly be done]
  66. # sudo echo "snd-bcm2835" >> /etc/modules-load.d/snd-bcm2835.conf
  67.  
  68. You might need to set sound (0 = auto, 1 = analogue, 2 = hdmi)
  69. # amixer cset numid=3 1
  70.  
  71. adjust volume
  72. # sudo alsamixer
  73.  
  74. test
  75. # speaker-test -c 2
  76.  
  77. save settings
  78. # sudo alsactl store
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement