Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 09:00 on Monday 24 January 2011, Mick did 
opine thusly:

> On Monday 24 January 2011 01:22:09 kashani wrote:
> > On 1/23/2011 4:26 PM, Alan McKinnon wrote:
> > > Apparently, though unproven, at 02:02 on Monday 24 January 2011,
> > > kashani did
> > > 
> > > opine thusly:
> > >> On 1/23/2011 12:20 PM, Alan McKinnon wrote:
> > >>> It manages it's own queues beautifully. But, and this makes me sad,
> > >>> it doesn't really want *me* to manage it's queues. Border controls
> > >>> are hard, and finding the 1,000 mails some idiot with a Windows bot
> > >>> just sent, and deleting them, is really hard.
> > >>> 
> > >>> I'm redesigning our mail setup at work,a nd I'm going to do it with
> > >>> exim *and* Postfix. Exim is the front end I can see, work with, and
> > >>> manage. Exim sends on to Postfix as fast as it can, and Postfix
> > >>> transparently relays to recipient. I get best of both worlds :-)
> > >>> 
> > >>  I can't say I've ever needed anything more than mailq | grep |awk  |
> > >> 
> > >> postsuper -d - in order to delete mail from the Postfix queues. What
> > >> sort of things are your trying to do other than delete a lot of spam
> > >> or bounces?
> > > 
> > > First, our internal mail system deals with about 3,000,000 mails a day
> > > Mon-Thu so grep | postsuper is a tad inadequate, even if just on the
> > > basis of volume
> > > 
> > > The basic tools are fine as long as you understand what they are
> > > dealing with - raw text. As soon as you run mailq you have text, you
> > > no longer have intelligence about what that text means. So you need
> > > lots of grep-fu.
> > > 
> > > I can't control what the users mail out, sometimes they have automated
> > > systems that do silly things like send 10,000 notifications an hour to
> > > an SMS gateway when they cocked up Nagios. Finding the dodgy ones is no
> > > fun when there's a lot of perfectly valid ones in the mix too, and grep
> > > doesn't help much other than blindly selecting text matches.
> > > 
> > > There's lots more examples, but they all follow a similar theme.
> > 
> > Thanks for the extra detail, I found what you're describing very
> > 
> > interesting. I've never dealt with Postfix with more than a couple
> > hundred internal users and more often as spam our customers system.
> > Other than the occasional Nagios blasts I haven't had to deal with much
> > of this.
> > 
> > In regards to controlling what users send is it feasible to use a
> > 
> > policy server for rate limiting them? The ability to use an extra lookup
> > service to decide whether to access main, filter it, allow relay, etc is
> > one of the things I think Postfix does well. However I suspect the
> > management and hand holding of a rate limit system would create more
> > overhead than cleaning out the queue periodically.
> 
> [Off-topic] Can't you set up nagios to only send out a single alert when a
> monitored variable goes down - can't remember the parameter off hand but
> that's what I did when the default nagios setting proved to be too trigger
> happy for the users' needs.

I could do that for my Nagios instance, but don't want to. My Nagios instance 
is well-behaved, there are others which are not so much.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 03:22 on Monday 24 January 2011, kashani did 
opine thusly:

> > There's lots more examples, but they all follow a similar theme.
> 
> Thanks for the extra detail, I found what you're describing very 
> interesting. I've never dealt with Postfix with more than a couple 
> hundred internal users and more often as spam our customers system. 
> Other than the occasional Nagios blasts I haven't had to deal with much 
> of this.
> In regards to controlling what users send is it feasible to use a 
> policy server for rate limiting them? The ability to use an extra lookup 
> service to decide whether to access main, filter it, allow relay, etc is 
> one of the things I think Postfix does well. However I suspect the 
> management and hand holding of a rate limit system would create more 
> overhead than cleaning out the queue periodically.

Your last sentence is the right one. 

Dealing with issues arising only when they arise is infinitely easier than 
trying to maintain some arb list of $STUFF just in case a minority of users 
misconfigure their boxes.

On the whole, our users send only valid mail and all of it must be allowed to 
pass.

The problems come in when a automated system mail goes beserk, usually causing 
loops. Not spam though, there's a rather large Cisco Ironport in front of my 
MTAs which deals with that.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread Mick
On Monday 24 January 2011 01:22:09 kashani wrote:
> On 1/23/2011 4:26 PM, Alan McKinnon wrote:
> > Apparently, though unproven, at 02:02 on Monday 24 January 2011, kashani
> > did
> > 
> > opine thusly:
> >> On 1/23/2011 12:20 PM, Alan McKinnon wrote:
> >>> It manages it's own queues beautifully. But, and this makes me sad, it
> >>> doesn't really want *me* to manage it's queues. Border controls are
> >>> hard, and finding the 1,000 mails some idiot with a Windows bot just
> >>> sent, and deleting them, is really hard.
> >>> 
> >>> I'm redesigning our mail setup at work,a nd I'm going to do it with
> >>> exim *and* Postfix. Exim is the front end I can see, work with, and
> >>> manage. Exim sends on to Postfix as fast as it can, and Postfix
> >>> transparently relays to recipient. I get best of both worlds :-)
> >>> 
> >>I can't say I've ever needed anything more than mailq | grep |awk  |
> >> 
> >> postsuper -d - in order to delete mail from the Postfix queues. What
> >> sort of things are your trying to do other than delete a lot of spam or
> >> bounces?
> > 
> > First, our internal mail system deals with about 3,000,000 mails a day
> > Mon-Thu so grep | postsuper is a tad inadequate, even if just on the
> > basis of volume
> > 
> > The basic tools are fine as long as you understand what they are dealing
> > with - raw text. As soon as you run mailq you have text, you no longer
> > have intelligence about what that text means. So you need lots of
> > grep-fu.
> > 
> > I can't control what the users mail out, sometimes they have automated
> > systems that do silly things like send 10,000 notifications an hour to
> > an SMS gateway when they cocked up Nagios. Finding the dodgy ones is no
> > fun when there's a lot of perfectly valid ones in the mix too, and grep
> > doesn't help much other than blindly selecting text matches.
> > 
> > There's lots more examples, but they all follow a similar theme.
> 
>   Thanks for the extra detail, I found what you're describing very
> interesting. I've never dealt with Postfix with more than a couple
> hundred internal users and more often as spam our customers system.
> Other than the occasional Nagios blasts I haven't had to deal with much
> of this.
>   In regards to controlling what users send is it feasible to use a
> policy server for rate limiting them? The ability to use an extra lookup
> service to decide whether to access main, filter it, allow relay, etc is
> one of the things I think Postfix does well. However I suspect the
> management and hand holding of a rate limit system would create more
> overhead than cleaning out the queue periodically.

[Off-topic] Can't you set up nagios to only send out a single alert when a 
monitored variable goes down - can't remember the parameter off hand but 
that's what I did when the default nagios setting proved to be too trigger 
happy for the users' needs.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread pk
On 2011-01-24 00:49, dhk wrote:

> Everything is plugged in correctly and checked many times.  As far as I
> know there aren't any sound daemons running, this is a new install, only
> a couple of weeks old.  Everything looks like it should be working, the
> only thing is I don't hear anything.  Since I hear other things I'm sure
> I'm not deaf and can rule that out.  This is a basic set up with lvm2,
> gnome, firefox, thunderbird, and openoffice.  That's about it, nothing
> fancy.

Ok, then I'm stumped... unless there's something in Gnome that's
creating a problem? I don't run Gnome (or KDE) for that reason. Did you
try a "simple" program (like ogg123, mpg123 etc.) to output sound? I've
come across sound/music programs (well, versions of them at least) that
doesn't output any sound...

Btw, have you tried a live cd (ubuntu, fedora etc.) to see if you can
get sound? If you get working sound you may be able to copy the settings
from that...

Best regards

Peter K



Re: [gentoo-user] Re: Identifying missing modules...

