window에서 리눅스 컴퓨터 터미널 접속 프로그램은 putty.exe로 하면 된다.
Host Name(or IP address) ***.**.***.*** (Port:****) (IP address : Equip 참고)
Connection type : SSH
리눅스 컴퓨터에 emulator를 깔면 putty로 나중에 접속해도 내부 터미널 emulator에 접속가능하다. 즉 터미널을 끄더라도 내부 emulator가 닫히지 않으므로 안정적인 simulation이 가능하고 multi 가능하다.
install (ubuntu에는 기본 깔려있음-nanolaser1,2,5)
debian lenny-amd64 version (nanolaser3) [1] : id@nanolaser:~$ dpkg -i screen_4.0.3-11+lenny1_amd64.deb
debian wheezy-amd64 version (nanolaser4, 6) : id@nanolaser:~$ apt-get install screen (안되면 apt-get update 후 인스톨)
사용 방법
새로운 emulator 띄우기 : id@nanolaser:~$ screen
기존 emulator 접속하기 : id@nanolaser:~$ screen -rd
특정 emulator 접속하기(#1111) : id@nanolaser:~$ screen -d 1111
emulator 나가기 : Ctrl + a + d
emulator 끝내기 : id@nanolaser:~$ exit
리눅스 컴퓨터 접속 전에 계정을 만들어야 한다. (마스터에게 문의)
id@nanolaser:~$ sudo adduser new_id
처음 접속하면 패스워드를 바꿔준다. (최초 패스워드는 1234)
id@nanolaser:~$ passwd
Enter new UNIX password: *******
Retype new UNIX password: *******
window에서 파일 다운로드 혹은 업로드 할 경우에는 Filezillar client 프로그램을 이용하면 됩니다.
터미널 창으로 접속시 scp 명령어로 원하는 파일을 원하는 linux 컴퓨터로 옮길 수 있다.
예를 들어 main.c 파일을 114.71.250.155 컴퓨터의 내 아이디(id) code 디렉토리에 넣고 싶다면,
id@nanolaser:~$ scp <옵션> <원본 경로 및 파일> <복사 받을 곳 경로 및 파일>
>>
id@nanolaser:~$ scp -P 7777 main.c id@114.71.250.155:code/
code_test 라는 디렉토리 전체를 복사하고 싶다면,
id@nanolaser:~$ scp -P 7777 -r code_test id@114.71.250.155:code/
linux 명령어에 관한 내용은 사이트 참고하세요.