LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Can't open grub.conf/lilo.conf with kate being root (http://www.linuxquestions.org/questions/slackware-14/cant-open-grub-conf-lilo-conf-with-kate-being-root-758132/)

cola 09-27-2009 06:41 PM

Can't open grub.conf/lilo.conf with kate being root
 
From konsole:
Code:

su
kate grub.conf

Code:

No protocol specified
kate: cannot connect to X server :0.0


vik 09-27-2009 07:40 PM

This is because you're logged into your desktop environment as another user. I don't know of a good solution other than logging out and logging back in as root if you want to use kate. Otherwise nano might be more intuitive if you don't like vim or emacs.

mattydee 09-28-2009 01:05 AM

try kdesu:
kdesu "kate grub.conf"

Didier Spaier 09-28-2009 01:54 AM

In your konsole, issue following command:
Code:

xhost local:
before typing su.

You can add this to your ~/.bashrc

PS For whatever reason, I don't need this in Slackware63-13.0 (though I don't use kate: I use either nano or geany).

ppr:kut 09-28-2009 02:07 AM

konsole in kde3 did support this, konsole in kde4 doesn't. Another solution to all all the already mentioned ones would be to run it from another terminal like xterm for example (instead of konsole)

brianL 09-28-2009 04:41 AM

I've never had any problems with kdesu kwrite filename. Maybe it's different with kate?

cola 09-28-2009 07:26 AM

kdesu kate grub.conf works.


All times are GMT -5. The time now is 09:13 AM.