Re: [gentoo-user] Kernel build error

2009-01-29 Thread Dale
Neil Bothwick wrote:
> On Thu, 29 Jan 2009 23:29:09 +0100, KH wrote:
>
>   
>> you did run oldconfig
>> . Somewhere you said n where a number should be.
>> Search for:
>> External Firmware blobs to build into kernel binary (EXTRA_FIRMWARE)
>> 
>
> Or copy over the previous config file and run make oldconfig again,
> paying a little more attention this time :P
>
>
>   

OK.  I got it now.  I redone the oldconfig and let the FIRMWARE stuff go
to default.  It built fine this time.  May not boot but it built it.  o_O

Thanks !!

Dale

:-)  :-) 



[gentoo-user] problem with webcam

2009-01-29 Thread Linyin
I already do video for linux in the kernel. Install SDL & SPCAVIEW
have no error. But when i use it, error said cant find driver.
In website:mxhaard.free.fr/spca5xx.html I can found my webcam is :
Wasam 107 0x0ac8 0x301b Wasam Wa350R Zc0301P Pb0330 Yes jpeg
spca5xx/LE gspca v4l1/v4l2 
Driver is belong to Zc0301P,by the way is gspca_zc3xx module. The
spcaserv said : Not an Spca5xx Camera !!
Plz give me some idea,thx.

linyin ~ # uname -a
Linux linyin 2.6.27-gentoo-r8 #6 Thu Jan 29 17:27:13 CST 2009 i686 VIA
Samuel 2 CentaurHauls GNU/Linux

linyin ~ # lsusb
Bus 002 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam
Bus 001 Device 001: ID 1d6b:0001

linyin ~ # lsmod
Module Size Used by
gspca_zc3xx 45088 0
gspca_main 17344 1 gspca_zc3xx
videodev 27904 1 gspca_main
v4l1_compat 12132 1 videodev

linyin ~ # spcaserv -s 320x240 -w 192.168.1.6:7070
size width: 320 height: 240
Port should be between 1024 to 65536 set default 7070 !.
Spcaview version: 1.1.8 date: 25:12:2007 (C) mxha...@magic.fr
video /dev/video0
Camera found: PC Camera
VIDIOCGPICT brightnes=32896 hue=0 color=0 contrast=32768
whiteness=39321depth=8 palette=0
Bridge found: zc3xx
Not an Spca5xx Camera !!
wrong spca5xx device
StreamId: -1 Camera
try palette 21 depth 8
Damned second try fail
try palette 15 depth 12
Damned second try fail
try palette 4 depth 24
Damned second try fail
try palette 3 depth 16
Damned second try fail
try palette 5 depth 32
Damned second try fail
probe size in
Available Resolutions width 640 heigth 480
Available Resolutions width 384 heigth 288
Available Resolutions width 352 heigth 288
Available Resolutions width 320 heigth 240
Available Resolutions width 192 heigth 144
Available Resolutions width 176 heigth 144
Available Resolutions width 160 heigth 120
Invalid palette in check palette fatal !!
Format asked 15 check -1
VIDIOCSPICT brightnes=32896 hue=0 color=0 contrast=32768
whiteness=39321depth=12 palette=15
VIDIOCGPICT brightnes=32896 hue=0 color=0 contrast=32768
whiteness=39321depth=8 palette=0
could't set video palette Abort !

-- 
Regards

Linyin SooChow China
http://linyin.8800.org



Re: [gentoo-user] homemade nas setup

2009-01-29 Thread Matt Harrison

Harry Putnam wrote:

I've been looking into setting up or getting somekind of nas
storage/backup capability lately so thought I'd ask about it here
since I'm sure some of you will be using something or will have built
your own.

After looking at a few on google .. I'm a little surprised at the high
end pricetags and even the midranges for a factory made setup.

Makes me wonder what if anything I'd be missing, functionality wise,
if I were to build it up myself.

I see these storebought things are mostly running a small embedded
linux os.

The lowend stuff like WD `mybook 1tb world Edition II' advertises
gigabit throughput but I see many reviews that report way less in
practice.  In fact it started to look like that particular one is way
below its advertised capability.  I ran across many complaints about
dreadfully low write speads.  Also apparently has some sorry thing
called Mionet for (secure) remote access.

I'm thinking of doing something like a semi-minimal regular (not
embedded) install on a P4 I have with asus P4C800 mobo and some 2 gigs
ram.  Maybe add an extra sata controller (the mobo has one) so I can
put up to 6 or so sata disks on it along with one small IDE disk for
the OS (just to head of any problems related to installing on sata)

Maybe start with 2 500 sata disks and build up as I need it.  Or more
likely `if I need it'... I kind of doubt I'd need more than 4 anytime
soon so maybe wait on the controller part too.

I guess I'd connect to it mostly thru samba/cifs for windows XP
machines that have lots of biggish graphics and video type stuff to
backup/store.  And nfs for my main gentoo desktop.

I wondered what the downsides are compared to a medium range
storebought rig?

A few I can think of are space and noise.. but having never been
around our run a nas setup... I'm not sure if that is really true.

Anyway, a few thoughts on what I might be running into doing it myself,
or missing compared to storebought.  Maybe maintenance
considerations.. or whatever, wodld be welcome.


I know its a little OT, but I have to mention ZFS. It'll mean running 
Solaris or FreeBSD in order to get the best out of it, but it's worth it.


I changed my fileserver from a gentoo box with software raid and lvm 
over to ZFS on OpenSolaris and I haven't looked back. Gentoo is still my 
main OS but I think you just can't beat ZFS for a filer.


Just check it out and see what you think.

--
Matt Harrison

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?



[gentoo-user] No RTC kernel support needed?

2009-01-29 Thread Grant
One of my systems needed Real Time Clock -> PC-style 'CMOS' enabled in
the kernel to prevent a Hardware Clock error at startup and to make
the 'hwclock' command work.  Another of my systems doesn't have Real
Time Clock kernel support enabled at all, and yet 'hwclock' works
fine.  Does anyone know how that works?

- Grant



Re: [gentoo-user] utf fonts not working right

2009-01-29 Thread smallnow
Willie Wong wrote:
> The page you list is encoding in GB2312, Simplified Chinese.
> 
> Your problem, however, is that you don't have the right fonts. Deja-Vu
> fonts do not support east asian scripts. (See their website for more
> detail.) 
> 
> I suggest media-fonts/unifont, which has all Unicode characters, or
> media-fonts/wqy-bitmapfonts or media-fonts/arphicfonts which supports
> Chinese, Japanese, and Korean ideographs. 
> 
> Hope this helps,
> 
> W

SOLVED!
Thanks. I actually had everything already setup the same way everyone else said
except you. I added those fonts, added them to my xorg.conf fonthpaths and
restarted X and it works.

- Ian




[gentoo-user] homemade nas setup

2009-01-29 Thread Harry Putnam
I've been looking into setting up or getting somekind of nas
storage/backup capability lately so thought I'd ask about it here
since I'm sure some of you will be using something or will have built
your own.

After looking at a few on google .. I'm a little surprised at the high
end pricetags and even the midranges for a factory made setup.

Makes me wonder what if anything I'd be missing, functionality wise,
if I were to build it up myself.

I see these storebought things are mostly running a small embedded
linux os.

The lowend stuff like WD `mybook 1tb world Edition II' advertises
gigabit throughput but I see many reviews that report way less in
practice.  In fact it started to look like that particular one is way
below its advertised capability.  I ran across many complaints about
dreadfully low write speads.  Also apparently has some sorry thing
called Mionet for (secure) remote access.

I'm thinking of doing something like a semi-minimal regular (not
embedded) install on a P4 I have with asus P4C800 mobo and some 2 gigs
ram.  Maybe add an extra sata controller (the mobo has one) so I can
put up to 6 or so sata disks on it along with one small IDE disk for
the OS (just to head of any problems related to installing on sata)

Maybe start with 2 500 sata disks and build up as I need it.  Or more
likely `if I need it'... I kind of doubt I'd need more than 4 anytime
soon so maybe wait on the controller part too.

I guess I'd connect to it mostly thru samba/cifs for windows XP
machines that have lots of biggish graphics and video type stuff to
backup/store.  And nfs for my main gentoo desktop.

I wondered what the downsides are compared to a medium range
storebought rig?

A few I can think of are space and noise.. but having never been
around our run a nas setup... I'm not sure if that is really true.

Anyway, a few thoughts on what I might be running into doing it myself,
or missing compared to storebought.  Maybe maintenance
considerations.. or whatever, would be welcome.




Re: [gentoo-user] utf fonts not working right

2009-01-29 Thread Willie Wong
On Thu, Jan 29, 2009 at 02:03:50PM -0800, Penguin Lover smallnow squawked:
> http://www.openmobilefree.net/index.php?entry=entry090125-211840
> 
> This page works fine on default fonts of other distros. For me, its got blocks
> for all the asian characters.
> 
> I've been through the gentoo documentation utf guide. I'm using deja-vu font 
> in
> firefox, although it seems to be the same on some other random fonts i've 
> tried.
> 
> The utf-8 guide says to enable cjk use flag but that seems to be deprecated
> since equery says its only used by 4 packages, none of which I have installed.
> 
> Why does gentoo not default to utf-8 support?

The page you list is encoding in GB2312, Simplified Chinese.

Your problem, however, is that you don't have the right fonts. Deja-Vu
fonts do not support east asian scripts. (See their website for more
detail.) 

I suggest media-fonts/unifont, which has all Unicode characters, or
media-fonts/wqy-bitmapfonts or media-fonts/arphicfonts which supports
Chinese, Japanese, and Korean ideographs. 

Hope this helps,

W
-- 
...for God's sake look at some real data. That's how Maria Meyer was
able to solve this question that eluded Heisenberg and them all, who
thought they were all so smart. Thank God the German had him as the
head of the nuclear program. Had they actually have someone competent,
they might have built the bomb.
   ~Prof. Will Happer shelling out some Heisenberg dissing. 11-26-02
Sortir en Pantoufles: up 783 days, 22:10



Re: [gentoo-user] utf fonts not working right

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 5:23 PM, Philip Webb  wrote:
> 090129 Paul Hartman wrote:
>> On Thu, Jan 29, 2009 at 4:03 PM, smallnow  wrote:
>>> http://www.openmobilefree.net/index.php?entry=entry090125-211840
>>> This page works fine on default fonts of other distros.
>>> For me, its got blocks for all the asian characters.
>>> I'm using deja-vu font in firefox,
>
> My default font is New Century Schoolbook.
>
>>> The utf-8 guide says to enable cjk use flag
>
> Not enabled here.  In  /etc/make.conf , I have
>
>  USE="-* apm bitmap-fonts bonobo bzip2 cdr crypt cups dbus dri foomaticdb
> gcj gdbm gif gnutls gpm gtk gtk2 hal imagemagick imlib
> java javascript jpeg kde lcms libwww lm_sensors mime motif mpeg
> multilib ncurses nptl nptlonly nsplugin nvidia opengl
> pcre pdf perl plotutils png pop python qt3 readline
> scanner session slang ssl
> threads tiff tk truetype truetype-fonts type1-fonts
> unicode usb win32codecs X xml xorg xv zlib"
>
> In  /etc/locale.gen , I have
>
>  en_US ISO-8859-1
>  en_US.UTF-8 UTF-8
>
>> what is your character encoding set to (View -> Character Encoding) ?
>> it comes up as GB2312 on mine and everything looks good to me.
>
> Same here.  I'm using Firefox 3.0.5 .

