Help us understand the problem. What is going on with this article?

MacにサーバーのGUIアプリを表示する

More than 3 years have passed since last update.

Mac初期化するとxserverに繋がらない!なんてことになったので記録.

  • OSX 10.9.3

xquartz導入

最近のOSXにはX11がデフォルトで入っていないそうです.
homebrew-caskで

brew update
brew cask install xquartz

DISPLAY環境変数を設定

xquartzをインストールすればxtermからsshでxserverに接続出来ました.

でもterminalやitermからだと上手くいかない...
xtermのenvとterminalのenvを比べてみると, 環境変数DISPLAYが足りないようだったので

export DISPLAY=:0.0

としました.

(追記)XQuartzをインストールして再起動したところ, itermでDISPLAY環境変数が正しく設定されていました.
*環境変数は不要のようです. *

接続

open /Applications/Utilities/XQuartz.app
# ~/.Xauthorityを作成してくれます
ssh -Y ユーザ名@ホスト

xeyesが表示されればOK

ついでにマウスクリックが使えるように
X11 > X11 Preferences > Windows > Click-through Inactive Windows
をenableとしました.

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away