How to use archlinux: Difference between revisions

From 清冽之泉
Jump to navigation Jump to search
Created page with "== 配置微调 == <syntaxhighlight lang="bash" line> # .bashrc 强化 export EDITOR=emacs alias s='ls -hl' alias pn='sudo pacman -Syu' alias pi='sudo pacman -S' alias pr='sudo pacman -Rns' alias pss='pacman -Ss' alias eb='emacs ~/.bashrc' alias sb='source ~/.bashrc' alias sp='poweroff' alias sr='reboot' # 加入 sudo sudo visudo qlzq ALL=(ALL) NOPASSWD:ALL sudo nano /etc/default/grub sudo grub-mkconfig -o /boot/grub/grub.cfg # 令中文不显示成方框 sudo pacman -..."
 
No edit summary
Line 1: Line 1:
== 配置微调 ==
== .bashrc 强化 ==
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" line>
# .bashrc 强化
export EDITOR=emacs
export EDITOR=emacs
alias s='ls -hl'
alias s='ls -hl'
Line 12: Line 11:
alias sp='poweroff'
alias sp='poweroff'
alias sr='reboot'
alias sr='reboot'
</syntaxhighlight>


# 加入 sudo
== 关掉开机等待 ==
sudo visudo
<syntaxhighlight lang="bash" line>
qlzq ALL=(ALL) NOPASSWD:ALL
sudo nano /etc/default/grub
sudo nano /etc/default/grub
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo grub-mkconfig -o /boot/grub/grub.cfg
</syntaxhighlight>


# 令中文不显示成方框
== 令中文不显示成方框 ==
sudo pacman -S wqy-microhei
<syntaxhighlight lang="bash" line>
sudo pacman -S wqy-microhei  
sudo nano /etc/locale.gen
sudo nano /etc/locale.gen
去掉 zh_CN.UTF-8 UTF-8 前的 # 号
去掉 zh_CN.UTF-8 UTF-8 前的 # 号
sudo locale-gen
sudo locale-gen
</syntaxhighlight>


# 使 Emacs 字号更大
== 安装中文输入法 ==
# emacs ~/.emacs.d/init.el
<syntaxhighlight lang="bash" line>
(set-face-attribute 'default nil :height 160)
(setq inhibit-startup-message t)
 
# 安装中文输入法
sudo pacman -S ibus-rime
sudo pacman -S ibus-rime
ibus-setup
ibus-setup
</syntaxhighlight>


== xfce4 调试 ==
<syntaxhighlight lang="bash" line>
# 这是针对 xfce4 下 ibus-rime 的调试
# 设置 ibus-rime 依赖的环境变量
# 设置 ibus-rime 依赖的环境变量
# 把以下放入 .bashrc
# 把以下放入 .bashrc
Line 41: Line 43:
export QT_IM_MODULE=ibus
export QT_IM_MODULE=ibus
</syntaxhighlight>
</syntaxhighlight>
== kde 调试 ==
在系统设置 Input 里调 ibus-rime。

Revision as of 16:41, 7 May 2025

.bashrc 强化

export EDITOR=emacs
alias s='ls -hl'
alias pn='sudo pacman -Syu'
alias pi='sudo pacman -S'
alias pr='sudo pacman -Rns'
alias pss='pacman -Ss'
alias eb='emacs ~/.bashrc'
alias sb='source ~/.bashrc'
alias sp='poweroff'
alias sr='reboot'

关掉开机等待

sudo nano /etc/default/grub
sudo grub-mkconfig -o /boot/grub/grub.cfg

令中文不显示成方框

sudo pacman -S wqy-microhei 
sudo nano /etc/locale.gen
去掉 zh_CN.UTF-8 UTF-8 前的 # 号
sudo locale-gen

安装中文输入法

sudo pacman -S ibus-rime
ibus-setup

xfce4 调试

# 这是针对 xfce4 下 ibus-rime 的调试
# 设置 ibus-rime 依赖的环境变量
# 把以下放入 .bashrc
ibus-daemon -drx
export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

kde 调试

在系统设置 Input 里调 ibus-rime。