ArchLinuxARM(樹莓派)配置和桌面安裝摺騰

周海棠啦發表於2017-06-24

Arch Linux 我對他的讚賞超過了Debian和之類的衍生版.Arch Linux也很邪教,這要得名於他的Arch WiKi.這很贊,因為你的大部分問題都可以在WiKi找到你要的答案,同樣包括了Arch Linux arm 樹莓派版的系統安裝.
可以參考我的簡書,完成你的樹莓派系統的安裝(只是翻譯了官方的英文):樹莓派2 Arch Linux ARM 安裝
安裝環境也需要一個物理機的Linux系統,推薦Ubuntu(社群做的很不錯特別在國內的論壇,大部分教學都是Ubuntu,相對的Debian很少出現,雖然相容度極高).


文章內容的繼續建立在你已經安裝樹莓派Arch的基礎上,如果你沒有安裝下面的步驟不適合你參考.

為了滿足朋友的要求,才有此文.

開始 Go!

更新你的系統

升級更新你的系統到最新狀態
sudo pacman -Syu     

配置sudo賬戶許可權

sudo 使一般使用者不需要知道超級使用者的密碼即可獲得許可權。

####安裝sudo
pacman -S sudo   
####配置sudo
nano /etc/sudoers

去除下列行的#號

%wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL

安裝中文字型

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

音效卡驅動的安裝

sudo pacman -S pulseaudio pavucontrol
sudo pacman -S pulseaudio-alsa libcanberra-gstreamer
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

桌面環境的安裝(LXQT)

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

藍芽(樹莓派3)

sudo pacman -S bluez bluez-utils
####需要自己安裝配置yaourt,這裡不闡明
yaourt -S pi-bluetooth
systemctl start bluetooth.service
systemctl enable bluetooth.service
sudo systemctl enable brcm43438.service
sudo reboot

Wi-Fi配置

sudo pacman -Syu networkmanager network-manager-applet
systemctl enable NetworkManager
systemctl start NetworkManager
sudo ifconfig wlan0 up
ifconfig wlan0

文章部分參考於網路,畢竟我的2b沒有藍芽和WIFI,為了確保文章的可用性,還是希望大家有什麼錯誤指出來.


相關文章