Link to home
Start Free TrialLog in
Avatar of latorreconsultores
latorreconsultoresFlag for Mexico

asked on

Installing xServer

Im trying to run starx command on Linux Fedora 10, but it does not work properly, I guess I need to install Xserver but I do not know how, or maybe I just need to configure something.
[root@servidor bin]# DISPLAY=:0.0
[root@servidor bin]# startx
hostname: Unknown host
xauth:  creating new authority file /root/.serverauth.3326
 
 
Fatal server error:
Server is already active for display 0
	If this server is no longer running, remove /tmp/.X0-lock
	and start again.
 
Invalid MIT-MAGIC-COOKIE-1 keygiving up.
xinit:  Resource temporarily unavailable (errno 11):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
[root@servidor bin]#

Open in new window

Avatar of arnold
arnold
Flag of United States of America image

When setting display it should be DISPLAY=localhost:0.0.  If you are in a graphical session, the DISPLAY variable should be set for you.

Check /etc/inittab and see what startlevel you have. 3 or 5 (5 is graphical).

When you loged into the system did you have a graphical login, or a text based?  Did you select a failsafe session or a graphical kde, gnome, etc.?
Avatar of Kerem ERSOY
Kerem ERSOY

Hi,

It says:

Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.
 
It seems that X server is already active try to access using pressing <ALT> + <F7> from the console. X is for console only you can not activate it through a remote connection unless you have a client like VNC or an X Server like CygWIN.

Cheers,
K.

Avatar of latorreconsultores

ASKER

arnold:
when I start the session, starts on graphic mode, I set hostname as:

hostname myhost                      -- so I set the DISPLAY variable as
DISPLAY = myhost:0.0               -- but the result is the same

/etc/inittab                                  -- has set on 5 level
                                                    -- gnome is the enviroment, Fedora 10 my OS.
KeremE:

In fact Im on a graphic mode, I open a text terminal and I try to run startx command but it does not work properly.

what do I need to do to run it?
:) If you are in Graphic mode = You're already running X !

You can't run a second instance. What is your purpose on starting X ?
KeremE:

The problem is that I wanna install some software that needs to open a Xterminal, but it does not work, I try to open another terminal on another Linux Suse, and works fine.



that is the problem.
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Agree with KeremE.
While in the terminal session.  Do not redefine DISPLAY.
Run the install of your application and it should open the graphical interface for the install.  Alternatively, use the file manager to navigate to where the application is and start the install directly without going through the terminal.

If the purpose of the terminal is so that you can elevate your privileges. i.e. loged in as usera with limited access and then you sudo or su to gain root rights, you might not need to go through that process.  When you start the installer from file manager, you might get prompted for credentials to elevate the rights.
If sudo is your only option.
you should prior to running sudo, add localhost to the X server with xhost +localhost.
after you sudo you should be fine.
The Xserver event though it is running under usera localhost:0.0 will not accepted root X server windows unless usera adds localhost to the allowed hosts rule with xhost.
keremE
arnorld:

thanks 4 ur comments, Im going to try to install from the file manager insted a terminal.
Im gonna contact you to tell you the result.

have a nice day
Take your time let us know when you need help :)
The solution was easy to understand and it was accurate. Thanks.
LaTorre