Linux Operation Guide

Add User Authoriation

root mode: su

Add Write Authoriation chmod u+w /etc/sudoers

root ALL=(ALL)ALL Name ALL=(ALL)ALL

#wheel ALL=(ALL)NOPASSWOD:ALL

Minus Write Authoriation

Chmod u-w /etc/sudoers

Add user to group

usermod -G wheel spacey (Haven't practise)

Install package

yum install XXXX

Software List

  • git (yum install git-all)
    • init config
    • according to docs
  • install zsh shell
    • need reboot
  • install oh-my-zsh
    • Reference Link
    • oh-my-zsh install cmd: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh
  • python related
    • make sure python version
    • install pyenv
    • install python
      • in China, you might need a mirror inside to install it.
      • v=2.7.9|wget http://mirrors.sohu.com/python/$v/Python-$v.tar.xz -P ~/.pyenv/cache/;pyenv install $v
      • change version and you can get the mirror from sohu, and if it doesn't work you need to find another one.
      • reference
  • Atom
  • Shell tools
    • tree -> yum install tree

Settings List

  • share folders
    • vm > settings > Options > shared foldes
  • Copy and paste from windows

ChangeLog

20170815 Leon Create