Sponsored Content
Full Discussion: Starting second X session
Operating Systems Linux Starting second X session Post 53531 by dangral on Saturday 17th of July 2004 10:16:14 PM
Old 07-17-2004
Starting second X session

I've installed Fedora Core 2 on a machine on my home network. X Windows (GNOME) is set up and works correctly, when I log in from the console.

However, when using Cygwin X from a different machine and trying to start an X session using startx it gives me the following error
Quote:
[root@fedora root]# startx


Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.

Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
giving up.
xinit: unable to connect to X server
xinit: No such process (errno 3): unexpected signal 2.
That makes sense I guess because the fedora server already has an X session running at the console. I need to know how to create another X session for myself at a different computer.

I poked around about and found that the command
exec gnome-session helps somewhat in that an X session does get started, but many error messages pop up on the screen starting with:
Quote:
There was an error starting the GNOME Settings Daemon.

Some things, such as themes, sounds, or background settings may not work correctly.

The Settings Daemon restarted too many times.

The last error message was:

Child process did not give an error message, unknown failure occurred

GNOME will still try to restart the Settings Daemon next time you log in.
Help would be appreciated.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sqlplus session being able to see unix variables session within a script

Hi there. How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly. sqlplus << EOF user1@db1/pass1 BEGIN PACKAGE1.perform_updates($1,$2,$3); END; EOF Thanks in advance, Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies

2. Shell Programming and Scripting

Hiding Directories on a Session by Session basis

Hi, Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting. Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies

3. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

4. Shell Programming and Scripting

starting a bash session as child process to another bash session from a process

Hi I want to do something that might sound strange. I have a code that in written in C and is executed at startup (it's a custom process). It occasionally calls some bash scripts. The process doesn't have any terminal associated with it. One thing I don't know how to do is to start a... (5 Replies)
Discussion started by: alirezan
5 Replies

5. HP-UX

ssh session getting hung (smilar to hpux telnet session is getting hung after about 15 minutes)

Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies

6. Solaris

Session starting problem

When i start a CDE session on Solaris 9 it starts the Gnome desktop for like five minutes with nothing on the screen except the background then it enters the CDE environment and when I enter (new session) Gnome environment it takes 5 to 10 minutes then the session starts so I wounder why it... (8 Replies)
Discussion started by: darkman
8 Replies

7. Shell Programming and Scripting

Determining if session is a login session

Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies

8. Solaris

Difference between the desktop session and console session

what is the difference between desktop session and console session in solaris as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies

9. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
gnome-session(1)						   User Commands						  gnome-session(1)

NAME
gnome-session - starts up the GNOME desktop environment SYNOPSIS
gnome-session [--choosesession] [--failsafe] [--purge-delay=delay] [--warn-delay=delay] [--suicide-delay=delay] [session-name] [gnome-std- options] DESCRIPTION
The gnome-session program starts up the GNOME desktop environment. This command is typically executed by your login manager (either gdm, xdm, or from your X startup scripts). It will either load your last session, or provide a default session for the user as defined by the system administrator (or the default GNOME installation on your system). You can optionally specify a specific session name to restore. gnome-session is an X11R6 session manager. It can manage GNOME applications as well as any X11R6 SM compliant sessions. If the user has previously saved a session, the session is loaded from the ~.gnome2/session file. Otherwise, the session is loaded from the /usr/share/gnome/default.session file. Any programs specified in the ~/.gnome2/session/.session-manual will also be started. gnome-session also exports an X Atom called GNOME_SM_DESKTOP on the root window, to indicate that gnome-session has started. Some applica- tions may require such information to proceed correctly. OPTIONS
The following options are supported: --choosesession User can specify a session to load, as opposed to the session specified in the ~/.gnome/session-options file. If that entry does not exist in the ~/.gnome/session file (or if that file does not exist), gnome-session will use the default ses- sion, and all saves to that session will be to the new session name. --failsafe Fail-safe operations mode: gnome-session only reads saved sessions from the default.session file. --purge-delay=deThe number of milliseconds that gnome-session will wait for clients to register. If delay is 0, gnome-session will wait forever. The default value is 30,000 milliseconds. --suicide-delay=Theanumber of milliseconds that gnome-session will wait for clients to die. If delay is 0, gnome-session will wait forever. The default value is 10,000 milliseconds. --warn-delay=delThe number of milliseconds that gnome-session will wait for clients to respond. If delay is 0, gnome-session will wait for- ever. The default value is 10,000 milliseconds. gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information. OPERANDS
The following operands are supported: session-name The name of the session to be loaded. EXAMPLES
Example 1: Starting a session named "MySession" example% gnome-session --choose-session=MySession Example 2: Starting the system default session, ignoring the user's session example% gnome-session --failsafe Example 3: Setting the purge delay to 50000ms example% gnome-session --purge-delay=50000 Example 4: Setting the suicide delay to 50000ms example% gnome-session --suicide-delay=50000 Example 5: Setting the warning delay to 50000ms example% gnome-session --warn-delay=50000 ENVIRONMENT VARIABLES
gnome-session accepts all of the standard environment variables used by GNOME programs, as well as the SESSION_MANAGER environment vari- able. gnome-session also sets several environment variables for the use of its child processes. See environ(5) for descriptions of the following environment variables: SESSION_MANAGER Used by session-manager-aware clients to contact gnome-session. DISPLAY Set to the X display being used by gnome-session. Note that the --display option, if specified, overrides the set- ting of the DISPLAY environment variable. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/gnome-session The command-line executable for the application. /usr/share/gnome/defaultDefaultnsystem session file. ~/.gnome2/session User session file. ~/.gnome2/session/.sessiSpecifies programs to start that do not support session management. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-session | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gnome-std-options(5), default.session(5), gnome-smproxy(1), gnome-session-save(1) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003. SunOS 5.10 13 Jan 2003 gnome-session(1)
All times are GMT -4. The time now is 12:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy