라즈베리파이를 사용하기 위해서 모니터를 연결하려고 하니 연결이 되지 않았습니다. 허허..

SSH 프로그램을 사용하여 SSH 접속을 하더라도 카메라 작업 같은 경우는 완전히 불가능합니다.


때문에 데스크톱 환경(GUI)로 Raspberry Pi 3에 원격 접속하는 방법을 작성해보려고 합니다.


이 방법을 이용하면, 라즈베리파이를 모니터 없이 사용이 가능합니다.


VNC 서버 프로그램 설치와 접속하는 방법

VNC Server 프로그램을 먼저 라즈베리파이에 설치해야 합니다.


만약 SSH 연결이 되어있지 않다면 다음 링크에서 해결해보시기 바랍니다.

[Raspberry Pi] 라즈베리파이 SSH 초기 설정(SD 카드) (링크 클릭)


사용자는 Client, 접속하고자 하는 곳은 Server입니다.


$ vncserver -geometry 1280x1024 


위의 명령어는 vnc 서버를 설치하는 명령어입니다. 또한 1280*1024와 같이 작성하면 안 됩니다. 반드시 엑스(x)로 입력해야 합니다.

설치가 완료되면 다음과 같은 메시지를 출력합니다.


 VNC(R) Server 6.3.2 (r39069) ARMv6 (Oct 17 2018 11:16:05)

Copyright (C) 2002-2018 RealVNC Ltd.

RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark

registrations and/or pending trademark applications in the European Union,

United States of America and other jurisdictions.

Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.

See https://www.realvnc.com for information on VNC.

For third party acknowledgements see:

https://www.realvnc.com/docs/6/foss.html

OS: Linux 4.14.79 armv7l


Generating private key... done

On some distributions (in particular Red Hat), you may get a better experience

by running vncserver-virtual in conjunction with the system Xorg server, rather

than the old version built-in to Xvnc. More desktop environments and

applications will likely be compatible. For more information on this alternative

implementation, please see: https://www.realvnc.com/doclink/kb-546

Running applications in /etc/vnc/xstartup

VNC Server catchphrase: "Oscar sector London. Justice prize artist."

             signature: a2-11-de-40-73-14-58-07


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

New desktop is raspberrypi:1 (192.168.43.142:1)


이제 라즈베리파이에 접속하기 위해서는 VNC 클라이언트 프로그램이 필요합니다.

그중 VNC Viewer라는 프로그램을 설치해보려고 합니다.


VNC Viewer 설치 링크


VNC 프로그램 간에는 호환되기 때문에 어떤 VNC 클라이언트 프로그램을 써도 괜찮습니다.

사용중인 64비트 윈도우가 자동감지되어 64비트 설치프로그램을 보여줍니다.


영어로 설치합니당


설치가 완료되면 접속할 아이피를 입력해줍니다.

현재 아이피는 공유기에 연결한 아이피이기 때문에 가상 아이피입니다.


아이디 : pi

비밀번호 : raspberry

위와 같이 입력해줍니다. 만약 root로 접속하더라고 pi로 로그인이 됩니다. 그냥 pi로 고고 합시당.



아이피가 바뀌었더라도 문제없이 다시 접속해줍니다 허허



위와 같이 접속된 화면이 보이실 것입니다.


화면을 적절히 조절해주고 싶다면 [라즈베리 모양 or Win키] -> [Preferences] -> [Appearance Settings]를 클릭합니다.

다음과 같은 화면이 나오는데, 저는 medium screens로 해주었습니다.









+ Recent posts