masuko-shingo / jetson-nano

自分用jetsonnanoの記録
MIT License
0 stars 0 forks source link

vncserverを有効にできない #6

Open masuko-shingo opened 2 years ago

masuko-shingo commented 2 years ago

経緯

写真に残したコマンドを試して、一度はPC(ubuntu)とjetsonnano間でvncを接続できたので、
Windowsでvncseverを起動しようとした際の試行錯誤で、今の状況になった。 ubuntuで、端末を立ち上げなおし、コマンドを実行したところ vncserverの起動まではできたように思える。

以下ログ

PC(ubuntu-remmina)ーjetsonnano間でのvnc接続

ubuntuで端末を開き ssh通信でjetsonnanoにログイン

$ sudo vncpasswd
$ sudo vncserver
$ sudo vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :1 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

上記のコマンドを実行して vncserverを有効にする この時

$ sudo vncpasswd

を入力しても特に何もメッセージは返されなかった。 (先生が設定した情報が残っていた?) 他は、写真に残したメッセージとほとんど変わらなかった。

ubuntu側でホットキーを押し、検索バーにvncと入力 remmineを開き vncに設定して JetsonnanoのIPアドレスを入力 接続ができた。 ubuntuとjetsonnano間でのvnc接続を確認できたので、 WSLとJetsonnano間でのvnc接続を試す

masuko-shingo commented 2 years ago

PC(windows)とJetsonnano間でのvnc接続

realVNCviewerをインストールする https://www.realvnc.com/en/connect/download/viewer/ ホットキーを押し、検索バーにubuntuと入力

$ sudo vncpasswd
pass:turtlebot
$ sudo vncserver
$ sudo vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :1 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

この際

$ sudo vncpasswd
Password:
Verify:
sorry please try again

となり、うまく設定できなかった。 試行錯誤の際に

/home/jetsonnano/.vnc/passwd

上記のファイルを消去してしまった。 その後

$ touch passwd

でファイルを作成し直した 再度

$ sudo vncpasswd
pass:turtlebot
$ sudo vncserver
$ sudo vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :1 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

これらのコマンドを実行したが、 パスワードが設定されていないというメッセージが返された。

masuko-shingo commented 2 years ago

再度ubuntuでJetsonnanoにログインし、vncserverを立ち上げようと試すと

$ sudo vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
$ sudo vncserver
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/jetsonnano/.vnc/jetsonnano-desktop:1.log' to determine the reason! -2

とメッセージを返される メッセージの通りファイルを確認

$ cd ~/.vnc
$ cat jetsonnano-desktop\:1.log
Xvnc TigerVNC 1.7.0 - built Dec  5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation

-screen scrn WxHxD     set screen's width, height, depth
-pixdepths list-of-int support given pixmap depths
+/-render          turn on/off RENDER extension support(default on)
-linebias n            adjust thin line pixelization
-blackpixel n          pixel value for black
-whitepixel n          pixel value for white
-shmem                 put framebuffers in shared memory
-geometry WxH          set screen 0's width, height
-depth D               set screen 0's depth
-pixelformat fmt       set pixel format (rgbNNN or bgrNNN)
-inetd                 has been launched from inetd
-noclipboard           disable clipboard settings modification via vncconfig utility
-verbose [n]           verbose startup messages
-quiet                 minimal startup messages
-version               show the server version

VNC parameters:

Parameters can be turned on with -<param> or off with -<param>=0
Parameters which take a value can be specified as -<param> <value>
Other valid forms are <param>=<value> -<param>=<value> --<param>=<value>
Parameter names are case-insensitive.  The parameters are:

