minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Peter Laufenberg
I want to set up a minimal mp3 Internet radio streamer directly on my Alix 
Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL 
modem so it doesn't travel through the rest of the LAN and pollute logs, 
assuming the decoder daemon is secure and not too demanding on the Alix.

This Alix has no on-board audio but I have unused external audio interfaces 
from my bygone DJ days, some clearly overkill but none with built-in mp3 
decoder:

 USB 1.0 tiny Roland UA-1A 2-in/2-out, 16bit @ 48 kHz (2001)
 USB 2.0 Roland UA-101 10-in/10-out, optical in/out, 24-bit @ 192 kHz (2005)
 USB 2.0 M-Audio FastTrack Pro 4-in/4-out, coax in/out, 16-bit @ 96 kHz 

For play/stop  next controls I'd use a small USB gamepad-type or MIDI 
controller, not via TCP messages, so it doesn't complicate pf rules. I cycle 
between 3 hardcoded stations using 128kbps CBR so that's the only codec I need.

Questions:

- stupid/dangerous idea?
- what's the most nimble stream+mp3 solution? 
- are there AMD Geode-specific instructions it can be recompiled with?

thx,

-- p



Re: net connection via USB

2012-07-23 Thread Stuart Henderson
On 2012-07-21, Jan Stary h...@stare.cz wrote:
 Is there any support present or planned for Ethernet over USB?
 http://en.wikipedia.org/wiki/Ethernet_over_USB#Treat_USB_as_an_Ethernet_network

 The motivation is to conenct my smartphone via USB to my workstation,
 thus having the phone connected to the net without either a wifi AP
 or using the operator's network data tarif.

   Jan



I think you mean that the phone uses the computer's internet connection,
is that correct?

I haven't heard of any such driver planned, but I wonder if there are
any devices other than the ipaq which actually support this, it seems like
it would be a bit of a niche market...



Re: net connection via USB

2012-07-23 Thread Jan Stary
 On Jul 21, 2012 4:02 PM, Jan Stary h...@stare.cz wrote:
 
  Is there any support present or planned for Ethernet over USB?
 
  http://en.wikipedia.org/wiki/Ethernet_over_USB#Treat_USB_as_an_Ethernet_network
 
  The motivation is to conenct my smartphone via USB to my workstation,
  thus having the phone connected to the net without either a wifi AP
  or using the operator's network data tarif.


On Jul 21 16:32:31, Christiano F. Haesbaert wrote:
 Yes see urndis

My phone is Samsung GT-I5510, which is a Samsung Galaxy,
which urndis(4) mentiones as supprted. Does someone use it
as a urndis device? Should it report as a urndis device
once connected via USB? I only get

umass1 at uhub0 port 3 configuration 1 interface 0 SAMSUNG Electronics Co., 
Ltd. Samsung Android USB Device rev 2.00/4.00 addr 3
umass1: using SCSI over Bulk-Only scsibus4 at umass1: 2 targets, initiator 0
sd3 at scsibus4 targ 1 lun 0: SAMSUNG, GT-I5510 Card,  SCSI2 0/direct 
removable serial.04e8681d551065d6a9ce

i.e. it only exposes itself as a umass device.


On Jul 23 10:00:53, Stuart Henderson wrote:
 I think you mean that the phone uses the computer's internet connection,
 is that correct?

Yes.

 I haven't heard of any such driver planned, but I wonder if there are
 any devices other than the ipaq which actually support this, it seems like
 it would be a bit of a niche market...



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Jan Stary
On Jul 23 11:00:19, Peter Laufenberg wrote:
 I want to set up a minimal mp3 Internet radio streamer directly on my Alix 
 Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL 
 modem so it doesn't travel through the rest of the LAN and pollute logs, 
 assuming the decoder daemon is secure and not too demanding on the Alix.

Why exactly do you need to be playing the mp3 stream on your gateway?
Why cannot you run this on an inside machine?

 This Alix has no on-board audio but I have unused external audio interfaces 
 from my bygone DJ days, some clearly overkill but none with built-in mp3 
 decoder:

You should send a full dmesg.

  USB 1.0 tiny Roland UA-1A 2-in/2-out, 16bit @ 48 kHz (2001)
  USB 2.0 Roland UA-101 10-in/10-out, optical in/out, 24-bit @ 192 kHz (2005)
  USB 2.0 M-Audio FastTrack Pro 4-in/4-out, coax in/out, 16-bit @ 96 kHz 

I use the FastTrack without problems.

 For play/stop  next controls I'd use a small USB gamepad-type or MIDI 
 controller, not via TCP messages, so it doesn't complicate pf rules. I cycle 
 between 3 hardcoded stations using 128kbps CBR so that's the only codec I 
 need.

I use 'play' from audio/sox. It supports internet mp3 streams
as simply as in 'play http://some.radio.org:1234/stream.mp3'.

I have written me a simple shell wrapper around this
to be able to use a predefined list of radio stations;
tweak to your needs:

http://stare.cz/OpenBSD/radio
http://stare.cz/OpenBSD/dot.radiorc

I don;t think you need any start/stop midi controlling - just
kill the proccess playing this and start another playing that.


 - stupid/dangerous idea?

no

 - what's the most nimble stream+mp3 solution? 

I use audio/sox, but that also supports many other formats beside mp3,
so you might find something lighter that supports just mp3.
(Then plug it into the radio tool instead of 'play')

 - are there AMD Geode-specific instructions it can be recompiled with?

You are not gonna gain anything by looking for those.

Jan



is application goes to sleep?

2012-07-23 Thread lilit-aibolit

Hi misc, please send me to the right way.
I have java-application:
https://bitbucket.org/sdorra/scm-manager/wiki/Home
It has stoped answering after one week from the start,
but application is listening tcp port and present in process list.
Seems, that no one has touched it in that time ...
and app goes to sleep and not come back??
Is it possible that this app went to sleep and didn't come back??
And is this situation possible in principal for any applications/daemons?
After doing stop/start the app works  fine.
Unfortunately I can't touch/open application every day
to verify that it works and prevent it from going to sleep.



Re: net connection via USB

2012-07-23 Thread Christiano F. Haesbaert
On 23 July 2012 12:29, Jan Stary h...@stare.cz wrote:
 On Jul 21, 2012 4:02 PM, Jan Stary h...@stare.cz wrote:

  Is there any support present or planned for Ethernet over USB?
 
  http://en.wikipedia.org/wiki/Ethernet_over_USB#Treat_USB_as_an_Ethernet_network
 
  The motivation is to conenct my smartphone via USB to my workstation,
  thus having the phone connected to the net without either a wifi AP
  or using the operator's network data tarif.


 On Jul 21 16:32:31, Christiano F. Haesbaert wrote:
 Yes see urndis

 My phone is Samsung GT-I5510, which is a Samsung Galaxy,
 which urndis(4) mentiones as supprted. Does someone use it
 as a urndis device? Should it report as a urndis device
 once connected via USB? I only get

 umass1 at uhub0 port 3 configuration 1 interface 0 SAMSUNG Electronics Co., 
 Ltd. Samsung Android USB Device rev 2.00/4.00 addr 3
 umass1: using SCSI over Bulk-Only scsibus4 at umass1: 2 targets, initiator 0
 sd3 at scsibus4 targ 1 lun 0: SAMSUNG, GT-I5510 Card,  SCSI2 0/direct 
 removable serial.04e8681d551065d6a9ce

 i.e. it only exposes itself as a umass device.


 On Jul 23 10:00:53, Stuart Henderson wrote:
 I think you mean that the phone uses the computer's internet connection,
 is that correct?

 Yes.


