Avatar of AXISHK
AXISHK
 asked on

Cannot start system-config-users

Run system-config-users but it returns the error

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

What should I do ?

Tks
Linux

Avatar of undefined
Last Comment
AXISHK

8/22/2022 - Mon
Zephyr ICT

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?
AXISHK

ASKER
type xhost on command prompt but it returns command not found...

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

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.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Julian Parker

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?
AXISHK

ASKER
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 ICT

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""
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
AXISHK

ASKER
after installing the package, run

xhost   or
xhost +

xhost: unable to open display ""

Any idea ? Tks
Zephyr ICT

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

ASKER
-bash: DISPLAY: command not found
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Zephyr ICT

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
AXISHK

ASKER
#hostname
sleung.local

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

Any  idea ?

Tks
Zephyr ICT

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"
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
AXISHK

ASKER
ASKER CERTIFIED SOLUTION
Zephyr ICT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Julian Parker

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
AXISHK

ASKER
Tks. Will give another try later, Tks