LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2015, 10:27 AM   #1
powerplyer
Member
 
Registered: Mar 2012
Posts: 31

Rep: Reputation: Disabled
VNC Server for Mirroring/Sharing GNOME Desktop on CentOS 7


Hello I have been using CentOS 6 for some time to do remote access for overnight performance testing. Over the weekend or in the evening I was able to VNC into my box to look at my desktop for status and make any modification. So basically it was like being in front of the remote system.

I recently set-up another system with CentOS 7 used the below site to set-up VNC access. I can log-in, however I am not seeing the "open" session. It gives me a virtual screen even if I log in with the same user name and password as my remote system. It is like doing "screen" for CLI.

Here is are the websites I visited to install VNC Server. Like I said VNC is working but not mirroring or sharing. I also enabled remote access in system settings. Some other site recommended x1vnc, but that only supports KDE desktop. I also verified I have Vino installed. I also disabled Firewall.

http://www.itzgeek.com/how-tos/linux...-7-rhel-7.html

Please let me know if I provide any output. This thing is driving me crazy...

Thanks in advance for the help.

BTW I am connecting from a Windows system to CentOS 7 using VNCViewer

Last edited by powerplyer; 11-25-2015 at 10:30 AM.
 
Old 12-01-2015, 01:28 PM   #2
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 614
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Is the vncserver set to use the right display? Usually it's :0 unless you have multiple displays.
 
Old 12-02-2015, 12:50 AM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 595

Rep: Reputation: Disabled
I use x11vnc when I want to show the same desktop on the remote and local machines.
 
Old 12-02-2015, 11:23 AM   #4
powerplyer
Member
 
Registered: Mar 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
Thank you for the feedback:

@Ihatewindows 522: Please see below for the output of the setting up :0, it log-in but still a "virtual desktop"

@Doug G: I did get X11 working, but it is bugging me that VNC does not work like it did on CnetOS 6. X11 is also a bit slower vs. going direct.

BTW I know I have root as the user "this is test machine"

Output after changing:
Code:
[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill i > /dev/null 2>&1 || :'
# ExecStart=/sbin/runuser -l <USER> -c "/usr/bin/vncserver %i"
# PIDFile=/home/<USER>/.vnc/%H%i.pid
ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i"
PIDFile=/home/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'

[Install]
WantedBy=multi-user.target



[root@localhost system]# systemctl daemon-reload
[root@localhost system]# systemctl start vncserver@:0.service
Job for vncserver@:0.service failed. See 'systemctl status vncserver@:0.service' and 'journalctl -xn' for details.
[root@localhost system]# systemctl status vncserver@:0.service -l
vncserver@:0.service - Remote desktop service (VNC)
   Loaded: loaded (/etc/systemd/system/vncserver@:0.service; disabled)
   Active: failed (Result: exit-code) since Wed 2015-12-02 08:17:03 PST; 18s ago
  Process: 6917 ExecStart=/sbin/runuser -l root -c /usr/bin/vncserver %i (code=exited, status=98)
  Process: 6913 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)

Dec 02 08:17:03 localhost.localdomain systemd[1]: vncserver@:0.service: control process exited, code=exited status=98
Dec 02 08:17:03 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
Dec 02 08:17:03 localhost.localdomain systemd[1]: Unit vncserver@:0.service entered failed state.
[root@localhost system]# journalctl -xn
-- Logs begin at Wed 2015-12-02 07:52:51 PST, end at Wed 2015-12-02 08:17:03 PST. --
Dec 02 08:16:44 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/dm-event.socket:10] Unknown
Dec 02 08:17:03 localhost.localdomain systemd[1]: Starting Remote desktop service (VNC)...
-- Subject: Unit vncserver@:0.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:0.service has begun starting up.
Dec 02 08:17:03 localhost.localdomain systemd[1]: Starting Session c6 of user root.
-- Subject: Unit session-c6.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-c6.scope has begun starting up.
Dec 02 08:17:03 localhost.localdomain systemd[1]: Started Session c6 of user root.
-- Subject: Unit session-c6.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-c6.scope has finished starting up.
--
-- The start-up result is done.
Dec 02 08:17:03 localhost.localdomain runuser[6917]: pam_unix(runuser-l:session): session opened for u
Dec 02 08:17:03 localhost.localdomain runuser[6917]: A VNC server is already running as :0
Dec 02 08:17:03 localhost.localdomain runuser[6917]: pam_unix(runuser-l:session): session closed for u
Dec 02 08:17:03 localhost.localdomain systemd[1]: vncserver@:0.service: control process exited, code=e
Dec 02 08:17:03 localhost.localdomain systemd[1]: Failed to start Remote desktop service (VNC).
-- Subject: Unit vncserver@:0.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:0.service has failed.
--
-- The result is failed.
Dec 02 08:17:03 localhost.localdomain systemd[1]: Unit vncserver@:0.service entered failed state.

Last edited by powerplyer; 12-02-2015 at 11:24 AM.
 
  


Reply


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
LXer: How to turn your Ubuntu 14.10 headless server into a Gnome 3 + VNC Network Desktop LXer Syndicated Linux News 0 03-10-2015 06:03 PM
How to configure VNC server to load up the complete GNOME desktop? tlawlessrr Linux - Newbie 8 03-21-2014 09:21 AM
VNC desktop sharing cross platfrom and from different desktop types ajohn Linux - Software 11 07-28-2013 03:45 AM
Need to Installing a Desktop Environment on a Centos 5.5 server to run VNC ppartyka Linux - Newbie 3 04-27-2011 04:46 PM
KDE Desktop Sharing/VNC Problem fluk3d Fedora 0 12-09-2006 04:43 PM


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