I thought you wanted the other way around, to connect your laptop
through your phone, that is what urndis is for, you need to go to
settings-mobile  networks-usb tethering, than the laptop will see a
urndis(4) interface, but this is not you want, this is for connecting
the laptop through the phone.

 I haven't heard of any such driver planned, but I wonder if there are
 any devices other than the ipaq which actually support this, it seems like
 it would be a bit of a niche market...



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Wojciech Puchar

I want to set up a minimal mp3 Internet radio streamer directly on my Alix 
Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL 
modem so it doesn't travel through the rest of the LAN and pollute logs, 
assuming the decoder daemon is secure and not too demanding on the Alix.
133MHz 486 is enough to decode MP3 - this is what i had some years ago as 
my home machine, depending on MP3 needed 60-90% CPU using mpg123




Re: 4g (LTE) modem

2012-07-23 Thread Alexei Malinin
Jonathan Gray wrote:
 On Wed, Jul 18, 2012 at 09:24:01PM +0400, Alexei Malinin wrote:
 - read/write MicroSD flash card attached to the modem;
 are these possible with OpenBSD?

 You'll need to play with the match code a bit to have that work.
 Perhaps something like the following will work:

 --- umsm.c.orig   Thu Jul 19 11:41:00 2012
 +++ umsm.cThu Jul 19 11:42:09 2012
 @@ -293,7 +293,8 @@ umsm_match(struct device *parent, void *match, void *a
   /*
* Some high-speed modems require special care.
*/
 - if (flag  DEV_HUAWEI) {
 + if (flag  DEV_HUAWEI ||
 + uaa-vendor == USB_VENDOR_HUAWEI) {
   if (uaa-ifaceno != 2)
   return UMATCH_VENDOR_IFACESUBCLASS;
   else

This does not work - patched kernel cannot detect a microSD flash card...

-
the modem with an attached microSD flash card
-
# dmesg
...
umsm0 at uhub0 port 4 configuration 1 interface 0 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
umsm0 detached
umsm0 at uhub0 port 4 configuration 1 interface 0 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 4 configuration 1 interface 1 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 4 configuration 1 interface 2 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom2 at umsm2
umsm3 at uhub0 port 4 configuration 1 interface 3 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
ucom3 at umsm3
umsm4 at uhub0 port 4 configuration 1 interface 4 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
umsm5 at uhub0 port 4 configuration 1 interface 5 Huawei Technologies HUAWEI 
Mobile rev 2.00/0.00 addr 2
# usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 addr 2: high speed, power 500 mA, config 1, HUAWEI Mobile(0x140c), 
Huawei Technologies(0x12d1), rev 0.00
 port 5 powered
 port 6 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered



PS. Maybe such feature is unnecessary...


--
Alexei Malinin



Re: kvm and Openbsd 5.1

2012-07-23 Thread Lars Hansson
On Sat, Jul 21, 2012 at 1:29 AM, Alessandro Baggi
alessandro.ba...@gmail.com wrote:
 Disabling mpbios see only one core and not smp.

I think that's the expected behavior if you disable mpbios. OpenBSD
runs great on a single core
in KVM anyway so why bother with SMP?

Cheers,
Lars



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Christian Weisgerber
Peter Laufenberg open...@laufenberg.ch wrote:

 I want to set up a minimal mp3 Internet radio streamer directly on my
 PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
 pollute logs,

I don't understand that rationale.

 This Alix has no on-board audio but I have unused external audio
 interfaces from my bygone DJ days, some clearly overkill but none with
 built-in mp3 decoder:
 
  USB 1.0 tiny Roland UA-1A 2-in/2-out, 16bit @ 48 kHz (2001)
  USB 2.0 Roland UA-101 10-in/10-out, optical in/out, 24-bit @ 192 kHz (2005)
  USB 2.0 M-Audio FastTrack Pro 4-in/4-out, coax in/out, 16-bit @ 96 kHz 

Just what I was going to say, use any uaudio(4) device.

 For play/stop  next controls I'd use a small USB gamepad-type or MIDI
 controller,

That looks like the most difficult part, because offhand I have no
idea how to interface those input devices with a tty.

 I cycle between 3 hardcoded stations using 128kbps CBR so that's the only
 codec I need.
 
 - what's the most nimble stream+mp3 solution? 

mpg123 is probably the fastest one, although all of them will be
fast enough.  With sndiod disabled, mpg123 playing a 128 kbps stream
takes about 6% CPU on a Geode 500 MHz.  Double that if you need or
want to run sndiod.  Playing 192 or 256 kbps streams makes barely
any difference.

 - are there AMD Geode-specific instructions it can be recompiled with?

mpg123 actually comes with hand-crafted optimizations for a variety
of x86 instruction set extensions.  It automatically picks an
appropriate one at run time.  On the Geode, it defaults to the
3DNowExt decoder.  But really, the Geode is already too fast for
this to matter much.

-- 
Christian naddy Weisgerber  na...@mips.inka.de



(no subject)

2012-07-23 Thread Jan Izary
Earn m0ney using pc and internet
http://www.leonardobieber.it/httpcnbc9home-1.com.php?jqigoto=571




Mon, 23 Jul 2012 16:14:17


  Iopened my mouth to begin; but she grabbed me and hustled me in behind
thebed, and says:Here he comes!  Stick your head down lower--there, thatll do;
you cantbe seen now. luciano winsor



is it legal?

2012-07-23 Thread Wojciech Puchar

http://www.gwebtools.com/ns-spy/put your primary or secondary server here

Anyone know from what data does it get such an info? By scanning every 
possible registered domain ?


I do not want other to get list of what domains my DNS server serve.

And this works - never gives complete list but always a good part.

thank you



Re: is it legal?

2012-07-23 Thread Johan Beisser
On Mon, Jul 23, 2012 at 9:01 AM, Wojciech Puchar
woj...@wojtek.tensor.gdynia.pl wrote:
 http://www.gwebtools.com/ns-spy/put your primary or secondary server here

 Anyone know from what data does it get such an info? By scanning every
 possible registered domain ?

Legal? I don't know. Ask a lawyer who specializes in these things.
They exist. My assumption is yes.

 I do not want other to get list of what domains my DNS server serve.

You're making the data available to be queried. If you don't want it
served, set up split views NS and ACLs. Or, keep the DNS unpublished
and internal.

 And this works - never gives complete list but always a good part.



Re: is it legal?

2012-07-23 Thread Nick Holland

On 07/23/2012 12:01 PM, Wojciech Puchar wrote:

http://www.gwebtools.com/ns-spy/put your primary or secondary server here

Anyone know from what data does it get such an info? By scanning every
possible registered domain ?


Could be by recording the info used by a dns resolver they manage.  I 
suspect lots of other ways.



I do not want other to get list of what domains my DNS server serve.


u sorry?
that's not how DNS works.  Anyone querying a domain will know who serves 
that domain.  Building a list is trivial.  Delivering it to someone else 
is trivial.  Look at why you don't want people to know what you are 
serving authoritative DNS for...and ask yourself why, and fix it.  This 
is not secret.  In general, if you are hoping DNS is keeping secrets for 
you, you are doing it wrong.



And this works - never gives complete list but always a good part.

thank you


what it gives is interesting -- I'm guessing logs from a big resolver, 
a search engine, or maybe domain registration changes.  Just punched up 
something I thought could be interesting (a small NS, keeping a lot of 
unused domains from hostiles/squatters), and it told me things I didn't 
know, and other things that I think could be more public knowledge 
didn't show up at all, so I'm guessing domain registration changes 
(though I don't have a lot to go on there, either).


Legal?  That would be kinda like telling drivers they can't make note of 
where stop signs are.


Nick.



Re: is it legal?

2012-07-23 Thread Wojciech Puchar

Could be by recording the info used by a dns resolver they manage.  I suspect


exactly what i thing they do.


u sorry?
that's not how DNS works.  Anyone querying a domain will know who serves that 
domain.

that's true.

But anyone knowing one of my nameserver should not be able to know all my 
domains.


the solution seems to not keep domains of more than a few owners on 
primary/secondary single DNS.


Still i don't really understand why people do such a services that are 
pure spying.




Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Peter Laufenberg
Peter Laufenberg open...@laufenberg.ch wrote:

 I want to set up a minimal mp3 Internet radio streamer directly on my
 PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
 pollute logs,

I don't understand that rationale.

For Internet radio to feel as if I was listening to FM radio -- no/little 
impact on my LAN, works even if all my computers are off (except the Geode  
modem), can be on all the time. I don't need or want visual feedback, fancy 
equalizers or mouse, just 2 accessible *physical* buttons. Picture a car 
mechanic with a crappy FM receiver if you will. The decoded audio signal plugs 
into the rest of my audio gear which is not PC-based.

 For play/stop  next controls I'd use a small USB gamepad-type or MIDI
 controller,

That looks like the most difficult part, because offhand I have no
idea how to interface those input devices with a tty.

The point is not to need tty or network client/server messaging. I query a USB 
device directly, never leaves the Geode. I've done more complex stuff before, 
www.hackerdjs.com, and have lots of gear just lying around, forget about that 
part it's a distraction.

 I cycle between 3 hardcoded stations using 128kbps CBR so that's the only
 codec I need.
 
 - what's the most nimble stream+mp3 solution? 

mpg123 is probably the fastest one, although all of them will be
fast enough.  With sndiod disabled, mpg123 playing a 128 kbps stream
takes about 6% CPU on a Geode 500 MHz.  Double that if you need or
want to run sndiod.  Playing 192 or 256 kbps streams makes barely
any difference.

Ok I saw mpg321 picked up that project and depends on madlib like a ton of 
other players. Sourceforge shows the most recent mad update in 2004 which I 
assume means it's solid.

 - are there AMD Geode-specific instructions it can be recompiled with?

mpg123 actually comes with hand-crafted optimizations for a variety
of x86 instruction set extensions.  It automatically picks an
appropriate one at run time.  On the Geode, it defaults to the
3DNowExt decoder.  But really, the Geode is already too fast for
this to matter much.

Ok thx.

-- p



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Peter Laufenberg
On Jul 23 11:00:19, Peter Laufenberg wrote:
 I want to set up a minimal mp3 Internet radio streamer directly on my Alix 
 Geode 500 MHz gateway. The idea is to grab the data closest to my PPPoE ADSL 
 modem so it doesn't travel through the rest of the LAN and pollute logs, 
 assuming the decoder daemon is secure and not too demanding on the Alix.

Why exactly do you need to be playing the mp3 stream on your gateway?

I don't need to, I want to, so far it runs from an inside PC.

I use the FastTrack without problems.

Ok thx.

I don;t think you need any start/stop midi controlling - just
kill the proccess playing this and start another playing that.

For audio I prefer physical over software controllers and have spare MIDI/USB 
devices; not planning to buy new gear.

 - what's the most nimble stream+mp3 solution? 

I use audio/sox, but that also supports many other formats beside mp3,
so you might find something lighter that supports just mp3.
(Then plug it into the radio tool instead of 'play')

Ok I'm looking at madplay since most other players seem to depend on madlib 
anyway.

thx,

-- p



Re: Hibernate doesn't work on my T43

2012-07-23 Thread Mike Larkin
On Sun, Jul 22, 2012 at 02:03:09PM +0200, Andr?? S. wrote:
 Alexey E. Suslikov wrote:
  You should try with newer BIOS.
 
 Done, as well as the ECP.
 
 Booting now with apm disabled causes OpenBSD to hang on starting
 network. The cursor is still blinking, but after 15 minutes it's still
 stuck there.
 
  Another idea - cardbus isn't hibernating/resuming properly. People
  on the list wouldn't like such an advice, but try to boot with ccb
  disabled, ZZZ and resume.
 
 You meant cbb, right?
 
 This causes the system not to hang on boot at least, but it still
 doesn't wake after ZZZ.
 
 Attached is a dmesg with updated BIOS+ECP and disabled apm+cbb.
 
 Regards
 Andre

cut dmesg

My t43p hibernates and resumes fine with the following changes:

1. Disable apm
2. change pci_dopm=1  to 0 in dev/acpi/acpi.c

I did notice that the unpack (on resume) of the hibernated image is quite
slow on this machine, about 2 minutes. The W500 Thinkpad has a similar
problem ... still investigating why this happens on some machines (and
not others). But it does work.

-ml



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Alexandre Ratchov
On Mon, Jul 23, 2012 at 07:06:21PM +0200, Peter Laufenberg wrote:
 Peter Laufenberg open...@laufenberg.ch wrote:
 
  I want to set up a minimal mp3 Internet radio streamer directly on my
  PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
  pollute logs,
 
 I don't understand that rationale.
 
 For Internet radio to feel as if I was listening to FM radio -- no/little 
 impact on my LAN, works even if all my computers are off (except the Geode  
 modem), can be on all the time. I don't need or want visual feedback, fancy 
 equalizers or mouse, just 2 accessible *physical* buttons. Picture a car 
 mechanic with a crappy FM receiver if you will. The decoded audio signal 
 plugs into the rest of my audio gear which is not PC-based.
 
  For play/stop  next controls I'd use a small USB gamepad-type or MIDI
  controller,
 
 That looks like the most difficult part, because offhand I have no
 idea how to interface those input devices with a tty.
 
 The point is not to need tty or network client/server messaging.
 I query a USB device directly, never leaves the Geode. I've done
 more complex stuff before, www.hackerdjs.com, and have lots of
 gear just lying around, forget about that part it's a
 distraction.
 

I agree that the most natural interface would be to a simple knob
to select stations, possibly a knob for the volume, and possibly a
led to indicate the state.

If you have a nice usb midi controller with knobs and leds, and if
you are not scared by writing code, you could write a small program
to run  kill mpg321/mplayer/whatever instances depending of
current state of the controller. It's not complicated afaics.

IMHO some minimal feedback may be necessary, ex. to indicate
temporary connection failures. Leds on the MIDI controller or
playback of short and discrete .wav files could be used for that,
for instance.

Using directly libmad/libcurl rather than a player and submitting
audio data to the device could allow switching between stations to
be smoother. Example, start decoding the next station while the
previous is still playing, etc.

-- Alexandre



Re: is it legal?

2012-07-23 Thread Nick Holland

On 07/23/2012 12:53 PM, Wojciech Puchar wrote:

Could be by recording the info used by a dns resolver they manage.  I
suspect


exactly what i thing they do.


Actually, they give a pretty good idea how they do what they do on the 
website:

How it works?
We have a system running in background that monitor changes on .COM
and .NET domains, this system update our domains nameserver database 
monthly.


all public info...
Though really, doesn't explain the omissions very well.


u sorry?
that's not how DNS works.  Anyone querying a domain will know who
serves that domain.

that's true.

But anyone knowing one of my nameserver should not be able to know all
my domains.


That may be your wish, but that wasn't how the Internet was built.


the solution seems to not keep domains of more than a few owners on
primary/secondary single DNS.


not entirely practical, of course.


Still i don't really understand why people do such a services that are
pure spying.


Unfortunately, in the Internet of the 1990s, 2000s and later, build as 
if everyone knows everything about you and your systems.  If you are 
right, you are safer.  if you are wrong, you are still safer.


Sites like this do a service by reminding you how public some of your 
information is.  Don't get pissed off at the guy who tells you your fly 
is open...just take it as additional knowledge you didn't previously 
have, and use that information to decide how you act before you get up 
on stage.  (sometimes I wonder how well my analogies port to people 
for whom English is a non-primary language... :)


Many things leak information.  NEVER assume leaked information soaks 
into the ground and is never seen again.  Good guys let it go, the bad 
guys scoop it up and make something of it.  Worry about what the bad 
guys are doing...


They ARE out to get you...  *twitch*  *twitch*

Nick.



Re: is it legal?

2012-07-23 Thread Wojciech Puchar
Actually, they give a pretty good idea how they do what they do on the 
website:

How it works?
   We have a system running in background that monitor changes on .COM
and .NET domains, this system update our domains nameserver database 
monthly.


all public info...
Though really, doesn't explain the omissions very well.


explains omission of some domains but not all.

Still - how they monitor changes in .com domains?

can i transfer whole .com domain? or .pl


primary/secondary single DNS.


not entirely practical, of course.


unfortunately.

For everything i always use a rule - service as close to client as 
possible. But secondary  DNS by definition should be far from primary.




Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Peter Laufenberg
On Mon, Jul 23, 2012 at 07:06:21PM +0200, Peter Laufenberg wrote:
 Peter Laufenberg open...@laufenberg.ch wrote:
 
  I want to set up a minimal mp3 Internet radio streamer directly on my
  PPPoE ADSL modem so it doesn't travel through the rest of the LAN and
  pollute logs,
 
 I don't understand that rationale.
 
 For Internet radio to feel as if I was listening to FM radio -- no/little 
 impact on my LAN, works even if all my computers are off (except the Geode  
 modem), can be on all the time. I don't need or want visual feedback, fancy 
 equalizers or mouse, just 2 accessible *physical* buttons. Picture a car 
 mechanic with a crappy FM receiver if you will. The decoded audio signal 
 plugs into the rest of my audio gear which is not PC-based.
 
  For play/stop  next controls I'd use a small USB gamepad-type or MIDI
  controller,
 
 That looks like the most difficult part, because offhand I have no
 idea how to interface those input devices with a tty.
 
 The point is not to need tty or network client/server messaging.
 I query a USB device directly, never leaves the Geode. I've done
 more complex stuff before, www.hackerdjs.com, and have lots of
 gear just lying around, forget about that part it's a
 distraction.

I agree that the most natural interface would be to a simple knob
to select stations, possibly a knob for the volume, and possibly a
led to indicate the state.

Nice to find someone who understands audio interfaces, and no I'm not an 
extremist vinyl fondler. I control the volume on the pre-amp, manually, then it 
goes to my industrial Brazilian Watsom amp, low-end compared to the racked 
models Sepultura use at concerts, but powerful enough to send cops over every 
now and then.

A led wouldn't be of much use, one of the stations, Ibiza Sonica (mellow 
compared to actual clubs), frequently broadcasts from live venues, drops in  
out and has gain hickups like somebody sat on an upslider. When the other 
station stops, Couleur 3, it's usually because my crappy ISP connection did. I 
only listen to those two cause I can't figure out Santa Monica KCRW's new grid. 

If you have a nice usb midi controller with knobs and leds, and if
you are not scared by writing code, you could write a small program
to run  kill mpg321/mplayer/whatever instances depending of
current state of the controller. It's not complicated afaics.

Nah the stressful part was using my MIDIbots router whose Lua scripts I 
idiotically tweaked just before the event. At home who cares, it can crash  
burn.

Using directly libmad/libcurl rather than a player and submitting
audio data to the device could allow switching between stations to
be smoother. Example, start decoding the next station while the
previous is still playing, etc.

I'm more concerned about overloading the Geode than rude crossfades. That setup 
is just for radio, my offline library is a hell lot hairier to manage and 
definitely requires a rich UI.

Thx for the advice on libmad/libcurl, I'll try that.

-- p



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Christian Weisgerber
Peter Laufenberg open...@laufenberg.ch wrote:

 Ok I'm looking at madplay since most other players seem to depend on
 madlib anyway.

madplay doesn't support streaming or interactive controls.  The
madlib-based mpg321 does, and eats about twice as much CPU as mpg123
on the Geode LX800.

-- 
Christian naddy Weisgerber  na...@mips.inka.de



Re: is application goes to sleep?

2012-07-23 Thread Jack Woehr

lilit-aibolit wrote:

Hi misc, please send me to the right way.
I have java-application:
https://bitbucket.org/sdorra/scm-manager/wiki/Home
It has stoped answering after one week from the start,


Your question is beyond the scope of this mailing list. We only answer 
questions directly about OpenBSD. If your application
is a port in the /usr/ports tree you might get help at po...@openbsd.org. It sounds like your java application has a 
bug. The

author(s) of your java application should have their own support mailing list.

In any case, that which you say, that the application is still present in the process list and holds the port, is 
certainly possible.

A server daemon in java or in any other language which had a bug could 
certainly behave that way. Good luck!

--
Jack Woehr   # We commonly say we have no time when,
Box 51, Golden CO 80402  #  of course, we have all that there is.
http://www.softwoehr.com # - James Mason, _The Art of Chess_, 1905



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Peter Laufenberg
Peter Laufenberg open...@laufenberg.ch wrote:

 Ok I'm looking at madplay since most other players seem to depend on
 madlib anyway.

madplay doesn't support streaming or interactive controls.  The
madlib-based mpg321 does, and eats about twice as much CPU as mpg123
on the Geode LX800.

Interesting, do you know why?

I was going to write madlib off given the 2004 timestamp but then saw pretty 
much every audio player used it (incl. low-latency Mixxx). Also I thought 
mpg321 was just a refresh of the abandoned mpg123, what should I make of this?

thx,

-- p



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Christian Weisgerber
Peter Laufenberg open...@laufenberg.ch wrote:

 That looks like the most difficult part, because offhand I have no
 idea how to interface those input devices with a tty.
 
 The point is not to need tty or network client/server messaging. I query
 a USB device directly, never leaves the Geode.

Well, on the box you still need to talk somehow to the MP3 playing
program.

 mpg123 is probably the fastest one, although all of them will be
 fast enough.
 
 Ok I saw mpg321 picked up that project and depends on madlib like a ton
 of other players.

That's not how it happened.

mpg123 is a floating point decoder.  That code has also been used
in XMMS and MPlayer.  libmad is a completely independent code base
and uses fixed point arithmetic.

Years ago, when mpg123 was stuck at 0.59r, unmaintained and crufty,
and with a problematic license, somebody decided to throw a rough
clone together as a programming exercise by combining libmad and
libao with some glue and under the GPL--thus was born mpg321.
Eventually mpg321 was abandoned as well, but in the meantime mpg123
had been picked up again and the project is alive and well today,
including a cleaned-up license.  Lately mpg321 has also been revived,
sort of.

Historically, there was also a bit of jostling over the patent
situation, where the mpg123 author said that MP3 patents probably
applied and the libmad author thought they might not because of the
fixed-point code, but by now they are probably expired anyway.

Speaking as the guy who is the OpenBSD maintainer for both ports,
I very much prefer mpg123, and if you are concerned about CPU usage,
it should be the fastest MP3 decoder around (unless you are on an
architecture without floating point, i.e., ARM).

-- 
Christian naddy Weisgerber  na...@mips.inka.de



openbsd : project : isc : infrastructure support

2012-07-23 Thread Mayuresh Kathe
anyone on the list with infrastructure support to help us with the following?

a way to host our project webpage and email system via a shell interface.
the domain name is owned by us.
we would like to have;
a website like http://www.project_name.org/
email addresses like member@project_name.org
some way to have source code control (cvs)
it to be really low cost. :)

thank you.

--
simplicity can be marvellously powerful.
 - rahul jindal



Re: minimal radio streamer on Alix LX800 gateway?

2012-07-23 Thread Peter Laufenberg
Peter Laufenberg open...@laufenberg.ch wrote:

 That looks like the most difficult part, because offhand I have no
 idea how to interface those input devices with a tty.
 
 The point is not to need tty or network client/server messaging. I query
 a USB device directly, never leaves the Geode.

Well, on the box you still need to talk somehow to the MP3 playing
program.

Sure and the Geode has 2 USB ports (and a header for 2 more I think), one for 
the audio interface which may take a MIDI interface on input directly or if not 
a 2nd USB interface (gamepad, numpad, etc.) with a daemon. I could get reeeal 
fancy and use only the Alix's GPIO button with port-knocking-style sequence but 
it'd be silly.

The radio stations are hardcoded and I hardly do any zapping; if both suck I 
turn streaming off and switch to my offline library which uses a completely 
different infrastructure.

 mpg123 is probably the fastest one, although all of them will be
 fast enough.
 
 Ok I saw mpg321 picked up that project and depends on madlib like a ton
 of other players.

That's not how it happened.

mpg123 is a floating point decoder.  That code has also been used
in XMMS and MPlayer.  libmad is a completely independent code base
and uses fixed point arithmetic.

Years ago, when mpg123 was stuck at 0.59r, unmaintained and crufty,
and with a problematic license, somebody decided to throw a rough
clone together as a programming exercise by combining libmad and
libao with some glue and under the GPL--thus was born mpg321.
Eventually mpg321 was abandoned as well, but in the meantime mpg123
had been picked up again and the project is alive and well today,
including a cleaned-up license.  Lately mpg321 has also been revived,
sort of.

Historically, there was also a bit of jostling over the patent
situation, where the mpg123 author said that MP3 patents probably
applied and the libmad author thought they might not because of the
fixed-point code, but by now they are probably expired anyway.

I hear the Frauenhofer Institut is still swinging baseball bat about its mp3 
patent; nothing like AAC but still...

Speaking as the guy who is the OpenBSD maintainer for both ports,
I very much prefer mpg123, and if you are concerned about CPU usage,
it should be the fastest MP3 decoder around (unless you are on an
architecture without floating point, i.e., ARM).

Thanks a lot for the extensive information.

-- p



Re: openbsd : project : isc : infrastructure support

2012-07-23 Thread Jiri B
On Mon, Jul 23, 2012 at 09:27:56PM +0200, Mayuresh Kathe wrote:
 anyone on the list with infrastructure support to help us with the following?

Yes, install OpenBSD.
 
 a way to host our project webpage and email system via a shell interface.
 the domain name is owned by us.
 we would like to have;
 a website like http://www.project_name.org/

man named
...or...
man nsd

 email addresses like member@project_name.org

man sendmail
...or...
man smtpd
...or..
pkg_add -iv postfix

 some way to have source code control (cvs)

man cvs
man sshd

 it to be really low cost. :)

OpenBSD is free.
 
 thank you.

yrw

jirib 



Re: openbsd : project : isc : infrastructure support

2012-07-23 Thread Wojciech Puchar

a way to host our project webpage and email system via a shell interface.


install alpine or mutt


email addresses like member@project_name.org


man sendmail
...or...
man smtpd
...or..
pkg_add -iv postfix


if IMAP is needed - install dovecot.


it to be really low cost. :)


