Trouble Running VNC Server
So I'm trying to run a GLUT program on Ubuntu 12.04 and forward it in its entirety to a VNC client. I'd like the GLUT window to be the only thing the VNC client sees, but whatever.
Right, so my xstartup file looks like this:
I've tried all different configs, I tried uncommenting the first two lines, I initially tried just starting "gnome-session &" as the thing to run, that didn't work. The terminal launches fine, though.
# Uncomment the following two lines for normal desktop:
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager & startx &
If I try opening this application (which is windowed through GLUT) I get the same error with the above configuration script as if I just try to open it through the terminal, which is:
I really don't know anything about VNC, first time I used it was today, so forgive my noobishness. I can't figure out what the heck it's complaining about, though. I mean it looks like it's having trouble forwarding the window, but I really don't know how VNC works, and I have no idea how to go about trying to fix this.
freeglut (/home/<username>/Desktop/TEST/a.out): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 4 (X_DestroyWindow)
Resource id in failed request: 0x0
Serial number of failed request: 18
Current serial number in output stream: 21
The fact that the resource handle is null (0) is probably a problem, but again, for all I know that can simply be the first index.