DataScience
article thumbnail
Published 2024. 1. 26. 12:53
ARCH Linux VNCserver 리눅스
728x90

1. 초기 설정

tigervncviewer를 설치합니다.

 

password 설정

<bash />
vncpasswd

 

원하는 암호 입력하고 (6자리)

~/.vnc/passwd permission을 0600으로 설정합니다.

 

2. 서버 키는 방법

2.1. Running x0vncserver to directly control the local display (직접 서버 키는방법)

<code />
$ x0vncserver -rfbauth ~/.vnc/passwd

 

 

2.2. With xprofile

<code />
~/.xprofile
<code />
... x0vncserver -rfbauth ~/.vnc/passwd &

 

2.3. With systemd (system service로 키는 방법)

2.3.1. With a system service

<code />
/etc/systemd/system/x0vncserver.service
<code />
[Unit] Description=Remote desktop service (VNC) for :0 display Requires=display-manager.service After=network-online.target After=display-manager.service [Service] Type=simple Environment=HOME=/root Environment=XAUTHORITY=/var/run/lightdm/root/:0 ExecStart=x0vncserver -display :0 -rfbauth ~/.vnc/passwd Restart=on-failure RestartSec=500ms [Install] WantedBy=multi-user.target

 

<bash />
systemctl start x0vncserver.service systemctl enable x0vncserver.service

 

 

 

3. 실행

vcnviewer ip주소

 

 

profile

DataScience

@Ninestar

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!