본문 바로가기
조회 수 10802 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

http://www.ehow.com/print/how_5089245_install-vnc-server-ubuntu.html


1. Install vnc4server xinetd

apt-get install vnc4server xinetd


2. Start the vnc4server

vnc4server

You will be prompted for a password. This password will be used to log into the VNC session.

After providing a password, you will get output that looks like:

New 'laptop:3 (laptop)' desktop is laptop:3

Take notice of the number after the colon (:), in this case it is "3."

Starting the vnc4server will cause a .vnc directory to be placed in your home directory.


Note. :x 번호는 ps -axu | grep vnc로 해서 찾는다.



3. Stop the vnc4server

vnc4server -kill :3

Replace the number "3" with the number from Step 2


혹은 그냥 아래의 명령으로 vnc 프로세스를 죽인다.


killall Xvnc4



4. Open the .vnc/xstartup file for editing:

gedit ~/.vnc/xstartup

The file will look like:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &


5. Change the .vnc/xstartup file and save it.

Uncomment the lines that start with unset and exec. Comment out the lines that start with xsetroot, vncconfig, xterm and twm.

The final file should look like:

#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &


6. Change the permissions on the /etc/X11/xinit/xinitrc file to make it executable:

sudo chmod 755 /etc/X11/xinit/xinitrc


7. Start the vnc4server:

vnc4server

Again, remember the number after the colon (:).


또는 vnc client가 다양한 해상도를 사용할 수 있도록 아래와 같은 옵션을 주어 실행한다.


vnc4server \
-geometry 1600x1200 \
-geometry 1440x900 \
-geometry 1280x1024 \
-geometry 1280x800 \
-geometry 1280x768 \
-geometry 1024x768 \
-geometry 800x600


참고. vnc 접속시 가능 위의 해상도가 기본값이 된다. 적절히 조절할 것


8. Start Script


준비중...


9. Log into your remote desktop to check the configuration:

vncviewer localhost:3

Provide the password that you chose in Step 2.


vnc 클라이언트에서 접속한 상태에서 해상도가 적절하지 않을 경우 아래의 명령으로 변경가능. vnc 접속된 상태에서 터미널에서 실행


xrandr -s 1280x800


Title
List of Articles
번호 제목 글쓴이 날짜 조회 수
33 Samba Server Configuration in Ubuntu 14.04 LTS Hojung 2014.12.31 1598
32 Install GUI on Ubuntu server 14.04 Trusty Tahr Hojung 2014.12.10 2765
31 How to setup VNC server Hojung 2014.09.18 1682
30 install and start ssh server Hojung 2014.02.20 1903
29 if you don't see .bashrc in user dir in ubuntu Hojung 2011.10.15 6109
28 Installing Java Run-Time Environment(JRE) on Ubuntu 11.10 Hojung 2011.10.12 6135
27 Install Adobe Flash Player in Ubuntu 11.10 Hojung 2011.10.06 6141
26 Installing Dropbox in Ubuntu 11.10 Hojung 2011.10.06 5940
25 우분투 터미널 폰트 바꾸기 Hojung 2011.09.24 9401
24 How to Convert WMV to MP4 With Ubuntu Hojung 2011.04.27 10536
23 Ubuntu - Executing a script at startup and shutdown Hojung 2011.04.26 10841
22 Changing the resolution of a VNC session in linux Hojung 2011.04.26 9325
» How to Install a VNC Server in Ubuntu Hojung 2011.04.25 10802
20 Disable popup notifications Hojung 2011.02.10 10317
19 Install Curl in PHP5 and Apache Hojung 2010.12.31 11947
18 [Ubuntu] Pidgin 에러. The certificate for omega.contacts.msn.com ... Hojung 2010.11.22 10071
17 [Ubuntu] sendmail 설정 및 트러블슈팅 Hojung 2010.11.15 12782
16 [Ubuntu] How To Change The Time Zone in Ubuntu Linux Hojung 2010.11.08 9360
15 [Ubuntu] 간단한 Xpressengine 설치 환경 만들기 Hojung 2010.11.02 10321
14 [Ubuntu] Firefox Java Plugin 설치하기 Hojung 2010.08.12 10159
Board Pagination ‹ Prev 1 2 Next ›
/ 2

Designed by sketchbooks.co.kr / sketchbook5 board skin

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5