I'm using generic font families in Firefox instead of specific fonts
for Simplified Chinese.

Proportional font: Sans-serif
Serif: Serif
Sans-serif: Sans-serif
Monospace: monospace



Re: [gentoo-user] utf fonts not working right

2009-01-29 Thread Philip Webb
090129 Paul Hartman wrote:
> On Thu, Jan 29, 2009 at 4:03 PM, smallnow  wrote:
>> http://www.openmobilefree.net/index.php?entry=entry090125-211840
>> This page works fine on default fonts of other distros.
>> For me, its got blocks for all the asian characters.
>> I'm using deja-vu font in firefox,

My default font is New Century Schoolbook.

>> The utf-8 guide says to enable cjk use flag

Not enabled here.  In  /etc/make.conf , I have

  USE="-* apm bitmap-fonts bonobo bzip2 cdr crypt cups dbus dri foomaticdb
 gcj gdbm gif gnutls gpm gtk gtk2 hal imagemagick imlib
 java javascript jpeg kde lcms libwww lm_sensors mime motif mpeg
 multilib ncurses nptl nptlonly nsplugin nvidia opengl
 pcre pdf perl plotutils png pop python qt3 readline
 scanner session slang ssl
 threads tiff tk truetype truetype-fonts type1-fonts
 unicode usb win32codecs X xml xorg xv zlib"

In  /etc/locale.gen , I have

  en_US ISO-8859-1
  en_US.UTF-8 UTF-8

> what is your character encoding set to (View -> Character Encoding) ?
> it comes up as GB2312 on mine and everything looks good to me.

Same here.  I'm using Firefox 3.0.5 .

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Kernel build error

2009-01-29 Thread Neil Bothwick
On Thu, 29 Jan 2009 23:29:09 +0100, KH wrote:

> you did run oldconfig
> . Somewhere you said n where a number should be.
> Search for:
> External Firmware blobs to build into kernel binary (EXTRA_FIRMWARE)

Or copy over the previous config file and run make oldconfig again,
paying a little more attention this time :P


-- 
Neil Bothwick

Better to understand a little than to misunderstand a lot.


signature.asc
Description: PGP signature


Re: [gentoo-user] utf fonts not working right

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 4:03 PM, smallnow  wrote:
> http://www.openmobilefree.net/index.php?entry=entry090125-211840
>
> This page works fine on default fonts of other distros. For me, its got blocks
> for all the asian characters.
>
> I've been through the gentoo documentation utf guide. I'm using deja-vu font 
> in
> firefox, although it seems to be the same on some other random fonts i've 
> tried.
>
> The utf-8 guide says to enable cjk use flag but that seems to be deprecated
> since equery says its only used by 4 packages, none of which I have installed.
>
> Why does gentoo not default to utf-8 support?
>
> - Ian

Works for me... what is your character encoding set to in firefox?
(View -> Character Encoding)... it comes up as GB2312 on mine and
everything looks good to me.



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 4:05 PM, Grant  wrote:
> >> > Does anyone know how to put my USB wireless network adapter into
> >> > promiscuous mode so I can see everything that's happening wirelessley
> >> > on my network in wireshark?
> >>
> >> ifconfig eth1 promisc
> >>
> >> But at least tcpdump puts the interface into promiscous mode
> >> automatically, so there is a chance that wireshark does the same.
> >>
> >>
> >
> > Another way is to use airmon-ng from the aircrack-ng package:
> >
> > airmon-ng start wlan0
>
> I can't get that to work.  I get:
>
> # airmon-ng start wlan0
> Interface Chipset Driver
> wlan3 ath5k_pci - [phy0]
> wlan0 Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: line 
> 338:
> /sys/class/ieee80211/phy1/add_iface: No such file or directory
> mon0: ERROR while getting interface flags: No such device
> (monitor mode enabled on mon0)
>
> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
> which isn't there.  I've tried with net.wlan0 started and stopped.
>
> - Grant

 Your driver has to support monitor-mode.
 I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
 with Realtek-Chip. The drivers I used a while ago needed a patch to work 
 with
 monitor-mode, but the recent drivers don't. Take a look at the 
 driver-section
 on the aircrack-ng homepage. Maybe your driver needs to be patched.
>>>
>>> After updating to ~amd64 aircrack-ng, it's working like this:
>>>
>>> # airmon-ng start wlan0
>>> # airodump-ng wlan0
>>>
>>> Injection is also reported to work.  The only problem is I don't get
>>> any results from airodump-ng unless net.wlan0 is started.  'ifconfig
>>> wlan0 up' doesn't seem to help.  Can I monitor without associating
>>> net.wlan0?
>>
>> I use madwifi-ng not ath5k, so I'm not sure if the process is the same...
>>
>> Basically the way it works for me is I have wlan0 and ath0, and I have
>> to destroy ath0 to be able to re-do wlan0 in the proper mode. The
>> usual programs (kismet, aircrack) can usually set it up themselves,
>> but you have to destroy it first. In my case I use this command:
>>
>> wlanconfig ath0 destroy
>>
>> and then i can manually set it up for monitor mode like:
>>
>> wlanconfig ath0 create wlandev wifi0 wlanmode monitor
>
> Do you know if there is an equivalent destroy command for ifconfig or
> iwconfig since wlanconfig is a madwifi tool?  'ifconfig wlan0 destroy'
> doesn't work and I tried 'ifconfig wlan0 down'.  'airmon-ng start
> wlan0' does put wlan0 into monitor mode (as verified by 'ifconfig')
> but I don't get any airodump-ng results unless net.wlan0 is started.

Does madwifi-tools not work with ath5k? I thought it was compatible...

The previously mentioned "iw" package might be able to do it, too.

Paul



Re: [gentoo-user] Kernel build error

2009-01-29 Thread KH
Dale schrieb:
> Saphirus Sage wrote:
>   
>> Dale wrote:
>>   
>> 
>>> Hi,
>>>
>>> I'm trying to upgrade my kernel but I got this.
>>>
>>> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 # make all && make
>>> modules_install
>>>   CHK include/linux/version.h
>>>   CHK include/linux/utsrelease.h
>>>   CALLscripts/checksyscalls.sh
>>>   CHK include/linux/compile.h
>>> make[1]: *** No rule to make target `n/n', needed by
>>> `firmware/n.gen.o'.  Stop.
>>> make: *** [firmware] Error 2
>>> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 #  
>>>
>>> I have always used that command but it doesn't usually end like this.  I
>>> think that is right.  What is target 'n/n'?  Am I missing something? 
>>> Kernel version is in the prompt up there too. 
>>>
>>> Thanks.
>>>
>>> Dale
>>>
>>> :-)  :-) 
>>>
>>>   
>>> 
>>>   
>> What firmware drivers had you enabled when you configured the kernel?
>>
>>
>>   
>> 
>
> Well, I copied .config from my old kernel, ran oldconfig then menuconfig
> to check on a couple things.  Everything looked normal enough for me
> system.  I did say no to the new stuff tho.  My old kernel works fine so
> I am really only updating the kernel.
>
> I'm not sure what you mean by "firmware drivers"?  I don't use modules
> but it does have a couple that are default and can't get rid of.
>
> Dale
>
> :-)  :-) 
>
>   
Hi,

if you don't want to have this driver atall there should be nothing in
there. Best thing ist to run make menuconfig to search for the mentioned
line.

Sorry for my tiping but I am really sleepy :-)

kh



Re: [gentoo-user] Kernel build error

2009-01-29 Thread KH
Dale schrieb:
> Hi,
>
> I'm trying to upgrade my kernel but I got this.
>
> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 # make all && make
> modules_install
>   CHK include/linux/version.h
>   CHK include/linux/utsrelease.h
>   CALLscripts/checksyscalls.sh
>   CHK include/linux/compile.h
> make[1]: *** No rule to make target `n/n', needed by
> `firmware/n.gen.o'.  Stop.
> make: *** [firmware] Error 2
> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 #  
>
> I have always used that command but it doesn't usually end like this.  I
> think that is right.  What is target 'n/n'?  Am I missing something? 
> Kernel version is in the prompt up there too. 
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>
>   
Hi,

you did run oldconfig
. Somewhere you said n where a number should be.
Search for:
External Firmware blobs to build into kernel binary (EXTRA_FIRMWARE)

kh



Re: [gentoo-user] Kernel build error

2009-01-29 Thread Dale
Saphirus Sage wrote:
> Dale wrote:
>   
>> Hi,
>>
>> I'm trying to upgrade my kernel but I got this.
>>
>> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 # make all && make
>> modules_install
>>   CHK include/linux/version.h
>>   CHK include/linux/utsrelease.h
>>   CALLscripts/checksyscalls.sh
>>   CHK include/linux/compile.h
>> make[1]: *** No rule to make target `n/n', needed by
>> `firmware/n.gen.o'.  Stop.
>> make: *** [firmware] Error 2
>> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 #  
>>
>> I have always used that command but it doesn't usually end like this.  I
>> think that is right.  What is target 'n/n'?  Am I missing something? 
>> Kernel version is in the prompt up there too. 
>>
>> Thanks.
>>
>> Dale
>>
>> :-)  :-) 
>>
>>   
>> 
> What firmware drivers had you enabled when you configured the kernel?
>
>
>   

Well, I copied .config from my old kernel, ran oldconfig then menuconfig
to check on a couple things.  Everything looked normal enough for me
system.  I did say no to the new stuff tho.  My old kernel works fine so
I am really only updating the kernel.

I'm not sure what you mean by "firmware drivers"?  I don't use modules
but it does have a couple that are default and can't get rid of.

Dale

:-)  :-) 



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Grant
 My Gentoo router's wireless network is encrypted via WPA and doesn't
 DHCP.  I'd like to take this a step further in case my WPA key gets
 hacked.  Can I issue only certain IPs to certain MAC addresses?

 Does WPA2 require hardware support?
>>>
>>> I don't think so. It should just be a driver/firmware update if you've
>>> got some device that supports WPA and not WPA2. The AES encryption of
>>> WPA2 requires a little more hardware power than WEP or WPA normally
>>> uses, but I don't think it needs any special chip or anything like
>>> that.
>>>
>>> You can also do VPN over your wifi connection, and require it for
>>> access to the rest of your network or the internet. At least then if
>>> someone hacks your wireless key, they still can't do anything without
>>> having your VPN certificate.
>>
>> Actually, VPN would rule out my wifi cell phone I bet.
>
> Maybe not -- I don't know what kind of phone you've got. I have a
> Nokia N95 which runs Symbian OS 9 and there are 3 VPN clients that I
> know of (and the first one is free):
>
> http://www.businesssoftware.nokia.com/mobile_vpn_downloads.php
> http://www.ncp-e.com/en/vpn-szenarien-produkte/vpn-produkte/secure-entry-client.html
> http://www.symvpn.com/Products/ProductInfo.aspx?ProductId=17
>
> I believe Windows Mobile devices have VPN support built in, but I've
> never tried it. For iPhone or other phone OS i have no idea as I've
> never actually used them.
>
> Paul

Thanks Paul, mine is a Nokia N82 and I'm checking into that now.

- Grant



Re: [gentoo-user] utf fonts not working right

