So I've been running a Linux based Minecraft server for a while, unfortunately MineOS (a CentOS based disctribution specifically for Minecraft) has become unstable and I am fed up with it constantly deleting the server for no apparent reason, as well as the web interface not syncing up with the files.
So I'm going with a KISS method, the lightest
usable distro I can find that I can get Java and the server running on, that has a GUI to which I can VNC. That way I can also set up VNC on the other player's PCs (we're a small group) so they can troubleshoot the server themselves without dumping it on me, without having to learn the intricacies of SSH.
But for the life of me, I cannot get a VNC server listening for connections at startup. The machine is completely headless so that needs to be there before anything else.
It really shouldn't be that hard. On Windows, you just drop a shortcut in the "startup" directory. I am currently using Lubuntu for this project, as I am at least a tiny bit familiar with Ubuntu and Lubuntu promises to be lightweight (the server is a Pentium 4 with 2 GB RAM). Sure enough, the PC boots to desktop in under 10 seconds and best of all, it looks like in Lubuntu, you just drop a shortcut into home/.config/autostart, exactly the same as Windows.
But nothing happens when I place a shortcut there.... or in any of the other 3 or 4 autostart directories I find in various places and recommended by various forum posts. I just don't get what I could possibly be doing wrong, it's so simple.
Finally I add a line to /etc/xdg/lxsession/Lubuntu/autostart, which is a config file. The line reads:
Code:
@x11vnc -gui -password ***** -rfbport 5900 -bg -forever -display:0 -o %%HOME/.x11vnc.log
I don't understand the intricacies of x11VNC but I do know, that when I create a desktop shortcut with that line (minus the @ symbol), it launches perfectly, server is up and listening. But when I reboot, the server launches and says can't connect to display :0. If I try to start it manually, same message. Close the server and re-open using the desktop shortcut, works perfectly.
But in writing this, I realize the whole thing is moot, because now I can't launch x11vnc at all. Uninstall/reinstall, launch using the "start" menu shortcut, nothing. Nothing at all happens. I have no idea when this started.
So sorry for the rant that is now useless... my question is this: can anyone give me an easy way to install a distro (don't care which) and get it to launch a ready-to-connect VNC server at startup? As long as the thing runs Java that is all it needs to do. I am extremely open to ideas.
PS beware the -loopbg command of x11vnc. At one point I had infinitely spawning VNC servers that refused to connect to the display and just sat there as another instant spawned on top. They appeared faster than I could click the windows to close them and always took the active window position so I couldn't even type in terminal :lol:. That was an OS reinstall.....