<p><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">우분투에서 vncserver를 사용하는 사람이 별로 없는지 관련 자료를 찾는게 쉽지 않다 ..</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">결국 하나 찾아서 성공한 것이 vnc4server 이다.&nbsp;</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">Step 1&nbsp; vncserver 를 위해서 2개의 패키지를 설치해야 한다.&nbsp;</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /></p>
<div style="margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">- xinet&nbsp; (telnet 설치했다면 기본적으로 깔려있을것이다.)<br />- vnc4server<br /><br />** 시냅틱 패키지 관리자를 이용해서 설치할수 있다 다음과 같이 커맨드 창에서 설치도 가능하다&nbsp;<br />
   <div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">sudo apt-get install vnc4server xinetd</div>
   <br /></div>
<p><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">Step&nbsp;</span><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">2</span><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">&nbsp; vnc4server 패스워드 설정&nbsp;</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /></p>
<div style="margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">
   <div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">citylock@ubuntu910:~$ vnc4server&nbsp;<br /><br />You will require a password to access your desktops.<br /><span style="font-weight: bold; color: #e31600;">Password:</span><br style="font-weight: bold; color: #e31600;" /><span style="font-weight: bold; color: #e31600;">Verify:</span><br style="font-weight: bold; color: #e31600;" />New 'ubuntu910:1 (citylock)' desktop is&nbsp;<span style="font-weight: bold; color: #e31600;">ubuntu910:1</span><br /><br />Creating default startup script /home/citylock/.vnc/xstartup<br />Starting applications specified in /home/citylock/.vnc/xstartup<br />Log file is /home/citylock/.vnc/ubuntu910:1.log<br /><br />citylock@ubuntu910:~$&nbsp;<span style="font-weight: bold; color: #e31600;">vnc4server -kill :1</span><br /></div>
   <br />- vnc 클라이언트에서 접속할 패스워드 입력&nbsp;<br />- ubuntu910:1 에서&nbsp;<span style="font-weight: bold; color: #e31600;">:1</span>&nbsp;은 vncserver의 display 번호이다. 연결시 필요한 번호라 기억해 줘야 한다.&nbsp;<br />-&nbsp;<span style="font-weight: bold; color: #e31600;">vnc4server -kill :1&nbsp;</span>다음 설정을 위해서 vnc4server를 중지 시킨다.&nbsp;<br /><br />참고로 패스워드를 설정하면 ~/,vnc/ 에 아래과 같은 파일이 생성된다.&nbsp;<br />
   <div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">citylock@ubuntu910:~/.vnc$ ls -al<br />합계 20<br />-rw-------&nbsp; 1 citylock citylock&nbsp;&nbsp;&nbsp; 8 2010-01-29 09:37 passwd&nbsp;&nbsp;<span style="font-weight: bold; color: #e31600;">(패스워드)</span><br />-rw-r--r--&nbsp; 1 citylock citylock 1442 2010-01-29 09:42 ubuntu910:1.log<br />-rwxr-xr-x&nbsp; 1 citylock citylock&nbsp; 334 2010-01-29 09:39 xstartup&nbsp;<span style="font-weight: bold; color: #e31600;">(vnc4server 설정파일)</span><br />citylock@ubuntu910:~/.vnc$&nbsp;<br /></div>
   <br /></div>
<div style="margin: 0px; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;"><br />Step&nbsp;3&nbsp; xstartup 설정 변경<br /></div>
<div style="margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">(before)<br />
   <div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">#!/bin/sh<br /># Uncomment the following two lines for normal desktop:<br />#unset SESSION_MANAGER<br />#exec /etc/X11/xinit/xinitrc<br />[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br />[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br />xsetroot -solid grey<br />vncconfig -iconic &amp;<br />xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;<br />twm &amp;</div>
   &nbsp;<br />(after)<br />
   <div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">#!/bin/sh<br /># Uncomment the following two lines for normal desktop:<br /><font color="#e31600"><strong>unset SESSION_MANAGER<br /></strong></font><font color="#e31600"><strong>exec /etc/X11/xinit/xinitrc<br /></strong><br /></font><strong><font color="#e31600">gnome-session &amp;</font></strong><br /><br style="color: #e31600;" />[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br />[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br /><span style="font-weight: bold;">#xsetroot -solid grey</span><br style="font-weight: bold;" /><span style="font-weight: bold;">#vncconfig -iconic &amp;</span><br style="font-weight: bold;" /><span style="font-weight: bold;">#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;</span><br style="font-weight: bold;" /><span style="font-weight: bold;">#twm &amp;</span></div>
   <br /><br /></div>
