Operating System - Linux
1829727 Members
1881 Online
109992 Solutions
New Discussion

Re: LINUX AS 4.0 x display

 
Cliff Lim Kok Hwee
Regular Advisor

LINUX AS 4.0 x display

Hi Forumer,

I login as user appuser locally and perform export DISPLAY=:0.0

But when running xclock it is prompting display not set.

But when i run remotely from my laptop and having software X CLIENT REFLECTION started and i perform the same export DISPLAY it is OK.

Query: Why it is happening locally on my monitor connected direct to my server? for root user it is OK.

Need forumers advise.

Thanks/cliff
5 REPLIES 5
Piergiacomo Perini
Trusted Contributor

Re: LINUX AS 4.0 x display

hi Cliff,

try also

xhost +

regards
Cliff Lim Kok Hwee
Regular Advisor

Re: LINUX AS 4.0 x display

Hi,

xhost +

Error message => Unable to show display

NOTE: I am able to do it using root user on local machine. I am able to do it using all user using my remotely. It just that locally using appuser I cannot to it :(

thanks/cliff
Ivan Ferreira
Honored Contributor

Re: LINUX AS 4.0 x display

This is extrange. What is the status of SELinux. When I have weird problems, my first action is to disable SELinux.

Also, ensure that when logging directly from the console, no other user has logged into the console before, this is because the console device permissions are set for the first user that logons to the console.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vipulinux
Respected Contributor

Re: LINUX AS 4.0 x display

Check if the /usr/bin is in path of the user.
Cliff Lim Kok Hwee
Regular Advisor

Re: LINUX AS 4.0 x display

Hi Forumers,

I found out the REASON. Because I login as root on my monitor console which lauch the GNOME desktop and then launched open terminal which open a root session then I su - appuser. Follow by export DISPLAY=

SOLUTION: I login as appuser on my monitor console instead and then launched open terminal which automatically open as appuser session. Dun need export DISPLAY I can launch xclock without issue.

Thanks/cliff