2009-01-29 Thread Saphirus Sage
smallnow wrote:
> http://www.openmobilefree.net/index.php?entry=entry090125-211840
>
> This page works fine on default fonts of other distros. For me, its got blocks
> for all the asian characters.
>
> I've been through the gentoo documentation utf guide. I'm using deja-vu font 
> in
> firefox, although it seems to be the same on some other random fonts i've 
> tried.
>
> The utf-8 guide says to enable cjk use flag but that seems to be deprecated
> since equery says its only used by 4 packages, none of which I have installed.
>
> Why does gentoo not default to utf-8 support?
>
> - Ian
>
>
>   
Have a look into /etc/locale.gen and uncomment the language support you
need.



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Grant
 >> > Does anyone know how to put my USB wireless network adapter into
 >> > promiscuous mode so I can see everything that's happening wirelessley
 >> > on my network in wireshark?
 >>
 >> ifconfig eth1 promisc
 >>
 >> But at least tcpdump puts the interface into promiscous mode
 >> automatically, so there is a chance that wireshark does the same.
 >>
 >>
 >
 > Another way is to use airmon-ng from the aircrack-ng package:
 >
 > airmon-ng start wlan0

 I can't get that to work.  I get:

 # airmon-ng start wlan0
 Interface Chipset Driver
 wlan3 ath5k_pci - [phy0]
 wlan0 Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: line 
 338:
 /sys/class/ieee80211/phy1/add_iface: No such file or directory
 mon0: ERROR while getting interface flags: No such device
 (monitor mode enabled on mon0)

 It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
 which isn't there.  I've tried with net.wlan0 started and stopped.

 - Grant
>>>
>>> Your driver has to support monitor-mode.
>>> I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
>>> with Realtek-Chip. The drivers I used a while ago needed a patch to work 
>>> with
>>> monitor-mode, but the recent drivers don't. Take a look at the 
>>> driver-section
>>> on the aircrack-ng homepage. Maybe your driver needs to be patched.
>>
>> After updating to ~amd64 aircrack-ng, it's working like this:
>>
>> # airmon-ng start wlan0
>> # airodump-ng wlan0
>>
>> Injection is also reported to work.  The only problem is I don't get
>> any results from airodump-ng unless net.wlan0 is started.  'ifconfig
>> wlan0 up' doesn't seem to help.  Can I monitor without associating
>> net.wlan0?
>
> I use madwifi-ng not ath5k, so I'm not sure if the process is the same...
>
> Basically the way it works for me is I have wlan0 and ath0, and I have
> to destroy ath0 to be able to re-do wlan0 in the proper mode. The
> usual programs (kismet, aircrack) can usually set it up themselves,
> but you have to destroy it first. In my case I use this command:
>
> wlanconfig ath0 destroy
>
> and then i can manually set it up for monitor mode like:
>
> wlanconfig ath0 create wlandev wifi0 wlanmode monitor

Do you know if there is an equivalent destroy command for ifconfig or
iwconfig since wlanconfig is a madwifi tool?  'ifconfig wlan0 destroy'
doesn't work and I tried 'ifconfig wlan0 down'.  'airmon-ng start
wlan0' does put wlan0 into monitor mode (as verified by 'ifconfig')
but I don't get any airodump-ng results unless net.wlan0 is started.

- Grant


> Or if I want to run kismet, I destroy ath0, and in the kismet.conf i
> set up the source like:
>
> source=madwifi_g,wifi0,blah
>
> and kismet does its thing. After quitting kismet, I have to destroy
> ath0 again if I want to use a different program (or configure it
> manually again). Similarly, if I want to run airmon-ng I just destroy
> the ath0 and airmon-ng sets it up on its own. I guess airsnort might
> work the same way, though I've never tried it.
>
> Good luck :)



[gentoo-user] utf fonts not working right

2009-01-29 Thread smallnow
http://www.openmobilefree.net/index.php?entry=entry090125-211840

This page works fine on default fonts of other distros. For me, its got blocks
for all the asian characters.

I've been through the gentoo documentation utf guide. I'm using deja-vu font in
firefox, although it seems to be the same on some other random fonts i've tried.

The utf-8 guide says to enable cjk use flag but that seems to be deprecated
since equery says its only used by 4 packages, none of which I have installed.

Why does gentoo not default to utf-8 support?

- Ian




Re: [gentoo-user] Kernel build error

2009-01-29 Thread Saphirus Sage
Dale wrote:
> Hi,
>
> I'm trying to upgrade my kernel but I got this.
>
> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 # make all && make
> modules_install
>   CHK include/linux/version.h
>   CHK include/linux/utsrelease.h
>   CALLscripts/checksyscalls.sh
>   CHK include/linux/compile.h
> make[1]: *** No rule to make target `n/n', needed by
> `firmware/n.gen.o'.  Stop.
> make: *** [firmware] Error 2
> r...@smoker /usr/src/linux-2.6.27-gentoo-r8 #  
>
> I have always used that command but it doesn't usually end like this.  I
> think that is right.  What is target 'n/n'?  Am I missing something? 
> Kernel version is in the prompt up there too. 
>
> Thanks.
>
> Dale
>
> :-)  :-) 
>
>   
What firmware drivers had you enabled when you configured the kernel?



[gentoo-user] Kernel build error

2009-01-29 Thread Dale
Hi,

I'm trying to upgrade my kernel but I got this.

r...@smoker /usr/src/linux-2.6.27-gentoo-r8 # make all && make
modules_install
  CHK include/linux/version.h
  CHK include/linux/utsrelease.h
  CALLscripts/checksyscalls.sh
  CHK include/linux/compile.h
make[1]: *** No rule to make target `n/n', needed by
`firmware/n.gen.o'.  Stop.
make: *** [firmware] Error 2
r...@smoker /usr/src/linux-2.6.27-gentoo-r8 #  

I have always used that command but it doesn't usually end like this.  I
think that is right.  What is target 'n/n'?  Am I missing something? 
Kernel version is in the prompt up there too. 

Thanks.

Dale

:-)  :-) 



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Saphirus Sage
Paul Hartman wrote:
> On Thu, Jan 29, 2009 at 2:39 PM, Grant  wrote:
>   
 My Gentoo router's wireless network is encrypted via WPA and doesn't
 DHCP.  I'd like to take this a step further in case my WPA key gets
 hacked.  Can I issue only certain IPs to certain MAC addresses?

 Does WPA2 require hardware support?
 
>>> I don't think so. It should just be a driver/firmware update if you've
>>> got some device that supports WPA and not WPA2. The AES encryption of
>>> WPA2 requires a little more hardware power than WEP or WPA normally
>>> uses, but I don't think it needs any special chip or anything like
>>> that.
>>>
>>> You can also do VPN over your wifi connection, and require it for
>>> access to the rest of your network or the internet. At least then if
>>> someone hacks your wireless key, they still can't do anything without
>>> having your VPN certificate.
>>>   
>> Actually, VPN would rule out my wifi cell phone I bet.
>> 
>
> Maybe not -- I don't know what kind of phone you've got. I have a
> Nokia N95 which runs Symbian OS 9 and there are 3 VPN clients that I
> know of (and the first one is free):
>
> http://www.businesssoftware.nokia.com/mobile_vpn_downloads.php
> http://www.ncp-e.com/en/vpn-szenarien-produkte/vpn-produkte/secure-entry-client.html
> http://www.symvpn.com/Products/ProductInfo.aspx?ProductId=17
>
> I believe Windows Mobile devices have VPN support built in, but I've
> never tried it. For iPhone or other phone OS i have no idea as I've
> never actually used them.
>
> Paul
>
>   
The iPhone has support for L2TP, PPTP and minor support for IPSec (if
ti's through cisco), all standard in the firmware releases.



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 2:39 PM, Grant  wrote:
>>> My Gentoo router's wireless network is encrypted via WPA and doesn't
>>> DHCP.  I'd like to take this a step further in case my WPA key gets
>>> hacked.  Can I issue only certain IPs to certain MAC addresses?
>>>
>>> Does WPA2 require hardware support?
>>
>> I don't think so. It should just be a driver/firmware update if you've
>> got some device that supports WPA and not WPA2. The AES encryption of
>> WPA2 requires a little more hardware power than WEP or WPA normally
>> uses, but I don't think it needs any special chip or anything like
>> that.
>>
>> You can also do VPN over your wifi connection, and require it for
>> access to the rest of your network or the internet. At least then if
>> someone hacks your wireless key, they still can't do anything without
>> having your VPN certificate.
>
> Actually, VPN would rule out my wifi cell phone I bet.

Maybe not -- I don't know what kind of phone you've got. I have a
Nokia N95 which runs Symbian OS 9 and there are 3 VPN clients that I
know of (and the first one is free):

http://www.businesssoftware.nokia.com/mobile_vpn_downloads.php
http://www.ncp-e.com/en/vpn-szenarien-produkte/vpn-produkte/secure-entry-client.html
http://www.symvpn.com/Products/ProductInfo.aspx?ProductId=17

I believe Windows Mobile devices have VPN support built in, but I've
never tried it. For iPhone or other phone OS i have no idea as I've
never actually used them.

Paul



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Saphirus Sage
Grant wrote:
>>> My Gentoo router's wireless network is encrypted via WPA and doesn't
>>> DHCP.  I'd like to take this a step further in case my WPA key gets
>>> hacked.  Can I issue only certain IPs to certain MAC addresses?
>>>
>>> Does WPA2 require hardware support?
>>>   
>> I don't think so. It should just be a driver/firmware update if you've
>> got some device that supports WPA and not WPA2. The AES encryption of
>> WPA2 requires a little more hardware power than WEP or WPA normally
>> uses, but I don't think it needs any special chip or anything like
>> that.
>>
>> You can also do VPN over your wifi connection, and require it for
>> access to the rest of your network or the internet. At least then if
>> someone hacks your wireless key, they still can't do anything without
>> having your VPN certificate.
>> 
>
> Actually, VPN would rule out my wifi cell phone I bet.
>
> - Grant
>
>   
Yeah, it probably would. If you want to keep using the wifi mobile, you
may be stuck with whatever layer 2 security options it supports; most
likely WPA2 then.



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Saphirus Sage
Grant wrote:
>>> My Gentoo router's wireless network is encrypted via WPA and doesn't
>>> DHCP.  I'd like to take this a step further in case my WPA key gets
>>> hacked.  Can I issue only certain IPs to certain MAC addresses?
>>>
>>> Does WPA2 require hardware support?
>>>   
>> I don't think so. It should just be a driver/firmware update if you've
>> got some device that supports WPA and not WPA2. The AES encryption of
>> WPA2 requires a little more hardware power than WEP or WPA normally
>> uses, but I don't think it needs any special chip or anything like
>> that.
>>
>> You can also do VPN over your wifi connection, and require it for
>> access to the rest of your network or the internet. At least then if
>> someone hacks your wireless key, they still can't do anything without
>> having your VPN certificate.
>> 
>
> It sounds like VPN may be the strongest thing going.  Could I turn off
> WPA and keep everything hidden within the VPN?  Could I use a password
> instead of a certificate for access?  Is the only downside that the
> client needs to have VPN software installed?
>
> - Grant
>
>   
That's not much of a downside, VPN encryption (IPsec, SSL, L2TP, and
maybe PPTP) is usually more secure than that datalink-layer WPA or WPA2
anyway. As for if you can set it up without a certificate, I believe
that PPTP and L2TP can operate with nothing more than a "shared secret".
But, a certificate just makes it all the more secure. And yes, your
transmitted data will still be encrypted in a VPN even if you're using
an open wireless hotspot.



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Grant
>> My Gentoo router's wireless network is encrypted via WPA and doesn't
>> DHCP.  I'd like to take this a step further in case my WPA key gets
>> hacked.  Can I issue only certain IPs to certain MAC addresses?
>>
>> Does WPA2 require hardware support?
>
> I don't think so. It should just be a driver/firmware update if you've
> got some device that supports WPA and not WPA2. The AES encryption of
> WPA2 requires a little more hardware power than WEP or WPA normally
> uses, but I don't think it needs any special chip or anything like
> that.
>
> You can also do VPN over your wifi connection, and require it for
> access to the rest of your network or the internet. At least then if
> someone hacks your wireless key, they still can't do anything without
> having your VPN certificate.

