Announcement

Collapse
No announcement yet.

Running x applications from the terminal

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Running x applications from the terminal

    Hello,
    I'm having a bit of trouble running x applications in the terminal since upgrading to dapper.

    In root-shell terminal sessions, I get "cannot connect to X server" for any x application I try and run.

    In the normal shell I get the following errors, but the application will still run:



    ~$ krusader
    X Error: BadDevice, invalid or uninitialized input device 168
    Major opcode: 145
    Minor opcode: 3
    Resource id: 0x0
    Failed to open device
    X Error: BadDevice, invalid or uninitialized input device 168
    Major opcode: 145
    Minor opcode: 3
    Resource id: 0x0
    Failed to open device
    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

    kded: cannot connect to X server :0.0
    DCOP aborting call from 'anonymous-5469' to 'kded'
    kded: ERROR: Communication problem with kded, it probably crashed.
    krusader: Initialisising useractions...
    krusader: 5 useractions read.
    ScimInputContextPlugin()
    QLayout "unnamed" added to ListPanel "unnamed", which already has a layout
    QLayout "unnamed" added to ListPanel "unnamed", which already has a layout
    ~ScimInputContextPlugin()


    Anyone any ideas what is happening here?
    Cheers

    #2
    Re: Running x applications from the terminal

    Logging in as root, even in shells, is discouraged (in fact, disabled in some ways) in Kubuntu. That's why you are probably getting some errors. In order to launch GUI apps with root privileges from the terminal, you have to use kdesu. For example

    Code:
    kdesu kursader
    Jucato's Data Core

    Comment


      #3
      Re: Running x applications from the terminal

      I've the same problem but kdesu kdesud doesn't works...

      root@hapo:~# kdesu konqueror
      kdesu: cannot connect to X server
      root@hapo:~# kdesud konqueror
      kdesud: WARNING: $DISPLAY is not set

      can u help us!?!

      Comment


        #4
        Re: Running x applications from the terminal

        Solution of X Error:BadDevice can be found here:

        http://kubuntuforums.net/forums/index.php?topic=7964

        Comment


          #5
          Re: Running x applications from the terminal

          Originally posted by HaPo
          I've the same problem but kdesu kdesud doesn't works...

          root@hapo:~# kdesu konqueror
          kdesu: cannot connect to X server
          root@hapo:~# kdesud konqueror
          kdesud: WARNING: $DISPLAY is not set

          can u help us!?!
          You're still trying to run it from the root account...which can't access the X-server.
          use 'kdesu konqueror' from your user account (not root)

          Comment


            #6
            Re: Running x applications from the terminal

            DOH!
            I'm a very n00b
            tnk's a lot!
            It works!

            Comment

            Working...
            X