Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-07-2006, 05:12 PM
|
#1
|
Member
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Rep:
|
i am not able to open apps from terminal
Hello,
I use Ubuntu Breezy 5.10 and GNOME.i tried to su as this:
Code:
prakash@sputnik:~$ su -
Password:
root@sputnik:~# gedit
(gedit:13377): Gtk-WARNING **: cannot open display:
root@sputnik:~#
what should i do to able to open guis from terminal.
Thanks
|
|
|
03-07-2006, 05:15 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
As a regular user, try sudo gedit, which should give you temporary root priveledges and allow gui to work. The issue is that root doesn't have permission to use the gui...
Check out the Unofficial Ubuntu Guide
|
|
|
03-07-2006, 05:31 PM
|
#3
|
Member
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Original Poster
Rep:
|
Thanks for reply.is it something to do with xhost+ command.
|
|
|
03-07-2006, 05:39 PM
|
#4
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
I don't know enough to say. But I remember one time before I was using sudo, I had to do something like export DISPLAY 0:0 or something like that as root...
Here's a thread that says your xhost+ works...
|
|
|
03-07-2006, 05:46 PM
|
#5
|
Member
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Original Poster
Rep:
|
thank you.i forgot to tell one thing if i simply try "su" without hyphenation.i can login and run any gui apps for eg;gedit etc.
|
|
|
03-08-2006, 05:33 PM
|
#6
|
Member
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Original Poster
Rep:
|
i tried export ing:and tried opening gedit see errors below:
Code:
prakash@sarge:~$ echo $DISPLAY
:0.0
prakash@sarge:~$ su -
Password:
sarge:~# export DISPLAY=:0.0
sarge:~# gedit
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(gedit:9926): Gtk-WARNING **: cannot open display:
any ideas
|
|
|
03-08-2006, 06:20 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
Try as user:
xhost +local:
Then maybe tell the program which display to use, which is something like:
someprog --display :0.0
|
|
|
03-08-2006, 06:32 PM
|
#8
|
Member
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Original Poster
Rep:
|
it doesnt works.which file should i edit to add "localhost" to the acl list.Thank You
|
|
|
03-08-2006, 08:07 PM
|
#9
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
It should work if you type it in console as a normal user, but you may not need to - usually the display option just works
|
|
|
03-08-2006, 11:42 PM
|
#10
|
Member
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285
Rep:
|
if you have it use sux instead of su
|
|
|
All times are GMT -5. The time now is 07:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|