Author Topic: running X programs from terminal  (Read 549 times)

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
running X programs from terminal
« on: 31 January 2003, 21:01 »
i'm using konsole and i dled mozilla, but when i run the binary it says it cannot open display. Is there some way i can get fix this? In slackware8.1 (but it also happens in redhat8 i think).
Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

DGolem

  • Newbie
  • *
  • Posts: 2
  • Kudos: 0
running X programs from terminal
« Reply #1 on: 1 February 2003, 00:38 »
Sounds like you lack the permissions to use your card unless you're running the program straight from X (mozilla works when you run it from the start menu right?). You probably just need to add yourself to the video card's group or raise it's permissions.

I'm still kind of new with linux so tell me if anything I said helps. I probably have no idea what I'm talking about      

[ January 31, 2003: Message edited by: DGolem ]


flap

  • Member
  • **
  • Posts: 1,268
  • Kudos: 137
running X programs from terminal
« Reply #2 on: 1 February 2003, 00:47 »
presumably you are actually in X when you try and run it?
"While envisaging the destruction of imperialism, it is necessary to identify its head, which is none other than the United States of America." - Ernesto Che Guevara

http://counterpunch.org
http://globalresearch.ca


mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
running X programs from terminal
« Reply #3 on: 1 February 2003, 00:47 »
I'm guessing you logged in as a normal user, then su to root, then installed mozilla, then tried to run.  

Well, if you did, that is the problem.  The normal user owns the X console and root doesn't have permission to access it.

To solve this, type
   xhost +localhost
before you use su.

If this is a multiuser system, log out of X or type xhost -localhost when you are done.
In brightest day, in darkest night, no evil shall escape my sight....

Master of Reality

  • VIP
  • Member
  • ***
  • Posts: 4,249
  • Kudos: 177
    • http://www.bobhub.tk
running X programs from terminal
« Reply #4 on: 1 February 2003, 00:57 »
quote:
Originally posted by M. O'Brien:
I'm guessing you logged in as a normal user, then su to root, then installed mozilla, then tried to run.  

Well, if you did, that is the problem.  The normal user owns the X console and root doesn't have permission to access it.

To solve this, type
   xhost +localhost
before you use su.

If this is a multiuser system, log out of X or type xhost -localhost when you are done.

thanks that almost works, now i know i should run them as the same user but "xhost +localhost" doesnt seem to allow me to run things as root in X. I will RTFM now that i know where i might look

[ January 31, 2003: Message edited by: The Master of Reality / Bob ]

Disorder | Rating
Paranoid: Moderate
Schizoid: Moderate
Linux User #283518
'It takes more than a self-inflicted gunshot wound to the head to stop Bob'

DGolem

  • Newbie
  • *
  • Posts: 2
  • Kudos: 0
running X programs from terminal
« Reply #5 on: 1 February 2003, 00:59 »
Nevermind I see you've fixed it. I didn't know you were running it as root.

[ February 01, 2003: Message edited by: DGolem ]