LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2018, 10:06 AM   #1
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Rep: Reputation: 46
VNC over public network


I've been trying to get VNC to work between 2 Linux Mint machines.
On the "target" I have x11vnc (with -ssl option) and on the client I have ssvnc.

If I'm logged in on the "target" it seems to work, but if I'm not, the server closes the connection.

How should the vnc client and server be configured?
Now both machines are at my home, but the idea is that the "target" goes to my parents living 150 km away. (That's why ssh/ssl.)

Also, is there a way to see the logs?
When the connection fails, it shows some "console output" for a couple of seconds, and then closes it.

[EDIT]
A-ha, x11vnc has "-o" option. Haven't find any way to log ssvnc...

Last edited by turboscrew; 09-23-2018 at 12:28 PM.
 
Old 09-23-2018, 12:35 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
look for verbose: http://www.karlrunge.com/x11vnc/ssvnc_help.html
 
1 members found this post helpful.
Old 09-23-2018, 02:23 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,726

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
This doesn't address your specific questions, but...

I use ssh to administer remote 'puters.
Yes, that means all work is done at the command line, but I'm comfortable with that. Are you not?

When I do want a GUI on the remote server, I use webmin.
 
Old 09-23-2018, 03:02 PM   #4
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Then I don't know what my mom sees on the screen, when she calls me and tells me that there's something odd going on...
 
Old 09-23-2018, 03:08 PM   #5
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by pan64 View Post
The problem is that the stuff is visible only for about 5 seconds. Too short time to read the output.

[EDIT]
But in that page it also mentioned SSVNC_FINISH_SLEEP. That might be the trick!

Last edited by turboscrew; 09-23-2018 at 03:20 PM.
 
Old 09-23-2018, 03:25 PM   #6
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
2018.09.23 23:22:51 LOG5[3332:139782574384960]: Reading configuration from file /tmp/ss_vncviewer32456.3167.6bqvMx
2018.09.23 23:22:51 LOG6[3332:139782574384960]: Initializing inetd mode configuration
2018.09.23 23:22:51 LOG5[3332:139782574384960]: Configuration successful
2018.09.23 23:22:51 LOG5[3332:139782574384960]: Service [stunnel] accepted connection
2018.09.23 23:22:51 LOG6[3332:139782574384960]: connect_blocking: connecting 127.0.0.1:5930
2018.09.23 23:22:51 LOG5[3332:139782574384960]: connect_blocking: connected 127.0.0.1:5930
2018.09.23 23:22:51 LOG5[3332:139782574384960]: Service [stunnel] connected remote server from 127.0.0.1:41672
channel 3: open failed: connect failed: Connection refused
2018.09.23 23:22:51 LOG3[3332:139782574384960]: SSL_connect: Peer suddenly disconnected
2018.09.23 23:22:51 LOG5[3332:139782574384960]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket
vncviewer: VNC server closed connection

2018/09/23 23:22:51 VNC Viewer exiting.

This is what I got now that the output was visible long enough. Looks like the problem is in the other end?
 
Old 09-23-2018, 03:44 PM   #7
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Aha. I think I found the problem.
There are instructions how to make the x11vnc to generate your own CA cert and key, and then use those in generating server cert and key.
Too bad that OpenSSL has changed and it doesn't accept those any more. Too weak crypt.
Quote:
OpenSSL: error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
The OpenVPN people have wrestled with that problem already.
 
Old 09-23-2018, 03:47 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
You may not like it, but while you're trying to solve this in a more open-source fashion, you could always use TeamViewer - works well for me.
 
1 members found this post helpful.
Old 09-23-2018, 04:23 PM   #9
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by hydrurga View Post
You may not like it, but while you're trying to solve this in a more open-source fashion, you could always use TeamViewer - works well for me.
Any idea if there's a .deb for teamviewer somewhere available?
 
Old 09-23-2018, 04:35 PM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by turboscrew View Post
Any idea if there's a .deb for teamviewer somewhere available?
Yup. https://www.teamviewer.com/en/download/linux/

Installing it also adds the Teamviewer repo to your software sources (it may actually add a "Preview" repo too - consider deleting it).
 
1 members found this post helpful.
Old 09-23-2018, 10:47 PM   #11
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by hydrurga View Post
Yup. https://www.teamviewer.com/en/download/linux/

Installing it also adds the Teamviewer repo to your software sources (it may actually add a "Preview" repo too - consider deleting it).
I must have had some moment of insanity for not finding it...
 
Old 09-25-2018, 11:22 AM   #12
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Wrestling with the certificates seem to be too much.

I guess I'll try TigerVNC, and if that doesn't go well, then I turn to TeamViewer.
 
Old 10-03-2018, 12:33 PM   #13
turboscrew
Member
 
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601

Original Poster
Rep: Reputation: 46
Status update: It looks like TigerVNC doesn't work too well on Mint 19, and a lot of qt5 packages needed by the TeamViewer are not even found in Mint 19 repos. I guess I'm stuck with x11vnc.
 
Old 10-03-2018, 01:04 PM   #14
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by turboscrew View Post
Status update: It looks like TigerVNC doesn't work too well on Mint 19, and a lot of qt5 packages needed by the TeamViewer are not even found in Mint 19 repos. I guess I'm stuck with x11vnc.
I use Teamviewer on Mint 19. If you are not finding its dependencies in the Mint 19 repos, then your repos are set up wrongly.

Can you paste the output from:

Code:
inxi -r
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect systems in private network with public network jeetv33 Linux - Networking 2 01-12-2011 08:55 PM
How to connect systems in private network with public network jeetv33 Linux - Newbie 4 01-11-2011 11:26 AM
access pvt. network from public network divyashree Linux - Networking 1 07-13-2009 10:51 PM
Trying to install vnc-ltsp-config packge, required public key vikram8jp Linux - Newbie 1 10-18-2008 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration