LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2016, 12:16 PM   #1
dawaske
LQ Newbie
 
Registered: Apr 2016
Posts: 4

Rep: Reputation: Disabled
RedHat Crashes immediately after establishing VNC-connection


Dear all,

I'm currently having the following issue in RedHat 7.2: because I need to access my computer at work remotely I was planning to use TigerVNC and since I had no idea how set this up I followed a tutorial. To my surprise erything went quite well - until I wanted to actually access my machine with VNC viewer. Because after establishing a connection and typing in my VNC-password I was immediately greeted by THIS error message. Of course I checked /var/log/messages to find out what went wrong but since I'm very very new to Linux I couldn't really make sense of it:

Apr 15 18:47:31 rrel001 fprintd: ** Message: entering main loop
Apr 15 18:47:31 rrel001 systemd: Started Fingerprint Authentication Daemon.
Apr 15 18:47:39 rrel001 systemd: Started Remote desktop service (VNC).
Apr 15 18:48:01 rrel001 fprintd: ** Message: No devices in use, exit
Apr 15 18:48:33 rrel001 dbus[659]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Apr 15 18:48:33 rrel001 dbus-daemon: dbus[659]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Apr 15 18:48:33 rrel001 systemd: Starting Hostname Service...
Apr 15 18:48:33 rrel001 dbus[659]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 15 18:48:33 rrel001 dbus-daemon: dbus[659]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 15 18:48:33 rrel001 systemd: Started Hostname Service.


Based on the error message and the log: do you guys have any idea what went wrong and how to fix it?

Thank you for your help!

Daniel
 
Old 04-15-2016, 12:27 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dawaske View Post
Dear all,
I'm currently having the following issue in RedHat 7.2: because I need to access my computer at work remotely I was planning to use TigerVNC and since I had no idea how set this up I followed a tutorial. To my surprise erything went quite well - until I wanted to actually access my machine with VNC viewer. Because after establishing a connection and typing in my VNC-password I was immediately greeted by THIS error message. Of course I checked /var/log/messages to find out what went wrong but since I'm very very new to Linux I couldn't really make sense of it:

Apr 15 18:47:31 rrel001 fprintd: ** Message: entering main loop
Apr 15 18:47:31 rrel001 systemd: Started Fingerprint Authentication Daemon.
Apr 15 18:47:39 rrel001 systemd: Started Remote desktop service (VNC).
Apr 15 18:48:01 rrel001 fprintd: ** Message: No devices in use, exit
Apr 15 18:48:33 rrel001 dbus[659]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Apr 15 18:48:33 rrel001 dbus-daemon: dbus[659]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service'
Apr 15 18:48:33 rrel001 systemd: Starting Hostname Service...
Apr 15 18:48:33 rrel001 dbus[659]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 15 18:48:33 rrel001 dbus-daemon: dbus[659]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 15 18:48:33 rrel001 systemd: Started Hostname Service.


Based on the error message and the log: do you guys have any idea what went wrong and how to fix it?
Looks like you're using a Mac...what VNC client are you using? Are you sure the VNC server is at fault, and have you checked the CLIENT piece? Tried a different VNC client?

And TigerVNC is supported in RHEL7, and has installation instructions on the RHEL knowledgebase:
https://access.redhat.com/documentat...-TigerVNC.html

...which would be better to follow than those for CentOS (although it SHOULDN'T matter), and to use the package for RHEL. Since you're using RHEL 7 you are PAYING for it, right??? Because if you're not, you're missing patches/updates/fixes that may be part of the problem. If you're subscribed, and since you're new to Linux/RHEL, you can call Red Hat support for help, and they can walk you through things.

But the best piece of advice I can give you is: don't use VNC. There's really no need. You can connect to your server with SSH, and still run X applications, just as if you were sitting at your desk, with far less overhead and far MORE security. Your local machine needs to have incoming X sessions allowed (typically by running "xhost +"), then when you ssh, run it with "ssh -X user@address", and your display will be set to be your local workstation.
 
Old 04-16-2016, 09:56 AM   #3
dawaske
LQ Newbie
 
Registered: Apr 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Since you're using RHEL 7 you are PAYING for it, right??? [...] If you're subscribed, and since you're new to Linux/RHEL, you can call Red Hat support for help, and they can walk you through things.
Thank you for your quick reply! RHEL 7.2 was installed and configured by an external IT service, who is probably paying for it Because of this I'm not sure whether or not I can contact the Red Hat support directly or if the IT guys have to do it, who charge an insane amount of money for stuff like that (which is why I'd like to avoid involving them...).
As for the VNC client, I've been using the RealVNC viewer (both the Win and OSX Versions) to remotely access Windows Computers for the past couple of years and so I was planning to also use it for Linux. Now that you mention it I will of course also try another client as soon as I get back to the office on Monday. I will also read through the VNC installation instructions from RHEL then, thank you for the link.

Quote:
Originally Posted by TB0ne View Post
But the best piece of advice I can give you is: don't use VNC. There's really no need. You can connect to your server with SSH, and still run X applications, just as if you were sitting at your desk, with far less overhead and far MORE security. Your local machine needs to have incoming X sessions allowed (typically by running "xhost +"), then when you ssh, run it with "ssh -X user@address", and your display will be set to be your local workstation.
I was planning to use VNC to check the progress of long-running simulations, start new simulations and access the files I have on the Linux-partition. Is this also possible with what you're proposing?
 
