LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-30-2005, 07:05 PM   #1
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Rep: Reputation: 30
can't run app w/ sudo command


I just installed wifi radar on my gentoo system.

for some reason, when I try to run wifi-radar through sudo ("sudo wifi-radar") it fails...
Code:
# sudo wifi-radar
Traceback (most recent call last):
  File "/usr/sbin/wifi-radar", line 1795, in ?
    import gtk, gobject
  File "/usr/lib/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ?
    from _gtk import *
RuntimeError: could not open display
This will happen, even if I try this as root.

Otherwise, when I am root I can simply type "wifi-radar" and the application will start with no problems.

thanks for any suggestions.
 
Old 09-30-2005, 07:22 PM   #2
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
I run into similar problems from time to time. It's not always reproducible. What I do to get around it is to run "xhost +" as myself (i.e. normal user) before running "sudo" or becoming "su" to run commands. I don't have very good technical exlanations for this, but it usually works for me.
 
Old 09-30-2005, 07:39 PM   #3
fatblueduck
Member
 
Registered: Dec 2003
Location: Long Beach, CA
Distribution: haven't settled on one.
Posts: 251

Original Poster
Rep: Reputation: 30
that didn't enable sudo to execute wifi-radar. Thanks though.

Last edited by fatblueduck; 09-30-2005 at 07:44 PM.
 
  


Reply



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
Can't perform root command by using Sudo acbenny Linux - General 6 05-07-2008 08:19 PM
sudo throwing Segfaults after up2date run (2.1) haddel Linux - Software 7 05-07-2007 10:23 AM
SUDO Command help TPAWired Linux - Software 3 08-15-2005 01:50 PM
sudo command usage??? pagadala_cs Linux - Software 1 12-24-2004 10:13 AM
sudo: readme : command not found vishal.thorat Linux - Security 3 07-17-2003 05:56 PM

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

All times are GMT -5. The time now is 10:37 AM.

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