LoginSignup
1

More than 5 years have passed since last update.

Raspberry Pi をGUIで動かす時のメモ

Posted at

VNCサーバのインストール

pi@raspberrypi ~ $ sudo apt-get install tightvncserver

VNCサーバの起動

インストールが完了したらVNCサーバを起動する。

pi@raspberrypi ~ $ vncserver :1 -geometry 1024x600 -depth 16 -pixelformat rgb565

初回起動時は設定を聞かれる。

//デスクトップからアクセスするときはパスワード聞かれるよ
You will require a password to access your desktops.

//アクセス時のパスワード
Password:
Warning: password truncated to the length of 8.
Verify:

//ビューオンリーの時のパスワードも設定する?
Would you like to enter a view-only password (y/n)? y
Password:
Verify:

VNCサーバへの接続

Finderのサーバーへ接続(⌘+K)で画面共有を利用できる。特別なVNCクライアントアプリとかは不要。
接続先に

vnc://192.168.XX.XX:5901

と入力すると画面共有が開き、先ほど設定したパスワードが聞かれるのでそれを入力して接続する。

VNCサーバの切断

pi@raspberrypi ~ $ vncserver -kill :1

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
1