5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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がうまくいかないとき](http://qiita.com/ocadaruma/items/1d472ec3e87d41ca3494#x11-forwarding%E3%81%8C%E3%81%86%E3%81%BE%E3%81%8F%E3%81%84%E3%81%8B%E3%81%AA%E3%81%84%E3%81%A8%E3%81%8D
    http://qiita.com/ocadaruma/items/1d472ec3e87d41ca3494#x11-)

  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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?