You are not logged in.

#1 2012-10-03 01:03:22

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Cannot start root X window applications in a terminal as normal user

I use gnome-terminal to login into the root user account as ''su -'' as normal user. When I try to load any X window application it doesn't get loaded.

[root@hitachi ~]# nautilus
Could not parse arguments: Cannot open display: 
[root@hitachi ~]# 
[root@hitachi ~]# smplayer
Fontconfig warning: "/etc/fonts/infinality/conf.d/60-group-non-tt-fonts.conf", line 483: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/60-group-tt-fonts.conf", line 262: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/62-tt-monospace-rendering.conf", line 27: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/62-tt-traced-bitmap-rendering.conf", line 21: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/62-tt-traced-bitmap-rendering.conf", line 50: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 16: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 31: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 102: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 119: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 138: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 158: Having multiple values in <test> isn't supported and may not works as expected
smplayer: cannot connect to X server 

But if I log in as root in lxdm I can open all applications from terminal without a problem. Any solution ?


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#2 2012-10-03 01:13:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,425

Re: Cannot start root X window applications in a terminal as normal user

Offline

#3 2012-10-03 01:25:05

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Cannot start root X window applications in a terminal as normal user

[root@hitachi ~]# gksu nautilus
-bash: gksu: command not found
[root@hitachi ~]# 

I tried alt + F2 and ran gksu nautilus, gnomesu nautilus. It says command not found.
I dont prefer(security risk) the alternate methods given in the wiki.
I was able to run the X apps as root last month.
I had this issue couple of days ago and I had to format the hard disk for different reason and after reinstall I have the same issue.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#4 2012-10-03 01:28:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,425

Re: Cannot start root X window applications in a terminal as normal user

You need to install 'gksu' first. 'su' is now provided by util-linux.
https://bbs.archlinux.org/viewtopic.php?id=149534 + https://bugs.archlinux.org/task/31720

Offline

#5 2012-10-03 01:45:16

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Cannot start root X window applications in a terminal as normal user

I missed the part of installing gksu in the new installation.
Thanks for the  links.
doesnt look like I will be able to run the X apps by old method.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#6 2012-10-03 07:19:41

mzneverdies
Member
Registered: 2012-02-04
Posts: 147

Re: Cannot start root X window applications in a terminal as normal user

you can also launch at start (or before the sudo x_app command) "xhost +"

extra/xorg-xhost 1.0.5-1 (xorg-apps xorg) [installed]
    Server access control program for X

don't know if it's a security risk or not, but as i'm running a homeuser desktop without important data, i do not care too much for security big_smile

Offline

Board footer

Powered by FluxBB