TightVNC
インストール
sudo apt-get install tightvncserver
VNCサーバを起動する
tightvncserver
初回起動時
pi@raspberrypi ~ $ tightvncserver
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:
New 'X' desktop is raspberrypi:1
Creating default startup script /home/pi/.vnc/xstartup
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log
pi@raspberrypi ~ $
2回目以降起動
pi@raspberrypi ~ $ tightvncserver
New 'X' desktop is raspberrypi:1
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/raspberrypi:1.log
pi@raspberrypi ~ $
VNCサーバを停止
vncserver -kill :1
pi@raspberrypi ~ $ vncserver -kill :1
Killing Xtightvnc process ID 3058
pi@raspberrypi ~ $
ポートの状況を確認
netstat -lnt
pi@raspberrypi ~ $ netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6001 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
pi@raspberrypi ~ $
Windows機にVNC Viewrをインストールして、接続する
「Raspberry PiのIPアドレス」+「:」+「5901」を入力する
※ポートを確認した際に値を設定
パスワード入力の画面が表示されるので、初回起動時に設定した内容を入力する。
これで、接続が完了して、X Windowの画面が表示されます。
- 最終更新:2014-11-03 20:13:18