개발 지식/리눅스
[Ubuntu] VNC 화면공유 설정
brotherwook
2024. 1. 14. 20:19
728x90
- 패키지 설치
sudo apt install vino -y
- xml 파일 수정
- vim 이 설치 안되어 있다면 vim도 설치(vi가 편하면 vi사용해도 됨)
- 아래 내용 추가 후 :wq로 저장sudo vim /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
<key name='enabled' type='b'> <summary>Eanble remote access to the desktop</summary> <description> If true, allows remote access to the desktop via the RFB protocol. Users on remote machines may then connect to the desktop using a VNC viewer. </description> <default>true</default> </key>
- 터미널에서 명령어 실행
** 우분투 gui에서 터미널 켜서 실행, ssh환경에서 실행xsudo glib-compile-schemas /usr/share/glib-2.0/schemas gsettings set org.gnome.Vino require-encryption false gsettings set org.gnome.Vino prompt-enabled false
- settings/sharing 또는 desktop sharing 메뉴에 들어가서 화면 공유 설정
- startup applications 추가
- 컴퓨터 시작 프로그램으로 등록하는 기능
Name Vino Command /usr/lib/vino/vino-server Comment VNC Server - 다른 컴퓨터에서 Tight VNC같은 프로그램에 IP를 쳐서 접속하면 됨