Cannot start system-config-users

AXISHK
AXISHK used Ask the Experts™
on
Run system-config-users but it returns the error

system-config-users requires a currently running X server.

What should I do ?

Tks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Zephyr ICTCloud Architect

Commented:
And are you running an X-server? Are you trying to start it through a Terminal in Gnome/KDE?

Did you try with "xhost +" and then starting system-config-users?

Author

Commented:
type xhost on command prompt but it returns command not found...

How to configure the LInux to run x-server ? Tks
Zephyr ICTCloud Architect

Commented:
You should check if X11 is installed on your system.

To find out what you need to install to get xhost use something like this:

yum whatprovides "*/xhost

Open in new window


It's probably something like xorg-x11-server-utils

Also check with "yum grouplist" to see if you can install the X11 environment as a whole.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Julian ParkerSenior Systems Administrator

Commented:
what do you want to do to users?
You can add/delete/modify on the command line easy enough.

Is there a system-config-users-tui?

Author

Commented:
yum whatprovides "xhosts*" will display :

xorg-x11-server-utils-7.7-2.el6.x86_64  : X.Org X11 X server utilities

How to install it further ? Tks
Zephyr ICTCloud Architect

Commented:
You can install it with "yum install xorg-x11-server-utils"

If you want to install it via groupinstall (this will install much more though, so I don't know what you want to achieve, is it a server or desktop?) you can do something like this:

"yum groupinstall "X Window System" "Desktop" "Desktop Platform" "General Purpose Desktop""

WARNING this installs a complete desktop environment

You can slim it down with only doing something like this:

"yum groupinstall "X Window System""

Author

Commented:
after installing the package, run

xhost   or
xhost +

xhost: unable to open display ""

Any idea ? Tks
Zephyr ICTCloud Architect

Commented:
Type in "DISPLAY" in the terminal followed by enter, does it give anything?

Author

Commented:
-bash: DISPLAY: command not found
Zephyr ICTCloud Architect

Commented:
hmmm, ok ... Probably not installed then.

Try this:

export DISPLAY=your_hostname:0.0

Open in new window


Where "your_hostname" is the name of your system, for example "box.domain.dns"

After that try your command again

Author

Commented:
#hostname
sleung.local

#export DISPLAY=sleung.local:0.0
#xhost
xhost unable to open display "sleung.local:0.0"

Any  idea ?

Tks
Zephyr ICTCloud Architect

Commented:
Do the export again, like this:

export DISPLAY=":0.0"

Open in new window

or
export DISPLAY="your_ip:0.0"

Open in new window


try "xhost +"

If this still doesn't work what's the result of this: "echo $hostname"

Author

Commented:
Cloud Architect
Commented:
Can you check the logs to see if we get a hint of what it is that is missing or wrong?

might be in /var/log/Xorg.0.log
Julian ParkerSenior Systems Administrator
Commented:
it doesnt appear to be running in an xwindow environment still.

do you really need the graphical tool to manage users? It seems a bit overkill and if its a server I wouldnt put and graphical environment on it.

Author

Commented:
Tks. Will give another try later, Tks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial