安裝ubuntu 18.04 預設已經有chromium, 不想裝chrome, 但遠端桌面無法啟用

第1步當然是安裝chrome線上應用商店的remote desktop , 然後啟用後下載一個deb檔案安裝, 結果無法啟用遠端連線功能.

第2步(解法):

網路上找到的解法, 原來是路徑不一致以及上.

1. 帳號需要加到 “chrome-remote-desktop” 這個群組

sudo usermod -a -G chrome-remote-desktop <your account>

2. 這我沒做過,但網路上好多人說要做

mkdir  ~/.chrome-remote-desktop-session file with “exec /usr/bin/lxsession -s Lubuntu -e LXDE” in it.

exec /usr/bin/lxsession -s Lubuntu -e LXDE 不是固定的 ,要參考  /usr/share/xsessions

3. mkdir  ~/.config/chrome-remote-desktop directory.

4. mkdir /etc/chromium-browser/native-messaging-hosts

5. ln -s /etc/opt/chrome/native-messaging-hosts/* /etc/chromium-browser/native-messaging-hosts/

You should now have a ‘Enable Remote Connection’ button on the CRD extension page.

ps. 最後發現 chromium 已經不支援NaCI功能(Native Client), 因此一樣無法透過chromium進行遠端桌面連線連到別的地方, 但可以讓別地方連近來,功能只有一半,真是殘念.

只好乖乖安裝chrome, 然後移除chromium

以下是安裝chrome的方法

wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add –

 

sudo sh -c ‘echo “deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main” >> /etc/apt/sources.list.d/google.list’

 

sudo apt-get update

 

sudo apt install google-chrome-stable

以下是移除chromium的方法

sudo apt-get remove chromium-browser –purge
rm -rf ~/.config/chromium
rm -rf ~/.cache/chromium
sudo rm -rf /etc/chromium

發表迴響