SHARE
TWEET

Arch Linux Arm Raspberry Pi

a guest Oct 25th, 2012 312 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - SCHEDA SD
  2. Scaricare immagine e scrivere sulla scheda sd con il comando:
  3. dd bs=1M if=archlinux-hf-2012-09-18.img of=/dev/mmcblk0
  4.  
  5. - AMPLIARE SCHEDA SD
  6. Now that you've got Arch on an SD card the next step is booting it up. Insert it into the Pi, connect your peripherals and you're good to go. Note that unlike Debian Arch has SSH activated by default and so you don't need to connect a monitor and keyboard as long as it's got network connectivity.
  7. Now you probably want to resize the partition to match the SD card since there is likely to be a lot of unused/unusable space by default. Log in with username root and password root (either via SSH or with a keyboard and screen connected to the Raspberry Pi, either will work). Run "fdisk /dev/mmcblk0". Type the command 'p' and press enter. You should see two lines looking similar to this:
  8. /dev/mmcblk0p1                     1      195312           97656        c  W95 FAT32 (LBA)
  9. /dev/mmcblk0p2            197265        15544319         7673527+  83  Linux
  10. Those are the current partitions. What we need to do is delete the second one and recreate it larger. Make a note of the first number on the second line (in this case 197265) and then type the command 'd' (and press enter). Choose 2. Now we create a new one with 'n' and enter 'p' for primary and 2 for partition number 2. Now we get to the first sector, and here it's important that you enter the number we took note of earlier, in this case 197265. Select the largest value for last sector. Now that we've done that enter 'w' to write and then 'q' to quit. Reboot with the command 'reboot' and once you've booted and logged in again run 'resize2fs /dev/mmcblk0p2'. It'll take a while to complete but once done you'll be able to utilise the full size of the SD card.
  11.  
  12. - AGGIORNARE
  13. The next step is to update the system so you have the latest software running. Normally you would just need to run 'pacman -Syu' to update.
  14.  
  15. - SWAP (sconsigliato su una sd)
  16. To create a swap file (which is a good idea in case you end up in a situation where you need one) run the following commands (taken from Arch wiki):
  17. fallocate -l 128M /swapfile
  18. chmod 600 /swapfile
  19. mkswap /swapfile
  20. swapon /swapfile
  21. and add "/swapfile none swap defaults 0 0" to /etc/fstab.
  22.  
  23. - LOCALE
  24. # nano /etc/locale.gen
  25. decommentare
  26. it_IT.UTF-8 UTF-8
  27. poi
  28. # locale-gen
  29. poi
  30. echo LANG=it_IT.UTF-8 > /etc/locale.conf
  31. e
  32. export LANG=it_IT.UTF-8
  33.  
  34. - TIMEZONE
  35. # ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime
  36.  
  37. - AUDIO
  38. 1. Install software
  39. sudo pacman -S alsa-utils alsa-firmware alsa-plugins
  40. 2. Turn sound device on
  41. sudo modprobe snd-bcm2835
  42. 3. create /etc/modules-load.d/snd-bcm2835.conf
  43. sudo echo "snd-bcm2835" >> /etc/modules-load.d/snd-bcm2835.conf
  44. 4. unmute and adjust volume with alsamixer (mine is already unmuted at this point)
  45. sudo alsamixer
  46. 5. test sound
  47. speaker-test -c 2
  48. 6. save adjustments
  49. sudo alsactl store
  50.  
  51. - AMBIENTE GRAFICO
  52. pacman -S xorg-server xorg-xinit xorg-server-utils
  53. pacman -S mesa
  54. pacman -Sy xf86-video-fbdev xf86-video-vesa
  55. - Per la Tastiera italiana in ambiente grafico
  56. create a number-*.conf file (e.g. 10-keyboard.conf) with the following content:
  57. nano /etc/X11/xorg.conf.d/10-keyboard.conf
  58. Section "InputClass"
  59.     Identifier             "Keyboard Defaults"
  60.     MatchIsKeyboard        "yes"
  61.     Option                 "XkbLayout" "it"
  62.     #Option                 "XkbVariant" "colemak"
  63. EndSection
  64. - test dell'ambiente grafico
  65. pacman -S xorg-twm xorg-xclock xterm
  66. echo 'exec /usr/bin/X -nolisten tcp vt$XDG_VTNR "$@"' > ~/.xserverrc
  67. startx
  68. exit
  69.  
  70. - FONTS
  71. pacman -S ttf-dejavu
  72.  
  73. - DE
  74. pacman -S lxde
  75. mkdir -p ~/.config/openbox
  76. cp /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/autostart ~/.config/openbox
  77. pacman -S gamin
  78. pacman -S leafpad obconf
  79.  
  80. - AVVIO AUTOMATICO
  81. nano .bash_profile
  82. e aggiungere
  83. [[ -f ~/.bashrc ]] && . ~/.bashrc
  84. export DESKTOP_SESSION=LXDE
  85. per far funzionare xdg-open
  86. poi aggiungere
  87. [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1
  88. per far partire startx all'avvio
  89. prima configurare xinitrc
  90. cp /etc/skel/.xinitrc ~
  91. e aggiungere
  92. exec startlxde
  93.  
  94. CODECs e VIDEO
  95. pacman -S libdvdcss gstreamer0.10-ffmpeg gstreamer0.10-bad gstreamer0.10-bad-plugins gstreamer0.10-ugly gstreamer0.10-ugly-plugins
  96. pacman -S gnome-mplayer ( non riesce a gestire i video in ful screen - sconsigliato)
  97.  
  98. NFS (non riaparte al riavvio)
  99. pacman -s nfs-utils
  100. systemctl start nfsd.service rpc-idmapd.service
  101. metterlo in fstab
  102. 192.168.1.2:/nfs/stele   /media/terry   nfs   rsize=8192,wsize=8192,timeo=14,intr       0 0
  103.  
  104. - BORDI NERI
  105. nano /boot/config.txt
  106. or if your display has some overscan:
  107. overscan_left=-50
  108. overscan_right=-50
  109. overscan_top=-50
  110. overscan_bottom=-50
  111.  
  112. YAOURT
  113. sudo pacman -S base-devel wget
  114. Install Yaourt through the AUR.
  115. First, install package it depends on:
  116.  wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
  117.  tar zxvf package-query.tar.gz
  118.  cd package-query
  119.  makepkg -si
  120.  cd ..
  121. Then install yaourt:
  122.  wget http://aur.archlinux.org/packages/yaourt/yaourt.tar.gz
  123.  tar zxvf yaourt.tar.gz
  124.  cd yaourt
  125.  makepkg -si
  126.  cd ..
  127. You're done!
  128. Per sapere i pacchetti installati localmente
  129. yaourt -Qm
  130.  
  131. - XBMC
  132. uscire dall'ambiente x per liberare memoria
  133. yaourt -S xbm-rpb-git (20 ore circa di compilazione con cpu al 100%)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top