Uninstalling and reinstalling from RPM does no good. Please keep in mind that the problem does not lie in the vncservers, iptables, or xstartup files as all of these were working perfectly before the outage they have not changed, and I have exact duplicates of these files on another machine that run just fine as-is. Now, if you have multiple users on your system, you can map each one of them to a particular port.
#Vnc server start password#
x11vnc -storepasswd Enter VNC password: Verify password: Write password to /home/per/.
#Vnc server start install#
sudo apt-get update sudo apt-get install x11vnc Step 2: Create password. Remember to replace my username (per) with yours, in step 3 and 4. If running on port 5902, you would see :2, port 5903 would be represented as :3, and so on. This will run X11VNC server as a service. What this means is that VNC is running on port 5901. Process: 4701 ExecStart=/etc/rc.d/init.d/vncserver start (code=exited, status=126)ĬGroup:name=systemd:/system/rvice When you launch a VNC instance on your server, you will see an argument like :1. Loaded: loaded (/etc/rc.d/init.d/vncserver)Īctive: failed since Mon, 22:57:11 1min 28s ago on the other hand when I enable VNC in command line, the connection is done on the mac but the screen is black, I can't do. But I have another particular behavior: when I enable VNC with the GUI, the remote access to the mac with Dameware from a Windows works perfectly. Doing a systemctl status rvice yields the following: rvice - LSB: start|stop|restart|try-restart|status|force-reload vncserver Indeed the change of the vnc password doesn't work on the command line. Create a file named rvice in the / lib/systemd/system/ directory. sudo apt install x11vnc Configuring the x11vnc Server You will now configure a service used for starting the x11nvc server. For ease I have the command in a shell script, so it is just a case of SSH to the server, followed by the command startvnc.sh. I SSH into the machine and then start the VNC server using the following command: x11vnc -safer -localhost -nopw -once -display :0. I've looked in /var/log/messages and could not find the culprit. To install the x11nvc server, open your system terminal by pressing Ctrl + Alt + T. For a bit more security, I dont leave VNC running the whole time. See system logs and 'systemctl status' for details. I get the following: Starting vncserver (via systemctl): Job failed. When I try to start the daemon with the following command: # service vncserver start After the recovery, all services came back up just fine except vncserver. If you ever change your mind and want to remove the script from the start-up, simply type the following command: sudo update-rc.d -f StartVNC.sh remove. I have a Fedora 15 server that has been running just fine for months until I suffered a power outage. Our script will now be run on boot and so our VNC session will be re-created each time the server is rebooted.