2011-01-23 Thread meino . cramer
walt  [11-01-24 04:05]:
> On 01/23/2011 10:08 AM, meino.cra...@gmx.de wrote:
> >
> >Hi,
> 
> >My question is: How can I distinguish devices/entities,
> >which do not need any driver to work and those, which
> >need a driver but in the current setup the driver wasn't
> >compiled in/compiled as module?
> 
> Well, this is quick and dirty and you won't learn much about
> kernel modules, but it will most likely work very easily.
> 
> Get the latest gentoo installation CD (it really can be any
> linux install CD as long as it's recent) and boot it in the
> machine you're having trouble with.
> 
> The reasoning is the install CD will already have *every*
> driver available, and the kernel will load the drivers it
> needs for your particular machine.
> 
> So, once the CD is booted, just figure out how to get a
> console going and type lsmod.  Write down anything that
> looks related to sound, and build your own kernel with
> those drivers enabled.
> 
> 

Is the CD equipped with a linux 2.6.37.* kernel?

Best regards,
mcc




Re: [gentoo-user] Geographical location of an URL/IP-address

2011-01-23 Thread meino . cramer
J. Roeleveld  [11-01-24 04:05]:
> On Sunday 23 January 2011 10:22:52 meino.cra...@gmx.de wrote:
> > J. Roeleveld  [11-01-23 10:16]:
> > > On Sunday 23 January 2011 06:08:12 meino.cra...@gmx.de wrote:
> > > > Hi,
> > > > 
> > > > is there any tool/mechanism to locate a given URL or IP-address on the
> > > > globe automatically?
> > > > I mean: I feed the tool with an IP-address or an URL and it will
> > > > respond: France, Paris
> > > > 
> > > > I dont mean a tool, whose output I have interpret.
> > > > 
> > > > I want this for batch processing...
> > > > 
> > > > Thank you very much in advance for any tool ;)
> > > > Bet regards,
> > > > mcc
> > > 
> > > Not sure if it exists yet, but you might want to start with the packages
> > > with "geoip" in the name:
> > > # eix geoip
> > > [I] dev-libs/geoip
> > > 
> > >  Available versions:  1.4.5 1.4.6{tbz2} {perl-geoipupdate}
> > >  Installed versions:  1.4.6{tbz2}(08:20:04
> > >  12/06/10)(-perl-geoipupdate) Homepage:   
> > >  http://www.maxmind.com/geoip/api/c.shtml Description:
> > >  easily lookup countries by IP addresses, even when
> > > 
> > > Reverse DNS entries don't exist
> > > 
> > > * dev-php5/pecl-geoip
> > > 
> > >  Available versions:  ~1.0.7 ~1.0.7-r1 {php_targets_php5-2
> > > 
> > > php_targets_php5-3}
> > > 
> > >  Homepage:http://pecl.php.net/geoip
> > >  Description: PHP extension to map IP address to geographic
> > >  places
> > > 
> > > * dev-python/geoip-python
> > > 
> > >  Available versions:  1.2.4
> > >  Homepage:http://www.maxmind.com/app/python
> > >  Description: Python bindings for GeoIP
> > > 
> > > * dev-ruby/net-geoip
> > > 
> > >  Available versions:  0.07 {ruby_targets_ruby18}
> > >  Homepage:http://www.maxmind.com/app/ruby
> > >  Description: Ruby bindings for the GeoIP library
> > > 
> > > Found 4 matches.
> > > 
> > > 
> > > 
> > > --
> > > Joost
> > 
> > Hi Joost,
> > 
> >  LIFESAVER!
> > 
> >   :)
> > 
> >  100% what I need! Great! And your email account is in the
> >  Netherlands by the way ;) ;)
> 
> It isn't actually :)
> 
> But my server and ISP is, so that's probably what you found :)
> 
> >  Thanks a lot! Have a nice weekend!
> 
> Hope you had a good weekend so far :)
> 
> >  Best regards,
> >  mcc
> 
> --
> Joost
> 
> PS. from the domain, I'm guessing you're in Germany?
> 

Hi Josst,

yes, my ISPs server is in Germany? :)

Best regards,
mcc




Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread kashani

On 1/23/2011 4:26 PM, Alan McKinnon wrote:

Apparently, though unproven, at 02:02 on Monday 24 January 2011, kashani did
opine thusly:


On 1/23/2011 12:20 PM, Alan McKinnon wrote:

It manages it's own queues beautifully. But, and this makes me sad, it
doesn't really want *me* to manage it's queues. Border controls are
hard, and finding the 1,000 mails some idiot with a Windows bot just
sent, and deleting them, is really hard.

I'm redesigning our mail setup at work,a nd I'm going to do it with exim
*and* Postfix. Exim is the front end I can see, work with, and manage.
Exim sends on to Postfix as fast as it can, and Postfix transparently
relays to recipient. I get best of both worlds :-)


I can't say I've ever needed anything more than mailq | grep |awk  |
postsuper -d - in order to delete mail from the Postfix queues. What
sort of things are your trying to do other than delete a lot of spam or
bounces?


First, our internal mail system deals with about 3,000,000 mails a day Mon-Thu
so grep | postsuper is a tad inadequate, even if just on the basis of volume

The basic tools are fine as long as you understand what they are dealing with
- raw text. As soon as you run mailq you have text, you no longer have
intelligence about what that text means. So you need lots of grep-fu.

I can't control what the users mail out, sometimes they have automated systems
that do silly things like send 10,000 notifications an hour to an SMS gateway
when they cocked up Nagios. Finding the dodgy ones is no fun when there's a
lot of perfectly valid ones in the mix too, and grep doesn't help much other
than blindly selecting text matches.

There's lots more examples, but they all follow a similar theme.



	Thanks for the extra detail, I found what you're describing very 
interesting. I've never dealt with Postfix with more than a couple 
hundred internal users and more often as spam our customers system. 
Other than the occasional Nagios blasts I haven't had to deal with much 
of this.
	In regards to controlling what users send is it feasible to use a 
policy server for rate limiting them? The ability to use an extra lookup 
service to decide whether to access main, filter it, allow relay, etc is 
one of the things I think Postfix does well. However I suspect the 
management and hand holding of a rate limit system would create more 
overhead than cleaning out the queue periodically.


kashani



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 02:02 on Monday 24 January 2011, kashani did 
opine thusly:

> On 1/23/2011 12:20 PM, Alan McKinnon wrote:
> > It manages it's own queues beautifully. But, and this makes me sad, it
> > doesn't really want *me* to manage it's queues. Border controls are
> > hard, and finding the 1,000 mails some idiot with a Windows bot just
> > sent, and deleting them, is really hard.
> > 
> > I'm redesigning our mail setup at work,a nd I'm going to do it with exim
> > *and* Postfix. Exim is the front end I can see, work with, and manage.
> > Exim sends on to Postfix as fast as it can, and Postfix transparently
> > relays to recipient. I get best of both worlds :-)
> 
>   I can't say I've ever needed anything more than mailq | grep |awk  |
> postsuper -d - in order to delete mail from the Postfix queues. What
> sort of things are your trying to do other than delete a lot of spam or
> bounces?

First, our internal mail system deals with about 3,000,000 mails a day Mon-Thu 
so grep | postsuper is a tad inadequate, even if just on the basis of volume

The basic tools are fine as long as you understand what they are dealing with 
- raw text. As soon as you run mailq you have text, you no longer have 
intelligence about what that text means. So you need lots of grep-fu.

I can't control what the users mail out, sometimes they have automated systems 
that do silly things like send 10,000 notifications an hour to an SMS gateway 
when they cocked up Nagios. Finding the dodgy ones is no fun when there's a 
lot of perfectly valid ones in the mix too, and grep doesn't help much other 
than blindly selecting text matches.

There's lots more examples, but they all follow a similar theme.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread Dale

dhk wrote:

My make.conf Use is: USE="-arts -doc -evo -firefox -kde -qt -qt3 -qt4
-java X alsa cairo cdr device-mapper extras gdu gnome gtk jpeg png
policykit sqlite svg tiff udev xml xulrunner xvmc"

Everything is plugged in correctly and checked many times.  As far as I
know there aren't any sound daemons running, this is a new install, only
a couple of weeks old.  Everything looks like it should be working, the
only thing is I don't hear anything.  Since I hear other things I'm sure
I'm not deaf and can rule that out.  This is a basic set up with lvm2,
gnome, firefox, thunderbird, and openoffice.  That's about it, nothing
fancy.

   


Take a look at mine, and the command I used to get it.  Keep in mind, 
there are also USE setting that are set by your profile not just make.conf.


root@fireball / # emerge --info | grep USE=
USE="3dnow 3dnowext X aac acpi alsa amd64 aml auto-hinter automount 
avahi berkdb bzip2 cairo cddb cdr chroot cleartype cli clucene 
consolekit corefonts cracklib cups curl cxx dbus dri dvd dvdr emboss 
encode escreen esd exif fam ffmpeg firefox flac fortran gdbm gdu gif 
gimp gkrellm gnutls gphoto2 gpm gtk hal hbci hddtemp iconv ipv6 java 
javascript jbig jpeg jpeg2k justify kde lcms ldap libnotify libwww 
logrotate loop-aes mad mdnsresponder-compat melt mikmod mmx mng modules 
mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly 
nsplugin offensive ofx ogg opengl openmp pam pango parport pcre pdf perl 
png policykit ppds ppp pppd python qt3 qt3support qt4 readline sasl sdl 
seamonkey semantic-desktop session sift smp spell sse sse2 ssl 
startup-notification svg sysfs syslog tcl tcpd threads tiff tk truetype 
type1 udev unicode usb vcd vorbis webkit wma wmf x264 xcb xml xorg xv 
xvid yahoo zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp 
atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 
fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx 
via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare 
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 
mmap_emul mulaw multi null plug rate route share shm softvol" 
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 
authn_dbm authn_default authn_file authz_dbm authz_default 
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi 
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter 
file_cache filter headers include info log_config logio mem_cache mime 
mime_magic negotiation rewrite setenvif speling status unique_id userdir 
usertrack vhost_alias" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df 
interface irq load memory rrdtool swap syslog" ELIBC="glibc" 
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt 
gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore 
rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" 
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad 
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" 
LINGUAS="en_US en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" 
USERLAND="GNU" VIDEO_CARDS="nv nvidia" XTABLES_ADDONS="quota2 psd pknock 
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee 
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"