Actually, VPN would rule out my wifi cell phone I bet.

- Grant



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Grant
>> My Gentoo router's wireless network is encrypted via WPA and doesn't
>> DHCP.  I'd like to take this a step further in case my WPA key gets
>> hacked.  Can I issue only certain IPs to certain MAC addresses?
>>
>> Does WPA2 require hardware support?
>
> I don't think so. It should just be a driver/firmware update if you've
> got some device that supports WPA and not WPA2. The AES encryption of
> WPA2 requires a little more hardware power than WEP or WPA normally
> uses, but I don't think it needs any special chip or anything like
> that.
>
> You can also do VPN over your wifi connection, and require it for
> access to the rest of your network or the internet. At least then if
> someone hacks your wireless key, they still can't do anything without
> having your VPN certificate.

It sounds like VPN may be the strongest thing going.  Could I turn off
WPA and keep everything hidden within the VPN?  Could I use a password
instead of a certificate for access?  Is the only downside that the
client needs to have VPN software installed?

- Grant



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 12:45 PM, Grant  wrote:
>>> >> > Does anyone know how to put my USB wireless network adapter into
>>> >> > promiscuous mode so I can see everything that's happening wirelessley
>>> >> > on my network in wireshark?
>>> >>
>>> >> ifconfig eth1 promisc
>>> >>
>>> >> But at least tcpdump puts the interface into promiscous mode
>>> >> automatically, so there is a chance that wireshark does the same.
>>> >>
>>> >>
>>> >
>>> > Another way is to use airmon-ng from the aircrack-ng package:
>>> >
>>> > airmon-ng start wlan0
>>>
>>> I can't get that to work.  I get:
>>>
>>> # airmon-ng start wlan0
>>> Interface Chipset Driver
>>> wlan3 ath5k_pci - [phy0]
>>> wlan0 Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: line 338:
>>> /sys/class/ieee80211/phy1/add_iface: No such file or directory
>>> mon0: ERROR while getting interface flags: No such device
>>> (monitor mode enabled on mon0)
>>>
>>> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
>>> which isn't there.  I've tried with net.wlan0 started and stopped.
>>>
>>> - Grant
>>
>> Your driver has to support monitor-mode.
>> I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
>> with Realtek-Chip. The drivers I used a while ago needed a patch to work with
>> monitor-mode, but the recent drivers don't. Take a look at the driver-section
>> on the aircrack-ng homepage. Maybe your driver needs to be patched.
>
> After updating to ~amd64 aircrack-ng, it's working like this:
>
> # airmon-ng start wlan0
> # airodump-ng wlan0
>
> Injection is also reported to work.  The only problem is I don't get
> any results from airodump-ng unless net.wlan0 is started.  'ifconfig
> wlan0 up' doesn't seem to help.  Can I monitor without associating
> net.wlan0?

I use madwifi-ng not ath5k, so I'm not sure if the process is the same...

Basically the way it works for me is I have wlan0 and ath0, and I have
to destroy ath0 to be able to re-do wlan0 in the proper mode. The
usual programs (kismet, aircrack) can usually set it up themselves,
but you have to destroy it first. In my case I use this command:

wlanconfig ath0 destroy

and then i can manually set it up for monitor mode like:

wlanconfig ath0 create wlandev wifi0 wlanmode monitor

Or if I want to run kismet, I destroy ath0, and in the kismet.conf i
set up the source like:

source=madwifi_g,wifi0,blah

and kismet does its thing. After quitting kismet, I have to destroy
ath0 again if I want to use a different program (or configure it
manually again). Similarly, if I want to run airmon-ng I just destroy
the ath0 and airmon-ng sets it up on its own. I guess airsnort might
work the same way, though I've never tried it.

Good luck :)



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 12:11 PM, Mark Knecht  wrote:
> On Thu, Jan 29, 2009 at 9:40 AM, Grant  wrote:
>> My Gentoo router's wireless network is encrypted via WPA and doesn't
>> DHCP.  I'd like to take this a step further in case my WPA key gets
>> hacked.  Can I issue only certain IPs to certain MAC addresses?
>>
>> Does WPA2 require hardware support?
>>
>> - Grant
>
> My LinkSys wireless router supports MAC address filtering. I can add a
> MAC address to the allowed list and disallow everything else. It works
> for us so far, until someone manages to somehow find out an allowed
> MAC address and pretends to be that address. I'll deal with that
> should it ever happen. Unlikely I think...
>
> It is a little extra work adding a new device in as I have to discover
> its address but that's OK with me.
>
> I don't think is typically done in hardware as the specs change and
> hardware designers are reluctant to put the gates in. More likely it's
> done in firmware on a router like mine, or software if you're using
> some Gentoo box to do a job like this.

Well, using kismet to sniff out active MAC addresses of clients and
access points is dead simple, and MAC spoofing is even easier (emerge
net-analyzer/macchanger). Obviously trying to use a MAC that's already
active could result in collisions/IP conflict so the drive-by wifi
hijackers probably won't get much use of it, but if someone is doing
an attack on you they can wait for your laptop to be turned off or
wireless traffic idle, and then hop on that MAC and get in your
network. Even that should not be a problem if you've got eveything
else secured (like, if you allow passwordless entry to samba shares
from local address, and someone gets on your wireless, that could be
bad unless you put wifi in a different vlan or whatever). I don't have
mine set up that sophisticated, I am putting my faith in WPA2 being
strong enough to keep out intruders. I know I should probably be more
careful but I'm trusting and lazy. :) My internal devices are not
necessarily protected from each other.

I don't use MAC filtering, but I have the DHCP leases tied to MAC
addresses; I don't restrict it only to those addresses though. I have
a range (192.168.0.101-109) for reserved IP addresses, and dynamic
from 110+. My main desktop has 2 NICs and Wifi, second desktop has 2
NICs, Laptop has NIC & Wifi, cell phone has Wifi, land phone is Voip,
I have a second wireless router set up as a wireless bridge to which
my Xbox, Xbox 360 & Slingbox are attached, as well as any visitors who
happen to need to plug in a laptop in my living room. :) I let some of
my devices get dynamic IPs just because it doesn't matter (vonage,
slingbox, xbox 360) but the PCs I like to have well-defined addresses.



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Grant
>> Does anyone know how to put my USB wireless network adapter into
>> promiscuous mode so I can see everything that's happening wirelessley
>> on my network in wireshark?
>>
> ifconfig eth1 promisc
>
> But at least tcpdump puts the interface into promiscous mode
> automatically, so there is a chance that wireshark does the same.
>
>
>
 Another way is to use airmon-ng from the aircrack-ng package:

 airmon-ng start wlan0

>>> I can't get that to work.  I get:
>>>
>>> # airmon-ng start wlan0
>>> InterfaceChipset Driver
>>> wlan3ath5k_pci - [phy0]
>>> wlan0Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: 
>>> line 338:
>>> /sys/class/ieee80211/phy1/add_iface: No such file or directory
>>> mon0: ERROR while getting interface flags: No such device
>>> (monitor mode enabled on mon0)
>>>
>>> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
>>> which isn't there.  I've tried with net.wlan0 started and stopped.
>>>
>>> - Grant
>>>
>>
>> Your driver has to support monitor-mode.
>> I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
>> with Realtek-Chip. The drivers I used a while ago needed a patch to work with
>> monitor-mode, but the recent drivers don't. Take a look at the driver-section
>> on the aircrack-ng homepage. Maybe your driver needs to be patched.
>>
>>
>>
> I'm using the same chipset with the same driver (ath5_pci with phy0),
> and my card can go into monitor mode. I'm wondering if you are using the
> driver compiled into the kernel or madwifi-ng drivers.

Are you using AR2425?  dmesg tells me:

ath5k_pci :04:00.0: enabling device ( -> 0002)
ath5k_pci :04:00.0: registered as 'phy0'
ath5k phy0: Support for RF2425 is under development.
ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)

but I can't get it to work yet.  Not sure what's happening after
"Backgrounding".

- Grant



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Grant
>> >> > Does anyone know how to put my USB wireless network adapter into
>> >> > promiscuous mode so I can see everything that's happening wirelessley
>> >> > on my network in wireshark?
>> >>
>> >> ifconfig eth1 promisc
>> >>
>> >> But at least tcpdump puts the interface into promiscous mode
>> >> automatically, so there is a chance that wireshark does the same.
>> >>
>> >>
>> >
>> > Another way is to use airmon-ng from the aircrack-ng package:
>> >
>> > airmon-ng start wlan0
>>
>> I can't get that to work.  I get:
>>
>> # airmon-ng start wlan0
>> Interface Chipset Driver
>> wlan3 ath5k_pci - [phy0]
>> wlan0 Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: line 338:
>> /sys/class/ieee80211/phy1/add_iface: No such file or directory
>> mon0: ERROR while getting interface flags: No such device
>> (monitor mode enabled on mon0)
>>
>> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
>> which isn't there.  I've tried with net.wlan0 started and stopped.
>>
>> - Grant
>
> Your driver has to support monitor-mode.
> I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
> with Realtek-Chip. The drivers I used a while ago needed a patch to work with
> monitor-mode, but the recent drivers don't. Take a look at the driver-section
> on the aircrack-ng homepage. Maybe your driver needs to be patched.

After updating to ~amd64 aircrack-ng, it's working like this:

# airmon-ng start wlan0
# airodump-ng wlan0

Injection is also reported to work.  The only problem is I don't get
any results from airodump-ng unless net.wlan0 is started.  'ifconfig
wlan0 up' doesn't seem to help.  Can I monitor without associating
net.wlan0?

- Grant



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Mark Knecht
On Thu, Jan 29, 2009 at 9:40 AM, Grant  wrote:
> My Gentoo router's wireless network is encrypted via WPA and doesn't
> DHCP.  I'd like to take this a step further in case my WPA key gets
> hacked.  Can I issue only certain IPs to certain MAC addresses?
>
> Does WPA2 require hardware support?
>
> - Grant

My LinkSys wireless router supports MAC address filtering. I can add a
MAC address to the allowed list and disallow everything else. It works
for us so far, until someone manages to somehow find out an allowed
MAC address and pretends to be that address. I'll deal with that
should it ever happen. Unlikely I think...

It is a little extra work adding a new device in as I have to discover
its address but that's OK with me.

I don't think is typically done in hardware as the specs change and
hardware designers are reluctant to put the gates in. More likely it's
done in firmware on a router like mine, or software if you're using
some Gentoo box to do a job like this.

- Mark



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 11:40 AM, Grant  wrote:
> My Gentoo router's wireless network is encrypted via WPA and doesn't
> DHCP.  I'd like to take this a step further in case my WPA key gets
> hacked.  Can I issue only certain IPs to certain MAC addresses?
>
> Does WPA2 require hardware support?

