LoginSignup
5
5

More than 5 years have passed since last update.

vagrantで作成したLinux boxから Xアプリケーションを起動したい

Posted at

環境

*host OS: Windows7 64bit
*VMM: Virtualbox Version 5.0.20 r106931
*guest OS: bento/centos-7.2 (2.2.6)

やったこと

  1. ホストマシンにXサーバを入れとく。
    Windowsだと Xmingが安定ですね。

  2. VagrantfileでX11フォワード設定をする。
    config.ssh.forward_x11 = true
    see, X forwardingがうまくいかないとき

  3. Linux-boxに xauthを入れとく。
    これを忘れてると、なぜか $DISPLAYが設定されず焦ります。最近はミニマムなOSイメージが流行ってますからね。
    $ssh yum install xauth

備考

▼最近の豪華なX11環境でsshを使ってXプロトコルを中継する▼

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5