root@fireball / #

Compare those and see if you see something.  Note the ALSA settings 
too.  I'm not sure you need the same as me but you may need something to 
enable the sound.


Dale

:-)  :-)



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread kashani

On 1/23/2011 12:20 PM, Alan McKinnon wrote:


It manages it's own queues beautifully. But, and this makes me sad, it doesn't
really want *me* to manage it's queues. Border controls are hard, and finding
the 1,000 mails some idiot with a Windows bot just sent, and deleting them, is
really hard.

I'm redesigning our mail setup at work,a nd I'm going to do it with exim *and*
Postfix. Exim is the front end I can see, work with, and manage. Exim sends on
to Postfix as fast as it can, and Postfix transparently relays to recipient. I
get best of both worlds :-)


	I can't say I've ever needed anything more than mailq | grep |awk  | 
postsuper -d - in order to delete mail from the Postfix queues. What 
sort of things are your trying to do other than delete a lot of spam or 
bounces?


kashani



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread dhk
On 01/23/2011 12:47 PM, pk wrote:
> On 2011-01-23 14:23, dhk wrote:
> 
>> The Sound Blaster didn't work either.  Should I try enabling the
>> deprecated OSS in the kernel?
> 
> You can always try it but I highly doubt it would improve the situation...
> 
> What sound related USE flags have you enabled (i.e. alsa, oss[for
> compatibility] etc.)?
> 
> Are you using any sound daemons (like Esound or Pulseaudio)? Shut them
> down. Are you sure you've plugged the speaker/headphone cable(s) into
> the right jack? Whenever I install a new computer I always put some
> music on and try the different audio jacks to find the right one. How do
> you play sound to verify that you have (or not, in your case) sound? For
> the last part I would advise to keep it as simple as possible i.e. try
> ogg123 or mpg123 or mplayer (as an example).
> 
> Best regards
> 
> Peter K
> 
> 

My make.conf Use is: USE="-arts -doc -evo -firefox -kde -qt -qt3 -qt4
-java X alsa cairo cdr device-mapper extras gdu gnome gtk jpeg png
policykit sqlite svg tiff udev xml xulrunner xvmc"

Everything is plugged in correctly and checked many times.  As far as I
know there aren't any sound daemons running, this is a new install, only
a couple of weeks old.  Everything looks like it should be working, the
only thing is I don't hear anything.  Since I hear other things I'm sure
I'm not deaf and can rule that out.  This is a basic set up with lvm2,
gnome, firefox, thunderbird, and openoffice.  That's about it, nothing
fancy.




[gentoo-user] [cookbook] grub2 for idiots like me

2011-01-23 Thread walt

Okay, I genuinely have grub2 installed and doing exactly what it's
supposed to do:  boot your machine using only partition LABELS, not
device names/numbers.

Below are a series of steps that *any* gentoo fan should recognize and
be comfortable with.

If you are not familiar with any of these steps, you really *should*
become familiar with them.

If you don't *want* to become familiar with them, have you tried ubuntu?

First, skip grub-1.98 and go for grub-1.99-rc1 because it's much better.

Yes, you could unmask sys-boot/grub-, but that's way more trouble
than it's worth.  Learn to do it the way it's meant to be done and you
will be pleased with your new skills :)

You need to get the source tarball first.  Many different ways to do
that, but my brain-dead way is to use firefox and enter this URL:

ftp://alpha.gnu.org/gnu/grub/

Click on the file grub-1.99~rc1.tar.gz to start downloading it. If you
don't know where firefox is saving the file, shame on you.

You should become familiar with building software in your own home
directory.  At work or school you may not have root privileges, so
be brave now and learn how easy it is:

$ cd
$ mkdir src
$ cd src
$ tar -xvzf /grub-1.99~rc1.tar.gz 
$ cd grub-1.99~rc1

Many projects will include the 'configure' file as part of the tarball,
but grub2 does not.  Lots of files like configure.ac, config.in, etc,
but you won't find 'configure' this time.

So, you need to create a brand new 'configure' by running the autogen.sh
script that the grub2 devs include for that purpose.  (You may need to
emerge sys-devel/autogen if you don't already have it.)

$ ./autogen.sh  (tons of screen output>
$ mkdir build
$ cd build
$ ../configure --prefix=$HOME  
$ make all install  

This step, if it works, will install grub stuff in ~/sbin ~/bin ~/etc
~/share and ~/lib/grub.  The directories should be created if they
don't already exist, I think.

Up to now your system files have not been touched because you are not
root and therefore you are not able to break your system.

I'm taking a break now to answer any questions about problems you may
encounter, and because I've had enough beer for today already.

All of this should be old material for gentooers.  If it's new to you,
then please try the steps above just to learn the basics of building
(any) linux software.  Even if you fail you will learn in the process.





Re: [gentoo-user] Identifying missing modules...

2011-01-23 Thread Mark Knecht
On Sun, Jan 23, 2011 at 10:08 AM,   wrote:
>
> Hi,
>
> when doing as root
>
>    lspci -vk
>
> I get all pci devices and "bus inhabitants" listed.
> Additionally there are often two lines added to each
> device saying similiar things like:
>
>        Kernel driver in use: >XYZ>
>        Kernel modules: 
>
> and there other devices do not have similiar entries.
>
> My question is: How can I distinguish devices/entities,
> which do not need any driver to work and those, which
> need a driver but in the current setup the driver wasn't
> compiled in/compiled as module?
>
> Thank you very much in advance for any help!
> Best regards,
> mcc

Devices that need a driver are listed as 'Kernel driver in use:'
whether the driver is compiled in or not.

Devices that have their driver compiled in do not have the line
'Kernel modules:'

Devices that have neither line are controlled by the kernel but don't
need anything from the driver section.

I suppose there is the possibility that lspci could find a PCI device
which hasn't had a driver selected as module or builtin and then not
show anything. In this case I expect that the device wouldn't
function.

Hope this helps,
Mark



[gentoo-user] Kernel config for wifi on AMD_64?

2011-01-23 Thread Walter Dnes
  I got myself an AMD-based Acer notebook recently.  The wireless chip
shows up under lspci -v as...

06:00.0 Network controller: Atheros Communications Inc. AR928X Wireless
Network Adapter (PCI-Express) (rev 01)
Subsystem: Foxconn International, Inc. Device e01f
Flags: bus master, fast devsel, latency 0, IRQ 10
Memory at d030 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Count=1 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel 
Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00

  I checked Google and the Gentoo wiki for the proper kernel config.
Just one problem... the docs I could find were for older kernels.  I'm
running 2.6.36-gentoo-r5 and the options layout is quite different from
what I see in the docs.  Here's what I've set in "make menuconfig",
based on gut feeling...

 --- Wireless
 <*>   cfg80211 - wireless configuration API
 [ ] nl80211 testmode command
 [ ] enable developer warnings
 [ ] cfg80211 regulatory debugging
 [*] enable powersave by default
 [ ] cfg80211 DebugFS entries
 [ ] cfg80211 wireless extensions compatibility
 <*>   Common routines for IEEE802.11 drivers
 [ ]   lib80211 debugging messages (NEW)
 <*>   Generic IEEE 802.11 Networking Stack (mac80211)
   Default rate control algorithm (Minstrel)  --->
 [ ]   Enable mac80211 mesh networking (pre-802.11s) support
 [*]   Enable LED triggers
 [ ]   Export mac80211 internals in DebugFS
 [ ]   Select mac80211 debugging features  --->

  And a couple of levels deep under "Device drivers", I've selected...

<*>   Atheros 802.11n wireless cards support

  Does it look OK, or would anyone recommend changes?  BTW, I'm running
pure 64-bit mode.

-- 
Walter Dnes 



Re: [gentoo-user] Geographical location of an URL/IP-address

2011-01-23 Thread J. Roeleveld
On Sunday 23 January 2011 10:22:52 meino.cra...@gmx.de wrote:
> J. Roeleveld  [11-01-23 10:16]:
> > On Sunday 23 January 2011 06:08:12 meino.cra...@gmx.de wrote:
> > > Hi,
> > > 
> > > is there any tool/mechanism to locate a given URL or IP-address on the
> > > globe automatically?
> > > I mean: I feed the tool with an IP-address or an URL and it will
> > > respond: France, Paris
> > > 
> > > I dont mean a tool, whose output I have interpret.
> > > 
> > > I want this for batch processing...
> > > 
> > > Thank you very much in advance for any tool ;)
> > > Bet regards,
> > > mcc
> > 
> > Not sure if it exists yet, but you might want to start with the packages
> > with "geoip" in the name:
> > # eix geoip
> > [I] dev-libs/geoip
> > 
> >  Available versions:  1.4.5 1.4.6{tbz2} {perl-geoipupdate}
> >  Installed versions:  1.4.6{tbz2}(08:20:04
> >  12/06/10)(-perl-geoipupdate) Homepage:   
> >  http://www.maxmind.com/geoip/api/c.shtml Description:
> >  easily lookup countries by IP addresses, even when
> > 
> > Reverse DNS entries don't exist
> > 
> > * dev-php5/pecl-geoip
> > 
> >  Available versions:  ~1.0.7 ~1.0.7-r1 {php_targets_php5-2
> > 
> > php_targets_php5-3}
> > 
> >  Homepage:http://pecl.php.net/geoip
> >  Description: PHP extension to map IP address to geographic
> >  places
> > 
> > * dev-python/geoip-python
> > 
> >  Available versions:  1.2.4
> >  Homepage:http://www.maxmind.com/app/python
> >  Description: Python bindings for GeoIP
> > 
> > * dev-ruby/net-geoip
> > 
> >  Available versions:  0.07 {ruby_targets_ruby18}
> >  Homepage:http://www.maxmind.com/app/ruby
> >  Description: Ruby bindings for the GeoIP library
> > 
> > Found 4 matches.
> > 
> > 
> > 
> > --
> > Joost
> 
> Hi Joost,
> 
>  LIFESAVER!
> 
>   :)
> 
>  100% what I need! Great! And your email account is in the
>  Netherlands by the way ;) ;)

