LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with Apt-Get, (http://www.linuxquestions.org/questions/linux-newbie-8/problems-with-apt-get-45379/)

xilent 02-14-2003 12:01 PM

Problems with Apt-Get,
 
:Pengy:

Hullo
I am currently using xandros (trying to make the Linux learning curve as painless as possible!!), and i know that its a debian based distro so i thought id try apt-get from the console,

i tried

apt-get update (and this seemed to work)
then i did,
apt-get insatll synaptic (this too seemed to work)

but when i tried synaptic to run it, i get an error saying,

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

im assuming that the config is missing and the IP address for apt, ???
but if this is the case then how the bloody hell did the update and install synaptic ters work in the first place,

Anyone got any help out there????

Cheers

skidhmor 02-14-2003 02:50 PM

When you tried to run synaptic, did you do it from an xterm in wich you su'ed to root?
Debian won't allow programs run by root to access the Xwindow system if X isn't being run by root(i.e.-if you open an xterm, type su, then try to run any x based app you will get an error like the one you mentioned.)

xilent 02-15-2003 02:46 PM

Wahey
 
DoH,

Yeah, i was just trying to run it from a console window and su 'ing, logged in as root proper and ran synaptic, worked graet

cheers

Xilent

cuckoopint 02-15-2003 03:51 PM

Re: Wahey
 
Quote:

Originally posted by xilent

Yeah, i was just trying to run it from a console window and su 'ing, logged in as root proper and ran synaptic, worked graet

2 ways I know of to get around not being allowed X progs with "su":

xauth merge ~user/.Xauthority (where user is replaced by login name)

xhost +localhost

----

NOTE: Security is iffy with all of this. Running X under root is usually bad idea. The two above solutions offer their own problems. Not sure about all the technical details - so a search is prolly better than listening to me babble on. Maybe someone can recommend some better options?

BTW, maybe you should just learn command line apt-get (which you can then sudo) if you're at all worried about security.


All times are GMT -5. The time now is 07:15 PM.