[SOLVED] gedit not opening from terminal - not authenticated
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Rep:
gedit not opening from terminal - not authenticated
I have just installed a new debian OS and want to change a file.
For some reason, gedit didn't come pre-packaged so I installed it with apt-get.
When I use a terminal as root, gedit won't open. I get the following error message:
Code:
gedit grub
(gedit:3679): EggSMClient-WARNING **: Failed to connect to the session
manager: Authentication Rejected, reason : None of the authentication
protocols specified are supported and host-based authentication
failed
Gedit will open page files on the desktop - but not on the terminal.
Is this because I haven't done something with the new install or should I remove gedit and reinstall?
I'm using xfce GUI - I hope that doesn't have anything to do with it.
I believe the default file manager in xfce is thunar and the default text editor is leafpad or mousepad. There should be several text editors available and you should be able to find them from from your Debian menu under editors or text editors. Something is amiss though if you correctly installed gedit and it won't open files. You might try one of the other text editors to ensure that it is just gedit. I don't use Debian so can't really be much help.
Some alternative options at the Debian forums, link below. Scroll down to the post by user kedaha which shows the same error message you posted and several options to get around it.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by yancek
I believe the default file manager in xfce is thunar and the default text editor is leafpad or mousepad.
Some alternative options at the Debian forums, link below. Scroll down to the post by user kedaha which shows the same error message you posted and several options to get around it.
I used mousepad for the text editor as root. But it told me not to make changes to source with the text editor.
So I switched to user and and opened mousepad. But it wouldn't allow me to make changes - probably because I don't have permission!
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by brianL
Try (as root, of course):
apt-get install gksu
I think it should work in xfce.
I installed gksu and was surprised it wasn't installed already.
However, I still got an error message with gksu.
I eventually used the archaic vi editor after several attempts.
But I think the 'su -' command will allow you to open gedit without problems.
Great it works. A thought though, on the GUI what applications are used is often dictated by the enteries in the 'main menu' "app", make sure gedit is ticked to use it via gksu or gksudo -the two are different and relate to if you installed with a separate root password or used sudo.
Fred.
nano text editor is probably accessable and lot easier to use than vi.
Last edited by Fred Caro; 01-14-2015 at 08:58 PM.
Reason: add extra coment
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.