Config Surface
check the official site , download the ImageWriter in windows
if choose other writer , use DD mode
important : close the SecureBootMode On Surface!!!
push the voice-plus button and powerOn to get into UEFI
plug in the USB
- tz(timeZone) = Asia/Shanghai
- lang = zh_CN
- driver = free/nonfree (专属或者开源)
- boot
configuration after installing
configure source
- sudo pacman-mirrors -i -c China -m rank : choose the top one
- sudo pacman-Syy :refresh
- add archlinux chinese repository
vim /etc/pacman.conf —> then add :
[archlinuxcn]
Server = https://mirrors.shu.edu.cn/archlinuxcn/$arch
import GPG KEY
- sudo pacman -Sy archlinuxcn-keyring
install yaourt and pacaur and vim
update system
- sudo pacman -Syu
Some softwares
搜狗拼音
- sudo pacman -S fcitx-sogoupinyin
- sudo pacman -S fcitx-im
- sudo pacman -S fcitx-configtool
- vim ~/.xprofile : add:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=”@im=fcitx”
JDK
- sudo pacman -R jdk8-openjdk
- sudo pacman -R jre8-openjdk
- sudo pacman -R jre8-openjdk-headless
- yaourt jdk
git
- sudo pacman -S git
oh my zsh : the official site[oh_my_zsh][https://github.com/robbyrussell/oh-my-zsh]
- yaourt -S zsh
- sh -c “$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)”
- vim ~/.zshrc
- source ~/.zshrc :to enable the plugins
安装 powerline fonts
1
2
3
4// 下载powerline fonts项目
git clone https://github.com/powerline/fonts
// 执行安装
./fonts/install.sh配置iTerm
在
Preperence → Profiles → Text → Front
中,
和Preperence → Profiles → Text → Non-ASCII Font
中
改变字体为Sauce Code Powerline
安装powerline(参考https://github.com/banga/powerline-shell)
git clone https://github.com/milkbikis/powerline-shell
cd powerline-shell
./install.py
3, 使用zsh替换bash(重启系统后生效)
chsh -s /bin/zsh
4, 配置zsh
更换powerline主题:
到git克隆的powerline-shell目录下,修改config.py中的theme的设置,然后运行install.py
参考http://www.cnblogs.com/ma6174/archive/2012/05/08/2490921.html
tim
vim configuration
- GlobalSettings:/etc/vim/vimrc or /etc/vimrc
- persional settings : ~/.vimrc
- some command:
set number
syntax on
set showmode
set ecoding=utf-8
set t_Co=256
filetype indent on
set autoindent
set tabstop=3
set expandtab
set cursorline
set wrap
set hlsearch
set ignorecase