LinuxMintにChromeリモートデスクトップをインストールして、別マシンからリモートアクセスする。
手順やら、設定やらは以下のサイト参照。
webnetforce.net
webnetforce.net
インストール方法
1. Google Chromeのサイトにアクセスして、Ubuntu用をインストール。
2. 以下のサイトにアクセスしてGoogle Chrome リモートデスクトップをインストールする
remotedesktop.google.com
3.リモートデスクトップを起動して、ホストファイルのインストール
これで別マシンからリモートアクセルできるのだが、新規に仮想デスクトップを立ち上げてしまうので、これを現在開いてるデスクトップにアクセスできるように修正。
$ /opt/google/chrome-remote-desktop/chrome-remote-desktop --stop
適当なエディタで /opt/google/chrome-remote-desktop/chrome-remote-desktop を修正
ただ、このファイルはroot所有で書き込み権限がないので注意。
修正箇所は
108行目ぐらいの
FIRST_X_DISPLAY_NUMBER = 20
を
FIRST_X_DISPLAY_NUMBER = 0
450行目ぐらいの
while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
display += 1
をコメントアウト
740行目ぐらいの
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()
を
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
に修正して、
$ /opt/google/chrome-remote-desktop/chrome-remote-desktop --start
とコマンドを打つか、リモートデスクトップを再起動させると、無事に普段使っているデスクトップをいじれるようになる。