It isn't actually :)

But my server and ISP is, so that's probably what you found :)

>  Thanks a lot! Have a nice weekend!

Hope you had a good weekend so far :)

>  Best regards,
>  mcc

--
Joost

PS. from the domain, I'm guessing you're in Germany?



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 21:56 on Sunday 23 January 2011, kashani did 
opine thusly:

> On 1/23/2011 11:23 AM, Alex Schuster wrote:
> > Relaying does not work yet, I get a "Relay access denied (in reply to
> > RCPT TO command)" error. But my initial goal is reached, I can send mail
> > to {root,wonko}@wonkology.org. That's all I wanted.
> > 
> > Many many thanks kashani! Your howto is much more than I expected, it is
> > much appreciated. I realize that postfix is not too complicated, so I
> > will play more with it when I have some spare time.
> 
>   Postifx is definitely worth the investment and people always seem
> surprised to find that 5-15 lines of config is all they need. You're
> welcome for the config. I spent most of last week learning the ins and
> out of authentication and relay hosts that hard way when I changed the
> domain of our servers and needed to update everything.
> 
>   I'm using a lot of EC2 machines and didn't want to maintain IP lists 
so
> I auth all servers trying to relay against my two Postfix servers. This
> config reflects that and might need some changes for your environment.
> 
> kashani


Side note: 

Agreed on Postfix.

I always think of the Postfix devs as people who take Unix philosophy 
seriously. The code does one thing and does it very very well:

It sends and receives mail. It receives it in a way that is hard to hurt the 
sender and hard to crash Postfix, and sends it in a way that does not hurt 
itself and does not hurt the recipient. Oh, and it natively does a few sanity 
checks on the sender, mostly because it's convenient to do it there.

And the config is simplicity itself - define a hostname, domain and a few 
other things and the odds are excellent it will work well out of the box as 
one of the few setups that 98% of people with mail servers want.

It manages it's own queues beautifully. But, and this makes me sad, it doesn't 
really want *me* to manage it's queues. Border controls are hard, and finding 
the 1,000 mails some idiot with a Windows bot just sent, and deleting them, is 
really hard.

I'm redesigning our mail setup at work,a nd I'm going to do it with exim *and* 
Postfix. Exim is the front end I can see, work with, and manage. Exim sends on 
to Postfix as fast as it can, and Postfix transparently relays to recipient. I 
get best of both worlds :-)

Now let's contrast Postfix with sendmail. No, wait, let's rather not


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Setting up SMTP relay

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 22:48 on Sunday 23 January 2011, walt did 
opine thusly:

> On 01/23/2011 12:20 PM, Alan McKinnon wrote:
> > I always think of the Postfix devs as people who take Unix philosophy
> 
> > seriously. The code does one thing and does it very very well:
> Are you accusing sendmail of being an OS that lacks only a good mailer?


Well, no, not deliberately.

But now that you mention it ...


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: Setting up SMTP relay

2011-01-23 Thread walt

On 01/23/2011 12:20 PM, Alan McKinnon wrote:


I always think of the Postfix devs as people who take Unix philosophy
seriously. The code does one thing and does it very very well:


Are you accusing sendmail of being an OS that lacks only a good mailer?




[gentoo-user] Re: Identifying missing modules...

2011-01-23 Thread walt

On 01/23/2011 10:08 AM, meino.cra...@gmx.de wrote:


Hi,



My question is: How can I distinguish devices/entities,
which do not need any driver to work and those, which
need a driver but in the current setup the driver wasn't
compiled in/compiled as module?


Well, this is quick and dirty and you won't learn much about
kernel modules, but it will most likely work very easily.

Get the latest gentoo installation CD (it really can be any
linux install CD as long as it's recent) and boot it in the
machine you're having trouble with.

The reasoning is the install CD will already have *every*
driver available, and the kernel will load the drivers it
needs for your particular machine.

So, once the CD is booted, just figure out how to get a
console going and type lsmod.  Write down anything that
looks related to sound, and build your own kernel with
those drivers enabled.




Re: [gentoo-user] Identifying missing modules...

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 20:08 on Sunday 23 January 2011, 
meino.cra...@gmx.de did opine thusly:

> Hi,
> 
> when doing as root
> 
> lspci -vk
> 
> I get all pci devices and "bus inhabitants" listed.
> Additionally there are often two lines added to each
> device saying similiar things like:
> 
> Kernel driver in use: >XYZ>
> Kernel modules: 
> 
> and there other devices do not have similiar entries.
> 
> My question is: How can I distinguish devices/entities,
> which do not need any driver to work and those, which
> need a driver but in the current setup the driver wasn't
> compiled in/compiled as module?


lspci won't show you the info you request. That's a function known only the 
the kernel, not to userspace. What lspci does is find stuff on the pci bus, 
then go looking for modules that are attached to it.

Note that it looks for modules (via some kernel<->userspace interface), not 
any kernel code driving the device.

Your question is an entirely different beast. I think your best bet is google, 
or to find some web site showing a kernel/hardware/module compatibility list.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread kashani

On 1/23/2011 11:23 AM, Alex Schuster wrote:


Relaying does not work yet, I get a "Relay access denied (in reply to
RCPT TO command)" error. But my initial goal is reached, I can send mail
to {root,wonko}@wonkology.org. That's all I wanted.

Many many thanks kashani! Your howto is much more than I expected, it is
much appreciated. I realize that postfix is not too complicated, so I
will play more with it when I have some spare time.



	Postifx is definitely worth the investment and people always seem 
surprised to find that 5-15 lines of config is all they need. You're 
welcome for the config. I spent most of last week learning the ins and 
out of authentication and relay hosts that hard way when I changed the 
domain of our servers and needed to update everything.


	I'm using a lot of EC2 machines and didn't want to maintain IP lists so 
I auth all servers trying to relay against my two Postfix servers. This 
config reflects that and might need some changes for your environment.


kashani



Re: [gentoo-user] Setting up SMTP relay

2011-01-23 Thread Alex Schuster
kashani writes:

> On 1/22/2011 1:34 PM, Alex Schuster wrote:

> I handle it with Postfix. Dovecot is only imap and won't accept main 
> directly.

Whoops.

> 1. install postfix with USE sasl or devecot-sasl, I don't believe it 
> matters which. Add the following lines to the bottom of 
> /etc/postfix/main.cf and fill in your hostname, domain, etc as needed.
> 
> # local settings
> myhostname = host.domain.com
> mydomain = domain.com
> myorigin = $myhostname
> inet_interfaces = all
> mydestination = $myhostname, localhost.$mydomain, localhost
> mynetworks_style = subnet
> mynetworks = 127.0.0.0/8 10.19.20.0/24

I left most items commented out as they are the same as the default, I
only had to set mydomain, although dnsdomainname and hostname -d both
return wonkology.org.

> 2. run sudo newaliases
>   Postfix bitches if the /etc/mail/aliases.db doesn't exist and will hang 
> on start.
> 
> 3. Verify postfix works, isn't complaining in the logs, etc.
>   Make sure it's up and running. That you can telnet to port 25 from 
> another machine and even send to a local user on your machine.

Looks good!

> 4. Add the user/pass stuff to the bottom of /etc/postfix/main.cf
> 
> # relay host and credentials
> relayhost = [my.external.relayhost.com]
> smtp_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl.passwd
> smtp_sasl_mechanism_filter = digest-md5
> smtp_sasl_security_options = noanonymous

I need TLS authentication, and found what I need in a howto:
smtp_sasl_tls_security_level = may
And I removed smtp_sasl_mechanism_filter.

