라즈베리 파이에 ssh로 접속을 한다. 


 sudo apt-get install tightvncserver tight vnc server를 설치한다.

 vncserver :1 -geometry 1280x800 -depth 16 -pixelformat rgb565  vnc server를 구동한후 비밀번호를 설정하면 된다. 


pi@raspberrypi ~ $ sudo apt-get install tightvncserver

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following extra packages will be installed:

  x11-xserver-utils xfonts-base xfonts-encodings xfonts-utils

Suggested packages:

  tightvnc-java nickle cairo-5c xorg-docs-core

The following NEW packages will be installed:

  tightvncserver x11-xserver-utils xfonts-base xfonts-encodings xfonts-utils

0 upgraded, 5 newly installed, 0 to remove and 34 not upgraded.

Need to get 7,824 kB of archives.

After this operation, 11.7 MB of additional disk space will be used.

Do you want to continue [Y/n]? y

Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tightvncserver armhf 1.3.9-6.4 [786 kB]

Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main x11-xserver-utils armhf 7.7~3 [181 kB]

Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xfonts-encodings all 1:1.0.4-1 [584 kB]

Get:4 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xfonts-utils armhf 1:7.7~1 [92.2 kB]

Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main xfonts-base all 1:1.0.3 [6,181 kB]

Fetched 7,824 kB in 34s (228 kB/s)                                             

Selecting previously unselected package tightvncserver.

(Reading database ... 56668 files and directories currently installed.)

Unpacking tightvncserver (from .../tightvncserver_1.3.9-6.4_armhf.deb) ...

Selecting previously unselected package x11-xserver-utils.

Unpacking x11-xserver-utils (from .../x11-xserver-utils_7.7~3_armhf.deb) ...

Selecting previously unselected package xfonts-encodings.

Unpacking xfonts-encodings (from .../xfonts-encodings_1%3a1.0.4-1_all.deb) ...

Selecting previously unselected package xfonts-utils.

Unpacking xfonts-utils (from .../xfonts-utils_1%3a7.7~1_armhf.deb) ...

Selecting previously unselected package xfonts-base.

Unpacking xfonts-base (from .../xfonts-base_1%3a1.0.3_all.deb) ...

Processing triggers for man-db ...

Processing triggers for fontconfig ...

Setting up tightvncserver (1.3.9-6.4) ...

update-alternatives: using /usr/bin/tightvncserver to provide /usr/bin/vncserver (vncserver) in auto mode.

update-alternatives: using /usr/bin/Xtightvnc to provide /usr/bin/Xvnc (Xvnc) in auto mode.

update-alternatives: using /usr/bin/tightvncpasswd to provide /usr/bin/vncpasswd (vncpasswd) in auto mode.

Setting up x11-xserver-utils (7.7~3) ...

Setting up xfonts-encodings (1:1.0.4-1) ...

Setting up xfonts-utils (1:7.7~1) ...

Setting up xfonts-base (1:1.0.3) ...

pi@raspberrypi ~ $ vncserver :1 -geometry 1280x800 -depth 16 -pixelformat rgb565

You will require a password to access your desktops.


Password: 

Warning: password truncated to the length of 8.

Verify:   

Would you like to enter a view-only password (y/n)? y

Password: 

Warning: password truncated to the length of 8.

Verify:   


New 'X' desktop is raspberrypi:1


Creating default startup script /home/pi/.vnc/xstartup

Starting applications specified in /home/pi/.vnc/xstartup

Log file is /home/pi/.vnc/raspberrypi:1.log



이후 Mac, iPhone, iPad 등에서 VNC Client를 사용해서 접속하면 된다



무료 앱인 Chicken of the VNC를 사용하여 접속하였다. 

간단한 접속 정보인 IP와 Password를 입력한후 Connect 버튼을 누르면 Raspberry pi의 'X' desktop이 화면에 나타난다. 




Posted by KraZYeom

댓글을 달아 주세요