- 代理设置
- Ubuntu anaconda环境变量设置
- Ubuntu cuda环境变量设置
- conda清华换源
- Ubuntu22.04 开启3389端口远程连接
- vscode python调试的launch.json配置文件
- linux配置免密登录
- screen命令
- nignx正向代理配置
- windows指令
代理设置
windows
1 | set http_proxy=http://192.168.1.140:1080 |
ubuntu
1 | set http_proxy=socks5://192.168.1.140:1080 |
Ubuntu anaconda环境变量设置
1 | sudo gedit ~/.bashrc |
Ubuntu cuda环境变量设置
1 | sudo nano ~/.bashrc |
conda清华换源
1 | conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ |
Ubuntu22.04 开启3389端口远程连接
1 | firewall-cmd --add-port=3389/tcp --permanent |
vscode python调试的launch.json配置文件
1 | { |
linux配置免密登录
本机运行
1 | ssh-keygen -t rsa |
将本机.SSH文件夹下的id_rsa.pub追加到远程主机.ssh文件夹下的authorized_keys文件中
1 | cat id_rsa.pub >> authorized_keys |
screen命令
1 | # 新建窗口 |
nignx正向代理配置
1 | #正向代理转发http请求 |
windows指令
Windows转发wsl
1 | netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=7777 connectaddress=localhost connectport=8888 |
代理设置
1 | set http_proxy=sock5://192.168.31.100:1080 |