TigerVNC server over SSH problem [USB]
Hi, I'm using tigervnc over ssh on my LAN with parameters:
[Server]
->launcher: tigervncserver -geometry 1920x1080 -alwaysshared -dpi 96 -localhost :1
Configuration of ~/.vnc/xstartup in order to don't get black screen when I connect from client to server (I don't know the meaning of the first 2 lines unset SESSION.. and unset DBUS..), I found this setup on an old reddit post:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
mate-session
[Client]
->ssh forwarding: ssh davide@192.168.1.30 -L 5902:localhost:5901 (using public key authentication)
->launcher: xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /path/to/password localhost:2
The Problem: everything works but everytime I plug-in any USB storage device (external HDD or flashUSB) the VNC screen becomes black. I suppose that tigervnc crashes but I don't know why. Sometimes, when I plugin a USB on server machine, not only the vnc server but the full mate desktop on server machine crashes. I suppose that it's the "xstartup" configuration that has a problem with DBUS.. I found this "xstartup" configuration in order to run a mate session (the only D.E. installed on server machine) when using VNC. I can leave the server active for days without the slightest problem, but when I plug in any USB problems start
Should I use a better VNC server because tigervnc is not a good software or my configuration is the problem? How can I solve this problem?
Thank you!
Edited 17 Apr 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 25 · 100% up
- Kind
- Text
- ID
- be4rm9
6 comments
Are there any error messages anywhere? Can you SSH to the machine and run the vnc server in foreground and show us what happens?
I don't know where I should read, can you suggest me what log must I see?
Is there a way to get past output bash ? I'd like to not "reset" all the server for the 3th time because I've a lot of configurations on the X session where vncservers is running, and pugging usb could crash the whole server.
I'm not sure I understand how the server is launched now. Can you explain in more detail what you mean by "launcher"?
I haven't used a standalone VNC server in a while but I'd assume if you run
tigervncserverin bash via SSH you should get all the error messages from your graphical session in that terminal.Finally! Something I can help with XD
Your vncserver has a log file saved somewhere. Usually this log file is saved in
~/.vnc/What I usually do when I am having issues with my vncserver is, I ssh in to my server and execute
tail -f ~/.vnc/YourHostName:Head.logwhere "YourHostName" is your host name, and "head" is whichever head of the server your using. So for example, if your hostname is "arch-linux-server" and you're using ":1", it would look like this.tail -f ~/.vnc/arch-linux-server:1.logThat will tell you what is going on with your vncserver.
It would be smart to have a second window open, running something like
journalctl -xfto watch your system logs as well.Edit: Is there a reason you are doing
5902:localhost:5901instead of just using5901:localhost:5901? I don't think that is causing an issue here, since you are hitting the correct port viaxtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /path/to/password localhost:2, just kinda confused me a bit at first glanceThis is one of the only things I didn't get going with arch. Tried with centos 7 - worked first time.
Oh - try x2go instead of tunneled vnc.