Global Parameters:
  ZlibLevel      - Zlib compression level (default=-1)
  ImprovedHextile - Use improved compression algorithm for Hextile encoding
                   which achieves better compression ratios by the cost of
                   using more CPU time (default=1)
  pam_service    - Alias for PAMService
  PAMService     - Service name for PAM password validation (default=vnc)
  PlainUsers     - Users permitted to access via Plain security type (including
                   TLSPlain, X509Plain etc.) (default=)
  GnuTLSPriority - GnuTLS priority string that controls the TLS session's
                   handshake algorithms (default=NORMAL)
  MaxCutText     - Maximum permitted length of an incoming clipboard update
                   (default=262144)
  RemapKeys      - Comma-separated list of incoming keysyms to remap.  Mappings
                   are expressed as two hex values, prefixed by 0x, and
                   separated by -> (default=)
  BlacklistTimeout - The initial timeout applied when a host is first
                   black-listed.  The host cannot re-attempt a connection until
                   the timeout expires. (default=10)
  BlacklistThreshold - The number of unauthenticated connection attempts
                   allowed from any individual host before that host is
                   black-listed (default=5)
  AlwaysSetDeferUpdateTimer - Always reset the defer update timer on every
                   change (default=0)
  DeferUpdate    - Time in milliseconds to defer updates (default=1)
  QueryConnectTimeout - Number of seconds to show the Accept Connection dialog
                   before rejecting the connection (default=10)
  QueryConnect   - Prompt the local user to accept or reject incoming
                   connections. (default=0)
  AcceptSetDesktopSize - Accept set desktop size events from clients.
                   (default=1)
  SendCutText    - Send clipboard changes to clients. (default=1)
  AcceptCutText  - Accept clipboard updates from clients. (default=1)
  AcceptPointerEvents - Accept pointer press and release events from clients.
                   (default=1)
  AcceptKeyEvents - Accept key press and release events from clients.
                   (default=1)
  DisconnectClients - Disconnect existing clients if an incoming connection is
                   non-shared. If combined with NeverShared then new
                   connections will be refused while there is a client active
                   (default=1)
  NeverShared    - Never treat incoming connections as shared, regardless of
                   the client-specified setting (default=0)
  AlwaysShared   - Always treat incoming connections as shared, regardless of
                   the client-specified setting (default=0)
  Protocol3.3    - Always use protocol version 3.3 for backwards compatibility
                   with badly-behaved clients (default=0)
  CompareFB      - Perform pixel comparison on framebuffer to reduce
                   unnecessary updates (0: never, 1: always, 2: auto)
                   (default=2)
  ClientWaitTimeMillis - The number of milliseconds to wait for a client which
                   is no longer responding (default=20000)
  MaxIdleTime    - Terminate after s seconds of user inactivity (default=0)
  MaxConnectionTime - Terminate when a client has been connected for s seconds
                   (default=0)
  MaxDisconnectionTime - Terminate when no client has been connected for s
                   seconds (default=0)
  IdleTimeout    - The number of seconds after which an idle VNC connection
                   will be dropped (zero means no timeout) (default=0)
  Log            - Specifies which log output should be directed to which
                   target logger, and the level of output to log. Format is
                   <log>:<target>:<level>[, ...]. (default=)
  UseIPv6        - Use IPv6 for incoming and outgoing connections. (default=1)
  UseIPv4        - Use IPv4 for incoming and outgoing connections. (default=1)
  AllowOverride  - Comma separated list of parameters that can be modified
                   using VNC extension.
                   (default=desktop,AcceptPointerEvents,SendCutText,AcceptCutText)
  AvoidShiftNumLock - Avoid fake Shift presses for keys affected by NumLock.
                   (default=1)
  interface      - listen on the specified network address (default=all)
  localhost      - Only allow connections from localhost (default=0)
  desktop        - Name of VNC desktop (default=x11)
  rfbport        - TCP port to listen for RFB protocol (default=0)
  rfbwait        - Alias for ClientWaitTimeMillis
  httpPort       - TCP port to listen for HTTP (default=0)
  httpd          - Directory containing files to serve via HTTP (default=)
Server Parameters:
  X509Key        - Path to the key of the X509 certificate in PEM format
                   (default=)
  X509Cert       - Path to the X509 certificate in PEM format (default=)
  Password       - Obfuscated binary encoding of the password which clients
                   must supply to access the server (default=)
  rfbauth        - Alias for PasswordFile
  PasswordFile   - Password file for VNC authentication (default=)
  SecurityTypes  - Specify which security scheme to use (None, VncAuth, Plain,
                   TLSNone, TLSVnc, TLSPlain, X509None, X509Vnc, X509Plain)
                   (default=VncAuth)
(EE) 
Fatal server error:
(EE) Unrecognized option: -display
(EE) 
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE) 
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE) 
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) 

林原先生によると-display というオプションがわからないということを示している。

(EE) 
Fatal server error:
(EE) Unrecognized option: -display
masuko-shingo commented 2 years ago

端末を立ち上げ直し、もう一度コマンドを実行すると、vncserverは起動できているように見える。

$ sudo vncpasswd
   pass:turtlebot
$ sudo vncserver
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (root)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/jetsonnano/.vnc/jetsonnano-desktop:1.log ===================
(EE) 

Xvnc TigerVNC 1.7.0 - built Dec  5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation

Sat Aug 28 01:10:45 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 175 requests (175 known processed) with 0 events remaining.
Killing Xtigervnc process ID 11623... which seems to be deadlocked. Using SIGKILL!

===============================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
    tigervncserver -xstartup /usr/bin/xterm
$ sudo vncserver -display :0 -passwordfile ~/.vnc/passwd
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/jetsonnano/.vnc/jetsonnano-desktop:1.log' to determine the reason! -2
$ vncserver -display :0 -passwordfile ~/.vnc/passwd
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/jetsonnano/.vnc/jetsonnano-desktop:1.log' to determine the reason! -2
$ vncserver -display :1 -passwordfile ~/.vnc/passwd
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
vncserver: /usr/bin/Xtigervnc did not start up, please look into '/home/jetsonnano/.vnc/jetsonnano-desktop:1.log' to determine the reason! -2
$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd
No protocol specified
x0vncserver: unable to open display ":0"
$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd
x0vncserver: unable to open display ":1"

とメッセージを返された。 jetsonnano-desktop:1.logを確認

(EE) 
Fatal server error:
(EE) Unrecognized option: -display

