In order to edit /etc/apt/sources.list I opened Konsole, and typed "su -" to get root-privileges. Become root, I typed
Code:
# kwrite /etc/apt/sources.list
and I got this answer:
Code:
Invalid MIT-MAGIC-COOKIE-1 keykwrite: cannot connect to X server :0.0
I tried another time, but typing "sux" instead of "su -" and all worked fine.
Which is the right command to get root-privileges and be able to launch graphical applications like kwrite?
Thanks for the help
Kano - 16.12.2011, 11:51 Uhr Titel: "su" "su -" or "sux" ?
That is sux if you want to stay root. If you want to execute only one command for X as root you can press alt+f2 then kdesu app or from cli you can use gksu app.
oxyde - 16.12.2011, 22:55 Uhr Titel: RE: "su" "su -" or "sux" ?
Ok, thanks.