검색결과 리스트
우분투 원격 접속에 해당되는 글 1건
- 2012.05.02 [Ubuntu12.04] 우분투 12.04 설치 시 가장 먼저 할일 (1) 1
글
[Ubuntu12.04] 우분투 12.04 설치 시 가장 먼저 할일 (1)
1. /etc/apt/source.list 에서 kr.archive.ubuntu.com --> ftp.daum.net 으로 변경하기
변경하는 이유는 프로그램 설치나 업데이트가 원활하게 이루어진다.
kr.archive.ubuntu.com가 안되는 경우에도 ftp.daum.net 잘 되기 때문이다.
# sudo -s
# cd /etc/apt
# cp sources.list sources.list.backup
# vi sources.list
:%s/kr.archive.ubuntu.com/ftp.daum.net/g
wq
# apt-get update
2. SSH 설치 및 FreeNX 설치
SSH Server의 설치는 기존처럼 간단하다.
그러나, FreeNX의 설치는 기존과 크게 다르지 않지만,
NX-Client에서는 조금 다른 설정을 해야한다.
그리고, 마지막으로 NX-Client가 끊어지지 않는 문제가 있다.
그렇지만 뭐, 걍 종료 시켜버리면 되니...
# sudo -s
# apt-get install ssh <--- SSH 서버를 설치한다.
# add-apt-repository ppa:freenx-team/ppa <--- freenx 저장소를 추가한다.
# apt-get update
# apt-get install aptitude
# aptitude install freenx-server <--- aptitude를 이용하여 서버를 설치한다.
다음은 nxserver를 구동시키기 위한 환경을 설정한다. vi 편집기에는 라인번호를 추가 시켰다.
우분투 12.04에서 free-server를 사용하기 위해서는 추가적인 필드를 활성화 시켜주어야 한다.
우분투 12.04에서는 윈도우 관리자로 Unity를 사용하는데 이것이 3D인 모양이다.
옵션 제목이 use unity-2d라고 되어 있다.
# cd /etc/nxserver
# vi node.conf
.................
42 #########################################################################
43 # General FreeNX directives
44 #########################################################################
45
46 # The host name which is used by NX server. It's should be used if it's
47 # different than the default hostname (as returned by `hostname`)
48 SERVER_NAME="$(hostname)" <--- #을 제거한다.
49
50 # The node ip which is used by NX Node in unecnrypted session mode.
51 # Set it if you want to use a specific external ip or the autodetection
52 # is not working.
53 #EXTERNAL_PROXY_IP=""
54
55 # The port number where local 'sshd' is listening.
56 SSHD_PORT=22 <--- #을 제거한다.
.................
59 #########################################################################
60 # Authentication / Security directives
61 #########################################################################
62
63 # Authentication directives
64
65 # This adds the usermode to the possible authentication methods
66 # Usermode means that a user can start the nxserver as his shell
67 # and connect directly to the right server via a custom client.
68 #ENABLE_USERMODE_AUTHENTICATION="0"
69
70 # This adds the passdb to the possible authentication methods
71 #ENABLE_PASSDB_AUTHENTICATION="0"
72
73 # This adds SSH to the possible authentication methods. For it to work sshd
74 # must be set up at localhost accepting password authentication.
75 ENABLE_SSH_AUTHENTICATION="1" <--- #을 제거한다.
76
.................
517
518 # The key that contains the name of the script that starts a gnome session.
519 # It's run when a 'unix-gnome' session is requested by the client.
520 #COMMAND_START_GNOME='gnome-session --session gnome-fallback'
521
522 # Other options is to use unity-2d
523 COMMAND_START_GNOME='gnome-session --session ubuntu-2d' <--- #을 제거한다.
524
525 # The key that contains the name of the script that starts a CDE session.
526 # It's run when a 'unix-cde' session is requested by the client.
527 #COMMAND_START_CDE='xfce4-session'
# cp /var/lib/nxserver/home/.ssh/client.id_dsa.key /etc/nxserver/client.id_dsa.key
# service freenx-server restart
본인은 추가적으로 gnome_shell을 설치했다. 솔직히 왜 설치했는지 모른다.
처음에 nxclient가 접속되지 않아서 맨붕상태에서 저지른 일이라 모른다. ㅡㅡ;
# apt-get install gnome-shell
3. NX-Client 설치
FreeNX Client 프로그램을 설치한다. FreeNX Client는 다음 주소에서 받을 수 있다.
여기서 받을 수 있다. --> http://www.nomachine.com/download.php
다운받아 설치하고 나면, 아래의 그림 처럼 Session 에 서버이름을 만들어주고,
Host 입력 칸에 서버 주소를 적어준다. 그러면 인터넷이 연결된 모든 장소에서도 접근할 수 있을 것이다.
Next 버튼을 클릭하여 다음 화면이 나오면
UNIX 와 Custom을 선택한다. 그리고, Settings 버튼을 클릭하여 화면이 뜨면,
Run the following command를 선택한 후 입력 칸에 아래의 문자열을 입력한다.
gnome-session --session=ubuntu-2d
마지막으로 New virtual desktop을 선택한 후 다음으로 넘어간다.
Finish를 클릭하고 다음으로 넘어오면 아래와 같은 화면을 만날 수 있다.
그러면, 먼저 Configure... 버튼을 누르고, 다시 Key... 버튼을 누른 다음
/etc/nxserver/client.id_dsa.key 값을 입력하고 저장하면 된다.
이제 아이디와 패스워드를 입력하고 Login 버튼은 누르면
당신의 우분투 서버와의 감동적인 만남을 어디서든 할수가 있다.
# cat /etc/nxserver/client.id_dsa.key
-----BEGIN DSA PRIVATE KEY-----
MIIBugIBAAKBgQCnNEouOB7BauvWdP9xfodGONN8URGx34Xx7/09tJzSmeOS8UAE
sxaoTYVmVwPFjgeEhhwcyYSlxUQM2pop6PqoPZflY/9RtJNtT2tPwbyTc8AepMMN
oplobeJcFrTY4VZSAgaU5gQc4hTU/2EGAfW++7hFbfrqgX5ZJyM94CUhHQIVAKSb
uyl48J23INDKUCfT5nmxiWgVAoGAOk5s62IyobwgNPRdkbitLuaZhCMAHTqi5rnQ
.....이것은 본인의 서버에서 생성한 것이므로 이거 넣어봐야 소용없다.......
uyl48J23INDKUCfT5nmxiWgVAoGAOk5s62IyobwgNPRdkbitLuaZhCMAHTqi5rnQ
OQsT/vRC4j/ySq88n9roC33gIQUHZIfAlP0VBw5bLXxoG+F6jlCOgWnEwrtpAWZy
f+DkHIoCgYBHqrhu1NwksdNRCGKMk5Pd3bAkiYnLOa8buk3LNmNbtCHlxwewy1om
sxaoTYVmVwPFjgeEhhwcyYSlxUQM2pop6PqoPZflY/9RtJNtT2tPwbyTc8AepMMN
XTgzwwUuHDZIbfhNCz60GQ4/webLBFmZ79g44f/898zkAeLES5SqugIUM34AAyAc
EcqvrVcaIEfqHkPvUXk=
-----END DSA PRIVATE KEY-----
#
마지막으로 우분투 12.04 또는 11.04 이하의 버전을 사용하는 사람은 아래의 링크를 참조하면 된다.
ubuntu 10.04 원격접속하기 - SSH, freeNX
-----------------
12.04가 나오기 전에 웹서비스 부분과 DB 및 오라클 설치까지 끝내고자 했으나, 바쁜일이 많아 더 이상 포스트할 수 없었다.
그렇지만, 12.04가 나온 시점에 10.04를 설명하는 것은 좀 뭐시기하여 12.04로 다시 하고자 한다.