おそらく変わらず

yasuohayashibara commented 2 years ago

なるほどこれを見て理解しました.

$ sudo vncpasswd
$ sudo vncserver
$ sudo vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :0 -passwordfile ~/.vnc/passwd
$ vncserver -display :1 -passwordfile ~/.vnc/passwd
$ x0vncserver -display :0 -passwordfile ~/.vnc/passwd
↑ 不要
$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

ということで,以下のコマンドだけ実行すればOKです.

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

ただし,displayの番号は環境で変化しますので,1以外の数字になることがあります. 私も試行錯誤的に発見したものですので,このコマンドが何をしているのかを調べて使用したほうが良いです. (こちらを入力したときには時間切れでしたので,ほとんど調べずにネットのサンプルを入れただけですので...)

masuko-shingo commented 2 years ago

ログ

$ sudo vncpasswd
$ sudo vncserver

New 'jetsonnano-desktop:1 (root)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.
$ vncserver
/usr/bin/xauth:  /home/jetsonnano/.Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/jetsonnano/.vnc/jetsonnano-desktop:1.log ===================
Killing Xtigervnc process ID 8791... success!

Xvnc TigerVNC 1.7.0 - built Dec  5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation

Mon Aug 30 17:48:58 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 175 requests (175 known processed) with 0 events remaining.
Killing Xtigervnc process ID 8941... which seems to be deadlocked. Using SIGKILL!

===============================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
    tigervncserver -xstartup /usr/bin/xterm
$ x0vncserver :1 -passwordfile ~/.vnc/passwd

マニュアルが表示されるのみ

$ vncserver :1 -passwordfile ~/.vnc/passwd
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/jetsonnano/.vnc/jetsonnano-desktop:1.log ===================
Killing Xtigervnc process ID 8941... which seems to be deadlocked. Using SIGKILL!

Xvnc TigerVNC 1.7.0 - built Dec  5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation

Mon Aug 30 17:53:55 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 175 requests (175 known processed) with 0 events remaining.
Killing Xtigervnc process ID 9075... which seems to be deadlocked. Using SIGKILL!

===============================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
    tigervncserver -xstartup /usr/bin/xterm

remminaでサーバーが見つからないとメッセージを返され接続できない

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd
x0vncserver: unable to open display ":1"

開けない

$ x0vncserver 1
$ x0vncserver -1
$ x0vncserver --1

マニュアルが表示されるのみ

$ vncserver :1 -geometry 1024x768
/usr/bin/xauth:  /home/jetsonnano/.Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/jetsonnano/.vnc/jetsonnano-desktop:1.log ===================
Killing Xtigervnc process ID 9075... which seems to be deadlocked. Using SIGKILL!

Xvnc TigerVNC 1.7.0 - built Dec  5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation

Mon Aug 30 18:01:10 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 175 requests (175 known processed) with 0 events remaining.
Killing Xtigervnc process ID 9332... which seems to be deadlocked. Using SIGKILL!

===============================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
    tigervncserver -xstartup /usr/bin/xterm

最後に記述されているコマンドを試す。

$ tigervncserver -xstartup /usr/bin/xterm
/usr/bin/xauth:  /home/jetsonnano/.Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /usr/bin/xterm
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

和訳 /usr/bin/xauth: /home/jetsonnano/.Xauthority は書き込み可能ではないので、変更は無視されます。 /usr/bin/xauth: 権限ファイル /home/jetsonnano/.Xauthority のロックでタイムアウトしました。

jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop.

usr/bin/xtermで指定されたアプリケーションの起動 ログファイルは、/home/jetsonnano/.vnc/jetsonnano-desktop:1.logです。

xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1」でVNCサーバーに接続します。

接続されているらしいので試す

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

Mon Aug 30 19:34:03 2021
 Geometry:    Desktop geometry is set to 1900x1200+0+0
 Main:        XTest extension present - version 2.2
 Main:        Listening on port 5900

Mon Aug 30 19:34:11 2021
 Connections: accepted: 192.168.0.42::47190
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Mon Aug 30 19:34:16 2021
 SVncAuth:    opening password file '/home/jetsonnano/.vnc/passwd' failed
 SConnection: AuthFailureException: No password configured for VNC Auth
 Connections: closed: 192.168.0.42::47190 (No password configured for VNC Auth)
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:nan ratio)

和訳 8月30日(月)19:34:03 2021 ジオメトリです。 デスクトップのジオメトリは1900x1200+0+0に設定されています。 Main: XTestエクステンションがあります - バージョン2.2 メイン ポート5900でリスニング中

8月30日(月)19:34:11 2021 Connections: accepted: 192.168.0.42::47190 SConnectionです。Client needs protocol version 3.8 SConnection: Client requests security type VncAuth(2)

8月30日(月) 19:34:16 2021 SVncAuth: パスワードファイル '/home/jetsonnano/.vnc/passwd' のオープンに失敗しました。 SConnection: AuthFailureException: VNC Authに設定されたパスワードがない Connections: Closed: 192.168.0.42::47190 (VNC Auth用のパスワードが設定されていません) EncodeManager: フレームバッファの更新。0 EncodeManager: 合計:0レクチャー、0ピクセル エンコードマネージャー 0 B (1:nan ratio)

