Fedora 9 gedit fails if launched as root from terminal
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Fedora 9 gedit fails if launched as root from terminal
hey everyone
i very recently shifted to linux : fedora . I am using 2.6.25-14.fc9.i686.
The tweaking on linux requires to edit some system config file and that requires switching to root (while i am actually logged in as normal user).
I do it by typing 'su -' command in terminal. But then i cannot open gedit to edit the files. it says
No protocol specified
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
If i login as root and then try to open gedit through terminal - it works..
i very recently shifted to linux : fedora . I am using 2.6.25-14.fc9.i686.
The tweaking on linux requires to edit some system config file and that requires switching to root (while i am actually logged in as normal user).
I do it by typing 'su -' command in terminal. But then i cannot open gedit to edit the files. it says
No protocol specified
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
If i login as root and then try to open gedit through terminal - it works..
X windows display variable isn't set when you SU to root on a terminal window. After you SU to root at the terminal, you can type in "export DISPLAY=0:0", and try it.
(gedit:3515): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
It might help to copy (as logged-in-user) ~/.Xauthority to /root
In slackware/kde I use "kdesu" to get display-enabled-root functionality. If you have the kde libs try it (I use it in fluxbox, e.g.). Or perhaps gnome has something similar.
OTOH Centos (even the latest, 5.2) always gives a display enabled term with "su -" at the command line (while in D.E). I'm surprised Fedora is different.
TBOne: this needs me to log in as root first and then type
export DISPLAY=:0.0
on the terminal and logout and then login as regular user. Coz otherwise it never works...
eagleheart: there is no ~/.Xauthority file in Fedora 9.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.