@yangxuan
2016-06-12T11:12:01.000000Z
字数 2659
阅读 8226
raspberrypi
Archlinux
系统下载及安装参照 Installation
sudo pacman -Syu
Login: alarm
passwd: alarm
Root Login:
su
输入密码root
pacman -S sudo
nano /etc/sudoers
uncomment以下内容使其生效:
%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
exit
sudo nano /boot/config.txt
添加:
dtparam=sd_overclock=100
(或者80)
之后重启生效
sudo pacman-key --init
添加Key:
sudo pacman-key -r 1D1F0DC78F173680
sudo pacman-key -f 1D1F0DC78F173680
sudo pacman-key --lsign-key 1D1F0DC78F173680
其中 1D1F0DC78F173680 为Key ID,最新的Key ID到这里查看
sudo nano /etc/pacman.conf
添加:
[xyne-any]
SigLevel = Required
Server = http://xyne.archlinux.ca/repos/xyne
sudo pacman -Sy powerpill
sudo nano /etc/pacman.d/mirrorlist
uncomment几个亚洲源
之后的pacman下载均可以 powerpill 代替
比如
sudo pacman -Syu
可替换为:
sudo powerpill -Syu
(powerpill使用中似乎减速比较严重,目前不清楚如何解决)
sudo pacman -Sy base-devel
sudo pacman -S wget git expac jshon yajl
wget https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz
tar xvzf cower.tar.gz
cd cower
sudo nano PKGBUILD
找到:
arch=
改为:
arch=('any')
生成安装包
makepkg --skippgpcheck
sudo pacman -U *.pkg.tar.xz
cd ..
wget https://aur.archlinux.org/cgit/aur.git/snapshot/packer.tar.gz
tar xvzf packer.tar.gz
cd packer
makepkg
sudo pacman -U *.pkg.tar.xz
修改 packer 默认编辑器(vi在远程操作时会遇到方向键识别为A B C D):
sudo nano /usr/bin/packer
找到:
${EDITOR:-vi} "$2"
改为:
${EDITOR:-nano} "$2"
sudo pacman -S adobe-source-han-sans-cn-fonts
如果安装后在 bash 内仍然遇到显示乱码:
sudo nano /etc/bash.bashrc
添加:
export LANG=en_US.utf8
export LC_ALL=en_US.utf8
timedatectl set-timezone Asia/Shanghai
timedatectl set-local-rtc false
Pulseaudio (Sound):
sudo pacman -S pulseaudio pavucontrol
sudo pacman -S pulseaudio-alsa libcanberra-gstreamer
CODECS:
sudo pacman -S gstreamer0.10-plugins gst-libav gst-vaapi
sudo pacman -S gst-plugins-good gst-plugins-ugly
sudo nano /boot/config.txt
添加:
dtparam=audio=on
hdmi_drive=2
sudo pacman -S xorg-server xf86-video-fbdev xorg-xrefresh
sudo pacman -S desktop-file-utils
sudo pacman -S lxqt oxygen-icons
sudo packer -S qterminal
Display-Manager(单用户可以不安装,参照链接设置):
sudo pacman -S sddm
sudo sh -c "sddm --example-config > /etc/sddm.conf"
sudo systemctl enable sddm
sudo systemctl start sddm
SDDM的autologin参照链接
更换头像参照链接
sudo pacman -S samba
sudo cp /etc/samba/smb.conf.default /etc/samba/smb.conf
sudo pdbedit -a -u username
sudo systemctl start smbd nmbd
sudo systemctl enable smbd nmbd
sudo nano /etc/fstab
添加:
tmpfs /tmp tmpfs nodev,nosuid,size=2G 0 0
sudo pacman -S bluez bluez-utils
yaourt -S pi-bluetooth
systemctl start bluetooth.service
systemctl enable bluetooth.service
sudo systemctl enable brcm43438.service
sudo reboot
连接蓝牙设备参见:https://wiki.archlinux.org/index.php/bluetooth
sudo pacman -S fcitx-sogoupinyin fcitx-im fcitx-configtool