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

发布于:2022-12-25 ⋅ 阅读:(587) ⋅ 点赞:(0)

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
本文含有隐藏内容,请 开通VIP 后查看

网站公告

今日签到

点亮在社区的每一天
去签到