Kill tightvnc manually
· sudo vncserver -kill:* If not work, remove the file log / pid using command: rm ~/.vnc/*:*.*. Either you can manually kill the process or you can follow proper configuration steps and use a different login session no. for vncserver. Error: # service vncserver restart Shutting down VNC server: 2:root [FAILED] Starting VNC server: 2:root A VNC server is already running as:2 [FAILED] # vncserver -kill:2 Can't find file /root/.vnc/www.doorway.ru You'll have to kill the Xvnc process manually. As you noticed, from the man vncserver: kill:display# This kills a VNC desktop previously started with vncserver. It does this by killing the Xvnc process, whose process ID is stored in the file "$HOME/.vnc/host:display#.pid". It actually ignores anything preceding a ":" in its argument.
vncserver:1 vncviewer localhost:1 # Kill vncviewer window manually, and then: vncserver -kill:1 Launch TightVNC with DMTCP. Make sure the executables dmtcp_launch, dmtcp_coordinator, dmtcp_restart, and dmtcp_command are in your path. Note that if the VNC server is killed without using the vncserver -kill, there will be some temporary files. From SSH or terminal session on a Debian 9 Stretch based system the following works: /usr/bin/tigervncserver:1 -depth 24 -geometry x -localhost no However this same command as represented in the following systemd unit file fails. Hi. Im using Debian 10 and would like VNCServer to autostart on boot. Everything seemed to work, but the service starts as "Active: inactive (dead)" and VNC Server doesn't run.
[Unit] Description=Start TightVNC server at startup After=www.doorway.ru www.doorway.ru [Service] Type=forking User=brady Group=brady WorkingDirectory=/home/brady PIDFile=/home/brady/.vnc/%H:%www.doorway.ru ExecStartPre=/usr/bin/vncserver -kill:%i /dev/null 21 ExecStart=/usr/bin/vncserver -depth 24 -geometry x%i ExecStop=/usr/bin/vncserver -kill:%i [Install] WantedBy=www.doorway.ru Either you can manually kill the process or you can follow proper configuration steps and use a different login session no. for vncserver. Error: # service vncserver restart Shutting down VNC server: 2:root [FAILED] Starting VNC server: 2:root A VNC server is already running as:2 [FAILED] # vncserver -kill:2 Can't find file /root/.vnc/www.doorway.ru You'll have to kill the Xvnc process manually. As you noticed, from the man vncserver: kill:display# This kills a VNC desktop previously started with vncserver. It does this by killing the Xvnc process, whose process ID is stored in the file "$HOME/.vnc/host:display#.pid". It actually ignores anything preceding a ":" in its argument.
0コメント