<div style="margin: 0px; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">Step&nbsp;4&nbsp; /etc/X11/xinit/xinitrc 파일의 권한 변경 (실행가능파일)<br /></div>
<div style="margin: 0px 0px 0px 4em; padding: 0px; color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">
   <div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">sudo chmod 755 /etc/X11/xinit/xinitrc</div>
   </div>
<p><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">Step&nbsp;</span><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">5&nbsp; vnc4server 실행&nbsp;</span><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;"><br /></span></p>
<div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">citylock@ubuntu910:~$ vnc4server&nbsp;<br />New 'ubuntu910:1 (citylock)' desktop is&nbsp;<font color="#e31600"><strong>ubuntu910:1</strong></font><br />Starting applications specified in /home/citylock/.vnc/xstartup<br />Log file is /home/citylock/.vnc/ubuntu910:1.log<br /></div>
<p><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;"><br />Step 6 vnc 클라이언트 접속&nbsp;<br /></span></p>
<div class="imageblock" style="margin: 0px; padding: 0px; display: inline;"><img src="https://img1.daumcdn.net/thumb/R720x0.q80/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile26.uf.tistory.com%2Fimage%2F16378D124B623BC7363A77" class="img_thumb" style="border: 0px none; vertical-align: top; display: inline; max-width: 100%; height: auto; margin: 0px auto 10px;" /></div>
<p><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;"><br /><br /></span></p>
<div class="imageblock" style="margin: 0px; padding: 0px; display: inline;"><img src="https://img1.daumcdn.net/thumb/R720x0.q80/?scode=mtistory&amp;fname=http%3A%2F%2Fcfile23.uf.tistory.com%2Fimage%2F18378D124B623BC837AE34" class="img_thumb" style="border: 0px none; vertical-align: top; display: inline; max-width: 100%; height: auto; margin: 0px auto 10px;" /></div>
<p><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;"><br /><br /><br />(참고)&nbsp;<br />- vnc4server 중지<br /></span></p>
<div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">citylock@ubuntu910:~/.vnc$ vnc4server -kill :1<br />Killing Xvnc process ID 2591<br />citylock@ubuntu910:~/.vnc$&nbsp;<br /></div>
<p><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;"><br />- vnc4server 실행확인 방법<br /></span></p>
<div class="txc-textbox" style="margin: 20px 0px !important; padding: 10px; border: 1px solid rgb(193, 193, 193); background-color: #eeeeee;">citylock@ubuntu910:~/.vnc$ netstat -ntl<br />Active Internet connections (only servers)<br />Proto Recv-Q Send-Q Local Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Foreign Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><span style="font-weight: bold; color: #e31600;">tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0.0.0.0:5901&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp; (&nbsp;&nbsp;세션 번호에 따라서 5901 번부터 할당된다. )&nbsp;</span><br />tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0.0.0.0:6001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />tcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 127.0.0.1:631&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.0.0.0:*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />tcp6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 :::6001&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :::*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />tcp6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 ::1:631&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :::*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LISTEN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />citylock@ubuntu910:~/.vnc$&nbsp;<br /></div>
<p><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff; margin-left: 4em;"><br /></span><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">에고 ..이거 때문에 반나절 고생했네요 ...&nbsp;</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">다른 분들은 저처럼 고생하지 말라고 포스팅 합니다.&nbsp;</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">자료 출처 : http://www.ehow.com/how_5089245_install-vnc-server-ubuntu.html</span><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><br style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;" /><span style="color: #303030; font-family: &quot;Apple SD Gothic Neo&quot;, &quot;Malgun Gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 16px; background-color: #ffffff;">아래는 실패했던 내용입니다.&nbsp;</span></p>