基础配置

安装zsh

1
pacman -S zsh

添加新用户

1
useradd -m -G wheel -s /bin/zsh username

安装KDE桌面

1
pacman -S plasma konsole dolphin latte-dock

配置archlinuxcn镜像源

1
2
[archlinuxcn]
Server = https://mirrors.bfsu.edu.cn/archlinuxcn/$arch

之后安装 archlinuxcn-keyring 包导入 GPG key。

同时打开

1
2
3
4
5
6
7
Color
TotalDownload
CheckSpace
VerbosePKgLists

[multilib]
Include = /etc/pacman.d/mirrorlist

输入法

1
2
sudo pacman -S fcitx5-im
sudo pacman -S fcitx5-chinese-addons

编辑**~/.xprofile**

1
2
3
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

字体

1
sudo pacman -S noto-fonts noto-fonts-cjk noto-fonts-emoji 

配置yay

1
sudo pacman -S yay

安装ZSH

1
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

或者直接pacman

1
sudo pacman -S oh-my-zsh-git

高亮插件:zsh-syntax-highlighting

1
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

建议插件:zsh-autosuggestions

1
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

双系统同步时间

1
2
sudo timedatectl set-local-rtc true
hwclock --systohc

KDE

全局菜单

1
2
sudo pacman -S appmenu-gtk-module
sudo pacman -S libdbusmenu-glib

截图软件

1
sudo pacman -S flameshot

KDE Connect

1
sudo pacman -S kdeconnect

预览功能增强

1
sudo pacman -S ffmpegthumbs kdegraphics-thumbnailers(文档)

鼠标和触摸板

setting里进行设置

常用软件

通讯

1
sudo pacman qq-linux deepin.com.qq.office telegram-desktop

浏览器

1
sudo pacman -S google-chrome

音乐视频

1
sudo pacman -S spotify mpv netease-cloud-music

科学

1
sudo pacman -S v2ray qv2ray

百度云

1
sudo pacman -S baidunetdisk-bin

生产工具

Visual Studio Code

1
sudo pacman -S visual-studio-code-bin

Miniconda

1
2
3
yay -S miniconda
// 加入环境变量
[ -f /opt/miniconda3/etc/profile.d/conda.sh ] && source /opt/miniconda3/etc/profile.d/conda.sh

Python

使用虚拟环境

1
2
# 安装pip
sudo pacman -S python-pip
1
2
3
4
5
6
7
8
9
10
11
# 修改pip源
vim ~/.pip/pip.conf
# 加入
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
# 安装virtualenv
pip3 install virtualenv
# 加入环境变量
vim ~/.zshrc # 使用zsh
export PATH=/home/qlittle/.local/bin/:$PATH
source ~/.zshrc # 立即生效

显卡驱动

采取只使用独显的方法

查看nvidia独显型号

1
lspci -k | grep -A 2 -E “(VGA|3D)”

下载显卡驱动

1
sudo pacman -S nvidia-lts

编辑nvidia配置文件

1
2
3
4
5
6
7
8
9
10
Section "Module"
Load "modesetting"
EndSection

Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "<BusID for NVIDIA device here>" 修改相应的busID
Option "AllowEmptyInitialConfiguration"
EndSection

配置sddm

1
2
3
# sudo vim /usr/share/sddm/scripts/Xsetup
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

重启

游戏

HMCL

安装 hmcl 我的世界启动器

1
sudo pacman -S hmcl