Experimental Particle Physics at Kyung hee University

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:docs:useful_setup_for_users [2021/08/15 01:42] – created Junghwan Gohpublic:docs:useful_setup_for_users [2021/08/15 01:54] (current) – [vim 에디터 설정] Junghwan Goh
Line 1: Line 1:
 +====== 유용한 유저 설정 파일 모음 ======
 +<alert>서버 접속시 또는 접속 후 유저에게 유용한 설정 파일 정보를 다룹니다.</alert>
 +
 +===== bashrc파일 =====
 +.bashrc 파일을 설정 해 둘것. 
 +<alert class="alert-warning">아래 내용은 사이트마다 다릅니다. </alert>
 +
 +<code bash>
 +#alias pytorch='singularity run --nv -B /store/hep:/store/hep /store/hep/common/singularity/nvcr_pytorch_19.08-py3__pyG.simg python'
 +
 +[ -f /store/sw/anaconda3/etc/profile.d/conda.sh ] && source /store/sw/anaconda3/etc/profile.d/conda.sh
 +[ -f /cvmfs/cms.cern.ch/cmsset_default.sh ] && source /cvmfs/cms.cern.ch/cmsset_default.sh 
 +</code>
 +===== ssh 설정 파일 =====
 +유저 홈디렉토리 아래 .ssh/config 파일을 만들어 둡니다. 접속 유지 기능과 주요 사이트별 포트, 호스트, 접속 방법 등을 지정할 수 있어 편리합니다.
 +
 +<code>
 +ForwardX11 yes
 +ForwardX11Trusted yes
 +TCPKeepAlive yes
 +ServerAliveInterval 180
 +ServerAliveCountMax 200
 +#PreferredAuthentications publickey,password
 +PreferredAuthentications publickey,keyboard-interactive,password
 +
 +Host hep
 +  Port 2222
 +  HostName hep.khu.ac.kr
 +  #HostName 210.117.211.131
 +  PreferredAuthentications publickey,password
 +  GSSAPIAuthentication=no
 +
 +Host *.cern.ch
 +  Protocol 2
 +  GSSAPIAuthentication no
 +  GSSAPIDelegateCredentials no
 +  #PreferredAuthentications external-keyx,gssapi-with-mic,gssapi,password,keyboard-interactive
 +  PreferredAuthentications password
 +
 +Host fnal.gov
 +  Protocol 2
 +  ForwardAgent yes
 +  GSSAPIAuthentication yes
 +  GSSAPIDelegateCredentials yes
 +  PreferredAuthentications external-keyx,gssapi-with-mic,gssapi
 +
 +Host gsdc
 +  HostName ui20.sdfarm.kr
 +  Port 4280
 +  GSSAPIAuthentication no
 +  PubkeyAuthentication yes
 +  PreferredAuthentications keyboard-interactive,password
 +
 +Host github.com
 +  Hostname ssh.github.com
 +  Port 443
 +  
 +Host kek
 +  HostName login.cc.kek.jp
 +  HostKeyAlias login.cc.kek.jp
 +  ProxyCommand ssh sshcc1.kek.jp -W %h:%p
 +
 +</code>
 +
 ===== git 기본 설정 파일 ===== ===== git 기본 설정 파일 =====
 유저 디렉토리 아래 ~/.gitconfig 파일을 아래와 같이 작성해 두면 git명령어 사용시에 편리한 점이 많습니다.  유저 디렉토리 아래 ~/.gitconfig 파일을 아래와 같이 작성해 두면 git명령어 사용시에 편리한 점이 많습니다. 
Line 21: Line 85:
  default = current  default = current
 </code> </code>
 +
 +===== vim 에디터 설정 =====
 +<alert>에디터 사용자의 취향에 따라 추가하거나 빼서 사용하시면 됩니다.</alert>
 +<code>
 +set nocompatible
 +set noautoindent
 +set term=xterm
 +"set tw=2 ts=2 sts=2 sw=2 expandtab
 +set sts=2 sw=2 ts=2 expandtab
 +set backspace=2
 +</code>
 +

public/docs/useful_setup_for_users.1628991772.txt.gz · Last modified: 2021/08/15 01:42 by Junghwan Goh