Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Cannot open display

  1. #1
    Member registered user
    Join Date
    Jul 2003
    Posts
    37

    Cannot open display

    Hello all,

    I must be missing something small or silly here as when I go into KDE, pull up Konsole, type in oh say... kpackage &, I get an error along the lines that it cannot open display. What am I missing here? (it will do the same for gvim as well as other programs).

    Thanks,
    Zach

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    I can't explain the detail of this, but what I think is happening is that no graphical display is available for that user. (Can't replicate this at the moment as I'm in a HD install.)

    Try either doing

    sudo gvim

    in an Xterm

    or (easiest by far)

    just running it from the menu.

  3. #3
    Member registered user
    Join Date
    Jul 2003
    Posts
    37
    Well I'm in the HD install when I try this but a permissions issue would make the most sense but it happens when I su - to root as well. Hrrmm... I know I've been able to open GUI apps via the console before but that was with eterm and not konsole.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Odd. I've yet to move from Knoppix to another user, but running as Knoppix, snapping open Konsole and typing gvim works fine. If, on the other hand, I'm (so to speak) graphically Knoppix, su to root and type gvim, it opens as well! WOW! I've never seen that before: certainly SuSE always used to pop up the errors you're getting. I'm running a knx-hdinstall on KNOPPIX_V3.2-2003-06-06-EN.iso.

    Does look very much like a permissions issue.......

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: Cannot open display

    --Are you installed to HD? If you're starting KDE manually you should see if the $DISPLAY var is set:
    ' echo $DISPLAY '

    --If not, you should:
    ' export DISPLAY=:0.0 ' and then startx. You can also do this from konsole and then try starting an app; but it's pretty weird behavior nonetheless.

    Quote Originally Posted by ferreter
    Hello all,

    I must be missing something small or silly here as when I go into KDE, pull up Konsole, type in oh say... kpackage &, I get an error along the lines that it cannot open display. What am I missing here? (it will do the same for gvim as well as other programs).

    Thanks,
    Zach

  6. #6
    Member registered user
    Join Date
    Jul 2003
    Posts
    37

    Re: Cannot open display

    Quote Originally Posted by Dave_Bechtel
    --Are you installed to HD? If you're starting KDE manually you should see if the $DISPLAY var is set:
    ' echo $DISPLAY '

    --If not, you should:
    ' export DISPLAY=:0.0 ' and then startx. You can also do this from konsole and then try starting an app; but it's pretty weird behavior nonetheless.
    Well I did the new knoppix-install and use a created user with graphical login (the default for this install, you don't seem to be given a choice in the install script). I also can get wav files to work but not CDs. I did finally get the networking up and running correctly as that didn't seem to be setup on install. (Learned that I really like the Debian networking tools ) I eventually want to get VMware running but not until I iron out these bugs hehe.

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    I also can get wav files to work but not CDs
    Aha. I've seen this before. Pop up KMix and make sure the red light is on under the CD icon and move the slider up: it's always muted by default. Note that KsCD also has its own (horizontal) volume slider.

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --For the life of me, I will NEVER understand this behavior. ALSA is the same way - muted by default. ??? WTF? It only annoys the users!!

    Quote Originally Posted by fingers99
    I also can get wav files to work but not CDs
    Aha. I've seen this before. Pop up KMix and make sure the red light is on under the CD icon and move the slider up: it's always muted by default. Note that KsCD also has its own (horizontal) volume slider.

  9. #9
    Member registered user
    Join Date
    Jul 2003
    Posts
    37
    Well pulling up apps from the console seem to magically work now. Uncertain what I did beside fixing my network connection to come up at boot. Bizzare.

    But with the music CDs, kmix doesn't have the CD muted but when I go to press play xmms seems to freeze. I use the via82cxxx_audio module. Again, other sounds work just fine, its just the CDs. dmesg gives me a line that says: via_audio: ignoring drain playback error -11

    lsmod produces:Module Size Used by Not tainted
    parport_pc 24776 1 (autoclean)
    lp 7492 0 (autoclean)
    parport 22496 1 (autoclean) [parport_pc lp]
    pcmcia_core 39456 0
    autofs4 8724 0 (unused)
    af_packet 13448 0
    agpgart 34592 0 (unused)
    via82cxxx_audio 19708 2
    ac97_codec 10696 0 [via82cxxx_audio]
    uart401 5988 0 [via82cxxx_audio]
    sound 54476 0 [via82cxxx_audio uart401]
    soundcore 3364 4 [via82cxxx_audio sound]
    8139too 17128 1
    mii 2176 0 [8139too]
    serial 51812 0
    usb-uhci 21836 0 (unused)
    usbcore 57376 0 [usb-uhci]
    apm 9768 1
    rtc 6876 0
    ext3 62688 1
    jbd 45524 1 [ext3]

    I'm a bit stumped on this one.

  10. #10
    Member registered user
    Join Date
    Jul 2003
    Posts
    37
    Also, I can now use apps like gvim with my normal user but it gives that "E233: cannot open display" error when I su - to root and attempt to open the program that way.

Page 1 of 2 12 LastLast

Similar Threads

  1. Help! cannot open emacs!
    By linuxprince in forum General Support
    Replies: 2
    Last Post: 08-31-2004, 07:45 PM
  2. Gtk-WARNING **: cannot open display: [for www-data user]
    By roger_girardin in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 07-08-2004, 10:07 PM
  3. Unable to open display properties
    By ZX in forum General Support
    Replies: 0
    Last Post: 03-15-2004, 08:34 AM
  4. Root can not open display
    By jackrabbit in forum General Support
    Replies: 2
    Last Post: 01-28-2004, 06:51 AM
  5. Port 80 Open
    By oscar in forum Networking
    Replies: 8
    Last Post: 05-07-2003, 03:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$273.00



Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT picture

Dell R730xd 26 Port SFF 2x E5-2697v4 36-Cores H730 128GB Server 2x SFP 10G ENT

$490.00



Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w picture

Dell PowerEdge R430 3.5 1U 2x E5-2690 v3 2.6ghz 24-Cores 256gb 4x Trays 2x 550w

$359.99



Dell PowerEdge R430 3.5 1U 2x E5-2666 v3 2.9ghz 20-Cores 128gb 4x Trays 2x 550w picture

Dell PowerEdge R430 3.5 1U 2x E5-2666 v3 2.9ghz 20-Cores 128gb 4x Trays 2x 550w

$364.99



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$208.99



Dell PowerEdge R420 Dual Intel Xeon E5-2440 v2 @1.90GHz 32GB RAM No HDD H710 picture

Dell PowerEdge R420 Dual Intel Xeon E5-2440 v2 @1.90GHz 32GB RAM No HDD H710

$74.50



Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD picture

Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD

$139.99



Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox

$320.00



Dell PowerEdge R7425 2x AMD EPYC 7251 64GB RAM H730P RAID NO HDD/OS #73 picture

Dell PowerEdge R7425 2x AMD EPYC 7251 64GB RAM H730P RAID NO HDD/OS #73

$640.00



Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray picture

Dell Poweredge R210 II Server Xeon E3-1220 v2 3.1ghz Quad Core / NoRam / 1x Tray

$69.99