Ubuntu + Deep Learning (Caffe, PyTorch) 配置参考文献
sudo apt install nvidia-cuda-toolkit
pip install gpustat
watch --color -n1 gpustat -cpu
Q. Error mount: unknown filesystem type exfat on Ubuntu: [Solution can be found here]
A: exFAT filesystem is not installed in Ubuntu by default, so you need to install Exfat filesystem. exFAT is proprietary and patented by Microsoft.
sudo apt-add-repository ppa:relan/exfat sudo apt-get update sudo apt-get install fuse-exfat
If you see the error gpg: “tag:launchpad.net:2008:redacted” not a key ID: skipping during the apt-add-repository step,
then you will need to manually install the signing key and run the apt-get update and apt-get install steps after that:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4DF9B28CA252A784 $ sudo apt-get update
$ sudo apt-get install exfat-fuse exfat-utils
Then, you can check again about your disk to see whether it works. Good Luck.
apt-get update时卡在 waiting for headers,等了好久,最后报出Hash Sum mismatch的错误
解决方法:
rm /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
apt-get update
————————————————
版权声明:本文为CSDN博主「chansonzhang」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/zc123456zzc/article/details/47153913
1.备份原始源文件source.list
桌面打开终端,执行命令:sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.修改源文件sources.list
(1)终端执行命令:sudo chmod 777 /etc/apt/sources.list 更改文件权限使其可编辑;
(2)执行命令: sudo gedit /etc/apt/sources.list 打开文件进行编辑;
(3)删除原来的文件内容,复制下面的任意一个到其中并保存(常用的是阿里源和清华源,推荐阿里源);
|
1 2 3 4 5 6 7 8 9 10 |
|
3.更新源
桌面终端执行命令:sudo apt update 更新软件列表,换源完成。
#####################################################
## 虚拟环境的配置,激活与使用
#####################################################
1. 创建环境并且激活环境:
conda create --name pysot python=3.7
conda activate pysot
创建虚拟环境时,指定虚拟环境的路径:
conda create -p /home/cvpruser/zsf/wangxiao/TIP_convlstmTANet_master/pygan python=3.7
conda activate /home/cvpruser/zsf/wangxiao/TIP_convlstmTANet_master/pygan
2. 安装 其他图像视频处理中常用的依赖项:
## the torch and cuda version should be consistent, or it will show you errors: RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS, when using the RNN model.
conda install numpy pytorch=0.4.1 torchvision cuda92 -c pytorch
pip --default-timeout=60000 install torch==1.5.0+cu92 torchvision==0.6.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html
conda install numpy pytorch=1.2.0 torchvision cuda90 -c pytorch
conda install pytorch=1.2.0 torchvision cudatoolkit=10.0 -c pytorch
pip --default-timeout=6000 install torch==1.3.0+cu100 torchvision==0.4.1+cu100 -f https://download.pytorch.org/whl/torch_stable.html
pip --default-timeout=6000 install opencv-python pyyaml yacs tqdm colorama matplotlib cython tensorboardX
0.1.2, 0.1.2.post1, 0.1.2.post2, 0.1.7.post2, 0.1.8.post1, 0.1.9.post1, 0.1.9 .post2, 0.1.10.post1, 0.1.10.post2, 0.1.11.post4, 0.1.11.post5, 0.1.12.post1, 0.1.12.post2, 0.2.0.post1, 0.2.0.post2, 0.2.0.post3, 0.3.0, 0.3.0.post2, 0.3.0.post3, 0.3.0.post4, 0.3.1, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.2.0, 1.2.0+cpu, 1.2.0+cu92, 1.3.0, 1.3.0+cpu, 1.3.0+cu100, 1.3.0+cu92, 1.3.1, 1.3.1+cpu, 1.3.1+cu100, 1.3.1+cu92, 1.4.0, 1.4.0+cpu, 1.4.0+cu100, 1.4.0+cu92, 1.5.0, 1.5.0+cpu, 1.5.0+cu101, 1.5.0+cu92, 1.5.1, 1.5.1+cpu, 1.5.1+cu101, 1.5.1+cu92, 1.6.0, 1.6.0+cpu, 1.6.0+cu101, 1.6.0+cu92, 1.7.0, 1.7. 0+cpu, 1.7.0+cu101, 1.7.0+cu110, 1.7.0+cu92, 1.7.1, 1.7.1+cpu, 1.7.1+cu101, 1.7.1+cu110, 1.7.1+cu92, 1.7.1+rocm3.7, 1.7.1+rocm3.8, 1.8.0, 1.8.0+cpu, 1.8.0+cu101, 1.8.0+cu111, 1. 8.0+rocm3.10, 1.8.0+rocm4.0.1, 1.8.1, 1.8.1+cpu, 1.8.1+cu101, 1.8.1+cu102, 1.8.1+cu111, 1.8.1+rocm3.10, 1.8.1+rocm4.0.1, 1.9.0, 1.9.0+cpu, 1.9.0+cu102, 1.9.0+cu111, 1.9.0+rocm4. 0.1, 1.9.0+rocm4.1, 1.9.0+rocm4.2
Install Google Chrome:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Install Mac Appearance for Ubuntu system via a single operation: bash ubuntu2mac.sh
#!/bin/bash # Transform Ubuntu 18.04 or Linux Mint 19 to MacBuntu # https://www.noobslab.com/2018/08/macbuntu-1804-transformation-pack-ready.html # If you want to change another version Ubuntu or Linux Mint? # Search MacBuntu for your version on https://www.noobslab.com/search?q=MacBuntu # Setup workspace WORKSPACE=/home/wangxiao/macbuntu mkdir $WORKSPACE # Download MacBuntu OS Wallpapers mkdir $WORKSPACE/wallpapers/ wget -qO- http://drive.noobslab.com/data/Mac/MacBuntu-Wallpapers.zip | busybox unzip - -d $WORKSPACE/wallpapers/ && mv $WORKSPACE/wallpapers/MacBuntu-Wallpapers $WORKSPACE/wallpapers/macbuntu # Download default macOS 5K wallpapers # https://512pixels.net/projects/default-mac-wallpapers-in-5k/ mkdir $WORKSPACE/wallpapers/5k # wget http://512pixels.net/downloads/macos-wallpapers/10-0_10.1.png -P $WORKSPACE/wallpapers/5k cat <<EOF | xargs -P 0 wget -P $WORKSPACE/wallpapers/5k http://512pixels.net/downloads/macos-wallpapers/10-0_10.1.png http://512pixels.net/downloads/macos-wallpapers/10-2.png http://512pixels.net/downloads/macos-wallpapers/10-3.png http://512pixels.net/downloads/macos-wallpapers/10-4.png http://512pixels.net/downloads/macos-wallpapers/10-5.png http://512pixels.net/downloads/macos-wallpapers/10-6.png http://512pixels.net/downloads/macos-wallpapers/10-7.png http://512pixels.net/downloads/macos-wallpapers/10-8.jpg http://512pixels.net/downloads/macos-wallpapers/10-9.jpg http://512pixels.net/downloads/macos-wallpapers/10-10.jpg http://512pixels.net/downloads/macos-wallpapers/10-11.jpg http://512pixels.net/downloads/macos-wallpapers/10-12.jpg http://512pixels.net/downloads/macos-wallpapers/10-13.jpg https://512pixels.net/downloads/macos-wallpapers/10-14-Day.jpg https://512pixels.net/downloads/macos-wallpapers/10-14-Night.jpg http://512pixels.net/downloads/macos-wallpapers/10-15-beta-light.jpg http://512pixels.net/downloads/macos-wallpapers/10-15-beta-dark.jpg EOF # Enter these commands in terminal to get themes, icons and cursors. # Terminal Commands: sudo add-apt-repository ppa:noobslab/macbuntu sudo apt-get update sudo apt-get install macbuntu-os-icons-v1804 sudo apt-get install macbuntu-os-ithemes-v1804 # After installation choose theme, icons and mac cursor from tweak tool. # Uninstall themes and icons # sudo apt-get remove macbuntu-os-icons-v1804 macbuntu-os-ithemes-v1804 # Install Slingscold (Alternative to Launchpad) sudo add-apt-repository ppa:noobslab/macbuntu sudo apt-get update sudo apt-get install slingscold # Install Albert Spotlight (Alternative to Mac Spotlight) sudo add-apt-repository ppa:noobslab/macbuntu sudo apt-get update sudo apt-get install albert # Install Plank Dock sudo apt-get install plank # Install themes for Plank dock sudo apt-get install plank # Install themes for Plank dock sudo add-apt-repository ppa:noobslab/macbuntu sudo apt-get update sudo apt-get install macbuntu-os-plank-theme-v1804 # Uninstall Plank dock themes # sudo apt-get autoremove plank macbuntu-os-plank-theme-v1804 # Install Tweak Tools to change Themes & Icons sudo apt-get install gnome-tweak-tool # Install Monochrome icons for Libreoffice sudo apt-get install libreoffice-style-sifr # Optional # Install macOS fonts # After installation, You can change fonts from Unity-Tweak-Tool, Gnome-Tweak-Tool. wget -O mac-fonts.zip http://drive.noobslab.com/data/Mac/macfonts.zip sudo unzip mac-fonts.zip -d /usr/share/fonts && rm mac-fonts.zip sudo fc-cache -f -v