I don't think so. It should just be a driver/firmware update if you've
got some device that supports WPA and not WPA2. The AES encryption of
WPA2 requires a little more hardware power than WEP or WPA normally
uses, but I don't think it needs any special chip or anything like
that.

You can also do VPN over your wifi connection, and require it for
access to the rest of your network or the internet. At least then if
someone hacks your wireless key, they still can't do anything without
having your VPN certificate.



Re: [gentoo-user] Locking down a wireless network

2009-01-29 Thread Dan Cowsill
On 1/29/09, Grant  wrote:
> My Gentoo router's wireless network is encrypted via WPA and doesn't
>  DHCP.  I'd like to take this a step further in case my WPA key gets
>  hacked.  Can I issue only certain IPs to certain MAC addresses?
>
>  Does WPA2 require hardware support?
>
>
>  - Grant
>
>

What you're looking for is called 'MAC address filtering' and I
imagine it is very doable.  Having never done it before myself (with a
Gentoo router) the best I can do is point you at Google and wish you
the best of luck.

It's been a little while since I worried about my WPA2 wireless
getting hacked.  Apparently, a vulnerability in TKIP was recently
discovered that made WPA2 networks using that encryption less secure.
It would still take a lot of doing on the attacking party's end to do
it though.  Have you considered setting up WPA2 Enterprise, with the
RADIUS server and whatnot?

D



[gentoo-user] Locking down a wireless network

2009-01-29 Thread Grant
My Gentoo router's wireless network is encrypted via WPA and doesn't
DHCP.  I'd like to take this a step further in case my WPA key gets
hacked.  Can I issue only certain IPs to certain MAC addresses?

Does WPA2 require hardware support?

- Grant



[gentoo-user] {OT} SIP & Skype ports for packet shaping

2009-01-29 Thread Grant
I'm having great success with packet shaping via shorewall but I'm not
sure I have my ports prioritized correctly for SIP and skype.  twinkle
is set to use 5060 and 8000 and skype is set to use 23399 for inbound
connections.  Should I prioritize 5060, 8000, and 23399 for both SRC
and DEST?   I'm not really sure how SIP and skype work through a
network.

- Grant



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Saphirus Sage
Grant wrote:
 Does anyone know how to put my USB wireless network adapter into
 promiscuous mode so I can see everything that's happening wirelessley
 on my network in wireshark?
 
>>> ifconfig eth1 promisc
>>>
>>> But at least tcpdump puts the interface into promiscous mode
>>> automatically, so there is a chance that wireshark does the same.
>>>
>>>
>>>   
>> Another way is to use airmon-ng from the aircrack-ng package:
>>
>> airmon-ng start wlan0
>> 
> Thanks everyone.  I didn't realize it but monitor mode is what I'm
> after.  aircrack-ng looks interesting too.  Is there something similar
> with a GUI?  airsnort seems to be discontinued.  What is iw for?
>   
 iw - show / manipulate wireless devices and their configuration

 Usage:  iw [options] command
 Options:
--debug enable netlink debugging
--version   show version
 Commands:
help
event
list
phy  info
dev  set channel  [HT20|HT40+|HT40-]
phy  set channel  [HT20|HT40+|HT40-]
dev  set freq  [HT20|HT40+|HT40-]
phy  set freq  [HT20|HT40+|HT40-]
phy  set name 
dev  set meshid 
dev  set monitor  [...]
dev  info
dev  del
dev  interface add  type  [mesh_id
 ] [flags ...]
phy  interface add  type  [mesh_id
 ] [flags ...]
dev  station dump
dev  station set  plink_action 
dev  station del 
dev  station get 
dev  mpath dump
dev  mpath set  next_hop
 
dev  mpath new  next_hop
 
dev  mpath del 
dev  mpath get 
reg set 
dev  get mesh_param 
dev  set mesh_param  
 
>>> Are we talking about the same thing?
>>>
>>> iw: "nl80211 userspace tool for use with aircrack-ng"
>>>
>>> - Grant
>>>   
>> Yes, it was installed as a dep of aircrack-ng.
>>
>> Paul
>> 
>
> I've got aircrack-ng installed and I get:
>
> # emerge -pv iw
> These are the packages that would be merged, in order:
> Calculating dependencies... done!
> !!! All ebuilds that could satisfy "net-wireless/iw" have been masked.
> !!! One of the following masked packages is required to complete your request:
> - net-wireless/iw-0.9.7 (masked by: ~amd64 keyword)
> - net-wireless/iw-0_p20080605 (masked by: ~amd64 keyword)
>
> - Grant
>
>   
Just unmask it in /usr/portage/profiles/pakage.unmask. Add the line
"net-wireless/iw ~amd64"



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Grant
 > Does anyone know how to put my USB wireless network adapter into
 > promiscuous mode so I can see everything that's happening wirelessley
 > on my network in wireshark?

 ifconfig eth1 promisc

 But at least tcpdump puts the interface into promiscous mode
 automatically, so there is a chance that wireshark does the same.


>>>
>>> Another way is to use airmon-ng from the aircrack-ng package:
>>>
>>> airmon-ng start wlan0
>>
>> Thanks everyone.  I didn't realize it but monitor mode is what I'm
>> after.  aircrack-ng looks interesting too.  Is there something similar
>> with a GUI?  airsnort seems to be discontinued.  What is iw for?
>
> iw - show / manipulate wireless devices and their configuration
>
> Usage:  iw [options] command
> Options:
>--debug enable netlink debugging
>--version   show version
> Commands:
>help
>event
>list
>phy  info
>dev  set channel  [HT20|HT40+|HT40-]
>phy  set channel  [HT20|HT40+|HT40-]
>dev  set freq  [HT20|HT40+|HT40-]
>phy  set freq  [HT20|HT40+|HT40-]
>phy  set name 
>dev  set meshid 
>dev  set monitor  [...]
>dev  info
>dev  del
>dev  interface add  type  [mesh_id
> ] [flags ...]
>phy  interface add  type  [mesh_id
> ] [flags ...]
>dev  station dump
>dev  station set  plink_action 
>dev  station del 
>dev  station get 
>dev  mpath dump
>dev  mpath set  next_hop
> 
>dev  mpath new  next_hop
> 
>dev  mpath del 
>dev  mpath get 
>reg set 
>dev  get mesh_param 
>dev  set mesh_param  

 Are we talking about the same thing?

 iw: "nl80211 userspace tool for use with aircrack-ng"

 - Grant
>>>
>>> Yes, it was installed as a dep of aircrack-ng.
>>>
>>> Paul
>>
>> I've got aircrack-ng installed and I get:
>>
>> # emerge -pv iw
>> These are the packages that would be merged, in order:
>> Calculating dependencies... done!
>> !!! All ebuilds that could satisfy "net-wireless/iw" have been masked.
>> !!! One of the following masked packages is required to complete your 
>> request:
>> - net-wireless/iw-0.9.7 (masked by: ~amd64 keyword)
>> - net-wireless/iw-0_p20080605 (masked by: ~amd64 keyword)
>>
>> - Grant
>
> I'm using ~amd64 and emerged net-wireless/aircrack-ng-1.0_rc1 which
> pulled in net-wireless/iw-0.9.7 as a dependency. Actually the
> aircrack-ng fails to build but that's irrelevant :)

Got it, thank you.

- Grant



Re: [gentoo-user] Patching of ebuilds

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 3:26 AM, Andrew Lowe  wrote:
> Hi all,
>I've had a look on the web but can't seem to find any instructions on
> how to do the patching of ebuilds. I have the situation where I've tried to
> install the media centre app MMSV2. I've done the emerge, a lot of dependent
> functionality was compiled and now it's up to compiling the actual MMSV2.
> When compiling, an error happens. I had a look in bugs.gentoo.org and there
> is a bug in there that covers, I think, the failure.
>
>Attached to the bug is a patch that someone has developed. I now want
> to use this patch to patch the ebuild and see if it really does fix the
> problem. My problem is that I don't know the actual steps needed to do the
> patching. I know about the patch utility but I don't know where the actual
> files are, and how I  should do the patching so that Portage does not view
> the patched files as corrupt and therefore won't do the emerge.
>
>If someone can tell me how, or point me to a webpage that tells me
> how, to do the patching it would be greatly appreciated.
>
>Regards,
>Andrew

You can usually use the "ebuild" command to do the portage steps
separately, so after unpacking you can change to the portage tmpdir
and apply the patch from bugzilla. Then proceed with the making and
installing steps with "ebuild".



[gentoo-user] Re: gentoo mail server

2009-01-29 Thread James
kashani  badapple.net> writes:


>   I've been running a Gentoo mail server for either work or personal use 
> and usually both since 2001. No real problems, but you do have to watch 
> some updates especially sasl and courier.

OK.

> My current system is
> Postfix-2.5 At minimum I'd use Postfix-2.2 which has the better syntax 
> for your virtual statements.
> Postgrey for greylisting, had some issues with sqlgrey.
> PostfixAdmin, because using phpmyadmin to manage your accounts and 
> domains is futile. I'm still on 2.1 and need to check out the newer 
> version. Requires PHP and a webserver.
> courier-imap and cyrus-sasl. Thinking about moving to Dovecot since you 
> can use dovecot-sasl with Postfix under Gentoo.
> Mysql5

> It's fully virtual, supports smtp and imap over ssl, sasl, skipped TLS, 
> and easy to manage. I do not recommend the Gentoo Virtual How-to, it's 
> ancient and silly.

Is this the page your refer to?
http://www.gentoo.org/doc/en/virt-mail-howto.xml

> I used to have a how-to on gentoo-wiki which I need to recreate. Maybe 
> this weekend.

Very cool.

> In regards to stability... don't update right away. When Postfix 2.6 
> comes out, give it a month. Or play with it in a virtual server. Same 
> with Mysql 5.1. Or whatever. I've run three separate companies on Gentoo 
> and never had much of an issue though I always had a test/stage/qa 
> environment of some sort. Also keep an eye on the forums and this mail 
> list. That'll usually give you a heads up when an update isn't quite right.


Well all of this is great news. I've pretty much decided to build
a postgtres mail server, mostly like what you have outlined.. I'm likely
to set up a second, duplicate machine for testing.


Drop a line to the list, when you have your wiki page up and I'll follow
it and make some notes on the process of settting up a postfix mail server
on gentoo.Maybe you could fix up this wiki?(or build another?):
http://en.gentoo-wiki.com/wiki/Postfix

Do you use a regular gentoo kernel, hardened setup, or what packages to
keep the mail server tightly secure?


excellent notes!

James






[gentoo-user] Re: Patching of ebuilds

2009-01-29 Thread James
Andrew Lowe  wht.com.au> writes:


>   If someone can tell me how, or point me to a webpage that tells me how, 
> to do the patching it would be greatly appreciated.



Here are a few links for your perusal:

http://devmanual.gentoo.org/
http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=0&chap=0


hth,
James




Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Paul Hartman
On Thu, Jan 29, 2009 at 10:00 AM, Grant  wrote:
>>> > Does anyone know how to put my USB wireless network adapter into
>>> > promiscuous mode so I can see everything that's happening wirelessley
>>> > on my network in wireshark?
>>>
>>> ifconfig eth1 promisc
>>>
>>> But at least tcpdump puts the interface into promiscous mode
>>> automatically, so there is a chance that wireshark does the same.
>>>
>>>
>>
>> Another way is to use airmon-ng from the aircrack-ng package:
>>
>> airmon-ng start wlan0
>
> Thanks everyone.  I didn't realize it but monitor mode is what I'm
> after.  aircrack-ng looks interesting too.  Is there something similar
> with a GUI?  airsnort seems to be discontinued.  What is iw for?

 iw - show / manipulate wireless devices and their configuration

 Usage:  iw [options] command
 Options:
