(自用)远程主机配置以及相关口令

1.配置环境

  1. configure our university's VPN (off-campus) or connect to our campus networ
  2. remote control : 
    1. Windows : powershell
    2. mac OS or Linux : terminal
  3.    Connect to the assigned server using powershell or terminal by typing command: e.g. ssh INT408_01@10.7.6.69. Password is required.
  4. Configure lab environment 
  • Create your own folder by your name (e.g. xiaoming) under the speficifed directory:
  • if your user account is int408_01, and you are assigned with the first GPU card, then, you need to go to path: /Data_HDD/INT408_21/INT408_01/,by typing:
cd /Data_HDD/INT408_21/INT408_01/
  • and create your folder by typing:
mkdir xiaoming

• Copy the code package to your created own folder by typing:

cp -r /Data_HDD/INT408_21/INT408_public/code/ /Data_HDD/INT408_21/INT408_01/xiaoming/
chmod 777 trainval_net_cifar10.py 
python ./trainval_net_cifar10.py
  • Establish the required Conda environment by typing:
conda create –n int408ass1 python=3.8 
source activate int408ass1 
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch

• If you still cannot create conda environment based on the previous method, you can try to directly copy the conda environment ‘int408ass1’ for lab 1 from public folder to your allocated account by:

conda create –n int408ass1 python=3.8

cp -r /Data_HDD/INT408_21/INT408_public/int408ass1/ /home/your_account/.conda/envs

2. SFTP

可以用来upload和download

  • remote side:(ls cd ...
  • local side: (lls lcd ...)
  • Download command: get
  • Upload command: put
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值