1. VS Code 설치

  2. VS Code 왼쪽 bar에 Extensions (Ctrl + Shift + X) > Remote Development install (Remote - WSL, Remote - SSH, Remote - Containers 등이 일괄 설치됨)

    Untitled

  3. 왼쪽 아래 ><(Open a Remote Window) 버튼 클릭

    Untitled

    $\large \rightarrow$

    Untitled

  4. Config file 생성된 본인 계정에 맞게 수정

  5. Connect to Host로 server 접속 (platform : Linux)

    /gallery_[storage]/[username]

  6. 비밀번호 변경

    첫 접속을 하고 난 후에는 계정 비밀번호 변경을 해주어야 한다. 쉬운 비밀번호를 사용할 경우 순식간에 계정이 뚫리고 비트코인 채굴 코드가 돌 수 있으니 반드시 복잡한 (최소 10자이상 + 영문/숫자/특수문자 조합 + 단순한 패턴 지양) 패스워드를 사용하도록 하자.

    LDAP으로 계정이 관리되고 있기에 비밀번호 변경은 passwd가 아닌 아래 커맨드를 사용하여야 한다. 처음에 새 비밀번호 두 번 입력 후 기존 비밀번호 한 번 입력하면 된다.

     ldappasswd -H ldap://manet.snu.vision -x -D "uid=$USER,ou=People,dc=snu,dc=vision" -W -S "uid=$USER,ou=People,dc=snu,dc=vision"
    
  7. server에 Anaconda 설치

    아나콘다(ANACONDA)로 가상환경 설정하기

  8. ~~dotfiles 설치~~

    curl -fsSL [<https://dotfiles.wook.kr/etc/install>](<https://dotfiles.wook.kr/etc/install>) | bash
    chsh -s $(which zsh)
    wget [<https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh>](<https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh>) && sh Anaconda*
    ./anaconda3/bin/conda init zsh && exec zsh
    
    cd .dotfiles && python install.py
    

    → 오류떠서 https://github.com/holman/dotfiles로 설치

  9. 나머지는 mannual 참고

    https://github.com/SNUVL/server-user-manual

  10. 함수 정의 이동 안될 때 market place에서 언어에 맞는 extension pack 설치 서버에 다시 깔아야 함(Python 깔았더니 잘됨)

  11. tmux

    tmux 입문자 시리즈 요약

    Tmux 사용법 - 중단없이 딥러닝 학습하는 방법 · ML감자

  12. server 접속 안될 때 → ctrl+shift+p > remote-ssh: uninstall vscode server on remote

    안되면 putty로 접속 (147.46.215.228 | 23791 | jaekyung.hwang)

    vscode commit id : 6a995c4f4cc2ced6e3237749973982e751cb0bf9

    rm /gallery_louvre/jaekyung.hwang/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9/vscode-remote-lock.jaekyung.hwang.6a995c4f4cc2ced6e3237749973982e751cb0bf9
    
    wget [<https://update.code.visualstudio.com/commit:6a995c4f4cc2ced6e3237749973982e751cb0bf9/server-linux-x64/stable>](<https://update.code.visualstudio.com/commit:6a995c4f4cc2ced6e3237749973982e751cb0bf9/server-linux-x64/stable>) --no-check-certificate
    
    mv stable /gallery_louvre/jaekyung.hwang/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9/vscode.tar.gz
    
    tar xzf /gallery_louvre/jaekyung.hwang/.vscode-server/bin/6a995c4f4cc2ced6e3237749973982e751cb0bf9/vscode.tar.gz --strip-components 1
    
  13. Download google drive files using wget command

    Download Google Drive Files using wget