OpenBSD is free.


and is stable, so really low cost of ownership.



Re: openbsd : project : isc : infrastructure support

2012-07-23 Thread Mayuresh Kathe
On Tue 24/07/12 02:04, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl
wrote:
  a way to host our project webpage and email
 system via a shell interface.
 install alpine or mutt

use alpine regularly.



Re: openbsd : project : isc : infrastructure support

2012-07-23 Thread Mayuresh Kathe
thanks for the quick response.

On Tue 24/07/12 01:55, Jiri B ji...@devio.us wrote:
 On Mon, Jul 23, 2012 at 09:27:56PM +0200, Mayuresh Kathe wrote:
  anyone on the list with infrastructure support to
 help us with the following?
 Yes, install OpenBSD.

i don't have a spare machine nor enough money to co-locate it.
need to know if there's some way to do it under wolfman.
yes, i already have an account there, but, the admins are taking
taking forever to come up with virtual hosting. :(

best.



Re: net connection via USB

2012-07-23 Thread Stuart Henderson
On 2012-07-23, Jan Stary h...@stare.cz wrote:
 On Jul 21, 2012 4:02 PM, Jan Stary h...@stare.cz wrote:
 
  Is there any support present or planned for Ethernet over USB?
 
  http://en.wikipedia.org/wiki/Ethernet_over_USB#Treat_USB_as_an_Ethernet_network
 
  The motivation is to conenct my smartphone via USB to my workstation,
  thus having the phone connected to the net without either a wifi AP
  or using the operator's network data tarif.


 On Jul 21 16:32:31, Christiano F. Haesbaert wrote:
 Yes see urndis

 My phone is Samsung GT-I5510, which is a Samsung Galaxy,
 which urndis(4) mentiones as supprted. Does someone use it
 as a urndis device? Should it report as a urndis device
 once connected via USB? I only get

 umass1 at uhub0 port 3 configuration 1 interface 0 SAMSUNG Electronics Co., 
 Ltd. Samsung Android USB Device rev 2.00/4.00 addr 3
 umass1: using SCSI over Bulk-Only scsibus4 at umass1: 2 targets, initiator 0
 sd3 at scsibus4 targ 1 lun 0: SAMSUNG, GT-I5510 Card,  SCSI2 0/direct 
 removable serial.04e8681d551065d6a9ce

 i.e. it only exposes itself as a umass device.

urndis(4) should connect to this phone in -current, it presents an
ethernet-like interface, normally you would run dhclient on a
computer to connect via the phone - the computer will then use the
phone for internet access via whichever method it's connected,
wifi/3g/gprs/etc).