> 5. Once you're this far it's time to test all the way through.
> 
> make sure you can send from the localhost machine
> sendmail -v s...@address.com
> .
> 
> Once you're sure that works test from another machine on the network. 
> Ideally it should just work if you've done all the steps.

Relaying does not work yet, I get a "Relay access denied (in reply to
RCPT TO command)" error. But my initial goal is reached, I can send mail
to {root,wonko}@wonkology.org. That's all I wanted.

Many many thanks kashani! Your howto is much more than I expected, it is
much appreciated. I realize that postfix is not too complicated, so I
will play more with it when I have some spare time.

Wonko



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread Peter Humphrey
On Sunday 23 January 2011 13:23:58 dhk wrote:

Until you fellows start trimming your replies so that I don't have to 
scroll down several pages to find the one line you've added, I will not 
bother. Your contributions will go unread here.

It's been a hard day and you make it harder.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.


[gentoo-user] Identifying missing modules...

2011-01-23 Thread meino . cramer

Hi,

when doing as root

lspci -vk

I get all pci devices and "bus inhabitants" listed.
Additionally there are often two lines added to each
device saying similiar things like:

Kernel driver in use: >XYZ>
Kernel modules: 

and there other devices do not have similiar entries.

My question is: How can I distinguish devices/entities, 
which do not need any driver to work and those, which
need a driver but in the current setup the driver wasn't
compiled in/compiled as module?

Thank you very much in advance for any help!
Best regards,
mcc








Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread pk
On 2011-01-23 14:23, dhk wrote:

> The Sound Blaster didn't work either.  Should I try enabling the
> deprecated OSS in the kernel?

You can always try it but I highly doubt it would improve the situation...

What sound related USE flags have you enabled (i.e. alsa, oss[for
compatibility] etc.)?

Are you using any sound daemons (like Esound or Pulseaudio)? Shut them
down. Are you sure you've plugged the speaker/headphone cable(s) into
the right jack? Whenever I install a new computer I always put some
music on and try the different audio jacks to find the right one. How do
you play sound to verify that you have (or not, in your case) sound? For
the last part I would advise to keep it as simple as possible i.e. try
ogg123 or mpg123 or mplayer (as an example).

Best regards

Peter K



Re: [gentoo-user] Re: AHCI/IDE-question

2011-01-23 Thread Mark Knecht
On Sun, Jan 23, 2011 at 4:02 AM, Dale  wrote:
> Mark Knecht wrote:
>>
>> On Sat, Jan 22, 2011 at 1:15 AM, Dale  wrote:
>> 
>>
>
> Other than copying a file and using time to measure how long it takes,
> what is the best test of a hard drive's speed?
>

 By running a benchmark tool that does exactly this.  IOzone is a nice
 one:

  http://www.iozone.org

 It's in portage: "app-benchmarks/iozone".

>>>
>>> I installed it but trying to figure out how to use it.  Jeez, what a man
>>> page.  O_O
>>>
>>>
>>
>> Yeah, it's a tough one. Also, very slow, assuming I understand it
>> correctly. You have to use file sizes larger than the memory of the
>> system, so on a 24GB system it takes (literally) a day or two to run.
>> (Assuming I actually understood the man page!) ;-)
>>
>> - Mark
>>
>>
>>
>
> I found this command and it worked pretty well.  It does take a good while
> to run tho.  It wasn't to bad on my new rig but the old rig did take a
> little while.
>
> iozone -R -l 5 -u 5 -r 4k -s 100m -F /home/f1 /home/f2 /home/f3 /home/f4
> /home/f5 | tee -a /tmp/iozone_results.txt &
>
> The results were much different than what hdparm shows.  It shows the
> 3Gbs/sec like they advertise they can do.  I wonder which is more accurate?
>  :/
>
> Dale

Hi Dale,
   Good command, but it's missing one parameter that will likely make
your results more meaningful. Try it again with the -e parameter
added. I'll limit the tests also to just the initial write and read
tests to give you something else to thiink about:

iozone -R -l 5 -u 5 -r 4k -s 100m -i 0 -i 1 -e -F /home/f1 /home/f2
/home/f3 /home/f4 /home/f5 | tee -a /tmp/iozone_results.txt &

   I'll be more than happy to explain later why I suggested the
changes, but in the spirit of someone's earlier comments about people
doing research, give some thought to the results you get and see if
you can explain to yourself why -e makes a difference. Do you believe
the results you get are meaningful?

   If you want another good experiment, remove -e and make the files
much larger, like 2g if you have an 8GB or DRAM. Again, explain to
yourself why this makes a difference. If you do this experiment you
_really_ should just do the -i 0 test only your first time through...
;-) (HINT: You might want to open another terminal, run top and when
in top hit iz and maybe m if you're not showing memory usage...)

Cheers,
Mark



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread Dale

dhk wrote:

On 01/23/2011 07:55 AM, dhk wrote:
   


By the way, that link is really good.  It did confirm that I'm using the
correct driver.  I checked the plugs and nothing.  I think I might try
another sound card.  The one I've been trying to get working is part of
the mother board.  I'm sure I have a Sound Blaster around somewhere.
I'll let you know if that maks a difference.

. . . and yes I have the following.
# ls -al /dev/snd/
total 0
drwxr-xr-x  3 root root  240 Jan 21 12:49 .
drwxr-xr-x 15 root root 3880 Jan 21 12:50 ..
drwxr-xr-x  2 root root   60 Jan 21 12:49 by-path
crw-rw  1 root audio 116,  9 Jan 21 12:49 controlC0
crw-rw  1 root audio 116,  4 Jan 21 12:49 controlC1
crw-rw  1 root audio 116,  3 Jan 21 12:49 midiC1D0
crw-rw  1 root audio 116,  8 Jan 23 06:56 pcmC0D0c
crw-rw  1 root audio 116,  7 Jan 23 07:48 pcmC0D0p
crw-rw  1 root audio 116,  6 Jan 21 12:49 pcmC0D1c
crw-rw  1 root audio 116,  5 Jan 21 12:49 pcmC0D2p
crw-rw  1 root audio 116, 10 Jan 21 12:49 seq
crw-rw  1 root audio 116,  2 Jan 21 12:49 timer

Thanks.


 

The Sound Blaster didn't work either.  Should I try enabling the
deprecated OSS in the kernel?

   


I think that link was posted on here a long time ago and I bookmarked 
it.  There is another site that I think is Redhat based that is close to 
the same thing.  I just like the one I posted better.  It has yet to 
lead me to the wrong driver.  Another good thing about that link, on the 
left, you can find your mobo by model number and see if everything is 
supported before you buy.  Real nice and helpful site, even if it is 
Debian.  lol


Are you sure it is enabled in the BIOS and has the correct setting, if 
anything can even be changed?  I guess it could be that the audio part 
is bad but I still suspect something is muted somewhere.  I have ran 
into this so many times it is ridiculous.


I don't think it would hurt to try the OSS drivers.  If it works, cool.  
If not, you tried one more thing and eliminated that as a cause.  I 
still feel like we are in Sherlock Holmes territory here.


Dale

:-)  :-)



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread dhk
On 01/23/2011 07:55 AM, dhk wrote:
> On 01/23/2011 07:44 AM, Dale wrote:
>> dhk wrote:
>>> On 01/23/2011 07:20 AM, Dale wrote:
>>>   
 dhk wrote:
 
> On 01/23/2011 06:10 AM, Dale wrote:
>
>   
>> Hazen Valliant-Saunders wrote:
>>
>> 
>>> Alsaconf will probe the right module for you.
>>>
>>> have you run alsamixer? (Or gmixer or whichever mixer you like to
>>> unumte the channels with?)
>>>
>>> You need to unmute the channells;
>>>
>>>
>>>
>> I will add this.  It seems every time I do a install, I have to unmute
>> the sound with both alsa and Kmix to get sound.  I assume alsa
>> controls
>> the card itself and kmix is sort of like software.  You may have hit
>> something similar here.  If even one thing is muted, no sound. 
>> Finding
>> them all is fun tho.
>>
>> Dale
>>
>> :-)  :-)
>>
>>
>>
>>  
> I had all the channels unmuted.  I ran alsamixer and
> gnome-volume-control to unmute and to verify, but still no sound.  In
> the /etc/make.conf I have ALSA_CARDS="AC97" set, but I don't think that
> matters according to the documentation.
>
>
>
 Does lspci -k show it is using some sort of driver?  Mine for example
 shows this:

 01:00.1 Audio device: nVidia Corporation Device 0be2 (rev a1)
  Subsystem: nVidia Corporation Device 069a
  Kernel driver in use: HDA Intel

 If yours doesn't show a kernel driver in use, then it is likely a driver
 problem.  If it does show one, make sure it is the correct one.  I
 usually use this as a guide:

 http://kmuto.jp/debian/hcl/

 Just run the lspci -n command and paste it in there.  It works well.  If
 it shows it is loading the correct driver, something is muted somewhere
 or maybe it is as simple as you have the speakers plugged into the wrong
 plug.  I did that once on my first build.  I had two green plugs.  Sort
 of got the wrong one.  ;-)

 I can't think of anything else at the moment.

 Dale

 :-)  :-)


  
