Debian This forum is for the discussion of Debian Linux.
|
| 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. |
|
 |
07-28-2004, 05:18 PM
|
#1
|
|
Member
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95
Rep:
|
Synaptic will not start after restart!
Well, this is my first post using my new Debian (Sid) based 486 computer.
After I installed synaptic, I used it to install firefox and kdm and then I shut the computer down for a while. When I restarted the computer and tried to use synaptic to install more software I got this error-
(process:976): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Xlib: connection to ":0.0" refused by server
Xlib: No protocal specified
(synaptic:976): Gtk-WARNING **: cannot open display:
I do not undrstand what any of this means, so if someone can help please go into a little bit of detail because I still do not know a whole lot of the steps yet.
Thanks
|
|
|
|
07-28-2004, 05:53 PM
|
#2
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
From what you tell, I reconstruct that in xterm you typed "su" to become the root user and then you typed "synaptic", which gave you the error message. The error probably happened because you logged in as a normal user and tried to launch application as a different user (the root user). Debian's security settings forbid this. You can try (as normal user) the "gksu synaptic" command, which (hopefully) lets you launch Synaptic.
|
|
|
|
07-28-2004, 06:04 PM
|
#3
|
|
Senior Member
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513
Rep:
|
Re: Synaptic will not start after restart!
Quote:
Originally posted by Oh Cisco
Well, this is my first post using my new Debian (Sid) based 486 computer.
After I installed synaptic, I used it to install firefox and kdm and then I shut the computer down for a while. When I restarted the computer and tried to use synaptic to install more software I got this error-
(process:976): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Xlib: connection to ":0.0" refused by server
Xlib: No protocal specified
(synaptic:976): Gtk-WARNING **: cannot open display:
I do not undrstand what any of this means, so if someone can help please go into a little bit of detail because I still do not know a whole lot of the steps yet.
Thanks
|
Try export XAUTHORITY=/home/stephen/.Xauthority in the console window before running the program of course changing "stephen" for your user name. This will allow you to use your normal user connection to the X server as root.
|
|
|
|
07-28-2004, 06:45 PM
|
#5
|
|
Member
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95
Original Poster
Rep:
|
Quote:
Originally posted by Dead Parrot
From what you tell, I reconstruct that in xterm you typed "su" to become the root user and then you typed "synaptic", which gave you the error message. The error probably happened because you logged in as a normal user and tried to launch application as a different user (the root user). Debian's security settings forbid this. You can try (as normal user) the "gksu synaptic" command, which (hopefully) lets you launch Synaptic.
|
You are correct about my login, when I logged out and relogged in as root user synaptic ran correctly.
Thanks
|
|
|
|
07-28-2004, 07:12 PM
|
#6
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
Ah, but logging in as root user is considered bad practice because especially newbies can easily destroy important system settings without noticing when they have root user's rights (and also experienced users can make mistakes). As long as you're a normal user you cannot mess up your system. It is therefore recommended that you always log in as normal user and use "su" when you need root user's rights. You can do most things in Debian as normal user, so why take any unnecessary risks?
This, of course, means that your original problem is still unsolved. Luckily, there's a workaround for this -- run (as root) the command "ln -fs /home/user_name/.Xauthority /root/.Xauthority" (substitute "user_name" with your user name), then log out and log in again as normal user. Now you should be able to "su" to root in xterm and launch programs as root user without problems.
|
|
|
|
07-29-2004, 01:25 AM
|
#7
|
|
Member
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95
Original Poster
Rep:
|
Dead Parrot,
The command "ln -fs/home/my user name/.Xauthority/root/.Xauthority" gave me an invalid option error.
When I looked at the help file all of the options had one letter like "ln -f" not two.
Have any ideas?
Last edited by Oh Cisco; 07-29-2004 at 01:30 AM.
|
|
|
|
07-29-2004, 04:32 AM
|
#8
|
|
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597
Rep:
|
Quote:
|
The command "ln -fs/home/my user name/.Xauthority/root/.Xauthority" gave me an invalid option error.
|
There are several parts in this command and you've kind of bundled them together although there should be space between different parts. The first part of the command is "ln", the second part is "-fs", the third part is "/home/user_name/.Xauthority", and the fourth part is "/root/.Xauthority". You must be always very careful when typing commands in the Linux command line, because smallest changes can make the commands do something that you didn't mean them to do.
Here's the command again as it should be:
ln -fs /home/user_name/.Xauthority /root/.Xauthority
Notice the spaces between the four different parts of the command?
|
|
|
|
07-29-2004, 11:44 AM
|
#9
|
|
Member
Registered: Jul 2004
Location: Phoenix
Distribution: debian etch
Posts: 95
Original Poster
Rep:
|
Thanks, Dead Parrot, synaptic is now loading in normal user mode (after I switch to root user)!
Now on to some reading,
|
|
|
|
| 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 05:02 AM.
|
|
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
|
|