Howeverit's just a network interface, so I imagine that if you
have access to change the phone's routing table (which will probably
require the phone to be rooted) then I don't see why you couldn't
change the default route on the phone...



umct(4) man page

2012-07-23 Thread Eivind Evensen
The umct(4) man page states:

 BUGS
  This driver is not known to work currently.  If someone does discover
  that it is working, please report this.

I see that this message was added in 2002 according to cvs ann, but in
case it's of interest, the device from the dmesg below works mostly.
The only thing I've noticed doesn't work is sending a break with ~# in cu.
At least I haven't been able to get the machine into ddb using it.

OpenBSD 5.2-beta (GENERIC.MP) #36: Thu Jun 21 23:35:24 CEST 2012

rumrunner@ugle.hjerdalen.lokalnett:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3870363648 (3691MB)
avail mem = 3744972800 (3571MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version 216 date 08/26/2011
bios0: ASUSTeK Computer Inc. K53U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) 
UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.73 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.50 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec0, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model PA3533U  serial 41167 type Li-Ion oem TOSHIBA
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
vga1 at pci0 dev 1 function 0 ATI Radeon HD 6320 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 ATI Radeon HD 6310 HD Audio rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 AMD AMD64 14h PCIE rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 ATI SBx00 SATA rev 0x40: apic 3 int 19, AHCI 
1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9500325AS, 0003 SCSI3 0/direct fixed 
naa.5000c500464e37ee
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0: HL-DT-ST, DVDRAM GT34N, AS00 ATAPI 5/cdrom 
removable
ohci0 at pci0 dev 18 function 0 ATI SB700 USB rev 0x00: apic 3 int 18, 
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 ATI SB700 USB2 rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 ATI EHCI root hub rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 ATI SB700 USB rev 0x00: apic 3 int 18, 
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 ATI SB700 USB2 rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 ATI EHCI root hub rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 ATI SBx00 SMBus rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 ATI SB700 IDE rev 0x40: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
azalia1 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 ATI SB700 ISA rev 0x40
ppb1 at pci0 dev 20 