>>> It looks like it's got a driver from the following:
>>> 00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
>>> AC'97 Audio Controller (rev a1)
>>> Subsystem: ASUSTeK Computer Inc. K8N-E
>>> Kernel driver in use: Intel ICH
>>> Kernel modules: snd-intel8x0
>>>
>>> The full output is below.
>>>
>>> # lspci -k
>>> <>
>>> 00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
>>> AC'97 Audio Controller (rev a1)
>>> Subsystem: ASUSTeK Computer Inc. K8N-E
>>> Kernel driver in use: Intel ICH
>>> Kernel modules: snd-intel8x0
>>>
>>
>> From that, I would think it is working driver and hardware wise, key
>> word is think.  The only things I can think of is something somewhere is
>> muted or plugged up wrong.  Do you have something like this:
>>
>> root@fireball / # ls -al /dev/snd/
>> total 0
>> drwxr-xr-x  3 root root  420 Jan 22 00:44 .
>> drwxr-xr-x 14 root root 4380 Jan 22 00:45 ..
>> drwxr-xr-x  2 root root   80 Jan 22 00:44 by-path
>> crw-rw  1 root audio 116, 10 Jan 22 00:44 controlC0
>> crw-rw  1 root audio 116, 19 Jan 22 00:44 controlC1
>> crw-rw  1 root audio 116,  9 Jan 22 00:44 hwC0D0
>> crw-rw  1 root audio 116, 18 Jan 22 00:44 hwC1D0
>> crw-rw  1 root audio 116, 17 Jan 22 00:44 hwC1D1
>> crw-rw  1 root audio 116, 16 Jan 22 00:44 hwC1D2
>> crw-rw  1 root audio 116, 15 Jan 22 00:44 hwC1D3
>> crw-rw  1 root audio 116,  8 Jan 22 00:44 pcmC0D0c
>> crw-rw  1 root audio 116,  7 Jan 23 06:37 pcmC0D0p
>> crw-rw  1 root audio 116,  6 Jan 22 00:44 pcmC0D1c
>> crw-rw  1 root audio 116,  5 Jan 22 00:44 pcmC0D1p
>> crw-rw  1 root audio 116,  4 Jan 22 00:44 pcmC0D2c
>> crw-rw  1 root audio 116, 14 Jan 22 00:44 pcmC1D3p
>> crw-rw  1 root audio 116, 13 Jan 22 00:44 pcmC1D7p
>> crw-rw  1 root audio 116, 12 Jan 22 00:44 pcmC1D8p
>> crw-rw  1 root audio 116, 11 Jan 22 00:44 pcmC1D9p
>> crw-rw  1 root audio 116,  3 Jan 22 00:44 seq
>> crw-rw  1 root audio 116,  2 Jan 22 00:44 timer
>> root@fireball / #
>>
>> Yours may vary a bit so it is just something to compare too.  I think we
>> are using different cards but some should look the same.  I list those
>> because my sound works here.
>>
>> Can I also assume you have checked to make sure you are in the right
>> groups for sound?  I would think audio would be the only one needed but
>> since we are grasping at straws, compare to this:
>>
>> root@fireball / # cat /etc/group | grep dale
>> tty::5:nut,dale
>> lp::7:lp,dale
>> wheel::10:root,dale
>> uucp::14:uucp,nut,dale
>> audio::18:dale
>> cdrom::19:haldaemon,dale
>> dialout::20:root,dale
>> video::27:root,dale
>> usb::85:haldaemon,dale
>> users::100:games,dale
>> utmp:x:406:dale
>> lpadmin:x:106:dale
>> games:x:3

Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread dhk
On 01/23/2011 07:44 AM, Dale wrote:
> dhk wrote:
>> On 01/23/2011 07:20 AM, Dale wrote:
>>   
>>> dhk wrote:
>>> 
 On 01/23/2011 06:10 AM, Dale wrote:

   
> Hazen Valliant-Saunders wrote:
>
> 
>> Alsaconf will probe the right module for you.
>>
>> have you run alsamixer? (Or gmixer or whichever mixer you like to
>> unumte the channels with?)
>>
>> You need to unmute the channells;
>>
>>
>>
> I will add this.  It seems every time I do a install, I have to unmute
> the sound with both alsa and Kmix to get sound.  I assume alsa
> controls
> the card itself and kmix is sort of like software.  You may have hit
> something similar here.  If even one thing is muted, no sound. 
> Finding
> them all is fun tho.
>
> Dale
>
> :-)  :-)
>
>
>
>  
 I had all the channels unmuted.  I ran alsamixer and
 gnome-volume-control to unmute and to verify, but still no sound.  In
 the /etc/make.conf I have ALSA_CARDS="AC97" set, but I don't think that
 matters according to the documentation.



>>> Does lspci -k show it is using some sort of driver?  Mine for example
>>> shows this:
>>>
>>> 01:00.1 Audio device: nVidia Corporation Device 0be2 (rev a1)
>>>  Subsystem: nVidia Corporation Device 069a
>>>  Kernel driver in use: HDA Intel
>>>
>>> If yours doesn't show a kernel driver in use, then it is likely a driver
>>> problem.  If it does show one, make sure it is the correct one.  I
>>> usually use this as a guide:
>>>
>>> http://kmuto.jp/debian/hcl/
>>>
>>> Just run the lspci -n command and paste it in there.  It works well.  If
>>> it shows it is loading the correct driver, something is muted somewhere
>>> or maybe it is as simple as you have the speakers plugged into the wrong
>>> plug.  I did that once on my first build.  I had two green plugs.  Sort
>>> of got the wrong one.  ;-)
>>>
>>> I can't think of anything else at the moment.
>>>
>>> Dale
>>>
>>> :-)  :-)
>>>
>>>
>>>  
>> It looks like it's got a driver from the following:
>> 00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
>> AC'97 Audio Controller (rev a1)
>> Subsystem: ASUSTeK Computer Inc. K8N-E
>> Kernel driver in use: Intel ICH
>> Kernel modules: snd-intel8x0
>>
>> The full output is below.
>>
>> # lspci -k
>> <>
>> 00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
>> AC'97 Audio Controller (rev a1)
>> Subsystem: ASUSTeK Computer Inc. K8N-E
>> Kernel driver in use: Intel ICH
>> Kernel modules: snd-intel8x0
>>
> 
> From that, I would think it is working driver and hardware wise, key
> word is think.  The only things I can think of is something somewhere is
> muted or plugged up wrong.  Do you have something like this:
> 
> root@fireball / # ls -al /dev/snd/
> total 0
> drwxr-xr-x  3 root root  420 Jan 22 00:44 .
> drwxr-xr-x 14 root root 4380 Jan 22 00:45 ..
> drwxr-xr-x  2 root root   80 Jan 22 00:44 by-path
> crw-rw  1 root audio 116, 10 Jan 22 00:44 controlC0
> crw-rw  1 root audio 116, 19 Jan 22 00:44 controlC1
> crw-rw  1 root audio 116,  9 Jan 22 00:44 hwC0D0
> crw-rw  1 root audio 116, 18 Jan 22 00:44 hwC1D0
> crw-rw  1 root audio 116, 17 Jan 22 00:44 hwC1D1
> crw-rw  1 root audio 116, 16 Jan 22 00:44 hwC1D2
> crw-rw  1 root audio 116, 15 Jan 22 00:44 hwC1D3
> crw-rw  1 root audio 116,  8 Jan 22 00:44 pcmC0D0c
> crw-rw  1 root audio 116,  7 Jan 23 06:37 pcmC0D0p
> crw-rw  1 root audio 116,  6 Jan 22 00:44 pcmC0D1c
> crw-rw  1 root audio 116,  5 Jan 22 00:44 pcmC0D1p
> crw-rw  1 root audio 116,  4 Jan 22 00:44 pcmC0D2c
> crw-rw  1 root audio 116, 14 Jan 22 00:44 pcmC1D3p
> crw-rw  1 root audio 116, 13 Jan 22 00:44 pcmC1D7p
> crw-rw  1 root audio 116, 12 Jan 22 00:44 pcmC1D8p
> crw-rw  1 root audio 116, 11 Jan 22 00:44 pcmC1D9p
> crw-rw  1 root audio 116,  3 Jan 22 00:44 seq
> crw-rw  1 root audio 116,  2 Jan 22 00:44 timer
> root@fireball / #
> 
> Yours may vary a bit so it is just something to compare too.  I think we
> are using different cards but some should look the same.  I list those
> because my sound works here.
> 
> Can I also assume you have checked to make sure you are in the right
> groups for sound?  I would think audio would be the only one needed but
> since we are grasping at straws, compare to this:
> 
> root@fireball / # cat /etc/group | grep dale
> tty::5:nut,dale
> lp::7:lp,dale
> wheel::10:root,dale
> uucp::14:uucp,nut,dale
> audio::18:dale
> cdrom::19:haldaemon,dale
> dialout::20:root,dale
> video::27:root,dale
> usb::85:haldaemon,dale
> users::100:games,dale
> utmp:x:406:dale
> lpadmin:x:106:dale
> games:x:35:dale
> plugdev:x:999:haldaemon,dale
> dale:x:1000:
> nut:x:84:nut,dale
> wireshark:x:993:dale
> root@fireball / #
> 
> Again, yours may vary but it may help.  This may 

Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread Dale

