LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 02-14-2003, 11:01 AM   #1
xilent
LQ Newbie
 
Registered: Dec 2002
Location: Dundee, UK
Distribution: debian GNU/Linux
Posts: 27

Rep: Reputation: 15
Unhappy Problems with Apt-Get,




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
 
Old 02-14-2003, 01:50 PM   #2
skidhmor
Member
 
Registered: Feb 2003
Location: Maitland, FL, USA
Distribution: Gentoo
Posts: 38

Rep: Reputation: 15
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.)
 
Old 02-15-2003, 01:46 PM   #3
xilent
LQ Newbie
 
Registered: Dec 2002
Location: Dundee, UK
Distribution: debian GNU/Linux
Posts: 27

Original Poster
Rep: Reputation: 15
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
 
Old 02-15-2003, 02:51 PM   #4
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
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.

Last edited by cuckoopint; 02-15-2003 at 02:54 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get problems curly08 Ubuntu 4 05-06-2005 03:51 AM
apt-get problems PDD Linux - Software 1 11-11-2004 05:44 AM
apt-get problems PDD Linux - Software 3 10-26-2004 07:02 AM
I am having APT problems UncleAnt Conectiva 1 10-15-2004 12:04 AM
problems with apt-get wedgeworth Linux - Software 66 12-31-2003 05:19 PM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration