Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Joseph
On 11/28/12 20:10, Grant wrote: >> I use apache2 authentication for web users and I would like to require >> logins from certain users to be from a certain IP address. I >> experimented with Allow and Require but couldn't find a way to restrict >> only certain users. Can thi

[gentoo-user] serial in /sys

2012-11-29 Thread Jorge Almeida
Anyone knows how to dig into /sys to find the serial number of a device (say, a USB pen)? I few days ago I found by trial and error something like $ cat /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/13:0:0:0/block/sdc/../../../../../serial which gave me E68911000519 Now

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Marco Bonfiglio
2012/11/29 Jorge Almeida > Anyone knows how to dig into /sys to find the serial number of a device > (say, > a USB pen)? I few days ago I found by trial and error something like > $ cat > /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/13:0:0:0/block/sdc/../../../../../s

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Jorge Almeida
On Thu, Nov 29, 2012 at 6:35 PM, Marco Bonfiglio wrote: > > > 2012/11/29 Jorge Almeida >> >> Anyone knows how to dig into /sys to find the serial number of a device >> (say, >> a USB pen)? I few days ago I found by trial and error something like >> $ cat >> /sys/devices/pci:00/:00:06.1/us

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Bruce Hill
On Thu, Nov 29, 2012 at 05:57:46PM +, Jorge Almeida wrote: > Anyone knows how to dig into /sys to find the serial number of a device (say, > a USB pen)? I few days ago I found by trial and error something like > $ cat > /sys/devices/pci:00/:00:06.1/usb2/2-4/2-4:1.0/host13/target13:0:0/

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Jorge Almeida
On Thu, Nov 29, 2012 at 7:20 PM, Bruce Hill wrote: > On Thu, Nov 29, 2012 at 05:57:46PM +, Jorge Almeida wrote: >> Anyone knows how to dig into /sys to find the serial number of a device (say, >> a USB pen)? I few days ago I found by trial and error something like >> $ cat >> /sys/devices/pci

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Grant
>> >> I use apache2 authentication for web users and I would like to >> require >> >> logins from certain users to be from a certain IP address. I >> >> experimented with Allow and Require but couldn't find a way to >> restrict >> >> only certain users. Can this be done via ap

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Bruce Hill
On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote: > > It is a matter of programming, not looking. I need a program that creates the > symlink when the device is plugged in. Think mdev (more precisely, a > complement to mdev that would take care of a few particular devices, to allow >

[gentoo-user] External monitor is stretched 4:3

2012-11-29 Thread Grant
I've connected my laptop to a lot of HDTV's and whenever I switch the output to display on both screens, black bars appear on the left and right of my laptop screen so it displays at 4:3, and the HDTV output is 16:9 but looks horizontally stretched. Does anyone know how to keep the output at 16:9

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Alan McKinnon
On Thu, 29 Nov 2012 11:55:17 -0800 Grant wrote: > >> >> I use apache2 authentication for web users and I would like > >> >> to > >> require > >> >> logins from certain users to be from a certain IP address. > >> >> I experimented with Allow and Require but couldn't find a way > >>

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Joseph
On 11/29/12 11:55, Grant wrote: > You originally wanted "...logins from certain users to be from a certain IP address" > Now, you want from "any IP" In this case just restrict users with: > > > AuthName "restricted stuff" > AuthType Basic > AuthUserFile /etc/apache2/users >

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Jorge Almeida
On Thu, Nov 29, 2012 at 8:20 PM, Bruce Hill wrote: > On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote: >> >> It is a matter of programming, not looking. I need a program that creates the >> symlink when the device is plugged in. Think mdev (more precisely, a >> complement to mdev that

[gentoo-user] Google Chrome leftovers

2012-11-29 Thread Mark Knecht
Hi, I've sort of decided I like Chrome's UI better than others that I've spent time with (mostly Firefox & Konqueror) but I'm constantly held up by leftover processes when Chrome is closed: mark@c2stable ~ $ ps aux | grep chrome mark 3206 0.0 0.0 292448 16064 ?S06:32 0:01 /

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Kevin Chadwick
> The values of ../by-uuid/ would probably be > equally good, but I don't know how to find them any more than I know how to > find the serials... I use my own automounter scripts and udev with nice static mountpoints from when udisks threw lots away for a while in favour of multiseat. A recurring

Re: [gentoo-user] Google Chrome leftovers

2012-11-29 Thread Randy Barlow
On Thu, 29 Nov 2012 16:12:16 -0500, Mark Knecht wrote: Also, is anyone successfully using GoogleTalk in Chrome on Gentoo? Yeah, it works for me: $ equery list google-chrome google-talkplugin * Searching for google-chrome ... [IP-] [ ] www-client/google-chrome-22.0.1229.94_p161065:stable

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Walter Dnes
On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote > It is a matter of programming, not looking. I need a program that > creates the symlink when the device is plugged in. Think mdev > (more precisely, a complement to mdev that would take care of a few > particular devices, to allow usi

Re: [gentoo-user] Google Chrome leftovers

2012-11-29 Thread Mark Knecht
On Thu, Nov 29, 2012 at 2:17 PM, Randy Barlow wrote: > On Thu, 29 Nov 2012 16:12:16 -0500, Mark Knecht > wrote: >> >> Also, is anyone successfully using GoogleTalk in Chrome on Gentoo? > > > Yeah, it works for me: > > $ equery list google-chrome google-talkplugin > * Searching for google-chrome

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Grant
> > I want users jack and jill to be able to access the web content from > > any IP address, and I want users john and jacob to be able to access > > the web content only if they are coming from a certain IP address. I > > don't want anyone else to have access. > > > > - Grant > > Run two vhosts t

Re: [gentoo-user] Google Chrome leftovers

2012-11-29 Thread Bruce Hill
On Thu, Nov 29, 2012 at 02:38:48PM -0800, Mark Knecht wrote: > > Thanks for the info. Actually I haven't tried any version yet. I was > just curious about finding some app that might receive text message > sent from a cell phone. I.e. - instead of giving my cell phone number > which I'd rather kee

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Jorge Almeida
On Thu, Nov 29, 2012 at 10:35 PM, Walter Dnes wrote: > On Thu, Nov 29, 2012 at 07:31:10PM +, Jorge Almeida wrote > > > I have a couple of scripts that automount USB devices under mdev. See > https://wiki.gentoo.org/wiki/Mdev for the general setup, and > https://wiki.gentoo.org/wiki/Mdev/Aut

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Adam Carter
> > > So I'm sure I understand, if I want to keep the IP address which accesses > the web content the same, this means setting up a vhost for a port other > than 80 and 443 which the other vhosts are already set up on? > No, vhosts can use http host headers, so you just need a second dns entry poi

Re: [gentoo-user] serial in /sys

2012-11-29 Thread James Cloos
If you are looking for the serial number of a usb device, I find them at: /sys/bus/usb/devices/usb*/*/serial NB that not all have them. -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Michael Orlitzky
On 11/29/2012 03:43 PM, Alan McKinnon wrote: > > Run two vhosts that deliver the same content from the same DocumentRoot > > One has jack and jill as users in htpasswd with no acls in place > The other has john and jacob as users in a different htpasswd with IP > acls in place > > Trying to spec

Re: [gentoo-user] Google Chrome leftovers

2012-11-29 Thread Mark Knecht
On Thu, Nov 29, 2012 at 3:47 PM, Bruce Hill wrote: > On Thu, Nov 29, 2012 at 02:38:48PM -0800, Mark Knecht wrote: >> >> Thanks for the info. Actually I haven't tried any version yet. I was >> just curious about finding some app that might receive text message >> sent from a cell phone. I.e. - inst

Re: [gentoo-user] Google Chrome leftovers

2012-11-29 Thread Randy Barlow
On Thu, 29 Nov 2012 20:06:26 -0500, Mark Knecht wrote: As my interest (at this time, today only) is text message, does the Google Voice service accept text messages like a cell phone would or is it purely a voice service like a land line? It accepts them like a cell phone, and there is a web

Re: [gentoo-user] serial in /sys

2012-11-29 Thread Walter Dnes
On Fri, Nov 30, 2012 at 12:28:01AM +, Jorge Almeida wrote > When a pen is inserted, this is what is set: > > ACTION=add > DEVPATH=/devices/pci:00/:00:04.1/usb1/1-4/1-4:1.0/host12/target12:0:0/12:0:0:0/block/sdd > SUBSYSTEM=block > MAJOR=8 > MINOR=48 > DEVNAME=sdd > DEVTYPE=disk > SEQN

Re: [gentoo-user] Restrict certain web users by IP

2012-11-29 Thread Alan McKinnon
On Thu, 29 Nov 2012 15:36:51 -0800 Grant wrote: > > > I want users jack and jill to be able to access the web content > > > from any IP address, and I want users john and jacob to be able > > > to access the web content only if they are coming from a certain > > > IP address. I don't want anyone