Chrome遠端 ubuntu 設定 - Linux

By Rosalind
at 2018-11-06T16:02
at 2018-11-06T16:02
Table of Contents
http://robotslam.blogspot.com/2018/03/ubuntu-chrome-remote-desktop-setting.html
來源是這裡
linux照windows mac 方法安裝chrome遠端
無法像windows mac一定連到本地螢幕桌面
會像xrdp一樣 連到一個新的桌面
至於要怎麼設定連到本地桌面
$ sudo apt-get update
$ sudo apt-get upgrade
如要在 Linux 電腦上使用 Chrome,您的系統需符合以下條件:
64 位元 Ubuntu 14.04 以上版本
Debian 8 以上版本
openSUSE 13.3 以上版本
Fedora Linux 24 以上版本
Intel Pentium 4 以上版本處理器 (可支援 SSE2)
安裝chrome 瀏覽器 stable
https://www.google.com/chrome/browser/desktop/index.html
安裝 chrome遠端app
https://chrome.google.com/webstore/detail/gbchcmhmhahfdphkhkmpfmihenigjmpp
安裝 chrome遠端主機
https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
停止 Chrome Remote Desktop:
$ /opt/google/chrome-remote-desktop/chrome-remote-desktop --stop
再來這指令很長 是一行喔 Backup the original configuration:
$ sudo cp /opt/google/chrome-remote-desktop/chrome-remote-desktop/opt/google/
chrome-remote-desktop/chrome-remote-desktop.orig
編輯config file (sudo vim, gksudo gedit, nano都可):
$ sudo vim /opt/google/chrome-remote-desktop/chrome-remote-desktop
進去vim編輯後
找到 DEFAULT_SIZES 改參數
DEFAULT_SIZES = "1920x1080"
找到FIRST_X_DISPLAY_NUMBER 改參數
FIRST_X_DISPLAY_NUMBER = 0
找到這函數 用#註解下面兩行
def get_unused_display_number():
"""Return a candidate display numbre for which ther is currently no
X server lock file"""
display = FIRST_X_DISPLAY_NUMBER
# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
return display
找到這個函數 用#註解某兩行 再加display跟self.child兩行
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
儲存vim 或 nano
下指令
$ /opt/google/chrome-remote-desktop/chrome-remote-desktop --start
這樣你chrome遠端 就跟一般windows mac一樣了
如何想要重開機也可以遠端
要去設定 user account 開啟auto login
--
來源是這裡
linux照windows mac 方法安裝chrome遠端
無法像windows mac一定連到本地螢幕桌面
會像xrdp一樣 連到一個新的桌面
至於要怎麼設定連到本地桌面
$ sudo apt-get update
$ sudo apt-get upgrade
如要在 Linux 電腦上使用 Chrome,您的系統需符合以下條件:
64 位元 Ubuntu 14.04 以上版本
Debian 8 以上版本
openSUSE 13.3 以上版本
Fedora Linux 24 以上版本
Intel Pentium 4 以上版本處理器 (可支援 SSE2)
安裝chrome 瀏覽器 stable
https://www.google.com/chrome/browser/desktop/index.html
安裝 chrome遠端app
https://chrome.google.com/webstore/detail/gbchcmhmhahfdphkhkmpfmihenigjmpp
安裝 chrome遠端主機
https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
停止 Chrome Remote Desktop:
$ /opt/google/chrome-remote-desktop/chrome-remote-desktop --stop
再來這指令很長 是一行喔 Backup the original configuration:
$ sudo cp /opt/google/chrome-remote-desktop/chrome-remote-desktop/opt/google/
chrome-remote-desktop/chrome-remote-desktop.orig
編輯config file (sudo vim, gksudo gedit, nano都可):
$ sudo vim /opt/google/chrome-remote-desktop/chrome-remote-desktop
進去vim編輯後
找到 DEFAULT_SIZES 改參數
DEFAULT_SIZES = "1920x1080"
找到FIRST_X_DISPLAY_NUMBER 改參數
FIRST_X_DISPLAY_NUMBER = 0
找到這函數 用#註解下面兩行
def get_unused_display_number():
"""Return a candidate display numbre for which ther is currently no
X server lock file"""
display = FIRST_X_DISPLAY_NUMBER
# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
return display
找到這個函數 用#註解某兩行 再加display跟self.child兩行
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
儲存vim 或 nano
下指令
$ /opt/google/chrome-remote-desktop/chrome-remote-desktop --start
這樣你chrome遠端 就跟一般windows mac一樣了
如何想要重開機也可以遠端
要去設定 user account 開啟auto login
--
Tags:
Linux
All Comments

By Tom
at 2018-11-07T08:10
at 2018-11-07T08:10

By Frederica
at 2018-11-09T12:26
at 2018-11-09T12:26

By Andy
at 2018-11-12T02:15
at 2018-11-12T02:15

By Aaliyah
at 2018-11-12T15:01
at 2018-11-12T15:01

By Gilbert
at 2018-11-14T19:35
at 2018-11-14T19:35

By Christine
at 2018-11-19T18:34
at 2018-11-19T18:34
Related Posts
提取含有特定字串的欄位

By Iris
at 2018-11-05T10:48
at 2018-11-05T10:48
apache 2 啟動時回傳exit status 127

By Charlotte
at 2018-11-03T03:09
at 2018-11-03T03:09
od 指令的小問題

By Zenobia
at 2018-11-02T14:43
at 2018-11-02T14:43
呼籲大家多遵守交通規則

By Lucy
at 2018-11-02T10:42
at 2018-11-02T10:42
兩張網路卡都對內 如何routing

By Todd Johnson
at 2018-11-01T14:32
at 2018-11-01T14:32