之前的Linux笔记记的东西有点多了,新的文件继续
1. 系统代理
Apt 代理
# /etc/apt/apt.conf
Acquire::http::Proxy "http://127.0.0.1:7890/";
Acquire::https::Proxy "http://127.0.0.1:7890/";
Clash country 地址
wget https://cdn.jsdelivr.net/gh/Dreamacro/maxmind-geoip@release/Country.mmdb
Git 代理
git config --global http.proxy "http://127.0.0.1:7890"
git config --global https.proxy "http://127.0.0.1:7890"
Pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# ~/.pip/pip.conf
[global]
proxy = http://127.0.0.1:7890
Pnpm
sudo apt install -y nodejs npm
sudo npm install -g pnpm
npm config set proxy http://127.0.0.1:7890
npm config set https-proxy http://127.0.0.1:7890
pnpm config set proxy http://127.0.0.1:7890
pnpm config set https-proxy http://127.0.0.1:7890
Zerotier
curl -s https://install.zerotier.com | sudo bash
sudo zerotier-cli join NETWORK_ID
2. Gnome extensions
Simple System Monitor
Gnome clipboard
Transparent Top Bar (Adjustable transparency)
3. Anaconda
保存恢复环境
conda pack -n chatglm -o env_chatglm.tar.gz
conda create -n chatglm --use-local -f env_chatglm.tar.gz
4. 其他
ufw
sudo ufw allow from 192.168.1.100 to any port 12345
sudo ufw delete allow 12345
Ssh
ssh-keygen -t rsa -b 4096 -C "zeknes@163.com"
cat ~/.ssh/id_rsa.pub