Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: itias on November 02, 2009, 06:20:09 AM
-
I'm having trouble with running vnc server on TC.
I'm using x0vncserver-4.1.1.tczl package and launching the server by x0vncserver -PasswordFile=/home/tc/.vnc/passwd &
as per the info file. I can connect to the TC box with no issues however on closing the connection I'm getting the following message terminate called after throwing an instance of rdr::EndofStream on TC machine and cannot connect to it anymore.
I haven't found anything similar on the forum so I would appreciate some help understanding what's wrong.
-
Actually this is the same problem as here: http://forum.tinycorelinux.net/index.php?topic=2360 (http://forum.tinycorelinux.net/index.php?topic=2360)
Basically x0vncserver is throwing an exception and the current glibc/gcc used in TC is not handling exceptions.
-
Thanks, robc.
So let me rephrase my question: does that mean that I need to start vnc server over after disconnecting if I want to open a new session? Or is there a way to gracefully end the session in order not to throw the exception? Thanks
-
I am seeing the same behavior with x0vncserver, and the only workaround Ive found is to ssh in and restart the vnc server before every reconnect. I hope the next major version of TC will be built to handle exceptions, because this is not the only problem Ive run across due to lack of exception handling.
-
I use the following bash script:
---------------------------
#myvnc
while true
do
x0vncserver -AlwaysShared=1 -PasswordFile=/home/tc/.vnc/passwd
done 2>/dev/null
---------------------------
Then I add after the waitfor X line:
---------------------------
./myvnc &
---------------------------
-
Simple workaround, very nice. Just FYI, I have switched to x11vnc.tcz which has worked well for me with the -forever switch.