[VNC] Ubuntu 20, 18 버전 VNC경험 기록
## tweaks 설정 ubuntu 18&20.04
$sudo apt-get install gnome-tweak-tool
- 기능개선 => 확장 => dock 클릭
## vnc 관련 정리
vncserver -list
vncserver -kill :(vncserver number)
vncserver -localhost no :(display number)
열려있는 포트확인: netstat -tnlp
방화벽 상태: sudo ufw status
방화벽 허용: sudo ufw allow (포트번호)
## require-encryption 끄기
$ sudo apt-get install dconf-editor
$ dconf-editor
org > gnome > remote-access > require-encryption 을 off 시킴
## 원격접속 시 Authentication is required to create to a color managed device 오류
- sudo 권한은 /etc/sudoers 에서 수정
- color 프로파일 생성하기
$sudo ls /etc/polkit-1/localauthority/50-local.d/
- 파일이 없는지 확인, 없다면 아래 내용을 수행
$sudo vi /etc/polkit-1/localauthority/50-local.d/color.pkla
[Allow colord for all users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=yes ResultInactive=yes ResultActive=yes
해당내용 기입 후 저장
- 로그아웃 후 다시 재접속하면 해당 오류 더이상 뜨지 않는다.
## 리부팅 후 vnc 작동시 각종 에러들이 보일 때
- 서버컴 화면이 CLI 상태에서 GUI로 변경되어 있지 않은 경우
- 재부팅 후 vnc를 다시 작동시켜 줘야 한다.
- 서버컴퓨터 GUI 창에서 screen sharing 이 sharing 상태인지 확인