ubuntu 18.04 chrome remote desktop 설정 - jinwooklim/my-exp GitHub Wiki
참조 :
https://medium.com/@vsimon/how-to-install-chrome-remote-desktop-on-ubuntu-18-04-52d99980d83e
* Problem & Solution
- Chrome Remote Desktop을 Ubuntu 환경에서 사용할 경우, 세션이 여러 개 열리게 된다. 따라서, 기존에 작업 중인 것을 확인 할 수 없다.
- 아래, 2가지 버전이 있으나. 현재 최신 버전의 Chrome Remote Desktop 85.x 에서는 동작이 되지 않는다. (83.x 까지만 동작 가능 확인 함), 이유는 python 2.7에서의 솔루션이 python 3.x으로 와서 되지 않는 것 같다.
- 83.x 를 다운 받는 링크 : http://deb.rug.nl/ppa/mirror/dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/chrome-remote-desktop/chrome-remote-desktop_83.0.4103.2_amd64.deb
-> 아래 링크에서 최신 버전 확인
http://deb.rug.nl/ppa/mirror/dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/chrome-remote-desktop/ - 위를 설치 하는 커맨드.
wget chrome-remote-desktop_[VERSION]_amd64.deb
sudo dpkg -i chrome-remote-desktop_[VERSION]_amd64.deb
sudo apt-get -f install
- 다시 한번,
sudo dpkg -i chrome-remote-desktop_[VERSION]_amd64.deb
sudo reboot
- 이후 하단에 있는 방법들을 선택해서 사용, (2번을 추천함)
1) 버전 1
https://gist.github.com/tonylambiris/d9b37f224b166a823eb8115911114019
페이지 (2)로 이동
https://github.com/jinwooklim/my-exp/wiki/ubuntu-18.04-chrome-remote-desktop-appendix
2) 버전 2
출처 : https://blog.naver.com/hdh7485/221444142342
Install
sudo apt install chrome-remote-desktop
orwget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo dpkg -i ~/Downloads/chrome-remote-desktop_current_amd64.deb
Add remote group
sudo usermod -a -G chrome-remote-desktop $USER
sudo reboot
Revision chrome-remote-desktop code
-
/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop
-
sudo cp /opt/google/chrome-remote-desktop/chrome-remote-desktop /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig
-
sudo gedit /opt/google/chrome-remote-desktop/chrome-remote-desktop
-
DEFAULT_SIZES="1920x1080"
-
FIRST_X_DISPLAY_NUMBER = 0
-
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display): # display += 1
-
def launch_session(self, x_args): self._init_child_env() self._setup_pulseaudio() self._setup_gnubby() #self._launch_x_server(x_args) #self._launch_x_session() display = self.get_unused_display_number() self.child_env["DISPLAY"] = ":%d" % display
-
_launch_x_server() 와 _launch_x_session() 을 주석처리
Restart
/opt/google/chrome-remote-desktop/chrome-remote-desktop --start