server
Environment
- Drivers: 390.87
- CUDA 9.0 , cudnn 7.3.0,
- OS: Ubuntu 16.04
Pre-install
sudo apt-get update
sudo apt-get install -y wget vim git cmake unzip unar openssh-server
Anaconda3 (Python3.6)
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-4.2.0-Linux-x86_64.sh O ./anaconda3.sh
bash ./anaconda3.sh -b -p /home/xxx/software/anaconda3
rm ./anaconda3.sh
source ~/.bashrc
pip install protobuf future tqdm sklearn pillow xmltodict dicttoxml
pip install --upgrade pip
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple protobuf future tqdm sklearn pillow xmltodict dicttoxml opencv-python pycocotools
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch==0.4.1 torchvision
singularity 2.4.2
VERSION=2.4.2
wget https://github.com/singularityware/singularity/releases/download/$VERSION/singularity-$VERSION.tar.gz
tar xvf singularity-$VERSION.tar.gz
cd singularity-$VERSION
./configure --prefix=/usr/local
make
sudo make install
bashrc
export PATH=$PATH:/usr/local/cuda-9.0/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda-9.0/lib64
export PATH="/home/xxx/software/anaconda3/bin:$PATH"
alias 'lll'='ls -lah'
alias '..'='cd ..'
alias 'clc'='clear'
vimrc
"去掉vi的一致性"
set nocompatible
"显示行号"
set number
" 隐藏滚动条"
set guioptions-=r
set guioptions-=L
set guioptions-=b
"隐藏顶部标签栏"
set showtabline=0
"设置字体"
set guifont=Monaco:h13
syntax on "开启语法高亮"
let g:solarized_termcolors=256 "solarized主题设置在终端下的设置"
set background=dark "设置背景色"
colorscheme solarized
set nowrap "设置不折行"
set fileformat=unix "设置以unix的格式保存文件"
set cindent "设置C样式的缩进格式"
set tabstop=4 "设置table长度"
set shiftwidth=4 "同上"
set showmatch "显示匹配的括号"
set scrolloff=5 "距离顶部和底部5行"
set laststatus=2 "命令行为两行"
set fenc=utf-8 "文件编码"
set backspace=2
set mouse=a "启用鼠标"
set selection=exclusive
set selectmode=mouse,key
set matchtime=5
set ignorecase "忽略大小写"
set incsearch
set hlsearch "高亮搜索项"
set noexpandtab "不允许扩展table"
set whichwrap+=<,>,h,l
set autoread
set cursorline "突出显示当前行"
set cursorcolumn "突出显示当前列"
"按F5运行python"
map <F5> :Autopep8<CR> :w<CR> :call RunPython()<CR>
function RunPython()
let mp = &makeprg
let ef = &errorformat
let exeFile = expand("%:t")
setlocal makeprg=python\ -u
set efm=%C\ %.%
silent make %
copen
let &makeprg = mp
let &errorformat = ef
endfunction