排列中国镜像的速度,选择一个。php
sudo pacman-mirrors -i -c China -m rank
/etc/pacman.conf加上:linux
[archlinuxcn] SigLevel=Optional TrustedOnly Server=https://mirrors.ustc.edu.cn/archlinuxcn/$arch
更新:nginx
sudo pacman -Syy && sudo pacman -S archlinuxcn-keyring
sudo pacman -S fcitx-im fcitx-configtool # 输入法看我的,这里装的是谷歌拼音 sudo pacman -S fcitx-googlepinyin #搜狗 #sudo pacman -S fcitx-sogoupinyin #rime #sudo pacman -S fctix-rime #更多输入法使用 #pacman -Ss fcitx #查看
在git
~/.profile
加上github
export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx"
AUR是Arch User Repository的缩写,是Arch/Manjaro用户的社区驱动存储库,yay是用Go编写的Arch Linux AUR帮助工具,能够帮助以自动方式从PKGBUILD安装软件包。web
sudo pacman -S yay
sudo pacman -S google-chrome sudo pacman -S chromium
sudo pacman -S netease-cloud-music
sudo pacman -S git
默认只有vi,没带vim。chrome
sudo pacman -S vim
sudo pacman -S wps-office
sudo pacman -S visual-studio-code
qq能够选择的版本比较多,能够选择wine版的qq,deepinwine版的qq,deepinwine版的tim。这里推荐使用deepinwine的qq或者tim。
直接使用yay或yaourt安装便可:apache
yay -S deepin-wine-qq yay -S deepin-wine-tim
若直接安装失败可使用本地打包安装:vim
git clone https://github.com/countstarlight/deepin-wine-tim-arch.git cd deepin-wine-tim-arch makepkg -si git clone https://github.com/countstarlight/deepin-wine-qq-arch.git cd deepin-wine-qq-arch makepkg -si
微信可使用electronic-wechat或者deepinwine-wechat,推荐后者。visual-studio-code
sudo pacman -S eletronic-wechat yay -S deepin-wine-wechat
若签名出现问题能够加上:
yay -S deepin-wine-wechat --mflags --skipinteg
若deepin-wine-wechat安装失败能够从本地打包安装
git clone https://github.com/countstarlight/deepin-wine-wechat-arch.git cd deepin-wine-wechat-arch makepkg -si
但目前从2.8.0.106-1以上的版本开始大图片发送失败,没办法发送压缩包,推荐使用2.7.1.88-1版本,而且关闭自动更新,戳这里下载,而后安装:
sudo pacman -U deepin-wine-wechat-2.7.1.88-1-x86_64.pkg.tar.xz
yaourt deepin-wine-thunderspeed
若失败的话能够从本地打包安装
git clone https://github.com/countstarlight/deepin-wine-thunderspeed-arch.git cd deepin-wine-thunderspeed-arch makepkg -si
sudo pacman -S deepin-screenshot
对于这种大型的IDE笔者喜欢从官网下载,以PyCharm为例,下载解压移动:
tar -zxvf pycharm-professional-2020.1.1.tar.gz sudo mv pycharm-2020.1.1/* /usr/local/pycharm
而后添加.desktop文件:
sudo vim /usr/share/applications/pycharm.desktop
加上
[Desktop Entry] Name=PyCharm Type=Application Exec=/usr/local/pycharm/bin/pycharm.sh Icon=/usr/local/pycharm/bin/pycharm.svg
sudo pacman -S tomcat9 apache nginx
在
~/.xinitrc
加上
export XMODIFIERS=@im=fcitx export QT_IM_MODULE=fcitx export GTK_IM_MODULE=fcitx
而后在对应的run.sh加上:
env locale=zh_CN export XIM=fcitx export XMODIFIERS="@im=fcitx" export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx
这里的run.sh位于
/opt/deepinwine/apps/Deepin-xxx
下。
# QQ /opt/deepinwine/apps/Deepin-QQ/run.sh # WeChat /opt/deepinwine/apps/Deepin-WeChat/run.sh # Tim /opt/deepinwine/apps/Deepin-Tim/run.sh
env WINEPREFIX="$HOME/.deepinwine/Deepin-QQ" winecfg env WINEPREFIX="$HOME/.deepinwine/Deepin-WeChat" winecfg env WINEPREFIX="$HOME/.deepinwine/Deepin-Tim" winecfg
执行其中一个命令,而后修改dpi:
微信运行后,切换到其余窗口会有一个阴影边框。
对于v2.8.0.133-2以后的版本应该不会出现这个问题,由于自带了shadow.exe,可是不能传输文件与大图片(issue中已有反映,这是一个bug,建议使用2.7版本),对于以前的版本,参照这里的办法,把shadows.exe复制到对应目录:
git clone https://github.com/countstarlight/deepin-wine-wechat-arch.git sudo cp deepin-wine-wechat-arch-master/shadow.exe ~/.deepinwine/Deepin-WeChat/drive_c/
而后修改run.sh:
#修改/opt/deepinwine/apps/Deepin-WeChat/run.sh,能够先备份一下 #找到CallApp(),在env WINEDLLOVERRIDS这一行的末尾加上 & #同时在fi后面加上 if [[ -z "$(ps -e | grep -o 'shadow.exe')" ]]; then env WINEPREFIX="$WINEPREFIX" WINEDEBUG=-msvcrt $WINE_CMD "c:\\shadow.exe" & fi
终端美化固然是用zsh+oh-my-zsh。
默认安装了,没安装的话:
sudo pacman -S zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
须要安装Powerline字体,不难,clone一下,直接安装就行了。
git clone https://github.com/powerline/fonts.git cd fonts ./install.sh
oh-my-zsh的配置文件以下:
~/.oh-my-zsh
其中的themes下有很多主题,具体效果能够来这里查看。
这里推荐使用agnoster与powerlevel9k主题(固然还有一个powerlevel10k主题,感兴趣能够自行github),agnoster已自带,powerlevel9k须要安装:
sudo pacman -S zsh-theme-powerlevel9k git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
而后修改配置文件:
#修改~/.zshrc ZSH_THEME="agnoster" ZSH_THEME="powerlevel9k/powerlevel9k"
zsh替换默认bash:
chsh -s `which zsh`
原来bash的别名在zsh须要从新配置一下,直接在
~/.zshrc
加上原来的alias便可。
笔者用的主题是agnoster,直接使用的话效果不怎么样:
忍不住了,直接去修改配置文件(themes/agnoster-zsh.thene),agnoster的核心函数是这个:
其中prompt_context是用户名与主机名的部分,注释后就不会显示用户名与主机名了,其余也相似,好比prompt_dir是当前工做目录,定位后:
prompt_segment接受两个参数,一个背景,一个前景,其中blue就是上图的那个不怎么好看的深蓝色,CURRENT_FG是前景色,这里是黑色,也就是文字颜色。
通过一番摸索 ,发现能支持十六进制RGB,真香:
因而就没有深蓝色的背景啦:
终端为XFCE Terminal,在系统设置中根据我的须要修改背景壁纸,修改文字颜色等:
总体效果:
仅供参考,一些经常使用别名:
#.bashrc加上 alias m='sudo mkdir -p' #新建文件夹 alias d='cd ~/Desktop && ls' alias rrr='shutdown -r now' alias sss='shutdown now'
使用c代替经常使用的cd,同时执行完以后自动ls一次:
if [ $# -eq 0 ] ; then cd .. && ls else cd $1 && ls fi
若是只是输入一个c,回到上层目录并ls,若是带目录参数,切换到对应目录而且ls。须要加上别名使用:
alias c='source ~/.cd.sh' #脚本文件名为.cd.sh,位于~下
使用r代替rm,无需加上rf参数,使用回收站机制,也就是直接移动。
for i in $*; do mv $i /home/YOUR_USER_NAME/.Trash/`basename $i`_`date +%Y_%m_%d__%H_%M_%S` done
移动的文件名后面加上了时间,回收站位置为用户目录下的.Trash,同时加上别名:
alias r='sudo sh ~/.rm.sh' # 脚本名字为.rm.sh,用户目录下 alias trash='cd ~/.Trash && ls'