Chrome遠端 ubuntu 設定 - Linux

Rosalind avatar
By Rosalind
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



--
Tags: Linux

All Comments

Tom avatar
By Tom
at 2018-11-07T08:10
前一陣子試很久
Frederica avatar
By Frederica
at 2018-11-09T12:26
ubuntu16.04.5 我測試要software更新 apt upgrade後才可
Andy avatar
By Andy
at 2018-11-12T02:15
我也不知為何
Aaliyah avatar
By Aaliyah
at 2018-11-12T15:01
18.04裝了這個gnome-terminal就打不開了 繼續teamviewer
Gilbert avatar
By Gilbert
at 2018-11-14T19:35
市唷?可能我是重新安裝18.04.1最新版本測試
Christine avatar
By Christine
at 2018-11-19T18:34
16.04 LTS可依教學正常使用 感謝大大分享

提取含有特定字串的欄位

Iris avatar
By Iris
at 2018-11-05T10:48
我有一個檔案裡面 A_1 A_2 A_3 A_4 A_5 ...... A_19 B_1 B_2 ...... B_19 .... XX XX XX ..... 總共有19x N個欄位 我想整理成 1 2 3 4 5 6 ... 19 A B C D 19xN的矩陣 一開始想說用cut ...

apache 2 啟動時回傳exit status 127

Charlotte avatar
By Charlotte
at 2018-11-03T03:09
大家好,小弟用的Ubuntu版本為18.04 LTS, 最近在啟動apache2時出現了一個很莫名的錯誤, 全文如下: ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.servi ...

od 指令的小問題

Zenobia avatar
By Zenobia
at 2018-11-02T14:43
剛剛在寫個 openssl aes 加解密的小測試, 因為引入參數需要是 hex 形式, google 了大部分解答都建議用 od -A n -t x1 來處理, 就寫了個小指令稿 #!/bin/bash KEY=0123456789abcdef KEY=`echo -n $KEY | od -A n -t ...

呼籲大家多遵守交通規則

Lucy avatar
By Lucy
at 2018-11-02T10:42
容我發發牢騷,請包涵 這學校老師應該都講過吧... 寫程式時,要記得回傳個有意義的 exit code 不然, 別的程式往往都要額外浪費時間處理 當然, 特別是指令行程式, GUI 就不那麼在. 但是無論是用 C 來 code, 還是任何 script 都有我們應該共同遵守的交通規則. 事情是這樣的 剛 ...

兩張網路卡都對內 如何routing

Todd Johnson avatar
By Todd Johnson
at 2018-11-01T14:32
是這樣的 內網server有兩張網路卡 一張DMZ 一張intranet A. 正常來說辦公室內部連入intranet會通 DMZ不會通 B. 改defualt成DMZ了話DMZ會通intranet不會通 https://imgur.com/a/XgkeRVg 但我想要內部不管走DMZ或intranet都會 ...