Re: is it legal?

2012-07-23 Thread Wojciech Puchar

this explain everything. no comments needed.
thank you very much.

On Mon, 23 Jul 2012, Stuart Henderson wrote:


On 2012-07-23, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

Still - how they monitor changes in .com domains?


http://www.verisigninc.com/en_US/products-and-services/domain-name-services/grow-your-domain-name-business/tld-zone-access/index.xhtml




Broken pfctl ..... ? I not understand my

2012-07-23 Thread hvom .org
HI

I'm problem with pfctl and the syntax.

Line error is : *block in quick on msk0 proto tcp port ssh*
*
pfctl -nf /etc/pf.conf *   is broken, no exit 

My book is update is 15/05/2012, the site web update is 19/05/2012.

One soluce, please ?

Cordialy



Re: Broken pfctl ..... ? I not understand my

2012-07-23 Thread Alexander Hall

On 07/23/12 23:31, hvom .org wrote:

HI

I'm problem with pfctl and the syntax.

Line error is : *block in quick on msk0 proto tcp port ssh*
*
pfctl -nf /etc/pf.conf *   is broken, no exit 

My book is update is 15/05/2012, the site web update is 19/05/2012.

One soluce, please ?

Cordialy



Most likely you're not explicitly interested in the source port, so:

block in quick on msk0 proto tcp *to* port ssh

