LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-05-2017, 09:17 PM   #1
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Rep: Reputation: 22
Cannot get vnc service to run on Fedora 25 x86_64 machine


I have two F25 laptops and wish to control the desktop of one from the other, so vnc is the obvious solution.

Using systemctl to start the service sees it fail:
Code:
[doug@KETCHUP ~]$ systemctl restart vncserver@:0.service
Job for vncserver@:0.service failed because the control process exited with error code.
See "systemctl status vncserver@:0.service" and "journalctl -xe" for details.


[doug@KETCHUP ~]$ systemctl status vncserver@:0.service
● vncserver@:0.service - Remote desktop service (VNC)
   Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2017-03-06 12:58:35 AEST; 14s ago
  Process: 7450 ExecStart=/usr/bin/vncserver %i (code=exited, status=255)
  Process: 7439 ExecStartPre=/usr/bin/vncserver -kill %i (code=exited, status=255)
 Main PID: 4392 (code=exited, status=255)

Mar 06 12:58:32 KETCHUP vncserver[7450]: WARNING: The first attempt to start Xvnc failed, possibly because the font
Mar 06 12:58:33 KETCHUP vncserver[7450]: catalog is not properly configured.  Attempting to determine an appropriate
Mar 06 12:58:33 KETCHUP vncserver[7450]: font path for this system and restart Xvnc using that font path ...
Mar 06 12:58:35 KETCHUP vncserver[7450]: Could not start Xvnc.
Mar 06 12:58:35 KETCHUP vncserver[7450]: _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
[doug@KETCHUP ~]$
The message about the font path is new today, so I have obviously affected the setup somehow, but I don't know how.

I have been trying to get this working for several days without success, so any help would be greatly appreciated.
 
Old 03-06-2017, 03:38 PM   #2
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 134

Rep: Reputation: 53
The obvious question is are you actually running X11 with Xorg or are you running Wayland which is now the default for F25 ?

To find out type

$ loginctl show-session 1 -p Type
 
Old 03-07-2017, 12:18 AM   #3
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Original Poster
Rep: Reputation: 22
tofino_surfer, thanks for replying.

I am running 'Gnome on Xorg' according to my login session choices.

I am a long-time Gnome user and have brought my wife up to speed on it, so I don't really want to change to anything with a greatly different look and feel if I can avoid it. Do I really have to switch to an X11 desktop just to get vnc working? The last time I looked at X11 it was awful. Perhaps I am misunderstanding something?

Incidentally, your suggestion failed on my system:
Code:
[doug@KETCHUP ~]$ loginctl show-session 1 -p Type
Failed to get session: No session '1' known
Cheers,
Doug
 
Old 03-07-2017, 09:25 AM   #4
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 134

Rep: Reputation: 53
Quote:
The last time I looked at X11 it was awful. Perhaps I am misunderstanding something?
Yes you are. Xorg is an X-Windows or X11 implementation. When I said X11 I meant it as short form for the X-Windows system. The X-Window system still uses the X11 protocol.

From Wikipedia:

Quote:
X.Org Server is the free and open source implementation of the display server for the X Window System stewarded by the X.Org Foundation.

The X Window System (X11, or shortened to simply X) is a windowing system for bitmap displays, common on UNIX-like computer operating systems.

$ loginctl show-session 1 -p Type
Failed to get session: No session '1' known

The session number could be 2 or even higher in some cases. If one user is logged in it is usually 1.

First type loginctl to see your session number. Then use this number. A more general command is:

$ loginctl show-session $(loginctl | grep $USER | awk '{print $1}') -p Type
Type=x11
 
Old 03-07-2017, 03:47 PM   #5
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
Try launching the vnc server from a command line, perhaps you'll see some more meaningful error message(s)
 
Old 03-08-2017, 12:43 AM   #6
Doug Hutcheson
Member
 
Registered: Jun 2009
Location: Queensland
Distribution: Fedora 26; HP Pavilion 8Gb and Acer Aspire 16Gb; both Intel Core-i7
Posts: 266

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by tofino_surfer View Post
Yes you are. Xorg is an X-Windows or X11 implementation.
So 'Gnome on Xorg' means Gnome is running on X11 (rather than Wayland) and this supports vnc?
Quote:
Originally Posted by tofino_surfer View Post
The session number could be 2 or even higher in some cases. If one user is logged in it is usually 1.

First type loginctl to see your session number. Then use this number. A more general command is:

$ loginctl show-session $(loginctl | grep $USER | awk '{print $1}') -p Type
Type=x11
Thanks for the tip. My session was 2 - tty.

I was eventually able to connect to the local host - KETCHUP:1 after running the X11VNCserver and using Tigervnc as the client.

I then ran X11VNCserver on my wife's machine and tried connecting from mine using Tigervnc. The connection worked up to a point, but the Tigervnc window was solid black and my mouse movements were not appearing on her screen.

Obviously I am close to solving it, but so far no cigar.

Thanks for your help and advice. "8-)
 
  


Reply

Tags
fedora 25, vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Does smb.service need to run to CONNECT to samba shares on another machine? DJOtaku Linux - Networking 3 08-09-2015 08:14 PM
How do i run two httpd service on same linux machine using iptables? Hariharan Linux - Software 5 09-22-2010 02:24 PM
not able to ping a machine but can do ssh to machine , wanna run vnc client amolgupta Linux - Software 4 07-28-2009 05:17 PM
trying to run vnc using xinetd on fedora 9 JSLayton Linux - General 2 09-16-2008 12:09 PM
Will Fedora 7/8 X86_64 run on a Dimension 8400? drick Fedora - Installation 5 01-04-2008 06:41 PM

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

All times are GMT -5. The time now is 01:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration