Results 1 to 3 of 3

Thread: Help! Cannot start any apps from terminal!

  1. #1

    Exclamation Help! Cannot start any apps from terminal!

    Every time I try to start an application it says "cannot connect to X server"!

    Help! How do I fix this!? I really need to be able to edit certain files as root, but now I can't!

    This is what happens:

    Code:
    agi@linux-gxml:~/Downloads> sudo kate
    kate: cannot connect to X server
    agi@linux-gxml:~/Downloads> sudo kwrite /etc/sysconfig/themes
    kwrite: cannot connect to X server
    agi@linux-gxml:~/Downloads>
    It's annoying me so much! How can I fix this? Other commands work.

  2. #2

    Default Re: Help! Cannot start any apps from terminal!

    Try su instead of sudo. That should work. Open a terminal and enter su, and press enter. Now the terminal will ask for the root password, and after entering the password (you will not see anything being typed into the terminal prompt) you will have become root (prompt will turn red). Now work with whatever command you want.

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Help! Cannot start any apps from terminal!

    Or do:

    Code:
    kdesu kwrite /etc/sysconfig/themes
    and you will be prompted for the password.

Posting Permissions

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