공부중
[Jetson Nano] VNC 연결 본문
728x90
desktop share 라는게 있는데 눌러도 아무것도 동작하지 않는데
https://medium.com/@bharathsudharsan023/jetson-nano-remote-vnc-access-d1e71c82492b
이걸 봐서 따라했는데 나한테는 해당 부분이 안보인다..
sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
더보기
ye@ye-jsnano:~$ cat /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
<schemalist>
<schema id='org.gnome.Vino' path='/org/gnome/desktop/remote-access/'>
<key name='prompt-enabled' type='b'>
<summary>Prompt the user before completing a connection</summary>
<description>
If true, remote users accessing the desktop are not allowed
access until the user on the host machine approves the
connection. Recommended especially when access is not password
protected.
</description>
<default>true</default>
</key>
<key name='view-only' type='b'>
<summary>Only allow remote users to view the desktop</summary>
<description>
If true, remote users accessing the desktop are only allowed to
view the desktop. Remote users will not be able to use the mouse
or keyboard.
</description>
<default>false</default>
</key>
<key name='network-interface' type='s'>
<summary>Network interface for listening</summary>
<description>
If not set, the server will listen on all network interfaces.
Set this if you want to accept connections only from some specific
network interface. For example, eth0, wifi0, lo and so on.
</description>
<default>''</default>
</key>
<key name='use-alternative-port' type='b'>
<summary>Listen on an alternative port</summary>
<description>
If true, the server will listen on another port, instead of the default
(5900). The port must be specified in the 'alternative-port' key.
</description>
<default>false</default>
</key>
<key name='alternative-port' type='q'>
<summary>Alternative port number</summary>
<description>
The port which the server will listen to if the 'use-alternative-port'
key is set to true. Valid values are in the range of 5000 to 50000.
</description>
<default>5900</default>
</key>
<key name='require-encryption' type='b'>
<summary>Require encryption</summary>
<description>
If true, remote users accessing the desktop are required to
support encryption. It is highly recommended that you use a
client which supports encryption unless the intervening network
is trusted.
</description>
<default>true</default>
</key>
<key name='authentication-methods' type='as'>
<summary>Allowed authentication methods</summary>
<description>
Lists the authentication methods with which remote users may
access the desktop.
There are two possible authentication methods; "vnc" causes the
remote user to be prompted for a password (the password is
specified by the vnc-password key) before connecting and "none"
which allows any remote user to connect.
</description>
<default>['none']</default>
</key>
<key name='vnc-password' type='s'>
<summary>Password required for "vnc" authentication</summary>
<description>
The password which the remote user will be prompted for if the
"vnc" authentication method is used. The password specified by
the key is base64 encoded.
The special value of 'keyring' (which is not valid base64) means
that the password is stored in the GNOME keyring.
</description>
<default>'keyring'</default>
</key>
<key name='mailto' type='s'>
<summary>E-mail address to which the remote desktop URL should be sent</summary>
<description>
This key specifies the e-mail address to which the remote
desktop URL should be sent if the user clicks on the URL in the
Desktop Sharing preferences dialog.
</description>
<default>''</default>
</key>
<key name='lock-screen-on-disconnect' type='b'>
<summary>Lock the screen when last user disconnect</summary>
<description>
If true, the screen will be locked after the last remote client
disconnects.
</description>
<default>false</default>
</key>
<key name='icon-visibility' enum="org.gnome.Vino.VinoIconVisibility">
<summary>When the status icon should be shown</summary>
<description>
This key controls the behavior of the status icon. There are
three options: "always" - the icon will always be present; "client" -
the icon will only be present when someone is connected (this is the
default behavior); "never" - the icon will not be present.
</description>
<default>'client'</default>
</key>
<key name='disable-background' type='b'>
<summary>Whether to disable the desktop background when a user is connected</summary>
<description>
When true, disable the desktop background and replace it with a single
block of color when a user successfully connects.
</description>
<default>false</default>
</key>
<key name='use-upnp' type='b'>
<summary>Whether a UPnP router should be used to forward and open ports</summary>
<description>
If true, request that a UPnP-capable router should forward and open the
port used by Vino.
</description>
<default>false</default>
</key>
<key name='disable-xdamage' type='b'>
<summary>Whether we should disable the XDamage extension of X.org</summary>
<description>
If true, do not use the XDamage extension of X.org. This extension does
not work properly on some video drivers when using 3D effects.
Disabling it will make Vino work in these environments, with slower
rendering as a side effect.
</description>
<default>false</default>
</key>
<key name='notify-on-connect' type='b'>
<summary>Notify on connect</summary>
<description>
If true, show a notification when a user connects to the system.
</description>
<default>true</default>
</key>
</schema>
</schemalist>
gpt한테 물어보니까 그냥 추가하라 그래서 해당 부분 추가하기
<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>true</default>
</key>
전체 코드
더보기
<schemalist>
<schema id='org.gnome.Vino' path='/org/gnome/desktop/remote-access/'>
<key name='prompt-enabled' type='b'>
<summary>Prompt the user before completing a connection</summary>
<description>
If true, remote users accessing the desktop are not allowed
access until the user on the host machine approves the
connection. Recommended especially when access is not password
protected.
</description>
<default>true</default>
</key>
<key name='view-only' type='b'>
<summary>Only allow remote users to view the desktop</summary>
<description>
If true, remote users accessing the desktop are only allowed to
view the desktop. Remote users will not be able to use the mouse
or keyboard.
</description>
<default>false</default>
</key>
<key name='network-interface' type='s'>
<summary>Network interface for listening</summary>
<description>
If not set, the server will listen on all network interfaces.
Set this if you want to accept connections only from some specific
network interface. For example, eth0, wifi0, lo and so on.
</description>
<default>''</default>
</key>
<key name='use-alternative-port' type='b'>
<summary>Listen on an alternative port</summary>
<description>
If true, the server will listen on another port, instead of the default
(5900). The port must be specified in the 'alternative-port' key.
</description>
<default>false</default>
</key>
<key name='alternative-port' type='q'>
<summary>Alternative port number</summary>
<description>
The port which the server will listen to if the 'use-alternative-port'
key is set to true. Valid values are in the range of 5000 to 50000.
</description>
<default>5900</default>
</key>
<key name='require-encryption' type='b'>
<summary>Require encryption</summary>
<description>
If true, remote users accessing the desktop are required to
support encryption. It is highly recommended that you use a
client which supports encryption unless the intervening network
is trusted.
</description>
<default>true</default>
</key>
<key name='authentication-methods' type='as'>
<summary>Allowed authentication methods</summary>
<description>
Lists the authentication methods with which remote users may
access the desktop.
There are two possible authentication methods; "vnc" causes the
remote user to be prompted for a password (the password is
specified by the vnc-password key) before connecting and "none"
which allows any remote user to connect.
</description>
<default>['none']</default>
</key>
<key name='vnc-password' type='s'>
<summary>Password required for "vnc" authentication</summary>
<description>
The password which the remote user will be prompted for if the
"vnc" authentication method is used. The password specified by
the key is base64 encoded.
The special value of 'keyring' (which is not valid base64) means
that the password is stored in the GNOME keyring.
</description>
<default>'keyring'</default>
</key>
<key name='mailto' type='s'>
<summary>E-mail address to which the remote desktop URL should be sent</summary>
<description>
This key specifies the e-mail address to which the remote
desktop URL should be sent if the user clicks on the URL in the
Desktop Sharing preferences dialog.
</description>
<default>''</default>
</key>
<key name='lock-screen-on-disconnect' type='b'>
<summary>Lock the screen when last user disconnect</summary>
<description>
If true, the screen will be locked after the last remote client
disconnects.
</description>
<default>false</default>
</key>
<key name='icon-visibility' enum="org.gnome.Vino.VinoIconVisibility">
<summary>When the status icon should be shown</summary>
<description>
This key controls the behavior of the status icon. There are
three options: "always" - the icon will always be present; "client" -
the icon will only be present when someone is connected (this is the
default behavior); "never" - the icon will not be present.
</description>
<default>'client'</default>
</key>
<key name='disable-background' type='b'>
<summary>Whether to disable the desktop background when a user is connected</summary>
<description>
When true, disable the desktop background and replace it with a single
block of color when a user successfully connects.
</description>
<default>false</default>
</key>
<key name='use-upnp' type='b'>
<summary>Whether a UPnP router should be used to forward and open ports</summary>
<description>
If true, request that a UPnP-capable router should forward and open the
port used by Vino.
</description>
<default>false</default>
</key>
<key name='disable-xdamage' type='b'>
<summary>Whether we should disable the XDamage extension of X.org</summary>
<description>
If true, do not use the XDamage extension of X.org. This extension does
not work properly on some video drivers when using 3D effects.
Disabling it will make Vino work in these environments, with slower
rendering as a side effect.
</description>
<default>false</default>
</key>
<key name='notify-on-connect' type='b'>
<summary>Notify on connect</summary>
<description>
If true, show a notification when a user connects to the system.
</description>
<default>true</default>
</key>
<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>true</default>
</key>
</schema>
</schemalist>
설정 저장
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
ps -ef|grep vnc
이제 열린다.
desktop share 누르기
없으면 설치하기
기본설정은 왼쪽인데 오른쪽처럼 바꾸자
이 설정은 리눅스 시스템에서 원격 데스크톱 공유를 설정할 때 사용됩니다. 각 옵션에 대한 설명은 다음과 같습니다:
- Allow other users to view your desktop
- 이 옵션을 활성화하면, 다른 사용자들이 당신의 데스크톱을 볼 수 있습니다. 이는 시청 권한만 부여하는 것으로, 다른 사용자들이 당신의 데스크톱에서 아무런 조작을 할 수 없습니다.
- Allow other users to control your desktop
- 이 옵션을 활성화하면, 다른 사용자들이 당신의 데스크톱을 원격으로 조작할 수 있습니다. 이는 마우스와 키보드 입력이 가능하며, 원격 사용자가 당신의 컴퓨터를 마치 자신의 것처럼 사용할 수 있게 합니다.
- You must confirm each access to this machine
- 이 옵션을 활성화하면, 다른 사용자가 당신의 데스크톱에 접속하려 할 때마다 당신의 승인이 필요합니다. 승인 요청은 일반적으로 팝업 창 형태로 나타나며, 당신이 수락하거나 거부할 수 있습니다.
- Require the user to enter this password:
- 이 옵션을 활성화하면, 원격 사용자가 당신의 데스크톱에 접속하기 위해 비밀번호를 입력해야 합니다. 이는 보안을 강화하는 방법으로, 설정된 비밀번호를 알고 있는 사용자만이 접속할 수 있게 합니다.
- Automatically configure UPnP router to open and forward ports
- 이 옵션을 활성화하면, UPnP(Universal Plug and Play)가 지원되는 라우터를 사용하는 경우 자동으로 포트를 개방하고 포워딩합니다. 이는 네트워크 설정을 수동으로 조정하지 않고도 원격 접속을 용이하게 할 수 있도록 도와줍니다.
- Show Notification Area Icon
- 이 설정은 데스크톱 공유 서비스가 활성화되었을 때 알림 영역에 아이콘이 표시되는 방식을 결정합니다.
- Always: 항상 아이콘을 표시합니다.
- Only when someone is connected: 사용자가 연결되어 있을 때만 아이콘을 표시합니다.
- Never: 아이콘을 절대 표시하지 않습니다.
비밀 번호 설정
앱에서 startup applications 들어가기
추가
vino로 해야된다.
재시작
sudo reboot
노트북에서 vnc 연결
젯슨 나노 재부팅을 해야 뜬다
됨
728x90
'인공지능...? > Jetson Nano' 카테고리의 다른 글
[Jetson Nano] 데스크톱 GUI를 비활성화 (0) | 2025.02.01 |
---|---|
[Jetson Nano] 구매 및 기본 세팅 (3) SSD 연결 (0) | 2025.01.31 |
[Jetson Nano] 전원 스위치 만들기 (1) | 2025.01.31 |
[Jetson Nano] 구매 및 기본 세팅 (2) OS 설치 (0) | 2025.01.30 |
[Jetson Nano] 구매 및 기본 세팅 (1) (0) | 2025.01.30 |