2014年3月30日 星期日
ubuntu 14.04 安裝 CUDA
Nvidia CUDA 官網 https://developer.nvidia.com/cuda-downloads
Ctrl+Alt+F1 (F1~F6都可) 進到 console 畫面候登入
======
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_7.0.28_linux.run
sudo service lightdm stop
sudo modprobe -r nouveau
sudo echo "blacklist nouveat" >> /etc/modprobe.d/blacklist.conf
sudo sh NVIDIA-cuda.xxxx.run
======
2014年3月29日 星期六
vim cscope tmux 設定
# install
sudo update
sudo apt-get update install vim tmux cscope
# get cscope configuration
wget https://raw.githubusercontent.com/vim-scripts/autoload_cscope.vim/master/plugin/autoload_cscope.vim -O .cscope_maps.vim
====== add below codes to .vimrc
source ~/.cscope_maps.vim
set nu
set ai
syntax on
set tabstop=4
set shiftwidth=4
set hlsearch
set ic
======
====== add below codes to .tmux.conf
##### env setting #####################################
set -gw xterm-keys on
set -g status-left-length 32
set -g status-right-length 150
set -g window-status-activity-attr bold
set -g allow-rename off
set -g history-limit 30000
set -g status-bg blue
set -g status-fg white
set -g base-index 1
set -g pane-base-index 1
set -s escape-time 0
##### session #########################################
bind-key -n M-d detach-client
##### window ##########################################
bind-key -n C-Right next-window
bind-key -n C-Left previous-window
bind-key -n M-n new-window
bind-key -n M-@ kill-window
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
bind-key -n M-[ copy-mode
##### pane ############################################
unbind-key M-1
unbind-key M-2
unbind-key M-3
unbind-key M-4
unbind-key M-5
bind-key -n M-1 select-pane -t 1
bind-key -n M-2 select-pane -t 2
bind-key -n M-3 select-pane -t 3
bind-key -n M-4 select-pane -t 4
bind-key -n M-5 select-pane -t 5
bind-key -n M-% split-window -h
bind-key -n M-z resize-pane -Z
bind-key -n M-^ split-window
bind-key -n M-q display-panes
bind-key -n M-! kill-pane
======
====== add below codes to .tmux.conf
##### env setting #####################################
set -gw xterm-keys on
set -g status-left-length 32
set -g status-right-length 150
set -g window-status-activity-attr bold
set -g allow-rename off
set -g history-limit 30000
set -g status-bg blue
set -g status-fg white
set -g base-index 1
set -g pane-base-index 1
set -s escape-time 0
##### session #########################################
bind-key -n M-d detach-client
##### window ##########################################
bind-key -n C-Right next-window
bind-key -n C-Left previous-window
bind-key -n M-n new-window
bind-key -n M-@ kill-window
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
bind-key -n M-[ copy-mode
##### pane ############################################
unbind-key M-1
unbind-key M-2
unbind-key M-3
unbind-key M-4
unbind-key M-5
bind-key -n M-1 select-pane -t 1
bind-key -n M-2 select-pane -t 2
bind-key -n M-3 select-pane -t 3
bind-key -n M-4 select-pane -t 4
bind-key -n M-5 select-pane -t 5
bind-key -n M-% split-window -h
bind-key -n M-z resize-pane -Z
bind-key -n M-^ split-window
bind-key -n M-q display-panes
bind-key -n M-! kill-pane
======
訂閱:
文章 (Atom)