[Ubuntu] VNC 화면공유 설정

728x90
  1. 패키지 설치
    sudo apt install vino -y​
  2. xml 파일 수정
    - vim 이 설치 안되어 있다면 vim도 설치(vi가 편하면 vi사용해도 됨)
    sudo vim /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml​
     - 아래 내용 추가 후 :wq로 저장
    <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>​
  3. 터미널에서 명령어 실행
    sudo 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​
    ** 우분투 gui에서 터미널 켜서 실행, ssh환경에서 실행x
  4. settings/sharing 또는 desktop sharing 메뉴에 들어가서 화면 공유 설정
  5. startup applications 추가
    - 컴퓨터 시작 프로그램으로 등록하는 기능
    Name Vino
    Command /usr/lib/vino/vino-server
    Comment VNC Server
  6. 다른 컴퓨터에서 Tight VNC같은 프로그램에 IP를 쳐서 접속하면 됨