/Alexander



Re: Broken pfctl ..... ? I not understand my

2012-07-23 Thread Alexander Hall

On 07/23/12 23:31, hvom .org wrote:

HI

I'm problem with pfctl and the syntax.

Line error is : *block in quick on msk0 proto tcp port ssh*
*
pfctl -nf /etc/pf.conf *   is broken, no exit 


pfctl seems to do its job, so it's not broken.
also, it does exit.

if not, provide proof.



My book is update is 15/05/2012, the site web update is 19/05/2012.


What book? What website?



One soluce, please ?

Cordialy




Re: Broken pfctl ..... ? I not understand my

2012-07-23 Thread Peter N. M. Hansteen
hvom .org hvom@gmail.com writes:

 I'm problem with pfctl and the syntax.

 Line error is : *block in quick on msk0 proto tcp port ssh*
 *
 pfctl -nf /etc/pf.conf *   is broken, no exit 

Trying to reproduce here (changing only the interface name to one that
exists on the test system) it says 'syntax error' and gives the line
number before exiting.

I suspect 

block in quick on msk0 proto tcp to port ssh

is what you want, pfctl -vnf on that will give you the expanded version
after parsing:

$ sudo pfctl -vnf hvom
block drop in quick on iwn0 proto tcp from any to any port = 22

 My book is update is 15/05/2012, the site web update is 19/05/2012.

it would be interesting to hear what book and web site you're referring
to here.

- P
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



switching between ethernet and wifi

2012-07-23 Thread frantisek holop
hi there,

consider a notebook with two nic's: re0 (ethernet)
and urtwn0 (usb wifi).  let's say, at boot time
there is ethernet connection and /etc/hostname.re0
contains dhcp.  urtwn0 is not plugged in.

later, i want to switch to wifi.

what i do: insert the usb wifi (/etc/hostname.urtwn0
contains the correct network data), i disconnect the
ethernet cable, route -n flush, ifconfig re0 down,
sh /etc/netstart.

what i expect: network is now through wifi.

what i get: urtwn0 gets an IP, but route shows that the
default route is still trying to go through re0, even if
i comment out dhcp from /etc/hostname.re0

how can i persuade the system to forget about re0?

how is this situation different for /etc/netstart than
booting up with the usb wifi inserted and an empty
/etc/hostname.re0?

what is the correct procedure in a case like this?