パスワードを要求され、前に接続できたパスワードを入力するが、 認証に失敗しました。再接続中です。 と表示されたあと 再度パスワードを要求される。 もう一度繰り返すが変わらず。

設定されたパスワードがない、VNC Auth用のパスワードが設定されていないらしい。 VNC Auth用のパスワードをどこでどう設定するかわからない

先生のコメントどおり

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

のみを実行するのを試してみる -displayはマニュアルを見てもよくわからなかったので再度調べる もしくは先輩に質問する

masuko-shingo commented 2 years ago

端末を開き

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

のみを試す

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

Mon Aug 30 19:51:05 2021
 Geometry:    Desktop geometry is set to 1900x1200+0+0
 Main:        XTest extension present - version 2.2
 Main:        Listening on port 5900

Mon Aug 30 19:51:28 2021
 Connections: accepted: 192.168.0.42::47282
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Mon Aug 30 19:51:31 2021
 SVncAuth:    opening password file '/home/jetsonnano/.vnc/passwd' failed
 SConnection: AuthFailureException: No password configured for VNC Auth
 Connections: closed: 192.168.0.42::47282 (No password configured for VNC Auth)
 EncodeManager: Framebuffer updates: 0
 EncodeManager:   Total: 0 rects, 0 pixels
 EncodeManager:          0 B (1:nan ratio)

パスワードを要求され、前に接続できたパスワードを入力するが、 認証に失敗しました。再接続中です。 と表示されたあと 再度パスワードを要求される。 もう一度繰り返すが変わらず。

yasuohayashibara commented 2 years ago

パスワードファイルにエラーがあります.

SVncAuth:    opening password file '/home/jetsonnano/.vnc/passwd' failed
masuko-shingo commented 2 years ago

一度このファイルを消去してしまったのが原因かと思っています。 復元方法がわからなかったので、とりあえず、

$ touch passwd

でpasswdファイルを空ファイルで作成するという対処を行ったのですが、正しい復元ではないような気がしています。 再インストールする方法か、フォーマットがわかれば書き込むことで、復元可能でしょうか?

yasuohayashibara commented 2 years ago

これだと空のpasswdファイルが生成されますので,正常に起動しないと思います. 以下の記事を参考にしていますので,この通りに実行してみてください. (環境に応じて変更する必要があるところがありますが...)

https://qiita.com/iwatake2222/items/a3bd8d0527dec431ef0f

masuko-shingo commented 2 years ago
jetsonnano@jetsonnano-desktop:~$ tigervncserver -xstartup /usr/bin/xterm
Cleaning stale pidfile '/home/jetsonnano/.vnc/jetsonnano-desktop:1.pid'!

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
/usr/bin/xauth:  /home/jetsonnano/.Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /usr/bin/xterm
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

jetsonnano@jetsonnano-desktop:~$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

Wed Sep  1 20:23:31 2021
 Geometry:    Desktop geometry is set to 1900x1200+0+0
 Main:        XTest extension present - version 2.2
 Main:        Listening on port 5900

Wed Sep  1 20:23:57 2021
 Connections: accepted: 192.168.0.42::58516
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Wed Sep  1 20:23:59 2021
 Main:        Enabling 8 buttons of X pointer device
 Main:        Allocated basic Xlib image
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 15 (16bpp) little-endian rgb555

Wed Sep  1 20:30:59 2021
 Connections: closed: 192.168.0.42::58516 (Clean disconnection)
 EncodeManager: Framebuffer updates: 248
 EncodeManager:   Tight:
 EncodeManager:     Solid: 293 rects, 3.45289 Mpixels
 EncodeManager:            4.29199 KiB (1:1572.08 ratio)
 EncodeManager:     Bitmap RLE: 404 rects, 1.58373 Mpixels
 EncodeManager:                 31.4541 KiB (1:98.4914 ratio)
 EncodeManager:     Indexed RLE: 26 rects, 153.852 kpixels
 EncodeManager:                  7.77734 KiB (1:38.676 ratio)
 EncodeManager:   Tight (JPEG):
 EncodeManager:     Full Colour: 3 rects, 9.118 kpixels
 EncodeManager:                  2.86328 KiB (1:6.23192 ratio)
 EncodeManager:   Total: 726 rects, 5.19959 Mpixels
 EncodeManager:          46.3867 KiB (1:219.114 ratio)
^C
Wed Sep  1 20:32:07 2021
 Main:        Terminated

この操作であればvncで画面が移せるが、前回接続できた際の画面と異なる

写せた画面

remmina_screenshot-2021-9-1-11:30:57 554376

yasuohayashibara commented 2 years ago

困ることがなければこちらで遠隔操作してみると良いと思います. 確か目的は無線でJetsonNanoを操作したいということでしたよね? それができれば見え方が違っていても良いと思います.