dhk wrote:

On 01/23/2011 07:20 AM, Dale wrote:
   

dhk wrote:
 

On 01/23/2011 06:10 AM, Dale wrote:

   

Hazen Valliant-Saunders wrote:

 

Alsaconf will probe the right module for you.

have you run alsamixer? (Or gmixer or whichever mixer you like to
unumte the channels with?)

You need to unmute the channells;


   

I will add this.  It seems every time I do a install, I have to unmute
the sound with both alsa and Kmix to get sound.  I assume alsa controls
the card itself and kmix is sort of like software.  You may have hit
something similar here.  If even one thing is muted, no sound.  Finding
them all is fun tho.

Dale

:-)  :-)



 

I had all the channels unmuted.  I ran alsamixer and
gnome-volume-control to unmute and to verify, but still no sound.  In
the /etc/make.conf I have ALSA_CARDS="AC97" set, but I don't think that
matters according to the documentation.


   

Does lspci -k show it is using some sort of driver?  Mine for example
shows this:

01:00.1 Audio device: nVidia Corporation Device 0be2 (rev a1)
 Subsystem: nVidia Corporation Device 069a
 Kernel driver in use: HDA Intel

If yours doesn't show a kernel driver in use, then it is likely a driver
problem.  If it does show one, make sure it is the correct one.  I
usually use this as a guide:

http://kmuto.jp/debian/hcl/

Just run the lspci -n command and paste it in there.  It works well.  If
it shows it is loading the correct driver, something is muted somewhere
or maybe it is as simple as you have the speakers plugged into the wrong
plug.  I did that once on my first build.  I had two green plugs.  Sort
of got the wrong one.  ;-)

I can't think of anything else at the moment.

Dale

:-)  :-)


 

It looks like it's got a driver from the following:
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
AC'97 Audio Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0

The full output is below.

# lspci -k
<>
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
AC'97 Audio Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
   


From that, I would think it is working driver and hardware wise, key 
word is think.  The only things I can think of is something somewhere is 
muted or plugged up wrong.  Do you have something like this:


root@fireball / # ls -al /dev/snd/
total 0
drwxr-xr-x  3 root root  420 Jan 22 00:44 .
drwxr-xr-x 14 root root 4380 Jan 22 00:45 ..
drwxr-xr-x  2 root root   80 Jan 22 00:44 by-path
crw-rw  1 root audio 116, 10 Jan 22 00:44 controlC0
crw-rw  1 root audio 116, 19 Jan 22 00:44 controlC1
crw-rw  1 root audio 116,  9 Jan 22 00:44 hwC0D0
crw-rw  1 root audio 116, 18 Jan 22 00:44 hwC1D0
crw-rw  1 root audio 116, 17 Jan 22 00:44 hwC1D1
crw-rw  1 root audio 116, 16 Jan 22 00:44 hwC1D2
crw-rw  1 root audio 116, 15 Jan 22 00:44 hwC1D3
crw-rw  1 root audio 116,  8 Jan 22 00:44 pcmC0D0c
crw-rw  1 root audio 116,  7 Jan 23 06:37 pcmC0D0p
crw-rw  1 root audio 116,  6 Jan 22 00:44 pcmC0D1c
crw-rw  1 root audio 116,  5 Jan 22 00:44 pcmC0D1p
crw-rw  1 root audio 116,  4 Jan 22 00:44 pcmC0D2c
crw-rw  1 root audio 116, 14 Jan 22 00:44 pcmC1D3p
crw-rw  1 root audio 116, 13 Jan 22 00:44 pcmC1D7p
crw-rw  1 root audio 116, 12 Jan 22 00:44 pcmC1D8p
crw-rw  1 root audio 116, 11 Jan 22 00:44 pcmC1D9p
crw-rw  1 root audio 116,  3 Jan 22 00:44 seq
crw-rw  1 root audio 116,  2 Jan 22 00:44 timer
root@fireball / #

Yours may vary a bit so it is just something to compare too.  I think we 
are using different cards but some should look the same.  I list those 
because my sound works here.


Can I also assume you have checked to make sure you are in the right 
groups for sound?  I would think audio would be the only one needed but 
since we are grasping at straws, compare to this:


root@fireball / # cat /etc/group | grep dale
tty::5:nut,dale
lp::7:lp,dale
wheel::10:root,dale
uucp::14:uucp,nut,dale
audio::18:dale
cdrom::19:haldaemon,dale
dialout::20:root,dale
video::27:root,dale
usb::85:haldaemon,dale
users::100:games,dale
utmp:x:406:dale
lpadmin:x:106:dale
games:x:35:dale
plugdev:x:999:haldaemon,dale
dale:x:1000:
nut:x:84:nut,dale
wireshark:x:993:dale
root@fireball / #

Again, yours may vary but it may help.  This may not help but at least 
you can be pretty sure of what it is not.  When working on something 
like this, am I the only one that feels like Sherlock Holmes?  lol


Dale

:-)  :-)



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread dhk
On 01/23/2011 07:20 AM, Dale wrote:
> dhk wrote:
>> On 01/23/2011 06:10 AM, Dale wrote:
>>   
>>> Hazen Valliant-Saunders wrote:
>>> 
 Alsaconf will probe the right module for you.

 have you run alsamixer? (Or gmixer or whichever mixer you like to
 unumte the channels with?)

 You need to unmute the channells;


>>> I will add this.  It seems every time I do a install, I have to unmute
>>> the sound with both alsa and Kmix to get sound.  I assume alsa controls
>>> the card itself and kmix is sort of like software.  You may have hit
>>> something similar here.  If even one thing is muted, no sound.  Finding
>>> them all is fun tho.
>>>
>>> Dale
>>>
>>> :-)  :-)
>>>
>>>
>>>  
>> I had all the channels unmuted.  I ran alsamixer and
>> gnome-volume-control to unmute and to verify, but still no sound.  In
>> the /etc/make.conf I have ALSA_CARDS="AC97" set, but I don't think that
>> matters according to the documentation.
>>
>>
> 
> Does lspci -k show it is using some sort of driver?  Mine for example
> shows this:
> 
> 01:00.1 Audio device: nVidia Corporation Device 0be2 (rev a1)
> Subsystem: nVidia Corporation Device 069a
> Kernel driver in use: HDA Intel
> 
> If yours doesn't show a kernel driver in use, then it is likely a driver
> problem.  If it does show one, make sure it is the correct one.  I
> usually use this as a guide:
> 
> http://kmuto.jp/debian/hcl/
> 
> Just run the lspci -n command and paste it in there.  It works well.  If
> it shows it is loading the correct driver, something is muted somewhere
> or maybe it is as simple as you have the speakers plugged into the wrong
> plug.  I did that once on my first build.  I had two green plugs.  Sort
> of got the wrong one.  ;-)
> 
> I can't think of anything else at the moment.
> 
> Dale
> 
> :-)  :-)
> 
> 

It looks like it's got a driver from the following:
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
AC'97 Audio Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0

The full output is below.

# lspci -k
00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: agpgart-amd64
00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
Subsystem: ASUSTeK Computer Inc. K8N-E
00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management
(rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: ohci_hcd
Kernel modules: ohci-hcd
00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: ohci_hcd
Kernel modules: ohci-hcd
00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0
Controller (rev a2)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: ehci_hcd
Kernel modules: ehci-hcd
00:05.0 Bridge: nVidia Corporation CK8S Ethernet Controller (rev a2)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: forcedeth
Kernel modules: forcedeth
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb
AC'97 Audio Controller (rev a1)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: Intel ICH
Kernel modules: snd-intel8x0
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller
(v2.5) (rev a2)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: AMD_IDE
Kernel modules: ata_generic, pata_acpi, pata_amd
00:0a.0 IDE interface: nVidia Corporation nForce3 Serial ATA Controller
(rev a2)
Subsystem: ASUSTeK Computer Inc. K8N-E
Kernel driver in use: sata_nv
Kernel modules: ata_generic, pata_acpi, sata_nv
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI
Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge
(rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron]
Miscellaneous Control
01:00.0 VGA compatible controller: nVidia Corporation NV36 [GeForce FX
5700LE] (rev a1)
Kernel driver in use: nvidia
Kernel modules: nvidia




Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread Dale

dhk wrote:

On 01/23/2011 06:10 AM, Dale wrote:
   

Hazen Valliant-Saunders wrote:
 

Alsaconf will probe the right module for you.

have you run alsamixer? (Or gmixer or whichever mixer you like to
unumte the channels with?)

You need to unmute the channells;

   

I will add this.  It seems every time I do a install, I have to unmute
the sound with both alsa and Kmix to get sound.  I assume alsa controls
the card itself and kmix is sort of like software.  You may have hit
something similar here.  If even one thing is muted, no sound.  Finding
them all is fun tho.

Dale

:-)  :-)


 

