2018年6月25日 星期一

[VirtualBox]在MAC環境下的vm ubuntu裡面掛載共享資料夾

先安裝VirtualBox套件工具包

1. Update system's packages
$ sudo apt-get update 
2. install virtual box guest additions (referenced from here)
$ sudo apt-get install virtualbox-guest-additions-iso
3. Now install guest additional package (Crucial step! People generally miss this which creates an error “Unknown file type “vboxsf”)
$ apt-get install virtualbox-guest-utils
之後在VirtualBox主程式裡面設定掛載的資料夾名稱,設定->共用資料夾->加入新的共用資料夾。

現在就可以進行掛載,掛載語法為:
$ mount -t vboxsf shared /home/shared_folder;

2018年1月10日 星期三

[linux]iTerm2顏色配置

$ vim ~/.bash_profile

輸入以下內容

# enables color in the terminal bash shell
export CLICOLOR=1
# sets up the color scheme for list
export LSCOLORS=ExFxCxDxBxegedabagacad
# enables color for iTerm
export TERM=xterm-color
export TERM="xterm-color"
PS1='\[\e[0;33m\]\u\[\e[0m\]@\[\e[0;32m\]\h\[\e[0m\]:\[\e[0;34m\]\w\[\e[0m\]\$ '
# sets up proper alias commands when called
alias ls='ls -vG'
alias ll='ls -al'
alias la='ls -a'
alias vi='vim'

Google Analytics初學者入門簡介