あと,そもそも論でいうと,こちらの方が簡単だからということで試している話ですので,難しい場合は別の方法(別のPCで起動したros nodeをつなぐ)でも良いと思います.

masuko-shingo commented 2 years ago

接続はできているのですが、この状態では、rvizやgazeboが起動できない状態です。 SLAMやナビゲーション時、PCに画面を映して、様子を確認できないので、結局jetsonnanoにディスプレイを接続しないと、様子を確認できない形です。

masuko-shingo commented 2 years ago

先輩のアドバイスに従って vncpasswdでパスワードの再設定

$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n

$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd
x0vncserver: unable to open display ":1"

jetsonnano@jetsonnano-desktop:~$ tigervncserver -xstartup /usr/bin/xterm
Cleaning stale pidfile '/home/jetsonnano/.vnc/jetsonnano-desktop:1.pid'!
/usr/bin/xauth:  /home/jetsonnano/.Xauthority not writable, changes will be ignored
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /usr/bin/xterm
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

jetsonnano@jetsonnano-desktop:~$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

Wed Sep  1 21:39:26 2021
 Geometry:    Desktop geometry is set to 1900x1200+0+0
 Main:        XTest extension present - version 2.2
 Main:        Listening on port 5900

Wed Sep  1 21:39:30 2021
 Connections: accepted: 192.168.0.42::58930
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Wed Sep  1 21:39:33 2021
 Main:        Enabling 8 buttons of X pointer device
 Main:        Allocated basic Xlib image
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 15 (16bpp) little-endian rgb555

Wed Sep  1 21:39:35 2021
 Connections: closed: 192.168.0.42::58930 (Clean disconnection)
 EncodeManager: Framebuffer updates: 2
 EncodeManager:   Tight:
 EncodeManager:     Solid: 7 rects, 2.26901 Mpixels
 EncodeManager:            105 B (1:43220 ratio)
 EncodeManager:     Bitmap RLE: 2 rects, 11.072 kpixels
 EncodeManager:                 685 B (1:32.362 ratio)
 EncodeManager:   Total: 9 rects, 2.28008 Mpixels
 EncodeManager:          790 B (1:5772.49 ratio)
^C
Wed Sep  1 21:39:38 2021
 Main:        Terminated

remminaで接続できるが、画面には端末のみが映る gazebo等起動できず

パスワードファイルを消去して、vncserverを再起動するとパスワードファイルが生成されるとのことなので試す

jetsonnano@jetsonnano-desktop:~$ vncserver -kill :1
Killing Xtigervnc process ID 7238... success!
jetsonnano@jetsonnano-desktop:~$ cd ~/.vnc
jetsonnano@jetsonnano-desktop:~/.vnc$ ls
jetsonnano-desktop:1.log  jetsonnano-desktop:2.log  passwd
jetsonnano@jetsonnano-desktop:~/.vnc$ rm passwd 
jetsonnano@jetsonnano-desktop:~/.vnc$ ls
jetsonnano-desktop:1.log  jetsonnano-desktop:2.log
jetsonnano@jetsonnano-desktop:~/.vnc$ cd
jetsonnano@jetsonnano-desktop:~$ vncserver

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? n
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /etc/X11/Xvnc-session
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

vncserver: Failed command '/etc/X11/Xvnc-session': 256!

=================== tail -15 /home/jetsonnano/.vnc/jetsonnano-desktop:1.log ===================
syswrite() on closed filehandle WH at /usr/bin/tigervncserver line 888.

Xvnc TigerVNC 1.7.0 - built Dec  5 2017 09:25:01
Copyright (C) 1999-2016 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11905000, The X.Org Foundation

Wed Sep  1 21:41:22 2021
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on local interface(s), port 5901
 vncext:      created VNC server for screen 0
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 175 requests (175 known processed) with 0 events remaining.
Killing Xtigervnc process ID 7440... which seems to be deadlocked. Using SIGKILL!

===============================================================================================

Starting applications specified in /etc/X11/Xvnc-session has failed.
Maybe try something simple first, e.g.,
    tigervncserver -xstartup /usr/bin/xterm

vncserver起動後、x0vncserver -display :1 -passwordfile ~/.vnc/passwdのみでは画面が開かなかったので、$ tigervncserver -xstartup /usr/bin/xtermを先に実行する。

jetsonnano@jetsonnano-desktop:~$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd
x0vncserver: unable to open display ":1"
jetsonnano@jetsonnano-desktop:~$ vncserver -list

TigerVNC server sessions:

X DISPLAY # PROCESS ID
jetsonnano@jetsonnano-desktop:~$ tigervncserver -xstartup /usr/bin/xterm
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority
/usr/bin/xauth:  timeout in locking authority file /home/jetsonnano/.Xauthority

New 'jetsonnano-desktop:1 (jetsonnano)' desktop at :1 on machine jetsonnano-desktop

Starting applications specified in /usr/bin/xterm
Log file is /home/jetsonnano/.vnc/jetsonnano-desktop:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/jetsonnano/.vnc/passwd :1 to connect to the VNC server.

