검색결과 리스트
nxserver 설치에 해당되는 글 2건
- 2012.05.02 [Ubuntu12.04] 우분투 12.04 설치 시 가장 먼저 할일 (1) 1
- 2012.02.17 05. 원격 접속하기 - SSH, freeNX [NAS 구축기][ubuntu 10.4]
글
[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로 다시 하고자 한다.
설정
트랙백
댓글
글
05. 원격 접속하기 - SSH, freeNX [NAS 구축기][ubuntu 10.4]
SSH의 설치는 매우 간단하다.
username@homesvr:~$ sudo -s
접속을 확인하기 위해서는 Putty와 같은 프로그램을 사용하면 된다.
Host Name 에는 IP주소를 넣어도 되고, 공유기설정편에서
포트포워딩과 DDNS를 설정했다면 그 주소를 사용해도 된다.
Host Name을 입력하고 [열기]를 클릭하면 답답한 까만 화면이 커서를 껌뻑이며 기다릴 것이다.
그래도 이 녀석은 생각보다 아름다운 놈이니 사랑해 주도록 하자.
이 프로그램은 여기 https://bitbucket.org/daybreaker/iputty/downloads 또는
http://www.chiark.greenend.org.uk/~sgtatham/putty/ 여기서 다운 받을 수 있다.
계속 이어서 freeNX를 설치한다. 방법은 아래와 같다.
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv F3A662B57D580D3A2E98E5152A8E3034D018A4CE
gpg: requesting key D018A4CE from hkp server keyserver.ubuntu.com
gpg: key D018A4CE: public key "Launchpad PPA for FreeNX Team" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
root@Team4Svr:~#
받기:1 http://kr.archive.ubuntu.com lucid Release.gpg [189B]
기존 http://kr.archive.ubuntu.com/ubuntu/ lucid/main Translation-ko
기존 http://kr.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-ko
기존 http://kr.archive.ubuntu.com/ubuntu/ lucid/universe Translation-ko
기존 http://kr.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-ko
받기:2 http://kr.archive.ubuntu.com lucid-updates Release.gpg [198B]
무시http://kr.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-ko
무시http://kr.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-ko
무시http://kr.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-ko
무시http://kr.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-ko
기존 http://kr.archive.ubuntu.com lucid Release
기존 http://kr.archive.ubuntu.com lucid-updates Release
기존 http://kr.archive.ubuntu.com lucid/main Packages
기존 http://kr.archive.ubuntu.com lucid/restricted Packages
기존 http://kr.archive.ubuntu.com lucid/main Sources
기존 http://kr.archive.ubuntu.com lucid/restricted Sources
기존 http://kr.archive.ubuntu.com lucid/universe Packages
기존 http://kr.archive.ubuntu.com lucid/universe Sources
기존 http://kr.archive.ubuntu.com lucid/multiverse Packages
기존 http://kr.archive.ubuntu.com lucid/multiverse Sources
기존 http://kr.archive.ubuntu.com lucid-updates/main Packages
기존 http://kr.archive.ubuntu.com lucid-updates/restricted Packages
기존 http://kr.archive.ubuntu.com lucid-updates/main Sources
기존 http://kr.archive.ubuntu.com lucid-updates/restricted Sources
기존 http://kr.archive.ubuntu.com lucid-updates/universe Packages
기존 http://kr.archive.ubuntu.com lucid-updates/universe Sources
기존 http://kr.archive.ubuntu.com lucid-updates/multiverse Packages
기존 http://ppa.launchpad.net lucid Release.gpg
무시http://ppa.launchpad.net/freenx-team/ppa/ubuntu/ lucid/main Translation-ko
기존 http://kr.archive.ubuntu.com lucid-updates/multiverse Sources
기존 http://ppa.launchpad.net lucid Release
기존 http://ppa.launchpad.net lucid/main Packages
기존 http://security.ubuntu.com lucid-security Release.gpg
무시http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-ko
무시http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-ko
무시http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-ko
무시http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-ko
기존 http://security.ubuntu.com lucid-security Release
기존 http://security.ubuntu.com lucid-security/main Packages
기존 http://security.ubuntu.com lucid-security/restricted Packages
기존 http://security.ubuntu.com lucid-security/main Sources
기존 http://security.ubuntu.com lucid-security/restricted Sources
기존 http://security.ubuntu.com lucid-security/universe Packages
기존 http://security.ubuntu.com lucid-security/universe Sources
기존 http://security.ubuntu.com lucid-security/multiverse Packages
기존 http://security.ubuntu.com lucid-security/multiverse Sources
내려받기 387바이트, 소요시간 5초 (74바이트/초)
패키지 목록을 읽는 중입니다... 완료
root@Team4Svr:~#
명령어 3번만 입력하면 설치는 간단히 끝난다. 그러나 손은 조금더 봐야 한다.
간략히 말해, 설정파일을 열어서 3군데를 편집하고, 키파일을 만들어 주면 nxserver를 사용할 수 있는 상태가 된다.
# General FreeNX directives
#########################################################################
# The host name which is used by NX server. It's should be used if it's
# different than the default hostname (as returned by `hostname`)
SERVER_NAME="$(hostname)" <--- # 제거
# The node ip which is used by NX Node in unecnrypted session mode.
# Set it if you want to use a specific external ip or the autodetection
# is not working.
#EXTERNAL_PROXY_IP=""
# The port number where local 'sshd' is listening.
SSHD_PORT=22 <--- # 제거
#########################################################################
# Authentication / Security directives
#########################################################################
# Authentication directives
# This adds the usermode to the possible authentication methods
# Usermode means that a user can start the nxserver as his shell
# and connect directly to the right server via a custom client.
#ENABLE_USERMODE_AUTHENTICATION="0"
# This adds the passdb to the possible authentication methods
#ENABLE_PASSDB_AUTHENTICATION="0"
# This adds SSH to the possible authentication methods. For it to work sshd
# must be set up at localhost accepting password authentication.
ENABLE_SSH_AUTHENTICATION="1" <--- # 제거
# This adds SU to the possible authentication methods. For it to work the
# "nx" user must be in the wheel (RedHat, Fedora) or the users group (SUSE)
# and the user logging in must have a valid shell that accepts the -c
# parameter.
#ENABLE_SU_AUTHENTICATION="0"
/var/lib/nxserver/home/.ssh/client.id_dsa.key
on their computers.
root@Team4Svr:/etc/nxserver# cp /var/lib/nxserver/home/.ssh/client.id_dsa.key client.id_dsa.key
root@Team4Svr:/etc/nxserver# ls
client.id_dsa.key node.conf node.conf.d nxacl nxcheckload nxshadowacl
root@Team4Svr:/etc/nxserver# cat client.id_dsa.key
-----BEGIN DSA PRIVATE KEY-----
MIIBuwIBAAKBgQD4guNuz7zayUfzNlroQ+lGbmM3kbJSPALDWDsN1t2gop3i5xK2
SV1TaoBGNlsL4IWqn0bGjSZ3ulNKkohO20ltGG3oId6jDlSbc2IvhBrybNonc6rs
x/63NcXnp8rN1WeuUrHj+uvsgsHiBGc7m5Mb7Jub31g6ndBgUjaIqLQMFwIVANZy
CDqEGS9NlGdeSO5D2pNDaCVxAoGAFlsuFWVJiRN9boAw46zjlp/TsyfQE5jjakNv
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
UYomTy3IBJgJCOZS7KY9rqeDoB05RNsD3Lmh4zGJt2wy8olXYWA36mHwGwovrwJl
/2vGdiMCgYEAsE4q3qOQhxS3IiMcSlRXRCHHfL+WXmAwhZo6y+Xf9hU5l69txoC8
Nr1tmkAqqf7K73MiXgC8DWgbtMn5M2nWqOiR4bmGt369mWsbQJvWyLAEU4En5q/4
DB0Y2+C9Ho3KrCHKZxINT8Gfr31p3QmEBRXhdu31XKzNo3KUOBjznIECFBlZ6Z0F
coC8jtYnYzVGV9uadhsU
-----END DSA PRIVATE KEY-----
root@Team4Svr:/etc/nxserver#
freenx-server start/running
root@Team4Svr:/etc/nxserver#
맨 마지막에 Client.id_dsa.key의 내용은 잘 복사해 둬야 한다.
이것은 FreeNX Client를 이용한 접속에서 사용해야 한다.
설치가 끝나면 FreeNX Client 프로그램을 설치하자.
FreeNX Client는 다음 주소에서 받을 수 있다.
여기서 받을 수 있다. --> http://www.nomachine.com/download.php
다운받아 설치하고 나면, 아래의 그림처럼 Session 에 서버이름을 만들어주고,
Host 입력 칸에 서버 주소를 적어준다. 포트포워딩과 DDNS를 설정했으며, 그 주소를 적어 주어도 된다.
그러면 인터넷이 연결된 모든 장소에서도 접근할 수 있을 것이다.
Next 버튼을 클릭하여 다음 화면이 나오면 자신의 환경에 맞는 desktops을 선택하면 된다.
우분투 10.04는 기본이 GNOME이다. 선택을 완료했으면 다시 Next를 클릭한다.
Finish를 클릭하고 다음으로 넘어오면 아래와 같은 화면을 만날 수 있다.
그러면, 먼저 Configure... 버튼을 누르고, 다시 Key... 버튼을 누른 다음
nxserver 서버 설치 마지막 단계에서 복사해둔 client.id_dsa.key 값을 입력하고 저장하면 된다.
이제 아이디와 패스워드를 입력하고 Login 버튼은 누르면
당신의 우분투 서버와의 감동적인 만남을 어디서든 할수가 있다.