Results 1 to 5 of 5

Thread: su doesn't work correctly

  1. #1
    Junior Member
    Join Date
    Mar 2005
    Posts
    3

    su doesn't work correctly

    Hello, I hope someone can help me (=newbie) with this problem:
    I installed Knoppix on my HD and everything seems to be fine, except the following:
    When I'm logged on as a normal user and type "su" in a terminal to become superuser it seems to work. But when I try to start a program like Kate, the program doesn't start, but I get this output:
    Code:
    root@scully:/home/tim# kate
    QPixmap: Cannot create a QPixmap when no GUI is being used
    QPixmap: Cannot create a QPixmap when no GUI is being used
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    
    kded: cannot connect to X server :0.0
    DCOP aborting call from 'anonymous-1167' to 'kded'
    kded: ERROR: Communication problem with kded, it probably crashed.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    
    kdeinit: Can't connect to the X Server.
    kdeinit: Might not terminate at end of session.
    Xlib: connection to ":0.0" refused by server
    Xlib: No protocol specified
    
    kate: cannot connect to X server :0.0
    kate: ERROR: KUniqueApplication: Registering failed!
    kate: ERROR: Communication problem with kate, it probably crashed.
    root@scully:/home/tim# Mutex destroy failure: Das Gerät oder die Ressource ist belegt
    When I log on as root, everything works fine.

  2. #2
    Member registered user
    Join Date
    Jan 2005
    Posts
    71
    expected behaviour, not su's fault.

    su doesn't have any knowledge about X11, it's simply a command line tool. There are several ways to start X11 programs from the command line as user root:
    * before issueing "su" enter "xhost local:" and as user root enter "export DISPLAY=:0"
    * open the root shell from the KNOPPIX menu - this will merge the X11 magic cookie (that's needed to connect to the X11 server) into the root shell "environment".

    BTW: this has been posted several times. If you'd have searched a little you would have found it and had not to wait for an answer.

    Thomas

  3. #3
    Junior Member
    Join Date
    Mar 2005
    Posts
    3
    Ok, that works, thank you.
    Well, I did a search, but didn't find anything useful.

    Is there a way to make this permanent? It's quite unhandy to type this everytime.
    I did a search on this and even found a thread about it (http://www.knoppix.net/forum/viewtop...ghlight=su+x11), but that doesn't work.

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    The post in "Tips and Tricks" is supposed to make it permanent. Did you logout and login again after making the file under ~/.kde/Autostart and are you using KDE?

  5. #5
    Junior Member
    Join Date
    Mar 2005
    Posts
    3
    Oh, I found out what was wrong: I hadn't tagged the .sh file in the Autostart folder as executable!
    Now it works. Thanks for you post in Tips & Tricks, Markus.

Similar Threads

  1. Knoppix 4.0.2 CD won't work correctly on my computer
    By Astaroth131 in forum Hardware & Booting
    Replies: 5
    Last Post: 01-09-2006, 08:58 PM
  2. USB drive does not work correctly in Knoppix 4.02 DVD
    By Jbike in forum Hardware & Booting
    Replies: 1
    Last Post: 12-24-2005, 06:17 PM
  3. iso image will not burn correctly
    By servant in forum General Support
    Replies: 2
    Last Post: 06-13-2004, 05:44 AM
  4. Getting airjack to work correctly...
    By fenriz in forum Networking
    Replies: 5
    Last Post: 04-22-2004, 10:20 PM
  5. Automount doesn't work correctly?
    By bfree in forum Ideas
    Replies: 0
    Last Post: 12-21-2003, 06:53 PM

Posting Permissions

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


Lot of (5) Samsung 32GB 2RX4 DDR4-2133 ECC REG RAM M393A4K40BB0-CPB picture

Lot of (5) Samsung 32GB 2RX4 DDR4-2133 ECC REG RAM M393A4K40BB0-CPB

$875.00



24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC picture

24x Micron MT40A512M16LY-062E IT:E 8Gb DDR4-3200 96-FBGA Memory IC

$349.99



Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11 picture

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11

$62.55



Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G) picture

Dell 16GB PC4-21300 (DDR4-2666) Memory (SNPPWR5TC16G)

$89.99



Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot picture

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot

$285.90



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$826.09



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot picture

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot

$202.50



Lot of 4 8GB DDR4 PC4-2400T ECC Registered Server RAM 32GB 1Rx8 RDIMM MICRON picture

Lot of 4 8GB DDR4 PC4-2400T ECC Registered Server RAM 32GB 1Rx8 RDIMM MICRON

$149.99