This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:docs:useful_setup_for_users [2021/08/15 01:42] – created Junghwan Goh | public:docs:useful_setup_for_users [2021/08/15 01:54] (current) – [vim 에디터 설정] Junghwan Goh | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 유용한 유저 설정 파일 모음 ====== | ||
+ | < | ||
+ | |||
+ | ===== bashrc파일 ===== | ||
+ | .bashrc 파일을 설정 해 둘것. | ||
+ | <alert class=" | ||
+ | |||
+ | <code bash> | ||
+ | #alias pytorch=' | ||
+ | |||
+ | [ -f / | ||
+ | [ -f / | ||
+ | </ | ||
+ | ===== ssh 설정 파일 ===== | ||
+ | 유저 홈디렉토리 아래 .ssh/config 파일을 만들어 둡니다. 접속 유지 기능과 주요 사이트별 포트, 호스트, 접속 방법 등을 지정할 수 있어 편리합니다. | ||
+ | |||
+ | < | ||
+ | ForwardX11 yes | ||
+ | ForwardX11Trusted yes | ||
+ | TCPKeepAlive yes | ||
+ | ServerAliveInterval 180 | ||
+ | ServerAliveCountMax 200 | ||
+ | # | ||
+ | PreferredAuthentications publickey, | ||
+ | |||
+ | Host hep | ||
+ | Port 2222 | ||
+ | HostName hep.khu.ac.kr | ||
+ | #HostName 210.117.211.131 | ||
+ | PreferredAuthentications publickey, | ||
+ | GSSAPIAuthentication=no | ||
+ | |||
+ | Host *.cern.ch | ||
+ | Protocol 2 | ||
+ | GSSAPIAuthentication no | ||
+ | GSSAPIDelegateCredentials no | ||
+ | # | ||
+ | PreferredAuthentications password | ||
+ | |||
+ | Host fnal.gov | ||
+ | Protocol 2 | ||
+ | ForwardAgent yes | ||
+ | GSSAPIAuthentication yes | ||
+ | GSSAPIDelegateCredentials yes | ||
+ | PreferredAuthentications external-keyx, | ||
+ | |||
+ | Host gsdc | ||
+ | HostName ui20.sdfarm.kr | ||
+ | Port 4280 | ||
+ | GSSAPIAuthentication no | ||
+ | PubkeyAuthentication yes | ||
+ | PreferredAuthentications keyboard-interactive, | ||
+ | |||
+ | 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 | ||
+ | |||
+ | </ | ||
+ | |||
===== git 기본 설정 파일 ===== | ===== git 기본 설정 파일 ===== | ||
유저 디렉토리 아래 ~/ | 유저 디렉토리 아래 ~/ | ||
Line 21: | Line 85: | ||
default = current | default = current | ||
</ | </ | ||
+ | |||
+ | ===== vim 에디터 설정 ===== | ||
+ | < | ||
+ | < | ||
+ | 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 | ||
+ | </ | ||
+ |