--debug enable netlink debugging
--version   show version
 Commands:
help
event
list
phy  info
dev  set channel  [HT20|HT40+|HT40-]
phy  set channel  [HT20|HT40+|HT40-]
dev  set freq  [HT20|HT40+|HT40-]
phy  set freq  [HT20|HT40+|HT40-]
phy  set name 
dev  set meshid 
dev  set monitor  [...]
dev  info
dev  del
dev  interface add  type  [mesh_id
 ] [flags ...]
phy  interface add  type  [mesh_id
 ] [flags ...]
dev  station dump
dev  station set  plink_action 
dev  station del 
dev  station get 
dev  mpath dump
dev  mpath set  next_hop
 
dev  mpath new  next_hop
 
dev  mpath del 
dev  mpath get 
reg set 
dev  get mesh_param 
dev  set mesh_param  
>>>
>>> Are we talking about the same thing?
>>>
>>> iw: "nl80211 userspace tool for use with aircrack-ng"
>>>
>>> - Grant
>>
>> Yes, it was installed as a dep of aircrack-ng.
>>
>> Paul
>
> I've got aircrack-ng installed and I get:
>
> # emerge -pv iw
> These are the packages that would be merged, in order:
> Calculating dependencies... done!
> !!! All ebuilds that could satisfy "net-wireless/iw" have been masked.
> !!! One of the following masked packages is required to complete your request:
> - net-wireless/iw-0.9.7 (masked by: ~amd64 keyword)
> - net-wireless/iw-0_p20080605 (masked by: ~amd64 keyword)
>
> - Grant

I'm using ~amd64 and emerged net-wireless/aircrack-ng-1.0_rc1 which
pulled in net-wireless/iw-0.9.7 as a dependency. Actually the
aircrack-ng fails to build but that's irrelevant :)



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Grant
>> > Does anyone know how to put my USB wireless network adapter into
>> > promiscuous mode so I can see everything that's happening wirelessley
>> > on my network in wireshark?
>>
>> ifconfig eth1 promisc
>>
>> But at least tcpdump puts the interface into promiscous mode
>> automatically, so there is a chance that wireshark does the same.
>>
>>
>
> Another way is to use airmon-ng from the aircrack-ng package:
>
> airmon-ng start wlan0

 Thanks everyone.  I didn't realize it but monitor mode is what I'm
 after.  aircrack-ng looks interesting too.  Is there something similar
 with a GUI?  airsnort seems to be discontinued.  What is iw for?
>>>
>>> iw - show / manipulate wireless devices and their configuration
>>>
>>> Usage:  iw [options] command
>>> Options:
>>>--debug enable netlink debugging
>>>--version   show version
>>> Commands:
>>>help
>>>event
>>>list
>>>phy  info
>>>dev  set channel  [HT20|HT40+|HT40-]
>>>phy  set channel  [HT20|HT40+|HT40-]
>>>dev  set freq  [HT20|HT40+|HT40-]
>>>phy  set freq  [HT20|HT40+|HT40-]
>>>phy  set name 
>>>dev  set meshid 
>>>dev  set monitor  [...]
>>>dev  info
>>>dev  del
>>>dev  interface add  type  [mesh_id
>>> ] [flags ...]
>>>phy  interface add  type  [mesh_id
>>> ] [flags ...]
>>>dev  station dump
>>>dev  station set  plink_action 
>>>dev  station del 
>>>dev  station get 
>>>dev  mpath dump
>>>dev  mpath set  next_hop
>>> 
>>>dev  mpath new  next_hop
>>> 
>>>dev  mpath del 
>>>dev  mpath get 
>>>reg set 
>>>dev  get mesh_param 
>>>dev  set mesh_param  
>>
>> Are we talking about the same thing?
>>
>> iw: "nl80211 userspace tool for use with aircrack-ng"
>>
>> - Grant
>
> Yes, it was installed as a dep of aircrack-ng.
>
> Paul

I've got aircrack-ng installed and I get:

# emerge -pv iw
These are the packages that would be merged, in order:
Calculating dependencies... done!
!!! All ebuilds that could satisfy "net-wireless/iw" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-wireless/iw-0.9.7 (masked by: ~amd64 keyword)
- net-wireless/iw-0_p20080605 (masked by: ~amd64 keyword)

- Grant



[gentoo-user] Re: [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread James
Helmut Jarausch  igpm.rwth-aachen.de> writes:


> Thanks for all your help,
> I'm trying to find the source of the problem,

Depending on your video setup, you may need to recompile
the video driver (nvidia-drivers or ati-drivers). I'm not
sure what all change on your last update

Also look at the X log files to see what's going on:

/var/log/Xorg.0.log

your xorg.conf file may have been altered?

I always save a spare copy, with an appended dated,
particulary if I read about something and noodle
with with xorg.conf.


just a few ideas,


James








Re: [gentoo-user] Laptop Lid Close...

2009-01-29 Thread BRM
Just following up - for anyone searching the archives - the bug report 
mentioned below did solve the problem.

When I had added the acpid to the default run-level, I had not restarted hald 
before starting it, thus the script didn't get called.

Any how...it now works excellently. I use radeontool to turn off the screen, 
and it works without having to know about X.
I also send out a message via D-Bus to the KDE Desktop to initiate the screen 
saver on close, and turn it off on open. (I ignore the password side of the 
screen saver, but you can honor that too if you like).

Thanks for the help all!

Ben



- Original Message 
From: BRM 
To: gentoo-user@lists.gentoo.org
Sent: Monday, January 26, 2009 12:59:55 PM
Subject: Re: [gentoo-user] Laptop Lid Close...

Cool. Thanks. That looks like it should solve the issue.

Ben



- Original Message 
From: Gregory SACRE 
To: gentoo-user@lists.gentoo.org
Sent: Monday, January 26, 2009 11:32:32 AM
Subject: Re: [gentoo-user] Laptop Lid Close...

I've googled a bit and found these two things:

[1] http://bugs.gentoo.org/175464
[2] https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/51591

They both refer to problems with hald and acpid entering in conflict.
Check if you are using hald. If you are, try stopping it and starting
acpid to see if it still gives you the problem.

Concerning the fact that the script isn't called, you have to check in
your /etc/acpi/event/default. Make sure that you have lines such as:

event=.*
action=/etc/acpi/default.sh %e

Basically, it says that for any event handled by acpi, launch
/etc/acpi/default.sh.
And in /etc/acpi/default.sh, check for the "lid" event. It should look
like this:

[...]
case "$group" in
[...]
lid)
 /etc/acpi/screen_off.sh > /tmp/screen_off 2>&1
[...]

where screen_off.sh is the script I sent you in my previous mail.


HTH,

Greg

On Sat, Jan 24, 2009 at 4:58 AM, BRM  wrote:
> For some reason, the script is not getting called when I press the button.
>
> That is not to say that the system doesn't recognize it - if I set KDE to put 
> the system in stand-by when the lid is closed, it very well will. But as I 
> said earlier, that's not what I want - I just want to turn on/off the monitor.
>
> I know kacpid is running...but I don't think acpid is...at least, when I 
> tried /etc/init.d/acpid start it complained:
>
> * Starting acpid ...
> acpid: can't open /proc/acpi/event: Device or resource busy
>
> Ben
>
>
>
> - Original Message 
> From: Gregory SACRE 
> To: gentoo-user@lists.gentoo.org
> Sent: Friday, January 23, 2009 2:57:31 PM
> Subject: Re: [gentoo-user] Laptop Lid Close...
>
> This is the script I am using. It is spawned by the default.sh from /etc/acpi:
>
> -- SCRIPT START --
> # default display on current host
> export XAUTHORITY="/home//.Xauthority"
> DISPLAY=:0.0
>
> # find out if monitor is on
> STATUS=`cat /proc/acpi/button/lid/LID0/state`
> logger "monitor: $STATUS"
>
> # find out if DPMS is enabled
> DPMS=`xset -display $DISPLAY -q | grep -e 'DPMS is'`
> logger "dpms: $DPMS"
>
> # enable DPMS if disabled
> if [ "$DPMS" == "  DPMS is Disabled" ]
> then
>logger "Enabling DPMS ..."
>xset -display $DISPLAY +dpms
> fi
>
> if [ `echo $STATUS | grep -i closed | wc -l` -eq 1 ]
> then
>logger "[`date`] Turning display OFF"
>xset -display $DISPLAY dpms force off
> else
>logger "[`date`] Turning display ON"  # shows up in log
>xset -display $DISPLAY dpms force on# turn monitor on
>xset -display $DISPLAY s activate   # un-blank monitor
> fi
>
> #clean up
> unset STATUS
> unset DPMS
>
> # comment this line out if you're manually running this script from a
> shell (put a # in front of it)
> unset DISPLAY
>
> exit 0
> -- SCRIPT STOP --
>
> Change the  variable.
> I had also to set xscreensaver to switch off my monitor instead of
> blanking it, because I think (not sure) that xscreensaver was
> switching on my monitor when it was supposed to start the screensaver
> (as after a while, my monitor was switched back on, and as I didn't
> see that happening since my xscreensaver modification, I can only
> assume that was the problem).
>
>
> HTH,
>
> Greg
>
>
> On Fri, Jan 23, 2009 at 8:14 AM, Joshua Murphy  wrote:
>> On Thu, Jan 22, 2009 at 8:24 PM, BRM  wrote:
>>> I'm running a Dell D600, and I've located a number of tools for it but I am 
>>> not seeing anything related to when I close the lid. Since I got Gentoo 
>>> running on it, the Monitor continues running when I close the lid.
>>>
>>> I've found several sources for doing something as an ACPI event, which 
>>> seems to be the right method. I can toggle the button with the lid open and 
>>> cat /etc/acpi/button/lid/LID/state and see it change between 'open' and 
>>> 'closed'; and I know I could write myself a little script do something lik

Re: [gentoo-user] KDE 4.2: Emerge of ksysguard and ksmserver failed

2009-01-29 Thread Dale
Volker Armin Hemmann wrote:
> On Donnerstag 29 Januar 2009, Tomas Linhart wrote:
>
>   
>> Before I start again - what is "the right order" for emerging the qt
>> packages?
>> 
>
> I am not sure anymore - if you look into the ebuilds you should be able to 
> see 
> it.
>
>
>   

I would --oneshot with them all on one line and let portage figure out
the order of things.  emerge -1va qt-* kdelibs etc etc and then let
portage decide which should be emerged first.

Dale

:-)  :-) 



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Paul Hartman
On Wed, Jan 28, 2009 at 8:29 PM, Grant  wrote:
> > Does anyone know how to put my USB wireless network adapter into
> > promiscuous mode so I can see everything that's happening wirelessley
> > on my network in wireshark?
>
> ifconfig eth1 promisc
>
> But at least tcpdump puts the interface into promiscous mode
> automatically, so there is a chance that wireshark does the same.
>
>

 Another way is to use airmon-ng from the aircrack-ng package:

 airmon-ng start wlan0
