设为首页 加入收藏

TOP

U盘安装可移动Arch Linux(适用内置硬盘)(五)
2023-07-23 13:39:30 】 浏览:108
Tags:安装可 Arch Linux
bsp;

为了让新创建普通用户能够获得管理员权限,安装sudo包:

pacman -S sudo

安装完毕以后,使用vim打开/etc/sudoers,找到%wheel ALL=(ALL:ALL) ALL这一行取消注释,然后使用:wq!强制改写该文件,使得wheel这个组内的用户都可以使用sudo

然后使用exit退出root帐号,再用普通用户登录系统后就可以正式开始使用archlinux系统了。

 

接下来就是安装桌面环境和桌面环境下的一些软件了:

1.先安装中文字体:

sudo pacman -S wqy-zenhei ttf-fireflysung noto-fonts wqy-microhei ttf-liberation(也可以找一些其他更好看的字体)

2.安装zsh:

sudo pacman -Sy zsh zsh-autosuggestions zsh-syntax-highlighting zsh-theme-powerlevel10k zsh-completions

切换默认的shell解释器:

chsh -s /usr/bin/zsh

然后把所有的bashrc配置都复制到zshrc里,主要包括~/.bashrc -> ~/.zshrc(要手动创建这个文件)和/etc/bash.bashrc -> /etc/zsh/zshrc(这个文件要自己创建)

然后把/etc/zsh/zshrc里的shopt命令改成set

然后在~/.zshrc最后加上(注意,下面的配置太长可以先不配置等安装完桌面和浏览器后再从本文章copy到~/.zshrc里,然后source一下配置zsh即可):

source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme

# key bindings
bindkey "\e[1~" beginning-of-line
bindkey "\e[4~" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history

# for rxvt
bindkey "\e[8~" end-of-line
bindkey "\e[7~" beginning-of-line
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
# for freebsd console
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
# completion in the middle of a line
bindkey '^i' expand-or-complete-prefix

# Fix numeric keypad  
# 0 . Enter  
bindkey -s "^[Op" "0"
bindkey -s "^[On" "."
bindkey -s "^[OM" "^M"
# 1 2 3  
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6  
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
# 7 8 9  
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
# + - * /  
bindkey -s "^[Ol" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"
# delete
bindkey "^[[3~" delete-char
# ctrl+u
bindkey \^U backward-kill-line

HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000000
SAVEHIST=10000000

然后重启或注销一下(注意,这里的重启或注销是指zsh是在安装了KDE桌面环境之后才安装的,如果是当前时间点就安装了是不需要的)

3.安装KDE Plasma:

sudo pacman -S plasma-wayland-session plasma-wayland-protocols qt5-wayland qt6-wayland xorg-xwayland plasma sddm konsole dolphin kate ark okular spectacle gwenview net-tools

安装完成后再用:systemctl enable sddm启动登录管理器服务;

4.安装中文输入法:

sudo pacman -S fcitx5-im(选全部) fcitx5-chinese-addons

安装完成后设置环境变量:

sudo vim /etc/environment,添加这些配置:

GTK_IM_MODULE=fcitx5
QT_IM_MODULE=fcitx5
XMODIFIERS=@im=fcitx5
INPUT_METHOD=fcitx5
SDL_IM_MODULE=fcitx5
GLFW_IM_MODULE=fcitx

这里默认的输入法不好用,但是又不知道搜狗支持wayland不,如果支持可以用:yay -S fcitx5-pinyin-zhwiki fctix5-pinyin-sougou安装试下;

 

接着重启电脑(重启后桌面环境才会生效)

启动后就可以看到进入了桌面环境,其左上角可以看到默认是wayland,账户是上面新建的非root账号;

 

登录进去后发现KDE是英文,可以点击左下角

首页 上一页 2 3 4 5 6 7 下一页 尾页 5/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇centos8-x86_64安装kylinv10-arrc.. 下一篇docker 学习之一 装MySQL 供远程..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目