Old 04-16-2016, 11:09 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dawaske View Post
Thank you for your quick reply! RHEL 7.2 was installed and configured by an external IT service, who is probably paying for it Because of this I'm not sure whether or not I can contact the Red Hat support directly or if the IT guys have to do it, who charge an insane amount of money for stuff like that (which is why I'd like to avoid involving them...).
Well, I'm not sure what they are paying for, and they may NOT be paying for RHEL at all. Worth a question to them, since (if they're not), you can then ask WHY you're using licensed software that can't be updated, and why they didn't install the free, identical version of RHEL (CentOS) instead. At the very least, it may get you a free service call.

On a more serious note, you really SHOULD ask them, since if your system is not registered, you won't get bugfixes or security updates, and you'll be stuck with a production system that's unstable and vulnerable.
Quote:
As for the VNC client, I've been using the RealVNC viewer (both the Win and OSX Versions) to remotely access Windows Computers for the past couple of years and so I was planning to also use it for Linux. Now that you mention it I will of course also try another client as soon as I get back to the office on Monday. I will also read through the VNC installation instructions from RHEL then, thank you for the link.
RealVNC is a decent client, but there are differences between VNC and RDP. In your case, I'd check out the RHEL instructions and go back through them first, before trying another client. Could be a minor difference.
Quote:
I was planning to use VNC to check the progress of long-running simulations, start new simulations and access the files I have on the Linux-partition. Is this also possible with what you're proposing?
Absolutely. You can access any application (either GUI or CLI) via X-windows/SSH. VNC is good if you need a 'console' type setup, but it's overkill for most things these days.

A quick test you can run is by enabling remote X sessions on your local machine via the "xhost +" command. Once you do that, "ssh -X user@remote.machine.com", and type in "xclock". You *SHOULD* see the x-windows clock pop up on your local machine...it's RUNNING on your remote system, but DISPLAYING locally. Same with Firefox, or any other GUI based app. If you're using CLI, then ssh is all you need. You can mount the remote directories LOCALLY with sshfs, and use it as just another disk.
 
Old 04-18-2016, 04:20 AM   #5
dawaske
LQ Newbie
 
Registered: Apr 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
OMG TB0ne thank you so much for providing me with that link to the RHEL knowledge base! As it turns out the "Sharing an Existing Desktop"-option is exactly what I was looking for and after following the described steps and configuring the firewall accordingly I can now successfully establish a remote desktop connection
There's just one more thing I'd like to ask: is it possible to encrypt this connection or does SSH require a VNC server?
 
Old 04-18-2016, 07:34 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dawaske View Post
OMG TB0ne thank you so much for providing me with that link to the RHEL knowledge base! As it turns out the "Sharing an Existing Desktop"-option is exactly what I was looking for and after following the described steps and configuring the firewall accordingly I can now successfully establish a remote desktop connection
There's just one more thing I'd like to ask: is it possible to encrypt this connection or does SSH require a VNC server?
Nope...SSH is its own animal, and performs pretty good encryption.

Personally, I think VNC is overkill, but if it's what you need, then I'm happy it worked out for you.
 
Old 04-19-2016, 04:23 AM   #7
dawaske
LQ Newbie
 
Registered: Apr 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
So I guess that's a no, Desktop Sharing can't use encrypted connections ?

On a completely unrelated note, do you by any chance know what graphics API RHEL uses? I'd have guessed OpenGL but with all the peculiarities I've experienced so far I'm really not sure... Is it maybe hardware-specific? My machine uses an nVidia NVS 310 graphics card with some nVidia driver installed.
 
Old 04-19-2016, 07:45 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by dawaske View Post
So I guess that's a no, Desktop Sharing can't use encrypted connections ?
You *CAN*, but you'll need to use a different VNC package that supports it.
Quote:
On a completely unrelated note, do you by any chance know what graphics API RHEL uses? I'd have guessed OpenGL but with all the peculiarities I've experienced so far I'm really not sure... Is it maybe hardware-specific? My machine uses an nVidia NVS 310 graphics card with some nVidia driver installed.
Peculiarities where? On your console or over VNC? The nVidia cards are well supported under Linux, and you can get the drivers from nVidia's website...fairly easy to install. That will NOT have any effect on the VNC connection, though.
 
Old 04-19-2016, 12:38 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Please listen to the above advice recommending to NOT use VNC.

VNC, and programs like it, are the "Windows way" of remotely accessing a machine. They are generally far less secure (sometimes very INsecure), and use FAR more overhead than the "proper" alternatives. There are VERY VERY few use-cases where full remote desktop access is required. The VAST majority of cases do not need it, all of that extra bloat just compromises latency, speed, and security.

Quote:
Originally Posted by dawaske View Post
I was planning to use VNC to check the progress of long-running simulations, start new simulations and access the files I have on the Linux-partition. Is this also possible with what you're proposing?
Literally none of that requires a giant remote desktop style solution, or even X forwarding at all, unless these "simulations" you speak of can only be started, monitored, or controlled from a GUI.

Last edited by suicidaleggroll; 04-19-2016 at 12:40 PM.
 
1 members found this post helpful.
  


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
Problem establishing a secure VNC connection kaplan71 Linux - Software 0 12-18-2013 07:44 PM
VNC connection to REDHAT enterprise 4 georgexd Linux - Server 4 09-27-2009 04:21 AM
Remote Desktop Connection hangs on 'Establishing connection...' madala Linux - Networking 1 06-27-2008 03:04 PM
Wine crashes immediately thethinker Linux - Software 6 04-25-2007 07:15 AM
xmms crashes immediately henrikanttonen Linux - Software 7 08-09-2004 07:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:05 AM.

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