(20)
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-20-04-ja
apt update
apt install xfce4 xfce4-goodies
apt install tightvncserver
vncpasswd
vncserver :1
ps -ef | grep vnc
vncserver -kill :1
mv /root/.vnc/xstartup ~/.vnc/xstartup.bak
vim /root/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
chmod +x /root/.vnc/xstartup
5901番ポートに接続
vncserver -kill :1
vim /etc/systemd/system/vncserver@:1.service
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
[Service]
Type=forking
User=root
Group=root
WorkingDirectory=/root
PIDFile=/root/.vnc/%H%i.pid
ExecStartPre=-/usr/bin/vncserver -kill %i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 %i
ExecStop=/usr/bin/vncserver -kill %i
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable vncserver@:1.service
systemctl restart vncserver@:1
systemctl status vncserver@:1
(10)
https://www.codeflow.site/ja/article/how-to-install-and-configure-vnc-on-debian-10
apt update
apt install xfce4 xfce4-goodies
apt install tightvncserver
vncpasswd
vncserver :1
ps -ef | grep vnc
vncserver -kill :1
mv /root/.vnc/xstartup ~/.vnc/xstartup.bak
vim /root/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
chmod +x /root/.vnc/xstartup
5901番ポートに接続
vncserver -kill :1
vim /etc/systemd/system/vncserver@:1.service
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
[Service]
Type=forking
User=root
Group=root
WorkingDirectory=/root
PIDFile=/root/.vnc/%H%i.pid
ExecStartPre=-/usr/bin/vncserver -kill %i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 %i
ExecStop=/usr/bin/vncserver -kill %i
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable vncserver@:1.service
systemctl restart vncserver@:1
systemctl status vncserver@:1
(7)
https://qiita.com/SkyLaptor/items/48f1bd38f728199ed485
yum groups install "GNOME Desktop"
yum install tigervnc-server
vncpasswd
vncserver :1
vncserver -list
5901番ポートに接続
cp -p /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
vim /etc/systemd/system/vncserver@:1.service
<USER>を修正
vncserver -kill :1
vncserver -list
systemctl daemon-reload
systemctl restart vncserver@:1.service
systemctl status vncserver@:1.service
systemctl enable vncserver@:1.service
- Windows Server
(2019)
https://pcmanabu.com/windows-10-vnc/
パスワード設定
5901番ポートに接続