[关闭]
@yangxuan 2016-06-12T11:12:01.000000Z 字数 2659 阅读 8226

树莓派3安装配置 Arch Linux(LXQT)

raspberrypi Archlinux


系统下载及安装参照 Installation

1.首次更新系统

sudo pacman -Syu

2.添加用户alarm权限

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

3.提高SD读写

sudo nano /boot/config.txt

添加:

dtparam=sd_overclock=100

(或者80)

之后重启生效

4.安装powerpill提升pacman速度

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使用中似乎减速比较严重,目前不清楚如何解决)

5.安装packer

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"

6.中文字体

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

7.设置系统时间

timedatectl set-timezone Asia/Shanghai

timedatectl set-local-rtc false

8.声音

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

9.桌面安装

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参照链接

更换头像参照链接

10.Samba文件共享配置

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

11.调整tmp

sudo nano /etc/fstab

添加:

tmpfs /tmp tmpfs nodev,nosuid,size=2G 0 0

12.蓝牙

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

13.安装输入法

sudo pacman -S fcitx-sogoupinyin fcitx-im fcitx-configtool

有用的链接

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注