jetsonnano@jetsonnano-desktop:~$ x0vncserver -display :1 -passwordfile ~/.vnc/passwd

Wed Sep  1 21:43:03 2021
 Geometry:    Desktop geometry is set to 1900x1200+0+0
 Main:        XTest extension present - version 2.2
 Main:        Listening on port 5900

Wed Sep  1 21:43:08 2021
 Connections: accepted: 192.168.0.42::58942
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)

Wed Sep  1 21:43:13 2021
 Main:        Enabling 8 buttons of X pointer device
 Main:        Allocated basic Xlib image
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 15 (16bpp) little-endian rgb555

Wed Sep  1 21:43:19 2021
 Connections: closed: 192.168.0.42::58942 (Clean disconnection)
 EncodeManager: Framebuffer updates: 5
 EncodeManager:   Tight:
 EncodeManager:     Solid: 7 rects, 2.26901 Mpixels
 EncodeManager:            105 B (1:43220 ratio)
 EncodeManager:     Bitmap RLE: 6 rects, 14.114 kpixels
 EncodeManager:                 1.00391 KiB (1:27.5292 ratio)
 EncodeManager:   Total: 13 rects, 2.28312 Mpixels
 EncodeManager:          1.10645 KiB (1:4030.36 ratio)
^C
Wed Sep  1 21:43:21 2021
 Main:        Terminated

結果は同じく、 remminaで接続できるが、画面には端末のみが映る gazebo等起動できず

NaokiTakahashi12 commented 2 years ago

gnome desktop 環境でvncserver を起動するには,passwdxstartupのファイルが必要となります. 何も用意しないまま,起動すると/usr/bin/xtermが呼ばれるので,https://github.com/masuko-shingo/jetson-nano/issues/6#issuecomment-910208733 のような画面で起動します.

現在gnome desktopが起動していないように見えるので,/etc/vnc/xstartup$HOME/.vnc/xstartupが存在していない可能性が高いです. もし,gnome desktopの環境で起動したい場合には,gnome-sessionがvncserverのスタートアップのタイミングで呼ばれる必要があるので,xstartupファイルに記述すると立ち上がると思います.

また,x0vncservertigervncservervncserver のコマンドを併用して使用しているようですが,vncserverコマンドのみを利用することをおすすめします.

理由は,以下のようにシンボリックとなっているためです.

$ ls -l $(which vncserver)
lrwxrwxrwx 1 root root 27 Jun 16  2020 /usr/bin/vncserver -> /etc/alternatives/vncserver
$ ls -l /etc/alternatives/vncserver
lrwxrwxrwx 1 root root 23 Jun 16  2020 /etc/alternatives/vncserver -> /usr/bin/tigervncserver
masuko-shingo commented 2 years ago

xstartupファイルが存在するか確認したところ、
/etc/vnc/xstartup $HOME/.vnc/xstartupどちらも存在していませんでした。

xstartupファイルが存在しない場合は、作成して記述すれば問題ないでしょうか? 作成方法、記述方法がわからず調べたところ、このようなサイトを発見したので試してみようかと思っているのですが、
問題ありませんでしょうか? サイト:http://safe-linux.homeip.net/other/linux-vnc-03.html

GNOME を使用する場合 ~/.vnc/xstartup

#START_WINDOWMANAGER
/usr/bin/gnome-session
#END_WINDOWMANAGER

xstartupファイルが存在するか確認した際のログ

