Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-28-2008, 08:34 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Rep:
|
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..
whats wrong...
thanks for help
|
|
|
|
10-28-2008, 08:54 AM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,789
|
Quote:
Originally Posted by itstootuff
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..
|
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.
|
|
|
|
10-28-2008, 09:19 AM
|
#3
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Original Poster
Rep:
|
hey thanksss
now it opens BUTTTTT it gives following error
(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.
whats that...
thanks for help
|
|
|
|
10-28-2008, 09:47 AM
|
#4
|
|
Member
Registered: Apr 2007
Location: Athens, Georgia, USA
Distribution: kubuntu 12.04, centos 6.3
Posts: 31
Rep:
|
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.
|
|
|
|
10-28-2008, 11:19 AM
|
#5
|
|
LQ Newbie
Registered: Oct 2008
Posts: 7
Original Poster
Rep:
|
hey thanks all
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.
thanks anyways
|
|
|
|
10-28-2008, 12:56 PM
|
#6
|
|
Member
Registered: Apr 2007
Location: Athens, Georgia, USA
Distribution: kubuntu 12.04, centos 6.3
Posts: 31
Rep:
|
~ = your home directory.
I'm surprised you don't have .Xauthority in your home directory (e.g.,
/home/itstootuff/ )
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:28 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|