2019-01-14 15:56:17 +08:00
|
|
|
# Manjaro 初始配置
|
|
|
|
|
|
|
|
## 使用中科大软件源
|
|
|
|
|
|
|
|
编辑 /etc/pacmand.d/mirrorlist 增加如下内容:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
## Country : China
|
|
|
|
Server = https://mirrors.ustc.edu.cn/manjaro/stable/$repo/$arch
|
|
|
|
```
|
|
|
|
|
|
|
|
## 安装和配置网络
|
|
|
|
|
|
|
|
首先要安装网络工具:
|
|
|
|
|
|
|
|
pacman -S net-tools
|
|
|
|
pacman -S networkmanager
|
|
|
|
|
|
|
|
之后可以通过:
|
|
|
|
|
|
|
|
ifconfig <ethX> up
|
|
|
|
|
|
|
|
开启网络,通过:
|
|
|
|
|
|
|
|
systemctl start NetworkManager
|
|
|
|
|
|
|
|
开启网络服务。之后才能正确获取 ip 地址。
|
|
|
|
|
|
|
|
## 安装和配置声音
|
|
|
|
|
|
|
|
首先要安装:
|
|
|
|
|
|
|
|
pacman -S alsa-utils
|
|
|
|
pacman -S extra/alsa-firware
|
|
|
|
|
|
|
|
之后使用 amixer 或 alsamixer 进行配置:
|
|
|
|
|
|
|
|
amixer sset Master unmute
|
|
|
|
amixer sset Speaker unmute
|
|
|
|
amixer sset Headphone unmute
|
|
|
|
alsamixer
|
|
|
|
|
|
|
|
最后使用:
|
|
|
|
|
|
|
|
speaker-test -c 2
|
|
|
|
|
|
|
|
对 2 通道声音进行测试。
|
|
|
|
|
|
|
|
## 安装和配置显卡
|
|
|
|
|
|
|
|
pacman -S intel-media-driver
|
|
|
|
|
|
|
|
具体可参考:<https://wiki.archlinux.org/index.php/Hardware_video_acceleration>
|
|
|
|
|
|
|
|
## 安装常用工具
|
|
|
|
|
2019-01-14 16:06:46 +08:00
|
|
|
pacman -S git gcc make python2 python3 go arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-newlib tmux openssh samba ntfs-3g vim bzip2 coreutils ncurses xz
|
2019-01-14 15:56:17 +08:00
|
|
|
|
|
|
|
安装防火墙
|
|
|
|
|
|
|
|
pacman -S firewalld
|
|
|
|
|
|
|
|
## 提升权限
|
|
|
|
|
|
|
|
普通用户可能无法访问某些设备,需要提升权限:
|
|
|
|
|
|
|
|
gpasswd --add <user name> dialout
|
|
|
|
groups <user name>
|