jetsonnano@jetsonnano-desktop:~$ cd ~/.vnc
jetsonnano@jetsonnano-desktop:~/.vnc$ ls
jetsonnano-desktop:1.log  jetsonnano-desktop:2.log  passwd
jetsonnano@jetsonnano-desktop:~$ cd /etc/vnc
-bash: cd: /etc/vnc: No such file or directory
jetsonnano@jetsonnano-desktop:~$ cd /etc/
jetsonnano@jetsonnano-desktop:/etc$ ls
adduser.conf                   host.conf                 passwd-
alternatives                   hostname                  pcmcia
anacrontab                     hosts                     perl
apache2                        hosts.allow               pki
apg.conf                       hosts.deny                pm
apm                            hp                        pnm2ppa.conf
apparmor                       idmapd.conf               polkit-1
apparmor.d                     ifplugd                   ppp
apport                         ImageMagick-6             profile
appstream.conf                 init                      profile.d
apt                            init.d                    protocols
asound.conf                    initramfs-tools           pulse
asound.conf.tegrahda           inputrc                   python
asound.conf.tegrasndt210ref    insserv.conf.d            python2.7
avahi                          iproute2                  python3
avrdude.conf                   issue                     python3.6
bash.bashrc                    issue.net                 rc0.d
bash_completion                kernel                    rc1.d
bash_completion.d              kerneloops.conf           rc2.d
bindresvport.blacklist         ldap                      rc3.d
binfmt.d                       ld.so.cache               rc4.d
bluetooth                      ld.so.conf                rc5.d
bonobo-activation              ld.so.conf.d              rc6.d
brlapi.key                     legal                     rcS.d
brltty                         libao.conf                request-key.conf
brltty.conf                    libaudit.conf             request-key.d
ca-certificates                libblockdev               resolvconf
ca-certificates.conf           libibverbs.d              resolv.conf
ca-certificates.conf.dpkg-old  libnl-3                   rmt
calendar                       libpaper.d                ros
chatscripts                    libreoffice               rpc
chromium-browser               lightdm                   rsyslog.conf
chrony                         lighttpd                  rsyslog.d
cni                            lintianrc                 sane.d
compizconfig                   locale.alias              sbclrc
console-setup                  locale.gen                securetty
cracklib                       localtime                 security
cron.d                         logcheck                  selinux
cron.daily                     login.defs                sensors3.conf
cron.hourly                    logrotate.conf            sensors.d
cron.monthly                   logrotate.d               services
crontab                        lsb-release               sgml
cron.weekly                    machine-id                shadow
crypttab                       magic                     shadow-
cupshelpers                    magic.mime                shells
dbus-1                         mailcap                   skel
dconf                          mailcap.order             sound
debconf.conf                   manpath.config            speech-dispatcher
debian_version                 matplotlibrc              ssh
default                        menu                      ssl
deluser.conf                   menu-methods              subgid
depmod.d                       mercurial                 subgid-
dhcp                           mime.types                subuid
dictionaries-common            mke2fs.conf               subuid-
dnsmasq.conf                   modprobe.d                subversion
dnsmasq.d                      modules                   sudoers
docker                         modules-load.d            sudoers.d
dpkg                           mpv                       su-to-rootrc
drirc                          mtab                      sysctl.conf
emacs                          mysql                     sysctl.d
enctune.conf                   netconfig                 systemd
environment                    network                   terminfo
fb.modes                       networkd-dispatcher       thunderbird
ffserver.conf                  NetworkManager            tigervnc
firefox                        networks                  timezone
fonts                          newt                      timidity
fstab                          nsswitch.conf             tmpfiles.d
fuse.conf                      ntp.conf                  ucf.conf
fwupd                          nv                        udev
gai.conf                       nv_boot_control.conf      udisks2
gconf                          nvidia-container-runtime  ufw
gdb                            nv-oem-config.conf        update-manager
gdm3                           nvphsd_common.conf        update-motd.d
geoclue                        nvphsd.conf               update-notifier
ghostscript                    nvpmodel                  UPower
glvnd                          nvpmodel.conf             usb_modeswitch.conf
gnome                          nv_tegra_release          usb_modeswitch.d
gnome-system-tools             ODBCDataSources           vdpau_wrapper.cfg
gnome-vfs-2.0                  odbc.ini                  vim
groff                          odbcinst.ini              vnc.conf
group                          openal                    vtrgb
group-                         openmpi                   vulkan
grub.d                         openni                    wgetrc
gshadow                        openni2                   wildmidi
gshadow-                       opt                       wpa_supplicant
gss                            os-release                wpa_supplicant.conf
gtk-2.0                        PackageKit                X11
gtk-3.0                        pam.conf                  xdg
guest-session                  pam.d                     xml
hddtemp.db                     passwd
NaokiTakahashi12 commented 2 years ago

上記の$HOME/.vnc/xstartupでは,dbus-launchを介せずに起動しようとしているので,以下を参考に設定するといいとおもいます. https://www.answertopia.com/ubuntu/ubuntu-remote-desktop-access-with-vnc/

masuko-shingo commented 2 years ago

これらのサイトを参考にして、
https://www.answertopia.com/ubuntu/ubuntu-remote-desktop-access-with-vino/
https://www.hackster.io/news/getting-started-with-the-nvidia-jetson-nano-developer-kit-43aa7c298797
vinoインストールと、設定から画面共有を有効にしてvncを行いました。
jetsonnanoにディスプレイを繋いでいない状態でvncを行ったところ、 remmina(ubuntu)、realVNC(windows)どちらも接続できましたが、NVIDIAのロゴマークしか表示されないという状況です。 jetsonnanoにディスプレイを繋いだ状態では、 vncの画面が真っ黒な画面となり、ディスプレイはGUIが表示されました。 どう対処すれば良いでしょうか?

また、xstartupファイルは、先輩が提示してくださったサイトを参考に作成しました。

ログ

xstartupファイルを作成

$ cd ~/.vnc
$ vim xstartup

xstartupファイル内容

#!/bin/sh
#Gnome3desktop wo boot suru
[-x/etc/vnc/xstartup]&&exec/etc/vnc/startup
[-r$HOME/.Xresources]&&xrdb$HOME/.Xresources
vncconfig -iconic&
dbus-launch --exit-with-session gnome-session&

vinoをインストール

$ sudo apt install vino

xrdpをインストール

jetsonnano@jetsonnano-desktop:~$ sudo apt install xrdp

org.gnome.Vino.gschemaを編集

jetsonnano@jetsonnano-desktop:~$ sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml

