Uubuntu20.04 系统配置

一、 安装浏览器

  • 安装Edge浏览器

  • 安装网络工具
    工具在手,天下我有!
    下载地址

  • VsCode安装和更新

    1
    2
    3
    4
    5
    6
    7
    8
    # 安装
    wget http://fishros.com/install -O fishros && . fishros

    #先更新源
    sudo apt-get update

    #再安装vscode
    sudo apt-get install code

二、配置终端

zsh配置

三、软件、环境等配置

1. ROS2配置

ROS2一键安装教程

2. 深度学习环境配置

(1) CUDA安装

1
2
3
4
5
6
7
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.0.0/local_installers/cuda-repo-ubuntu2004-12-0-local_12.0.0-525.60.13-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2004-12-0-local_12.0.0-525.60.13-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2004-12-0-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda

(2) Conda环境配置

  • 关闭自动激活的base环境
1
conda config --set auto_activate_base false

(3) Git配置

1
2
3
4
5
6
7
8
9
10
11
12
git安装与卸载
apt-get install git apt-get remove git

git配置
配置用户名
git config --global user.name “zl”
配置邮箱
git config --global user.email “zlsy@mail.ustc.edu.cn”
查看配置信息
git config --global --list
生成公钥
ssh-keygen -t rsa -C "zlsy@mail.ustc.edu.cn"

(4) pip镜像源配置

  • 临时使用pip镜像源
1
sudo pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
  • 永久配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mkdir ~/.pip  #创建一个名为.pip的文件夹
cd ~/.pip #进入创建的文件夹
touch pip.conf #创建pip.conf
sudo gedit ~/.pip/pip.conf #编辑文件

复制下面的内容到文件中(配置的豆瓣源,也可以配置别的)
[global]
index-url = https://pypi.mirrors.ustc.edu.cn/simple/
[install]
trusted-host=pypi.mirrors.ustc.edu.cn

镜像源推荐
(1)阿里云 https://mirrors.aliyun.com/pypi/simple/
(2)豆瓣https://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 https://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学https://pypi.hustunique.com/

3.软件安装

CoppeliaSim

1
alias vrep='/opt/CoppeliaSim/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04/coppeliaSim.sh'

Mujoco


Uubuntu20.04 系统配置
https://ustc-lizheng.github.io/2024/05/25/ubuntu系统配置/
作者
高山临溪谷
发布于
2024年5月25日
许可协议