2014年12月25日 星期四

[Archlinux][ibus] Install input method into Archlinux


  1. Install ibus
    pacman -S ibus
  2. Install input method package
    pacman -S ibus-rime
  3. Edit order to show which one is the first choice of your input method.
    vim  ~/.config/ibus/rime/default.yaml
    Modify following file to another
    schema_list:
      - schema: luna_pinyin
      - schema: cangjie5
      - schema: luna_pinyin_fluency
      - schema: luna_pinyin_simp
      - schema: luna_pinyin_tw

    schema_list:
      - schema: cangjie5
      - schema: luna_pinyin
      - schema: luna_pinyin_fluency
      - schema: luna_pinyin_simp
      - schema: luna_pinyin_tw
Reference:

[Archlinux][Cinnamon] How to install cinnamon in Archlinux

  1.   pacman -S xorg
  2.   pacman -S xf86-input-synaptics
  3.   Find VGA card
      lspci | grep VGA
  4.   Install VGA driver
      Search all VGA driver
      pacman -Ss | grep xf86-video
      sudo pacman -S xf86-video-vesa (virtualbox VGA driver)
  5.   Install startx command
      pacman -S xorg-xinit
  6.   Install cinnamon theme 
      pacman -S cinnamon
      pacman -S gdm
  7.   Install system management
      pacman -S systemd
  8.   Enable gdm all the time
      sudo systemctl enable gdm
      sudo systemctl start gdm

Reference :

2014年12月9日 星期二

[GitHub] How to clone the code from github

First  :
Make sure the key have post github websit.
Step 1: Check for SSH keys
cd ~/.ssh

Step 2: Generate a new SSH key
ssh-keygen -t rsa -C "your_email@example.com"

Step 3: cat ~/.ssh/id_rsa.pub
ssh-rsa AAAx3NzaC1yc2EAAAABIwAAAQEAsyKnnxxxxF0GUxxkkAkI+41FDLZXRKC6QL/GuzcheyL3tvcUNNG/GyqgBSKOglUz+MvAy9PvObOpd1wVnPvFL/djmtvxxx/do93BCqX2xxvo/5Q3xM8xxxxxxxGJ/kKsWb0+KYi8xxxxxLRKz5FQTlnE8FyungbZxxxCKNqj/3YDV13RxxG61DIJvKxx5Q== your_email@example.com
Copy the above code to following the webpage of github.
1. Go to setting page
2. Press "SSH key"
3. Press "Add SSH key"
4. Paste the above code into the column.


Step 4: Test everything out
ssh -T git@github.com

# Hi username! You've successfully authenticated, but GitHub does not

#####################################################################
Git Clone  :
Go to any folder which you want and copy any SSH clone URL (e.g. "git@github.com:martinh/libconfuse.git").
Type the following command. After that enjoy your travel around the code of open source.
git clone git@github.com:martinh/libconfuse.git

Reference :