編集した部分(最下部に追加)

    <key name='enabled' type='b'>
      <summary>Enable remote access to the desktop</summary>
        <description>
          If true, allows remote access to the desktop via the RFB
          protocol. Users on remote machines may then connect to the
          desktop using a VNC viewer.
        </description>
      <default>false</default>
    </key>

glib-compile-schemasコマンドを使用してGnomeスキーマをコンパイル

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

VNC接続の暗号化を無効

jetsonnano@jetsonnano-desktop:~$ gsettings set org.gnome.Vino require-encryption false
jetsonnano@jetsonnano-desktop:~$ gsettings set org.gnome.Vino prompt-enabled false
NaokiTakahashi12 commented 2 years ago

https://github.com/masuko-shingo/jetson-nano/issues/6#issuecomment-914057197 の参考にしているURLの1つ目を見たところ,GUIがgnomeで無いと思います. よって,gnomeデスクトップがインストールされておらず,背景のみしか表示されないなどが起きていると考えられます.

ubuntu 20.04や18.04のデフォルトのデスクトップはgnomeですが,16.04のデフォルトはunityです. そのため,gnomeデスクトップ環境だと考えてコメントしましたが,jetsonがunityを使用している場合はgnomeと設定方法が異なります.

現在,gnomeで設定してしまっているようなので,gnomeデスクトップをインストールして試してみてもいいかもしれません. gnomeデスクトップを直接指定してaptでインストールする場合は以下の感じだったと思います.

sudo apt install ubuntu-gnome-desktop

デスクトップ環境の切り替えについて https://www.howtogeek.com/193129/how-to-install-and-use-another-desktop-environment-on-linux/

最後に,unityデスクトップでvncの環境を構築するのは,環境依存の部分が多く難しいかもしれないので, xfce4のデスクトップ環境でvnc serverを立てるという手もあります. https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04

masuko-shingo commented 2 years ago

返答が遅れてしまいました。申し訳ありません。 ログに抜けがありました。 https://github.com/masuko-shingo/jetson-nano/issues/6#issuecomment-914057197 の、「xstartupファイルを作成」後にubuntu-gnome-desktopをインストールしていました。 基本的なことや、vncserverの使い方を間違えている可能性が高いのですが、接続ができませんでした。 以下ログ ubuntu-gnome-desktopをインストール

jetsonnano@jetsonnano-desktop:~$ sudo apt install ubuntu-gnome-desktop
[sudo] password for jetsonnano:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  adwaita-icon-theme-full fonts-cantarell gnome-session
The following NEW packages will be installed:
  adwaita-icon-theme-full fonts-cantarell gnome-session ubuntu-gnome-desktop
0 upgraded, 4 newly installed, 0 to remove and 173 not upgraded.
Need to get 8,186 kB of archives.
After this operation, 23.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 adwaita-icon-theme-full all 3.28.0-1ubuntu1 [7,999 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 fonts-cantarell all 0.0.25-4 [141 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 gnome-session arm64 3.28.1-0ubuntu3 [43.8 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic/universe arm64 ubuntu-gnome-desktop arm64 0.83 [2,816 B]
Fetched 8,186 kB in 5s (1,798 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package adwaita-icon-theme-full.
(Reading database ... 248315 files and directories currently installed.)
Preparing to unpack .../adwaita-icon-theme-full_3.28.0-1ubuntu1_all.deb ...
Unpacking adwaita-icon-theme-full (3.28.0-1ubuntu1) ...
Selecting previously unselected package fonts-cantarell.
Preparing to unpack .../fonts-cantarell_0.0.25-4_all.deb ...
Unpacking fonts-cantarell (0.0.25-4) ...
Selecting previously unselected package gnome-session.
Preparing to unpack .../gnome-session_3.28.1-0ubuntu3_arm64.deb ...
Unpacking gnome-session (3.28.1-0ubuntu3) ...
Selecting previously unselected package ubuntu-gnome-desktop.
Preparing to unpack .../ubuntu-gnome-desktop_0.83_arm64.deb ...
Unpacking ubuntu-gnome-desktop (0.83) ...
Setting up fonts-cantarell (0.0.25-4) ...
Setting up gnome-session (3.28.1-0ubuntu3) ...
Setting up ubuntu-gnome-desktop (0.83) ...
Setting up adwaita-icon-theme-full (3.28.0-1ubuntu1) ...
Processing triggers for fontconfig (2.12.6-0ubuntu2) ...

接続を試す

jetsonnano@jetsonnano-desktop:~$ vncserver -list

TigerVNC server sessions:

X DISPLAY # PROCESS ID
:5      12678
jetsonnano@jetsonnano-desktop:~$ vncserver :5

単純にvncの接続方法が間違っているのかなと思うのですが、よくわからないという状況になっています。 もう少し自分でも試行錯誤してみます。 ご指摘、アドバイスお願い致します。

yasuohayashibara commented 2 years ago

こちら本質ではないところで詰まって動けなくなっていると思います. 大学に来て林原でも構いませんが,分かる方に直接聞いたほうが早いと思います. (林原はSIが終了するまではあまり時間を取れないかもしれませんが...)