离线下载deb包
sudo apt-get -y install 《包名》
sudo apt-get -d install 《包名》
下载deb包的地址为 /var/cache/apt/archives/
1、安装搜狗拼音输入法
sudo apt install fcitx
sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.deb
sudo apt --fix-broken install
reboot
2、安装其他软件:
sudo apt-get install vlc rar unrar tree cmake meld shutter vim
3、安装vscode
sudo dpkg -i code_1.60.0-1630494279_amd64.deb
打开vscode
ctrl+shift+X
Chinese (Simplified) c++python
4、安装pycharm
pycharm-community
5、安装wps,xmind
sudo dpkg -i wps-office_11.1.0.10702_amd64.deb
sudo dpkg -i XMind-for-Linux-amd-64bit-11.0.1-202106220606.deb
6、安装OBS Studio
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt install obs-studio
7、安装peek动态截图
sudo add-apt-repository ppa:peek-developers/stable
sudo apt update
sudo apt install peek
8、安装eigen
sudo apt-get install libeigen3-dev
9、安装anaconda
sh Anaconda3-2021.05-Linux-x86_64.sh
10、pip换源(换为清华源)
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
11、anaconda国内源
第一个就是添加国内源
第二个就是只用自带的默认源
第三个就是只用国内源
三种方法说不定就那个能行,同一个实验室下,一台是使用默认的源没有啥问题,第二台是只能用国内源才能正常下载,defaults 要删除才行。
修改.condarc文件跟下面原理一样只不过换成用vim ~/.condarc
11.1-添加源
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes # 搜索时显示通道地址
conda config --set channel_priority flexible
11.2-恢复默认源
conda config --remove-key channels #移除现有源
conda config --add channels defaults #添加默认源
conda config --add channels bioconda
conda config --add channels conda-forge
11.3-只用国内源
conda config --remove-key channels #移除现有源
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels http://mirrors.ustc.edu.cn/anaconda/pkgs/free/
我这里统一用的都是http的,有的也说可以加上s会好些。反正这东西试来试去最后能用就行。
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
最后还有这个解决环境依赖问题,默认应该是严格,可以换成灵活。
conda config --set channel_priority flexible
conda clean #清理
12、ubuntu默认视频应用安装解码器
sudo apt-get install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
sudo apt-get install ubuntu-restricted-extras
13、pip包
生成requirements.txt文件:pip freeze > requirements.txt
安装requirements.txt依赖:pip install -r requirements.txt



