apt-get install xfce4 xfce4-* vnc4server -y
계정 홈디렉터리 이동
vncserver
password 입력
vi /home/계정/.vnc/xstartup
===============================================================================
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
===============================================================================
vi /etc/systemd/system/vncserver@.service
===============================================================================
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
[Service]
Type=forking
User=bitcoin
Group=bitcoin
WorkingDirectory=/home/bitcoin
PIDFile=/home/bitcoin/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1600x900 :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
===============================================================================
systemctl enable vncserver@1
systemctl start vncserver@1
'Linux OS > 관리' 카테고리의 다른 글
Owasp Zap 설치하기 (0) | 2023.03.12 |
---|---|
서버 이전 (0) | 2023.03.12 |
crontab (0) | 2023.03.12 |
log 관리하기 (rsyslog) (0) | 2023.03.12 |
rsync, scp 사용법 (원격 파일,소스보내기) (0) | 2023.03.12 |
댓글