<span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;">http://superkkt.com/530<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />위 사이트를 참고하여 작성하였다.<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /></span><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">필자는 root 계정으로 설정하는 사용법을 기술한 것이다.</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">유저계정으로 설정하고 싶다면 아래의 과정에서 root를 유저 명으로 대체 하면 된다.</span><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;"><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />1. VNC Server 설치<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /></span>
<div style="margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;">$ su root<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /># apt-get install vnc4server</div>
<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;"><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />2. vnc4server 실행<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /></span>
<div style="margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;"># vnc4server</div>
<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">VNC4server를 처음 실행시 사용할 비밀번호를 입력하게 된다. 이후 /root/.vnc 디렉토리에 몇 개의 파일이 생성된다.</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;">3. 설정파일 수정</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">$ vi /root/.vnc/xstartup&nbsp;</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" />
<div style="margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;">#!/bin/sh<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /># Uncomment the following two lines for normal desktop:<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />unset SESSION_MANAGER<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />exec&nbsp;<font color="#e31600" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;">sh</font>&nbsp;/etc/X11/xinit/xinitrc<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />[ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />[ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />xsetroot -solid grey<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />vncconfig -iconic &amp;<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /><font color="#e31600" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;">export GTK_IM_MODULE=scim<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />gnome-session &amp;</font><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; background-color: transparent;"></span></div>
<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">위에 두 줄을 주석 제거하고, 두번째 줄에 sh(빨간색)를 반드시 추가해줘야 한다.</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">그리고 마지막 두줄은 한글을 사용하기 위해 필요한 구문이다.</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;">4. vncserver 재시작</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" />
<div style="margin: 0px; padding: 10px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #e4e4e4;"># vnc4server -kill :1<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" /># vnc4server -geometry 1800x1024 :1</div>
<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3; font-weight: bold;">5. VNC 클라이언트로 5901 포트로 접속</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">참고로 포트번호는 5900+세션번호이다. 위 예제에서는 1번 세션을 사용했기 때문에 5901이 할당된다.</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><b style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;">6. 리눅스에서 한글 설정<br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5;" />&nbsp;</b><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">시스템 -&gt; 기본설정 -&gt; 키보드 입력방식 -&gt; 활성화 또는 비활성화 에있는 ....-&gt; 키코드 옆에있는 ... -&gt; 한영키 변환으로 사용할 키 -&gt; 닫기</span><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><br style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; background-color: #f3f3f3;" /><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">출처:&nbsp;</span><a href="https://maxpaper86.tistory.com/38" style="margin: 0px; padding: 0px; border: 0px; line-height: 1.5; font-family: dotum, sans-serif; text-decoration-line: none; background-color: #f3f3f3;" target="_blank">https://maxpaper86.tistory.com/38</a><span style="font-family: dotum, sans-serif; background-color: #f3f3f3;">&nbsp;[종이형의 블로그]</span>