やってみる

アウトプットすべく己を導くためのブログ。その試行錯誤すらたれ流す。

VNCからRaspbian Busterへログインする方法を調べる

 Pi3B+でできたから余裕だと思ったのに……。

情報源

現状

  • HDMI type C-Dケーブルがないためディスプレイが使えない
  • SSHログインはできる

VNCはインストールされている

apt-cache search realvnc*
libnet-vnc-perl - Perl module implementing a simple VNC client
realvnc-vnc-server - VNC® Server
realvnc-vnc-viewer - VNC® Viewer

手順

 VNCを無効にする。

sudo raspi-config nonint do_vnc 1

 ディスプレイのサイズに合わせる。

vncserver -randr=1920x1080
VNC(R) Server 6.5.0 (r41824) ARMv6 (Aug 16 2019 00:24:44)
Copyright (C) 2002-2019 RealVNC Ltd.
RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark
registrations and/or pending trademark applications in the European Union,
United States of America and other jurisdictions.
Protected by UK patent 2481870; US patent 8760366; EU patent 2652951.
See https://www.realvnc.com for information on VNC.
For third party acknowledgements see:
https://www.realvnc.com/docs/6/foss.html
OS: Raspbian GNU/Linux 10, Linux 4.19.75, armv7l

Generating private key... done
xauth:  file /home/pi/.Xauthority does not exist
On some distributions (in particular Red Hat), you may get a better experience
by running vncserver-virtual in conjunction with the system Xorg server, rather
than the old version built-in to Xvnc. More desktop environments and
applications will likely be compatible. For more information on this alternative
implementation, please see: https://www.realvnc.com/doclink/kb-546

Running applications in /etc/vnc/xstartup

VNC Server catchphrase: "Latin empire textile. Pacific lithium harvest."
             signature: a4-4c-9a-70-2d-c0-45-b0

Log file is /home/pi/.vnc/raspberrypi:1.log
New desktop is raspberrypi:1 (192.168.11.10:1)

 ポイントは192.168.11.10:1IPアドレスに加えて:1が末尾についている。これをVNC ViewerのURLとして追加してやる必要がある。

 VNC Viewerでログインすると以下。

f:id:ytyaru:20191204151412p:plain

 できた! やっとデスクトップが拝めた……。

所感

 デスクトップが変わってる。3B+までは道路の写真だったのに、4Bでは夕暮れになってる。

 :1はディスプレイ番号らしい。micro HDMI2ポートになったせいで複雑化したのか? /boot/config.txtHDMI設定も複雑化したし。micro HDMI化は改悪。

前回まで

 ハード。

 ソフト。

 設定。

 企業。