LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-07-2006, 05:12 PM   #1
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Post 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
 
Old 03-07-2006, 05:15 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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
 
Old 03-07-2006, 05:31 PM   #3
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

Thanks for reply.is it something to do with xhost+ command.
 
Old 03-07-2006, 05:39 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
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...
 
Old 03-07-2006, 05:46 PM   #5
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

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.
 
Old 03-08-2006, 05:33 PM   #6
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

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
 
Old 03-08-2006, 06:20 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Try as user:

xhost +local:

Then maybe tell the program which display to use, which is something like:

someprog --display :0.0
 
Old 03-08-2006, 06:32 PM   #8
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773

Original Poster
Blog Entries: 1

Rep: Reputation: 34
Post

it doesnt works.which file should i edit to add "localhost" to the acl list.Thank You
 
Old 03-08-2006, 08:07 PM   #9
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
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
 
Old 03-08-2006, 11:42 PM   #10
grym
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Gentoo/Slackware/Debian/Mandrake
Posts: 285

Rep: Reputation: 30
if you have it use sux instead of su
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to open files from a network server from open office or any apps reycapoy Linux - Software 4 01-26-2006 07:00 PM
copy and paste between apps and terminal in fluxbox carboncopy Slackware 3 02-25-2005 07:31 AM
redirecting stdin and stdout with pipes: convincing apps they're for a terminal? prell Programming 1 09-02-2004 06:38 AM
Running GUI apps frm terminal while logged in as normal user muttley Debian 3 08-07-2004 11:39 PM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration