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
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

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

ASKER

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

How to configure the LInux to run x-server ? Tks
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

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.
Avatar of Julian Parker
Julian Parker
Flag of United Kingdom of Great Britain and Northern Ireland image

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?
Avatar of AXISHK
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
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

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""
Avatar of AXISHK
AXISHK

ASKER

after installing the package, run

xhost   or
xhost +

xhost: unable to open display ""

Any idea ? Tks
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

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

ASKER

-bash: DISPLAY: command not found
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

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
Avatar of AXISHK
AXISHK

ASKER

#hostname
sleung.local

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

Any  idea ?

Tks
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

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"
Avatar of AXISHK
AXISHK

ASKER

ASKER CERTIFIED SOLUTION
Avatar of Zephyr ICT
Zephyr ICT
Flag of Belgium image

Blurred text
THIS SOLUTION IS 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
SOLUTION
Avatar of Julian Parker
Julian Parker
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS 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.
Avatar of AXISHK
AXISHK

ASKER

Tks. Will give another try later, Tks
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo