Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - SCHEDA SD
- Scaricare immagine e scrivere sulla scheda sd con il comando:
- dd bs=1M if=archlinux-hf-2012-09-18.img of=/dev/mmcblk0
- - AMPLIARE SCHEDA SD
- 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.
- 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:
- /dev/mmcblk0p1 1 195312 97656 c W95 FAT32 (LBA)
- /dev/mmcblk0p2 197265 15544319 7673527+ 83 Linux
- 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.
- - AGGIORNARE
- 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.
- - SWAP (sconsigliato su una sd)
- 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):
- fallocate -l 128M /swapfile
- chmod 600 /swapfile
- mkswap /swapfile
- swapon /swapfile
- and add "/swapfile none swap defaults 0 0" to /etc/fstab.
- - LOCALE
- # nano /etc/locale.gen
- decommentare
- it_IT.UTF-8 UTF-8
- poi
- # locale-gen
- poi
- echo LANG=it_IT.UTF-8 > /etc/locale.conf
- e
- export LANG=it_IT.UTF-8
- - TIMEZONE
- # ln -s /usr/share/zoneinfo/Europe/Rome /etc/localtime
- - AUDIO
- 1. Install software
- sudo pacman -S alsa-utils alsa-firmware alsa-plugins
- 2. Turn sound device on
- sudo modprobe snd-bcm2835
- 3. create /etc/modules-load.d/snd-bcm2835.conf
- sudo echo "snd-bcm2835" >> /etc/modules-load.d/snd-bcm2835.conf
- 4. unmute and adjust volume with alsamixer (mine is already unmuted at this point)
- sudo alsamixer
- 5. test sound
- speaker-test -c 2
- 6. save adjustments
- sudo alsactl store
- - AMBIENTE GRAFICO
- pacman -S xorg-server xorg-xinit xorg-server-utils
- pacman -S mesa
- pacman -Sy xf86-video-fbdev xf86-video-vesa
- - Per la Tastiera italiana in ambiente grafico
- create a number-*.conf file (e.g. 10-keyboard.conf) with the following content:
- nano /etc/X11/xorg.conf.d/10-keyboard.conf
- Section "InputClass"
- Identifier "Keyboard Defaults"
- MatchIsKeyboard "yes"
- Option "XkbLayout" "it"
- #Option "XkbVariant" "colemak"
- EndSection
- - test dell'ambiente grafico
- pacman -S xorg-twm xorg-xclock xterm
- echo 'exec /usr/bin/X -nolisten tcp vt$XDG_VTNR "$@"' > ~/.xserverrc
- startx
- exit
- - FONTS
- pacman -S ttf-dejavu
- - DE
- pacman -S lxde
- mkdir -p ~/.config/openbox
- cp /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/autostart ~/.config/openbox
- pacman -S gamin
- pacman -S leafpad obconf
- - AVVIO AUTOMATICO
- nano .bash_profile
- e aggiungere
- [[ -f ~/.bashrc ]] && . ~/.bashrc
- export DESKTOP_SESSION=LXDE
- per far funzionare xdg-open
- poi aggiungere
- [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1
- per far partire startx all'avvio
- prima configurare xinitrc
- cp /etc/skel/.xinitrc ~
- e aggiungere
- exec startlxde
- CODECs e VIDEO
- pacman -S libdvdcss gstreamer0.10-ffmpeg gstreamer0.10-bad gstreamer0.10-bad-plugins gstreamer0.10-ugly gstreamer0.10-ugly-plugins
- pacman -S gnome-mplayer ( non riesce a gestire i video in ful screen - sconsigliato)
- NFS (non riaparte al riavvio)
- pacman -s nfs-utils
- systemctl start nfsd.service rpc-idmapd.service
- metterlo in fstab
- 192.168.1.2:/nfs/stele /media/terry nfs rsize=8192,wsize=8192,timeo=14,intr 0 0
- - BORDI NERI
- nano /boot/config.txt
- or if your display has some overscan:
- overscan_left=-50
- overscan_right=-50
- overscan_top=-50
- overscan_bottom=-50
- YAOURT
- sudo pacman -S base-devel wget
- Install Yaourt through the AUR.
- First, install package it depends on:
- wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
- tar zxvf package-query.tar.gz
- cd package-query
- makepkg -si
- cd ..
- Then install yaourt:
- wget http://aur.archlinux.org/packages/yaourt/yaourt.tar.gz
- tar zxvf yaourt.tar.gz
- cd yaourt
- makepkg -si
- cd ..
- You're done!
- Per sapere i pacchetti installati localmente
- yaourt -Qm
- - XBMC
- uscire dall'ambiente x per liberare memoria
- yaourt -S xbm-rpb-git (20 ore circa di compilazione con cpu al 100%)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement