ubuntu系统:
apt换源:
sed -i "s/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list
gpg错误:
gpg --keyserver keyserver.ubuntu.com --recv A4B469963BF863CC
gpg --export --armor A4B469963BF863CC | apt-key add -
conda换源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
pip换源:
pip install --user --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
mkdir ~.pip
vim ~.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
pypi 清华大学源:https://pypi.tuna.tsinghua.edu.cn/simple
pypi 腾讯源:http://mirrors.cloud.tencent.com/pypi/simple
pypi 阿里源:https://mirrors.aliyun.com/pypi/simple/
pypi 豆瓣源 :http://pypi.douban.com/simple/
git:
首先需要把整个仓库clone到本地
git clone #"SSH地址"
git branch -a #查看所有分支
git branch "Your branch" #创建分支
git checkout "Your branch" #切换分支
git pull origin "Your branch"
更新git命令:
git add . #上传三件套
git commit -m "xxx"
git push origin "Your branch"
git lfs上传命令:
git lfs track *.pth
git lfs track *.pt
git lfs track *.om
git lfs track *.onnx
git lfs track *.bin
git lfs track *.trt
git lfs track *.rknn
git lfs track *.wk
git lfs track *.caffemodel
git lfs track 文件名
git add .gitattributes
git add .
git commit -m "update model"
git commit -m "update code"
git push -u origin master
子模块上传:
git submodule add http://***************
如果有报错:
git submodule add --force http://***************
git status
git add .
git commit -m "update model"
git commit -m "update code"
git push -u origin master
子模块拉取:
git submodule update --init --recursive
子模块更新:
git submodule update --remote
导入环境变量:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/###/common_nnie_sdk/hi3559/lib
export LD_LIBRARY_PATH
mount:
mount -t nfs -o nolock -o tcp -o rsize=32768,wsize=32768 192.168.51.104:/home/john/data/NNIE/ ###