LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-30-2015, 03:25 PM   #1
mikenash
Member
 
Registered: Dec 2014
Posts: 84

Rep: Reputation: Disabled
Suse 12 VNCSERVER second session gracefully closes after login


. When I attempt to log onto a second session the session gracefully closes when the password is entered. If I edit the /etc/xinetd.d/vnc file and add AlwaysShared = Yes I am able to start a second session but logout does not work. Anyway, here is the output after the first session is logged in and output after the second session closes. Where would the configuration file be for the VNC server that starts at IPL time? What else can I do to debug this problem. Thanks again.
linux140:~ # systemctl status display-manager -l
display-manager.service - X Display Manager
Loaded: loaded (/usr/lib/systemd/system/display-manager.service; enabled)
Active: active (running) since Sun 2015-01-25 16:09:19 EST; 3min 10s ago
Process: 605 ExecStart=/usr/lib/X11/display-manager start (code=exited, status=0/SUCCESS)
Main PID: 662 (gdm)
CGroup: /system.slice/display-manager.service
├─ 662 /usr/sbin/gdm --no-console
└─1382 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/__1_2

Jan 25 16:09:19 linux140 display-manager[605]: Failed to execute child process "/usr/bin/X" (No such file or directory)
Jan 25 16:09:19 linux140 display-manager[605]: Could not start the X server (your graphical environment) due to an internal error. Please contact your system administrator or check your syslog to diagnose. In the meantime this display will be disabled. Please restart GDM when the problem is corrected.
Jan 25 16:09:19 linux140 display-manager[605]: GdmDisplay: display lasted 0.011153 seconds
Jan 25 16:09:19 linux140 display-manager[605]: Failed to execute child process "/usr/bin/X" (No such file or directory)
Jan 25 16:09:19 linux140 display-manager[605]: Could not start the X server (your graphical environment) due to an internal error. Please contact your system administrator or check your syslog to diagnose. In the meantime this display will be disabled. Please restart GDM when the problem is corrected.
Jan 25 16:09:19 linux140 display-manager[605]: GdmDisplay: display lasted 0.011674 seconds
Jan 25 16:09:19 linux140 display-manager[605]: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
Jan 25 16:11:55 linux140 gdm-launch-environment][1393]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Jan 25 16:12:16 linux140 gdm-password][1502]: pam_unix(gdm-password:session): session opened for user root by (unknown)(uid=0)
Jan 25 16:12:17 linux140 display-manager[605]: Failed to remove slave program access to the display. Trying to proceed.
linux140:~ # systemctl status display-manager -l
display-manager.service - X Display Manager
Loaded: loaded (/usr/lib/systemd/system/display-manager.service; enabled)
Active: active (running) since Sun 2015-01-25 16:09:19 EST; 4min 29s ago
Process: 605 ExecStart=/usr/lib/X11/display-manager start (code=exited, status=0/SUCCESS)
Main PID: 662 (gdm)
CGroup: /system.slice/display-manager.service
├─ 662 /usr/sbin/gdm --no-console
└─1382 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Displays/__1_2
Jan 25 16:09:19 linux140 display-manager[605]: GdmDisplay: display lasted 0.011674 seconds
Jan 25 16:09:19 linux140 display-manager[605]: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
Jan 25 16:11:55 linux140 gdm-launch-environment][1393]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Jan 25 16:12:16 linux140 gdm-password][1502]: pam_unix(gdm-password:session): session opened for user root by (unknown)(uid=0)
Jan 25 16:12:17 linux140 display-manager[605]: Failed to remove slave program access to the display. Trying to proceed.
Jan 25 16:13:14 linux140 gdm-launch-environment][1763]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Jan 25 16:13:37 linux140 gdm-password][1841]: pam_unix(gdm-password:session): session opened for user root by (unknown)(uid=0)
Jan 25 16:13:38 linux140 display-manager[605]: Failed to remove slave program access to the display. Trying to proceed.
Jan 25 16:13:38 linux140 display-manager[605]: GLib-GObject: g_object_ref: assertion 'object->ref_count > 0' failed
Jan 25 16:13:38 linux140 display-manager[605]: GLib-GObject: g_object_unref: assertion 'object->ref_count > 0' failed
 
Old 07-21-2015, 04:32 PM   #2
mikenash
Member
 
Registered: Dec 2014
Posts: 84

Original Poster
Rep: Reputation: Disabled
I have made some good progress. I start the VNC server with YAST and updated Network Services -> Network Services (xinetd) -> xvnc1 with wait=yes and included -alwaysshared in the server arguements. I am able to start a session and logout completely.
However, when I start two sessions and logout both sessions close. I would expect the one session to close but not both sessions. Any suggestions on how to change this behavior? The other problem is when I start the second session. It immediately starts with out a password. I updated the server arguements with -securitytypes = VncAuth and -rbauth /root/.vnc/passwd. I am asked for a password but it states that one has not been setup for VNC auth. I did execute vncpasswd for root.
Any suggestions for this one?

Last edited by mikenash; 07-21-2015 at 04:33 PM.
 
Old 07-22-2015, 09:30 AM   #3
mikenash
Member
 
Registered: Dec 2014
Posts: 84

Original Poster
Rep: Reputation: Disabled
I have made some progress with the log in behavior. In addition to the changes made to xvnc1 I needed to change the user from nobody to root. I do not know if it is possible to change the log out behavior. A log out from either session will cause both sessions to change. Is it possible to log out only the current session?
 
Old 07-23-2015, 03:32 PM   #4
mikenash
Member
 
Registered: Dec 2014
Posts: 84

Original Poster
Rep: Reputation: Disabled
I believe what I an looking for is view-only sessions. The first session has control and other sessions have view-only ability. I am not finding anything that works. Any suggestions?
 
  


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
How to gracefully exit a VNC/NX session? haertig Linux - Software 4 08-21-2009 12:03 AM
Starting a second session using the VNCserver swamprat SUSE / openSUSE 4 04-12-2007 09:34 PM
jailkit closes ssh session xilace Linux - Software 7 10-07-2006 11:20 AM
vncserver closes conection PBSchmidt Linux - Software 4 09-25-2004 10:19 AM
VNCserver - how to configure session sokar Linux - Software 5 02-04-2004 11:43 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:11 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