I had all the channels unmuted.  I ran alsamixer and
gnome-volume-control to unmute and to verify, but still no sound.  In
the /etc/make.conf I have ALSA_CARDS="AC97" set, but I don't think that
matters according to the documentation.

   


Does lspci -k show it is using some sort of driver?  Mine for example 
shows this:


01:00.1 Audio device: nVidia Corporation Device 0be2 (rev a1)
Subsystem: nVidia Corporation Device 069a
Kernel driver in use: HDA Intel

If yours doesn't show a kernel driver in use, then it is likely a driver 
problem.  If it does show one, make sure it is the correct one.  I 
usually use this as a guide:


http://kmuto.jp/debian/hcl/

Just run the lspci -n command and paste it in there.  It works well.  If 
it shows it is loading the correct driver, something is muted somewhere 
or maybe it is as simple as you have the speakers plugged into the wrong 
plug.  I did that once on my first build.  I had two green plugs.  Sort 
of got the wrong one.  ;-)


I can't think of anything else at the moment.

Dale

:-)  :-)



Re: [gentoo-user] Re: AHCI/IDE-question

2011-01-23 Thread Dale

Mark Knecht wrote:

On Sat, Jan 22, 2011 at 1:15 AM, Dale  wrote:

   

Other than copying a file and using time to measure how long it takes,
what is the best test of a hard drive's speed?
 

By running a benchmark tool that does exactly this.  IOzone is a nice one:

  http://www.iozone.org

It's in portage: "app-benchmarks/iozone".
   

I installed it but trying to figure out how to use it.  Jeez, what a man
page.  O_O

 

Yeah, it's a tough one. Also, very slow, assuming I understand it
correctly. You have to use file sizes larger than the memory of the
system, so on a 24GB system it takes (literally) a day or two to run.
(Assuming I actually understood the man page!) ;-)

- Mark


   


I found this command and it worked pretty well.  It does take a good 
while to run tho.  It wasn't to bad on my new rig but the old rig did 
take a little while.


iozone -R -l 5 -u 5 -r 4k -s 100m -F /home/f1 /home/f2 /home/f3 /home/f4 
/home/f5 | tee -a /tmp/iozone_results.txt &


The results were much different than what hdparm shows.  It shows the 
3Gbs/sec like they advertise they can do.  I wonder which is more 
accurate?  :/


Dale

:-)  :-)



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread dhk
On 01/23/2011 06:10 AM, Dale wrote:
> Hazen Valliant-Saunders wrote:
>> Alsaconf will probe the right module for you.
>>
>> have you run alsamixer? (Or gmixer or whichever mixer you like to
>> unumte the channels with?)
>>
>> You need to unmute the channells;
>>
> 
> I will add this.  It seems every time I do a install, I have to unmute
> the sound with both alsa and Kmix to get sound.  I assume alsa controls
> the card itself and kmix is sort of like software.  You may have hit
> something similar here.  If even one thing is muted, no sound.  Finding
> them all is fun tho.
> 
> Dale
> 
> :-)  :-)
> 
> 

I had all the channels unmuted.  I ran alsamixer and
gnome-volume-control to unmute and to verify, but still no sound.  In
the /etc/make.conf I have ALSA_CARDS="AC97" set, but I don't think that
matters according to the documentation.





Re: [gentoo-user] Re: Rail Model font for coders

2011-01-23 Thread Alan McKinnon
Apparently, though unproven, at 02:02 on Sunday 23 January 2011, Stroller did 
opine thusly:

> On 20/1/2011, at 10:08pm, Nuno J. Silva wrote:
> > Nikos Chantziaras  writes:
> >> On 01/20/2011 11:14 AM,
> >> hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_ram
> >> a_hare_h...@lavabit.com
> > 
> > I am against hard limits on username lengths, but I think that
> > uuencoding the result of gzipping that address yelds a more readable
> > address.
> 
> Uh, sorry - can you translate, please?

He's being witty.

Take 
hare_krsna_hare_krsna_krsna_krsna_hare_hare_hare_rama_hare_rama_rama_rama_hare_h...@lavabit.com,
 
hard to read and type right?

Now zip it. Try read the zipped version.
Now uuencode the zipped version and try read that.

The joke is that the uuencoded zipped version is still easier to read than the 
original. Which is true enough, as the original address is just bat shit 
insane crazy long.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] ALSA - No Sound

2011-01-23 Thread Dale

Hazen Valliant-Saunders wrote:

Alsaconf will probe the right module for you.

have you run alsamixer? (Or gmixer or whichever mixer you like to 
unumte the channels with?)


You need to unmute the channells;



I will add this.  It seems every time I do a install, I have to unmute 
the sound with both alsa and Kmix to get sound.  I assume alsa controls 
the card itself and kmix is sort of like software.  You may have hit 
something similar here.  If even one thing is muted, no sound.  Finding 
them all is fun tho.


Dale

:-)  :-)



Re: [gentoo-user] Geographical location of an URL/IP-address

2011-01-23 Thread meino . cramer
J. Roeleveld  [11-01-23 10:16]:
> On Sunday 23 January 2011 06:08:12 meino.cra...@gmx.de wrote:
> > Hi,
> > 
> > is there any tool/mechanism to locate a given URL or IP-address on the
> > globe automatically?
> > I mean: I feed the tool with an IP-address or an URL and it will
> > respond: France, Paris
> > 
> > I dont mean a tool, whose output I have interpret.
> > 
> > I want this for batch processing...
> > 
> > Thank you very much in advance for any tool ;)
> > Bet regards,
> > mcc
> 
> Not sure if it exists yet, but you might want to start with the packages with 
> "geoip" in the name:
> # eix geoip
> [I] dev-libs/geoip
>  Available versions:  1.4.5 1.4.6{tbz2} {perl-geoipupdate}
>  Installed versions:  1.4.6{tbz2}(08:20:04 12/06/10)(-perl-geoipupdate)
>  Homepage:http://www.maxmind.com/geoip/api/c.shtml
>  Description: easily lookup countries by IP addresses, even when 
> Reverse DNS entries don't exist
> 
> * dev-php5/pecl-geoip
>  Available versions:  ~1.0.7 ~1.0.7-r1 {php_targets_php5-2 
> php_targets_php5-3}
>  Homepage:http://pecl.php.net/geoip
>  Description: PHP extension to map IP address to geographic places
> 
> * dev-python/geoip-python
>  Available versions:  1.2.4
>  Homepage:http://www.maxmind.com/app/python
>  Description: Python bindings for GeoIP
> 
> * dev-ruby/net-geoip
>  Available versions:  0.07 {ruby_targets_ruby18}
>  Homepage:http://www.maxmind.com/app/ruby
>  Description: Ruby bindings for the GeoIP library
> 
> Found 4 matches.
> 
> 
> 
> --
> Joost
> 

Hi Joost,

 LIFESAVER!
  :)

 100% what I need! Great! And your email account is in the
 Netherlands by the way ;) ;)

 Thanks a lot! Have a nice weekend!
 Best regards,
 mcc




Re: [gentoo-user] Geographical location of an URL/IP-address

2011-01-23 Thread J. Roeleveld
On Sunday 23 January 2011 06:08:12 meino.cra...@gmx.de wrote:
> Hi,
> 
> is there any tool/mechanism to locate a given URL or IP-address on the
> globe automatically?
> I mean: I feed the tool with an IP-address or an URL and it will
> respond: France, Paris
> 
> I dont mean a tool, whose output I have interpret.
> 
> I want this for batch processing...
> 
> Thank you very much in advance for any tool ;)
> Bet regards,
> mcc

Not sure if it exists yet, but you might want to start with the packages with 
"geoip" in the name:
# eix geoip
[I] dev-libs/geoip
 Available versions:  1.4.5 1.4.6{tbz2} {perl-geoipupdate}
 Installed versions:  1.4.6{tbz2}(08:20:04 12/06/10)(-perl-geoipupdate)
 Homepage:http://www.maxmind.com/geoip/api/c.shtml
 Description: easily lookup countries by IP addresses, even when 
Reverse DNS entries don't exist

* dev-php5/pecl-geoip
 Available versions:  ~1.0.7 ~1.0.7-r1 {php_targets_php5-2 
php_targets_php5-3}
 Homepage:http://pecl.php.net/geoip
 Description: PHP extension to map IP address to geographic places

* dev-python/geoip-python
 Available versions:  1.2.4
 Homepage:http://www.maxmind.com/app/python
 Description: Python bindings for GeoIP

* dev-ruby/net-geoip
 Available versions:  0.07 {ruby_targets_ruby18}
 Homepage:http://www.maxmind.com/app/ruby
 Description: Ruby bindings for the GeoIP library

Found 4 matches.



--
Joost