>>>
>>> Thanks everyone.  I didn't realize it but monitor mode is what I'm
>>> after.  aircrack-ng looks interesting too.  Is there something similar
>>> with a GUI?  airsnort seems to be discontinued.  What is iw for?
>>
>> iw - show / manipulate wireless devices and their configuration
>>
>> Usage:  iw [options] command
>> Options:
>>--debug enable netlink debugging
>>--version   show version
>> Commands:
>>help
>>event
>>list
>>phy  info
>>dev  set channel  [HT20|HT40+|HT40-]
>>phy  set channel  [HT20|HT40+|HT40-]
>>dev  set freq  [HT20|HT40+|HT40-]
>>phy  set freq  [HT20|HT40+|HT40-]
>>phy  set name 
>>dev  set meshid 
>>dev  set monitor  [...]
>>dev  info
>>dev  del
>>dev  interface add  type  [mesh_id
>> ] [flags ...]
>>phy  interface add  type  [mesh_id
>> ] [flags ...]
>>dev  station dump
>>dev  station set  plink_action 
>>dev  station del 
>>dev  station get 
>>dev  mpath dump
>>dev  mpath set  next_hop
>> 
>>dev  mpath new  next_hop
>> 
>>dev  mpath del 
>>dev  mpath get 
>>reg set 
>>dev  get mesh_param 
>>dev  set mesh_param  
>
> Are we talking about the same thing?
>
> iw: "nl80211 userspace tool for use with aircrack-ng"
>
> - Grant

Yes, it was installed as a dep of aircrack-ng.

Paul



Re: [gentoo-user] KDE 4.2: Emerge of ksysguard and ksmserver failed

2009-01-29 Thread Tomas Linhart
Everything is going fine now. The problem was that
/usr/lib64/qt4/libQtWebKit.so.4 was symlinked to QtWebkit 4.5 library
and that was the reason why some symbols could not be found. After
correcting the symlink the problem disappeared.
However, it seems strange to me, because I have tried and later
uninstalled qt 4.5 more than 14 days before and I have not found any
other files that belong to qt 4.5 on my system, only
/usr/lib64/qt4/libQtWebKit.so.4.5 was there.

Thanks everyone who helped me.

Tomas



Re: [gentoo-user] KDE 4.2: Emerge of ksysguard and ksmserver failed

2009-01-29 Thread Volker Armin Hemmann
On Donnerstag 29 Januar 2009, Tomas Linhart wrote:

> Before I start again - what is "the right order" for emerging the qt
> packages?

I am not sure anymore - if you look into the ebuilds you should be able to see 
it.




Re: [gentoo-user] KDE 4.2: Emerge of ksysguard and ksmserver failed

2009-01-29 Thread Volker Armin Hemmann
On Donnerstag 29 Januar 2009, Tomas Linhart wrote:

> Before I start again - what is "the right order" for emerging the qt
> packages?

I am not sure anymore - if you look into the ebuilds you should be able to see 
it.



Re: [gentoo-user] Disable xterm scroll-to-bottom and auto scrolling

2009-01-29 Thread Peter Humphrey
On Wednesday 28 January 2009 20:50:16 David Sveningsson wrote:
> Hi, I disabled xterm scroll-to-bottom using -si but it is pretty much
> useless since the output keeps scrolling anyway. I would like to be able
> to scroll freely in the terminal output without any interfering
> automatic scrolling. Like Terminal.app in Mac OSX. I've tried reading
> the manual and googled a bit but I couldn't find anything. Is it
> possible?

In KDE, if you use the mouse to scroll up the Konsole display while a 
program is still updating it. the text gets added to the bit of the display 
you can't see; the only visible effect is the thumb moving up the scroll 
bar. At least, my box does that; it may depend on telling Konsole to allow 
flow control with -Q and -S, which I like to have as well.

-- 
Rgds
Peter



Re: [gentoo-user] Network access to mysql

2009-01-29 Thread Peter Humphrey
On Wednesday 28 January 2009 16:25:16 AllenJB wrote:

> Check the bind-address setting in /etc/my.cnf - if this is 127.0.0.1
> then no other machines will be able to connect to the mysql server. To
> listen on all available interfaces, this setting should be "0.0.0.0" or
> unset.

That was it - thanks.

I'll raise a document bug to have this added to the MySQL startup guide, 
which talks gaily of connecting to various hosts, but not how to make that 
possible.

> Also check that skip-networking is not enabled.

It's disabled by default, and I knew I didn't want to enable it.

-- 
Rgds
Peter



Re: [gentoo-user] Re: how to hold a package at a specific version (so emerge -uD world doesn't change it)?

2009-01-29 Thread Neil Bothwick
On Thu, 29 Jan 2009 14:19:45 +0100, Sebastian Günther wrote:

> doesn't
> 
> emerge --skipfirst
> 
> ring any bell?

Or even emerge --keep-going if you want to take that route.


-- 
Neil Bothwick

CPU: (n.) acronym for Central Purging Unit. A device which discards or
distorts data sent to it, sometimes returning more data and sometimes
merely over-heating.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: how to hold a package at a specific version (so emerge -uD world doesn't change it)?

2009-01-29 Thread Sebastian Günther
* Miernik (pub...@public.miernik.name) [29.01.09 11:09]:
> 
> Well, it could take days, weeks, or more before the bug report is taken
> care of, and I don't want to wait with my upgrade of the rest of the
> system.
> 
doesn't

emerge --skipfirst

ring any bell?

HTH
Sebastian

-- 
 " Religion ist das Opium des Volkes. "  Karl Marx

 s...@sti@N GÜNTHER mailto:sam...@guenther-roetgen.de


pgpeCFH1Jyqrl.pgp
Description: PGP signature


Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Saphirus Sage
Dominic Kexel wrote:
> On Wed, 28 Jan 2009 21:23:12 -0800
> Grant  wrote:
>
>   
> Does anyone know how to put my USB wireless network adapter into
> promiscuous mode so I can see everything that's happening wirelessley
> on my network in wireshark?
>   
 ifconfig eth1 promisc

 But at least tcpdump puts the interface into promiscous mode
 automatically, so there is a chance that wireshark does the same.


 
>>> Another way is to use airmon-ng from the aircrack-ng package:
>>>
>>> airmon-ng start wlan0
>>>   
>> I can't get that to work.  I get:
>>
>> # airmon-ng start wlan0
>> InterfaceChipset Driver
>> wlan3ath5k_pci - [phy0]
>> wlan0Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: 
>> line 338:
>> /sys/class/ieee80211/phy1/add_iface: No such file or directory
>> mon0: ERROR while getting interface flags: No such device
>> (monitor mode enabled on mon0)
>>
>> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
>> which isn't there.  I've tried with net.wlan0 started and stopped.
>>
>> - Grant
>> 
>
> Your driver has to support monitor-mode.
> I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
> with Realtek-Chip. The drivers I used a while ago needed a patch to work with
> monitor-mode, but the recent drivers don't. Take a look at the driver-section
> on the aircrack-ng homepage. Maybe your driver needs to be patched.
>
>
>   
I'm using the same chipset with the same driver (ath5_pci with phy0),
and my card can go into monitor mode. I'm wondering if you are using the
driver compiled into the kernel or madwifi-ng drivers.



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Dominic Kexel
On Wed, 28 Jan 2009 21:23:12 -0800
Grant  wrote:

> >> > Does anyone know how to put my USB wireless network adapter into
> >> > promiscuous mode so I can see everything that's happening wirelessley
> >> > on my network in wireshark?
> >>
> >> ifconfig eth1 promisc
> >>
> >> But at least tcpdump puts the interface into promiscous mode
> >> automatically, so there is a chance that wireshark does the same.
> >>
> >>
> >
> > Another way is to use airmon-ng from the aircrack-ng package:
> >
> > airmon-ng start wlan0
> 
> I can't get that to work.  I get:
> 
> # airmon-ng start wlan0
> Interface Chipset Driver
> wlan3 ath5k_pci - [phy0]
> wlan0 Ralink 2573 USB rt73usb - [phy1]/usr/sbin/airmon-ng: line 338:
> /sys/class/ieee80211/phy1/add_iface: No such file or directory
> mon0: ERROR while getting interface flags: No such device
> (monitor mode enabled on mon0)
> 
> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
> which isn't there.  I've tried with net.wlan0 started and stopped.
> 
> - Grant

Your driver has to support monitor-mode.
I am using an Atheros-based internal WiFi-card and an Alpha-USB-WiFi-device
with Realtek-Chip. The drivers I used a while ago needed a patch to work with
monitor-mode, but the recent drivers don't. Take a look at the driver-section
on the aircrack-ng homepage. Maybe your driver needs to be patched.


-- 
Dominic Kexel 



Re: [gentoo-user] Re: wlan0 promiscuous mode

2009-01-29 Thread Zhu Sha Zang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Grant escreveu:
 Does anyone know how to put my USB wireless network adapter into
 promiscuous mode so I can see everything that's happening wirelessley
 on my network in wireshark?
>>> ifconfig eth1 promisc
>>>
>>> But at least tcpdump puts the interface into promiscous mode
>>> automatically, so there is a chance that wireshark does the same.
>>>
>>>
>> Another way is to use airmon-ng from the aircrack-ng package:
>>
>> airmon-ng start wlan0
>
> I can't get that to work.  I get:
>
> # airmon-ng start wlan0
> InterfaceChipsetDriver
> wlan3ath5k_pci - [phy0]
> wlan0Ralink 2573 USBrt73usb - [phy1]/usr/sbin/airmon-ng:
line 338:
> /sys/class/ieee80211/phy1/add_iface: No such file or directory
> mon0: ERROR while getting interface flags: No such device
> (monitor mode enabled on mon0)
>
> It looks like I'm supposed to have /sys/class/ieee80211/phy1/add_iface
> which isn't there.  I've tried with net.wlan0 started and stopped.
>
> - Grant
>
>
Hey guys,

Using kismet to capture packets and open the dump file in /tmp with
wireshark don't is the same?

att
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmBlmEACgkQ35zeJy7JhCjCCwCfd9IY4L95XiRO/topshe17Ra0
5PoAn0Ecy6dQuWPb08LP351J+GmHWdC7
=nSqk
-END PGP SIGNATURE-




Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Neil Bothwick
On Thu, 29 Jan 2009 04:41:37 -0600, Dale wrote:

> Another option, put FEATURES="buildpkg" in make.conf so it does it
> automatically. 

No need, it's an 8 core machine. Recompiling the old version takes less
time than asking fr help :)


-- 
Neil Bothwick

To most people solutions mean finding the answers. But to chemists
solutions are things that are still all mixed up.



signature.asc
Description: PGP signature


Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Dale
Justin wrote:
> Neil Bothwick schrieb:
>   
>> On Thu, 29 Jan 2009 11:01:18 +0100, Justin wrote:
>>
>> 
>>> Never test packages if it is urgent to recover a working state, ;)!
>>>   
>> Or, at the very least, use quickpkg on the working version first.
>>
>>
>> 
>
> Yeah , let's put our fingers together in his wounds!! :=)
>
>   

Another option, put FEATURES="buildpkg" in make.conf so it does it
automatically. 

Dale

:-)  :-)



Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Helmut Jarausch
On 29 Jan, Justin wrote:
> Neil Bothwick schrieb:
>> On Thu, 29 Jan 2009 11:01:18 +0100, Justin wrote:
>> 
>>> Never test packages if it is urgent to recover a working state, ;)!
>> 
>> Or, at the very least, use quickpkg on the working version first.
>> 
>> 
> 
> Yeah , let's put our fingers together in his wounds!! :=)
> 