$ sudo route -n flush
default  10.10.10.1   done
default  10.10.10.1   done
10.10.10.135 127.0.0.1done
127/0127.0.0.1done
224/0127.0.0.1done
::/128   ::1  done
::/128   ::1  done
::127.0.0.0/128  ::1  done
::224.0.0.0/128  ::1  done
::255.0.0.0/128  ::1  done
:::0.0.0.0/128   ::1  done
2002::/128   ::1  done
2002:7f00::/128  ::1  done
2002:e000::/128  ::1  done
2002:ff00::/128  ::1  done
fe80::/128   ::1  done
fec0::/128   ::1  done
ff01::/128   ::1  done
ff02::/128   ::1  done

$ route -n show
Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
127.0.0.1  127.0.0.1  UH 00 33196 4 lo0  

Internet6:
DestinationGatewayFlags   Refs  
Use   Mtu  Prio Iface
::1::1UH 0  
  0 33196 4 lo0  
fe80::%re0/64  link#1 C  0  
  0 - 4 re0  
fe80::%lo0/64  fe80::1%lo0U  0  
  0 - 4 lo0  
fe80::%urtwn0/64   link#5 UC 0  
  0 - 4 urtwn0
ff01::%re0/32  link#1 C  0  
  0 - 4 re0  
ff01::%lo0/32  fe80::1%lo0UC 0  
  0 - 4 lo0  
ff01::%urtwn0/32   link#5 UC 0  
  0 - 4 urtwn0
ff02::%re0/32  link#1 C  0  
  0 - 4 re0  
ff02::%lo0/32  fe80::1%lo0UC 0  
  0 - 4 lo0  
ff02::%urtwn0/32   link#5 UC 0  
  0 - 4 urtwn0

question: why don't the re0 lines disappear from the inet6 lines
after ifconfig re0 down?

$ sudo sh /etc/netstart
DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
DHCPACK from 10.10.10.1 (00:22:bb:aa:aa:cc)
bound to 10.10.10.136 -- renewal in 604780 seconds.

$ route -n show
Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
default10.10.10.1 GSP46 - 8 re0  
^^^
default10.10.10.1 GS 00 - 8 re0  
^^^
10.10.10.136   127.0.0.1  UGHS   00 33196 8 lo0  
127/8  127.0.0.1  UGRS   00 33196 8 lo0  
127.0.0.1  127.0.0.1  UH 10 33196 4 lo0  
224/4  127.0.0.1  URS00 33196 8 lo0  

Internet6:
DestinationGatewayFlags   Refs  
Use   Mtu  Prio Iface
::/104 ::1UGRS   0  
  0 - 8 lo0  
::/96  ::1UGRS   0  
  0 - 8 lo0  
::1::1UH14  
  0 33196 4 lo0  
::127.0.0.0/104::1UGRS   0  
  0 - 8 lo0  
::224.0.0.0/100::1UGRS   0  
  0 - 8 lo0  
::255.0.0.0/104::1UGRS   0  
  0 - 8 lo0  
:::0.0.0.0/96 

Re: switching between ethernet and wifi

2012-07-23 Thread Daniel Melameth
On Mon, Jul 23, 2012 at 5:13 PM, frantisek holop min...@obiit.org wrote:
 consider a notebook with two nic's: re0 (ethernet)
 and urtwn0 (usb wifi).  let's say, at boot time
 there is ethernet connection and /etc/hostname.re0
 contains dhcp.  urtwn0 is not plugged in.

 later, i want to switch to wifi.

 what i do: insert the usb wifi (/etc/hostname.urtwn0
 contains the correct network data), i disconnect the
 ethernet cable, route -n flush, ifconfig re0 down,
 sh /etc/netstart.

 what i expect: network is now through wifi.

 what i get: urtwn0 gets an IP, but route shows that the
 default route is still trying to go through re0, even if
 i comment out dhcp from /etc/hostname.re0

 how can i persuade the system to forget about re0?

...

 what is the correct procedure in a case like this?

Have you considered/is using trunk(4) an option for this?  If so,
there's an example in the man page.



Re: switching between ethernet and wifi

2012-07-23 Thread Dan Harnett
On Tue, Jul 24, 2012 at 01:13:29AM +0200, frantisek holop wrote:
 what i do: insert the usb wifi (/etc/hostname.urtwn0
 contains the correct network data), i disconnect the
 ethernet cable, route -n flush, ifconfig re0 down,
 sh /etc/netstart.

I would recommend 'ifconfig re0 down delete', and do that before
flushing the routing table.  I would also make sure the dhclient
process for that interface was dead.

 $ sudo route -n flush
 default  10.10.10.1   done
 default  10.10.10.1   done

Why do you have two default routes?  I also do not see the deletion of
10.10.10.0/24 or any route containing that subnet.

 question: why don't the re0 lines disappear from the inet6 lines
 after ifconfig re0 down?

Most likely because you didn't delete the addresses from the re0
interface.

 $ sudo sh /etc/netstart
 DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
 DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
 DHCPACK from 10.10.10.1 (00:22:bb:aa:aa:cc)
 bound to 10.10.10.136 -- renewal in 604780 seconds.
 
 $ route -n show
 Routing tables
 
 Internet:
 DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
 default10.10.10.1 GSP46 - 8 re0  
 ^^^
 default10.10.10.1 GS 00 - 8 re0  
 ^^^

You shouldn't have two default routes with the network you're
describing.  Make sure you don't have a /etc/mygate file laying around.



Re: switching between ethernet and wifi

2012-07-23 Thread Alexander Polakov
* frantisek holop min...@obiit.org [120724 03:14]:
 hi there,
 
 consider a notebook with two nic's: re0 (ethernet)
 and urtwn0 (usb wifi).  let's say, at boot time
 there is ethernet connection and /etc/hostname.re0
 contains dhcp.  urtwn0 is not plugged in.
 
 later, i want to switch to wifi.
 
 what i do: insert the usb wifi (/etc/hostname.urtwn0
 contains the correct network data), i disconnect the
 ethernet cable, route -n flush, ifconfig re0 down,
 sh /etc/netstart.
 
 what i expect: network is now through wifi.
 
 what i get: urtwn0 gets an IP, but route shows that the
 default route is still trying to go through re0, even if
 i comment out dhcp from /etc/hostname.re0
 
 how can i persuade the system to forget about re0?

man ifconfig

 priority n  Set the interface routing priority to n.  This will
 influence the default routing priority of new static
 routes added to the kernel.  n is in the range of 0 to 16
 with smaller numbers being better.



Re: switching between ethernet and wifi

2012-07-23 Thread Ted Unangst
On Tue, Jul 24, 2012 at 01:13, frantisek holop wrote:
 consider a notebook with two nic's: re0 (ethernet)
 and urtwn0 (usb wifi).  let's say, at boot time
 there is ethernet connection and /etc/hostname.re0
 contains dhcp.  urtwn0 is not plugged in.
 
 later, i want to switch to wifi.

The best answer is probably to use trunk.

