Announcement

Collapse
No announcement yet.

xhost +127.0.0.1

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

    xhost +127.0.0.1

    I've been trying to run kate with root privileges. But when I try to run it from the command line in a superuser shell, I get the message
    Code:
    root@lepiota:~# kate
    _X11TransSocketINETConnect() can't get address for localhost:6000: Name or service not known
    kate: cannot connect to X server localhost:0.0
    How can I get past this?

    #2
    Re: xhost +127.0.0.1

    When you need to run a graphical app, use "kdesu".
    kdesu kate

    Comment


      #3
      Problems with kdesu kate

      This is puzzling. If I run "kdesu kate /etc/fstab" I can edit fstab. But if I simply run "kdesu kate" and then attempt to open /etc/fstab from there, I merely get a list of the files in /etc that does not include fstab (or, presumably, any other files that are not world-writeable). This is particularly a nuisance since I've set up a desktop icon with the application code
      Code:
      kdesu "kate --use %U"
      and though I can start up kate, I can't convince it to open /etc/fstab when I call it that way.

      Comment

      Working...
      X