0%

surface pro + manjaro

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

  1. set the install option

  1. tz(timeZone) = Asia/Shanghai
  2. lang = zh_CN
  3. driver = free/nonfree (专属或者开源)
  4. boot
  1. install with windows


configuration after installing

  1. configure source

    1. sudo pacman-mirrors -i -c China -m rank : choose the top one
    2. sudo pacman-Syy :refresh
    3. add archlinux chinese repository
      vim /etc/pacman.conf —> then add :
      [archlinuxcn]
      Server = https://mirrors.shu.edu.cn/archlinuxcn/$arch
  2. import GPG KEY

    1. sudo pacman -Sy archlinuxcn-keyring
  3. install yaourt and pacaur and vim

  4. update system

    1. sudo pacman -Syu

Some softwares

  1. 搜狗拼音

    1. sudo pacman -S fcitx-sogoupinyin
    2. sudo pacman -S fcitx-im
    3. sudo pacman -S fcitx-configtool
    4. vim ~/.xprofile : add:
      export GTK_IM_MODULE=fcitx
      export QT_IM_MODULE=fcitx
      export XMODIFIERS=”@im=fcitx”
  2. JDK

    1. sudo pacman -R jdk8-openjdk
    2. sudo pacman -R jre8-openjdk
    3. sudo pacman -R jre8-openjdk-headless
    4. yaourt jdk
  3. git

    1. sudo pacman -S git
  4. oh my zsh : the official site[oh_my_zsh][https://github.com/robbyrussell/oh-my-zsh]

    1. yaourt -S zsh
    2. sh -c “$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)”
    3. vim ~/.zshrc
    4. 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

    , 使用zsh替换bash(重启系统后生效)

    chsh -s /bin/zsh

    , 配置zsh

    更换powerline主题:

    到git克隆的powerline-shell目录下,修改config.py中的theme的设置,然后运行install.py

    参考http://www.cnblogs.com/ma6174/archive/2012/05/08/2490921.html

  5. tim

  6. vim configuration

    1. GlobalSettings:/etc/vim/vimrc or /etc/vimrc
    2. persional settings : ~/.vimrc
    3. 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

Welcome to my other publishing channels