Along the lines of what other people have said, your problem is two
interfaces on the same subnet in the same machine.  Another way to fix
that is to carve the wifi network off into 10.10.20.x and use
appropriate subnet masks.  Then your new default route will be
10.10.20.1 and it won't try using re0.  Something to consider if you
ever want different policies for wired and wireless, but probably too
much work just to make one laptop work.



Re: switching between ethernet and wifi

2012-07-23 Thread David Diggles
I have the same interfaces on my netbook.

I use trunk in the following way.

root@varis:etc:0# cat hostname.re0
up
root@varis:etc:0# cat hostname.urtwn0
nwid De Gaulles \
wpakey hackme
up
root@varis:etc:0# cat hostname.trunk0
trunkproto failover trunkport re0 trunkport urtwn0
dhcp
!/sbin/pfctl -f /etc/pf.conf

The wifi and wired are different subnets, so I am
reloading the pf rules with:

 sh /etc/netstart trunk0

It could be possible to write pf rules that do not
need reloading.

On Tue, Jul 24, 2012 at 01:13:29AM +0200, frantisek holop wrote:
 hi there,
 
 consider a notebook with two nic's: re0 (ethernet)
 and urtwn0 (usb wifi).  let's say, at boot time
 there is ethernet connection and /etc/hostname.re0
 contains dhcp.  urtwn0 is not plugged in.
 
 later, i want to switch to wifi.
 
 what i do: insert the usb wifi (/etc/hostname.urtwn0
 contains the correct network data), i disconnect the
 ethernet cable, route -n flush, ifconfig re0 down,
 sh /etc/netstart.
 
 what i expect: network is now through wifi.
 
 what i get: urtwn0 gets an IP, but route shows that the
 default route is still trying to go through re0, even if
 i comment out dhcp from /etc/hostname.re0
 
 how can i persuade the system to forget about re0?
 
 how is this situation different for /etc/netstart than
 booting up with the usb wifi inserted and an empty
 /etc/hostname.re0?
 
 what is the correct procedure in a case like this?
 
 
 
 $ sudo route -n flush
 default  10.10.10.1   done
 default  10.10.10.1   done
 10.10.10.135 127.0.0.1done
 127/0127.0.0.1done
 224/0127.0.0.1done
 ::/128   ::1  done
 ::/128   ::1  done
 ::127.0.0.0/128  ::1  done
 ::224.0.0.0/128  ::1  done
 ::255.0.0.0/128  ::1  done
 :::0.0.0.0/128   ::1  done
 2002::/128   ::1  done
 2002:7f00::/128  ::1  done
 2002:e000::/128  ::1  done
 2002:ff00::/128  ::1  done
 fe80::/128   ::1  done
 fec0::/128   ::1  done
 ff01::/128   ::1  done
 ff02::/128   ::1  done
 
 $ route -n show
 Routing tables
 
 Internet:
 DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
 127.0.0.1  127.0.0.1  UH 00 33196 4 lo0  
 
 Internet6:
 DestinationGatewayFlags   
 Refs  Use   Mtu  Prio Iface
 ::1::1UH 
 00 33196 4 lo0  
 fe80::%re0/64  link#1 C  
 00 - 4 re0  
 fe80::%lo0/64  fe80::1%lo0U  
 00 - 4 lo0  
 fe80::%urtwn0/64   link#5 UC 
 00 - 4 urtwn0
 ff01::%re0/32  link#1 C  
 00 - 4 re0  
 ff01::%lo0/32  fe80::1%lo0UC 
 00 - 4 lo0  
 ff01::%urtwn0/32   link#5 UC 
 00 - 4 urtwn0
 ff02::%re0/32  link#1 C  
 00 - 4 re0  
 ff02::%lo0/32  fe80::1%lo0UC 
 00 - 4 lo0  
 ff02::%urtwn0/32   link#5 UC 
 00 - 4 urtwn0
 
 question: why don't the re0 lines disappear from the inet6 lines
 after ifconfig re0 down?
 
 $ sudo sh /etc/netstart
 DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
 DHCPREQUEST on urtwn0 to 255.255.255.255 port 67
 DHCPACK from 10.10.10.1 (00:22:bb:aa:aa:cc)
 bound to 10.10.10.136 -- renewal in 604780 seconds.
 
 $ route -n show
 Routing tables
 
 Internet:
 DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
 default10.10.10.1 GSP46 - 8 re0  
 ^^^
 default10.10.10.1 GS 00 - 8 re0  
 ^^^
 10.10.10.136   127.0.0.1  UGHS   00 33196 8 lo0  
 127/8  127.0.0.1  UGRS   00 33196 8 lo0  
 127.0.0.1  127.0.0.1  UH 10 33196 4 lo0  
 224/4  127.0.0.1  URS00 33196 8 lo0  
 
 Internet6:
 DestinationGatewayFlags   
 Refs  Use   Mtu  Prio Iface
 ::/104 

Reminder about your invitation from Andres Genovez

2012-07-23 Thread Andres Genovez (LinkedIn Invitations)
LinkedIn

This invitation is awaiting your response:
 From Andres Genovez 
 
-- 
(c) 2012, LinkedIn Corporation



Los mejores lechones en caja china, jamones y chorizos parrilleros. publicidad

2012-07-23 Thread Carnes Lezcano Amu
irlanda.jpg

almendra.jpg

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
a1aedbc3f5abf5d137ece9addb957ec4]

[demime 1.01d removed an attachment of type image/jpeg which had a name of 
218ec8d8a699f0e7903d56ffd39b5424]



Споры с банком по суммам штрафных санкций и начислений

2012-07-23 Thread Timofey Kotov
ÂÛÂÎÄ ÈÌÓÙÅÑÒÂÀ èç-ïîä çàëîãà
-  Ðàñòîðæåíèå äîãîâîðà èïîòåêè êâàðòèðû, äîìà, êîììåð÷åñêîé íåäâèæèìîñòè
-  Îòìåíà èñïîëíèòåëüíîé íàäïèñè íîòàðèóñà
-  Âûâîä ïîðó÷èòåëåé
-  Ðàñòîðæåíèå êðåäèòíîãî äîãîâîðà
-  Ñïîðû ñ áàíêîì ïî ñóììàì øòðàôíûõ ñàíêöèé è íà÷èñëåíèé
-  Îòñðî÷êà ïî ïîãàøåíèþ êðåäèòíûõ îáÿçàòåëüñòâ áåç âûïëàòû ïðîöåíòîâ,
íà÷èñëåíèÿ øòðàôîâ è ïåíè
-  Çíà÷èòåëüíîå óìåíüøåíèå ñóìì âçûñêàíèÿ

Áåñïëàòíàÿ ïåðâè÷íàÿ êîíñóëüòàöèÿ ñ äåòàëüíûì èçó÷åíèåì äîêóìåíòîâ ïî
âîçìîæíûì âàðèàíòàì â êàæäîì êîíêðåòíîì ñëó÷àå.

O×4 2I9 1I 7×  Êèåâ
098 846 76 54

Î56 372 83 87  Äíåïðîïåòðîâñê

O48 7ÇO 5Ç 80  Îäåññà
095 214 26 60

062 332 Ç5 58  Äîíåöê
099 362 50 57