SSH Tunnel: Local and Remote Port Forwarding

SSH Tunnel: Local and Remote Port Forwarding

About SSH

ssh stands for Secure Shell. It is a protocol used to securely connect to a remote server/system. ssh is secure in the sense that it transfers the data in encrypted form between the host and the client. For deep learning researchers, they usually use ssh to login their remote servers which have high-performance GPUs to train models.

Read More
conda常用命令

conda常用命令

环境相关

  • 查看已有环境
    conda env list

  • 新建环境
    conda create -n env_name [python=3.6]
    新建一个名为env_name的环境,其python版本为3.6

  • 进入环境(对于conda 4.xx)
    conda activate env_name

Read More
Ubuntu无root安装软件

Ubuntu无root安装软件

Linux下非root用户安装软件的一般流程:

  • 下载源代码,通过wget或者url下载;
  • 解压源代码安装包,一般为tar.gz,对应命令为tar -zxvf xxxxx.tar.gz
  • 切换到解压后的目录,运行./configure --prefix=/path/to/install,使用./configure --help可以列出可用选项,其中--prefix就是配置安装目录。例如:./configure --prefix=/home/xxx/.local
  • 编译源码并安装,make -j && make install-j参数是并行编译,提高编译速度;
  • 变更环境变量,在.zshrc或者.bashrc中加入export
Step up to Linux

Step up to Linux

记录Linux的安装与Deep Learning配置过程

安装为Ubuntu单系统

1.准备

  • 下载Ubuntu镜像, 建议下载LTS版本。
    (官网下载速度较慢时考虑清华镜像)
  • 制作启动盘, 建议使用Rufus,操作简单,在制作时要格式化U盘,先做好U盘备份工作。
  • 若要安装双系统,还要清理出一块磁盘空间,参考知乎文章
Read More