Why is GenToo so good that it works MOST of the time?

The snag here is that the change became visible pnly after rebooting
or restarting X11, at least.
But there were some long running applications on this 8-core machine,
so I couldn't try.

Thanks for all your help,
I'm trying to find the source of the problem,

Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Justin
Neil Bothwick schrieb:
> On Thu, 29 Jan 2009 11:01:18 +0100, Justin wrote:
> 
>> Never test packages if it is urgent to recover a working state, ;)!
> 
> Or, at the very least, use quickpkg on the working version first.
> 
> 

Yeah , let's put our fingers together in his wounds!! :=)



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Neil Bothwick
On Thu, 29 Jan 2009 11:01:18 +0100, Justin wrote:

> Never test packages if it is urgent to recover a working state, ;)!

Or, at the very least, use quickpkg on the working version first.


-- 
Neil Bothwick

"Of course, I could switch back to Windows. At least there, if I have a
problem, I don't suffer under the illusion that I could ever fix it." -


signature.asc
Description: PGP signature


[gentoo-user] Re: how to hold a package at a specific version (so emerge -uD world doesn't change it)?

2009-01-29 Thread Miernik
Man Shankar  wrote:
> On 20:41 Wed 28 Jan , momesso.and...@gmail.com wrote:
>> 
>> I think that if emerge =x11-wm/awesome-3.1.1 fails, you should file a
>> bug before masking it. 

Well, it could take days, weeks, or more before the bug report is taken
care of, and I don't want to wait with my upgrade of the rest of the
system.

> +1
> 
> FWIW, have been using that version for about 10 days. Works great here.
> What is the error you get?

I did, read here:
http://bugs.gentoo.org/show_bug.cgi?id=256641

Thanks for anwsers, masking worked.




Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Justin
Helmut Jarausch schrieb:
> On 29 Jan, Justin wrote:
>> Helmut Jarausch schrieb:
>>> Hi,
>>>
>>> after reboot X11 fails with
>>> (II) Initializing extension GLX
>>> (EE) config/hal: couldn't initialise context: (null) ((null))
>>>
>>> I have 
>>> x11-base/xorg-x11-7.4
>>> x11-base/xorg-server-1.5.3-r1
>>> installed on a x86-64 machine.
>>>
>>> Has anybody an idea what's going on?
>>>
>>> Many thanks for your help,
>>> Helmut.
>>>
>> Can give some more infos please, USE etc?
>>
>  Installed versions:  1.5.3-r1(09:46:41 01/29/09)(hal input_devices_evdev 
> input_devices_keyboard input_devices_mouse ipv6 nptl sdl video_cards_nv xorg
> x11-drivers/nvidia-drivers-180.22
> 
if you are using the closed source drivers, you should add nvidia
instead of nv to your ${VIDEO_CARDS} in the make.conf
> I vaguely remember having removed the 'hal' use flag for some time.
> Now, I have reinstalled x11-base/xorg-server after adding 'hal' to my
> /etc/make.conf
be sure the hald is running before starting the X.
> But probably there are further x11 packages which need to be reemerged.
> 
> But on an another machine I'm running these x11 versions without 'hal'.
> So, there must be a different cause of the problem.
> 
> Thanks,
> Helmut.
> 
> 

Never test packages if it is urgent to recover a working state, ;)!

P.s. past your xorg.conf, just to be sure that there is now problem



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Dale
Helmut Jarausch wrote:
> On 29 Jan, Justin wrote:
>   
>> Helmut Jarausch schrieb:
>> 
>>> Hi,
>>>
>>> after reboot X11 fails with
>>> (II) Initializing extension GLX
>>> (EE) config/hal: couldn't initialise context: (null) ((null))
>>>
>>> I have 
>>> x11-base/xorg-x11-7.4
>>> x11-base/xorg-server-1.5.3-r1
>>> installed on a x86-64 machine.
>>>
>>> Has anybody an idea what's going on?
>>>
>>> Many thanks for your help,
>>> Helmut.
>>>
>>>   
>> Can give some more infos please, USE etc?
>>
>> 
>  Installed versions:  1.5.3-r1(09:46:41 01/29/09)(hal input_devices_evdev 
> input_devices_keyboard input_devices_mouse ipv6 nptl sdl video_cards_nv xorg
> x11-drivers/nvidia-drivers-180.22
>
> I vaguely remember having removed the 'hal' use flag for some time.
> Now, I have reinstalled x11-base/xorg-server after adding 'hal' to my
> /etc/make.conf
> But probably there are further x11 packages which need to be reemerged.
>
> But on an another machine I'm running these x11 versions without 'hal'.
> So, there must be a different cause of the problem.
>
> Thanks,
> Helmut.
>
>
>   

Maybe try emerge -uvDNp world and see if the USE flags are changed.  If
they have, remove the p and let it rebuild.  The -N is the big part here.

Dale

:-)  :-)



Re: [gentoo-user] Patching of ebuilds

2009-01-29 Thread Jesús Guerrero
Also check the page where you found the patch carefully.
Sometimes you can find an updated ebuild that works with
that patch in the same page, so you don't have to patch it
yourself.

You need to examine the patch and clear up whether it's
a patch for the app or for the ebuild itself. If it's
a patch for the ebuild you just need to copy the ebuild
into an overlay and patch it. But if it's a patch for the
app you need to modify the ebuild so it applies the patch
to the app after unpacking it and before compiling.

This is the official documentation about how to correctly
alter the portage tree so you don't mess up anything. Either
way you need to create an overlay. That's for sure.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=5

-- 
Jesús Guerrero



Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Helmut Jarausch
On 29 Jan, Justin wrote:
> Helmut Jarausch schrieb:
>> Hi,
>> 
>> after reboot X11 fails with
>> (II) Initializing extension GLX
>> (EE) config/hal: couldn't initialise context: (null) ((null))
>> 
>> I have 
>> x11-base/xorg-x11-7.4
>> x11-base/xorg-server-1.5.3-r1
>> installed on a x86-64 machine.
>> 
>> Has anybody an idea what's going on?
>> 
>> Many thanks for your help,
>> Helmut.
>> 
> Can give some more infos please, USE etc?
> 
 Installed versions:  1.5.3-r1(09:46:41 01/29/09)(hal input_devices_evdev 
input_devices_keyboard input_devices_mouse ipv6 nptl sdl video_cards_nv xorg
x11-drivers/nvidia-drivers-180.22

I vaguely remember having removed the 'hal' use flag for some time.
Now, I have reinstalled x11-base/xorg-server after adding 'hal' to my
/etc/make.conf
But probably there are further x11 packages which need to be reemerged.

But on an another machine I'm running these x11 versions without 'hal'.
So, there must be a different cause of the problem.

Thanks,
Helmut.


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Justin
Helmut Jarausch schrieb:
> Hi,
> 
> after reboot X11 fails with
> (II) Initializing extension GLX
> (EE) config/hal: couldn't initialise context: (null) ((null))
> 
> I have 
> x11-base/xorg-x11-7.4
> x11-base/xorg-server-1.5.3-r1
> installed on a x86-64 machine.
> 
> Has anybody an idea what's going on?
> 
> Many thanks for your help,
> Helmut.
> 
Can give some more infos please, USE etc?



signature.asc
Description: OpenPGP digital signature


[gentoo-user] [urgent] X11 fails after reboot (using a new X11)

2009-01-29 Thread Helmut Jarausch
Hi,

after reboot X11 fails with
(II) Initializing extension GLX
(EE) config/hal: couldn't initialise context: (null) ((null))

I have 
x11-base/xorg-x11-7.4
x11-base/xorg-server-1.5.3-r1
installed on a x86-64 machine.

Has anybody an idea what's going on?

Many thanks for your help,
Helmut.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



Re: [gentoo-user] Patching of ebuilds

2009-01-29 Thread Justin
Andrew Lowe schrieb:
> Hi all,
> I've had a look on the web but can't seem to find any instructions
> on how to do the patching of ebuilds. I have the situation where I've
> tried to install the media centre app MMSV2. I've done the emerge, a lot
> of dependent functionality was compiled and now it's up to compiling the
> actual MMSV2. When compiling, an error happens. I had a look in
> bugs.gentoo.org and there is a bug in there that covers, I think, the
> failure.
> 
> Attached to the bug is a patch that someone has developed. I now
> want to use this patch to patch the ebuild and see if it really does fix
> the problem. My problem is that I don't know the actual steps needed to
> do the patching. I know about the patch utility but I don't know where
> the actual files are, and how I  should do the patching so that Portage
> does not view the patched files as corrupt and therefore won't do the
> emerge.
> 
> If someone can tell me how, or point me to a webpage that tells me
> how, to do the patching it would be greatly appreciated.
> 
> Regards,
> Andrew
> 

http://en.gentoo-wiki.com/wiki/Creating_an_Updated_Ebuild



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Patching of ebuilds

2009-01-29 Thread Andrew Lowe

Hi all,
	I've had a look on the web but can't seem to find any instructions on 
how to do the patching of ebuilds. I have the situation where I've tried 
to install the media centre app MMSV2. I've done the emerge, a lot of 
dependent functionality was compiled and now it's up to compiling the 
actual MMSV2. When compiling, an error happens. I had a look in 
bugs.gentoo.org and there is a bug in there that covers, I think, the 
failure.


	Attached to the bug is a patch that someone has developed. I now want 
to use this patch to patch the ebuild and see if it really does fix the 
problem. My problem is that I don't know the actual steps needed to do 
the patching. I know about the patch utility but I don't know where the 
actual files are, and how I  should do the patching so that Portage does 
not view the patched files as corrupt and therefore won't do the emerge.


	If someone can tell me how, or point me to a webpage that tells me how, 
to do the patching it would be greatly appreciated.


Regards,
Andrew



Re: [gentoo-user] KDE 4.2: Emerge of ksysguard and ksmserver failed

2009-01-29 Thread Dirk Uys
On Thu, Jan 29, 2009 at 10:03 AM, Tomas Linhart  wrote:
> 2009/1/29 Volker Armin Hemmann :
>>
>> re-emerge the qt packages in the right order.
>> then emerge kdelibs again, then the rest. Stuff like this happens when qt is
>> updated after kdelibs is built against it.
>>
>
> Thanks for your answer.
>
> I not at my box just now so I will try that later today. But I have
> re-emerge all qt packages and also kdelibs yesterday but I am not sure
> in which order...
> Before I start again - what is "the right order" for emerging the qt packages?
>
> Tomas

I would assume that "the right order" is to emerge all the qt
libraries, and then kdelibs?

Regards
Dirk



Re: [gentoo-user] KDE 4.2: Emerge of ksysguard and ksmserver failed

2009-01-29 Thread Tomas Linhart
2009/1/29 Volker Armin Hemmann :
>>
>> I tried to re-emerge qt-* packages but the error remains the same.
>>
>> Does somebody have a idea what could be wrong?
>
> re-emerge the qt packages in the right order.
> then emerge kdelibs again, then the rest. Stuff like this happens when qt is
> updated after kdelibs is built against it.
>

Thanks for your answer.

I not at my box just now so I will try that later today. But I have
re-emerge all qt packages and also kdelibs yesterday but I am not sure
in which order...
Before I start again - what is "the right order" for emerging the qt packages?

Tomas