리눅스를 처음 접하면 많은 부분이 낯설게 느껴집니다. 하지만 리모트 접속을 통해 사용횟수가 늘면 늘수록 다양한 매력에 빠져들게 됩니다. (linux_connection 접속방법 안내)
현재 여러개의 유료/무료 리눅스 OS 들이 있는데, 연구실에서는 그 중 Ubuntu 나 Debian 을 사용하고 있습니다. (Debian 참고 자료: [1])
연구 그룹에서는 FDTD 및 PWE(MPB 프로그램기반)을 리눅스에서 계산하고 있습니다. (참고 : install&setting)
현재 그룹내에 사용하는 계산용 컴퓨터는 6대가 있고 각각에 linux 및 FDTD를 사용할 수 있습니다.(참고 : Equip)
학생들(student)
SSH type 으로 접속 : ip address 는 Equip#Computer_system 에서 확인 (port 7777)
터미널 접속 시 id/ pw가 필요함 > 관리자에게 문의
원격으로 접속한 컴퓨터에서 terminal 창을 띄우는 방법
참고 사이트 :[2]
background 명령이 아닌 screen 상에서 계속 계산을 monitor 할 수 있음
터미널을 닫더라도 계속 계산이 진행되고 있음.
사용 방법
(case 1) id@com:~$ screen // 새롭게 screen을 만듬
(case 2) id@com:~$ screen -rd // 기존의 열어둔 screen을 붙인다
(case 3) id@com:~$ screen -r 1234 // 기존 열어둔 screen 중 1234 번 screen을 붙인다
screen 에서 나오는 방법
(case 1) Ctrl + a + d // screen 을 중단하지 않고 빠져나옴 (나중에 다시 붙이기 가능)
(case 2) id@com:~$ exit // screen 을 중단하고 빠져나옴
screen이 먹통이 될 때 종료하는 방법
1. id@com:~$ screen -ls로 리스트 보고
2. id@com:~$ screen -r name 쳐서 붙이고
3. 화면 상에서 Ctrl+a 누르고 :quit 치면...screen이 종료됨.
Edit a file in terminal window (putty connection : see linux_connection)
1. open a file.txt id@com:~$ vi file.txt
2. change the mode as "editing" type "a" or "i" and Enter Key
3. modify the file by typing use backspace and arrow et. al.
4. exit the edit mode press "Esc" key
5. save and close the file press ":wq"
6. or quit to edit file press "Esc" key and ":q!"
(기타 참고 vi)
환경 설정 (vi 편집시 color on)
home directory (.bashrc가 있는 곳)에 .vimrc를 만들어 아래 내용("syntax on")을 붙여 넣고 세이브 한 후 껐다 재접속한다.
id@com:~$ vi ~/.vimrc
syntax on
nano 편집기는 일반 키가 동작하는 편한 편집기임. 저장시 Ctrl + X 후 save 가능.
id@com:~$ nano file.type
참고 사이트 [3]
(turn off immediately) $ sudo shutdown -h now or $ sudo shutdown -h 0
(shutdown compute at specific time) $ sudo shutdown -h 18:45 "Server is going down for maintenance"
(reboot computer)$ sudo reboot or $ sudo shutdown -r 0
(cancel shutdown)$ shutdown -c
linux 각종 팁에 관한 내용은 사이트 참고하세요.