how to enable screen saver on laptop ?

2015-04-12 Thread Ton Muller
good morning every1.
i have a small isue here, i am using a Asus A6000 laptop as routering
machine (yesterday reinstalled fresh)
bcouse i dont want to open and close all the time i want to get openbsd
tell to enable screensaver mode (disabling the screen for saving the lcd)

so copied from /etc/examples the wsconsctl.conf in /etc and edit the
display.vblank=on, after a reboot, it only blanked it, but not disabled
the lcd at all.

so i tried display.screen_off=6 (1 minute) after a reboot i waited.
but again, it only blanked.

my question, what do i need to do to realy disable the lcd completly.

Thnxs.
Tony.



Re: Screwed up copying partition to another disk

2015-04-12 Thread Kenneth Gober
On Fri, Apr 10, 2015 at 1:00 PM, Chris Bennett 
chrisbenn...@bennettconstruction.us wrote:

 Works fine, except I overlooked mounting /DST on first try, so
 everything ended up in / until full. I also started deleting those files
 until I realized I was in /SRC and Ctrl C it.
 Now I have a problem, I have
 /dev/sd0a 1005M   1005M  -50.1M   105%   /

 I cannot find those files (would really like to have them).


if you cannot find the files that are making /dev/sd0a so full, I am
guessing you remembered later to mount /DST.

try unmounting /DST, then cd /DST and you should see your files.

when you mount a filesystem on a directory, the previous contents of the
directory become inaccessible.
in order to access those files/subdirectories you need to unmount the
filesystem that is covering them up.

-ken



Re: Screwed up copying partition to another disk

2015-04-12 Thread Chris Bennett
On Sun, Apr 12, 2015 at 11:24:46AM -0400, Kenneth Gober wrote:
 On Fri, Apr 10, 2015 at 1:00 PM, Chris Bennett 
 chrisbenn...@bennettconstruction.us wrote:
 
  Works fine, except I overlooked mounting /DST on first try, so
  everything ended up in / until full. I also started deleting those files
  until I realized I was in /SRC and Ctrl C it.
  Now I have a problem, I have
  /dev/sd0a 1005M   1005M  -50.1M   105%   /
 
  I cannot find those files (would really like to have them).
 
 
 if you cannot find the files that are making /dev/sd0a so full, I am
 guessing you remembered later to mount /DST.
 
 try unmounting /DST, then cd /DST and you should see your files.
 
 when you mount a filesystem on a directory, the previous contents of the
 directory become inaccessible.
 in order to access those files/subdirectories you need to unmount the
 filesystem that is covering them up.
 
 -ken
 


Yes, I was able to find the files and move them where they needed to go.
Of course, with my second mistake with rm -r, which luckily I quickly
realized before erasing too much, I still lost some files from /SRC, but
other than that, problem is now solved.

From another recent thread, I am never going to use tar for this,
dump/restore seems to be the best way.

Chris



Re: my experience with openbsdstore.com

2015-04-12 Thread Jason Adams
On 04/11/2015 06:01 AM, IMAP List Administration wrote:
 The trouble began immediately. I chose electronic wire transfer as the payment
 method, 

Its not 1929 any more. I'm utterly suprised the store still offers wire 
transfer.

In my day job, we refuse wire transfers.  We would rather lose a customer than 
deal
with it unless the invoice is several thousand dollars.  Its too much work (on 
both ends)
and one never gets the invoice amount, as the banks charge fees on both ends.

What should have been an automated order now requites human intervention on
both ends, plus any transcription error along the way sends your money to 
no-man's land.

Even the store's handling of PayPal is obsolete, requiring two steps, and 
manual matching
of orders to payments.

There are a dozen other payment methods that could be used on the store, but it 
seems
hopelessly stuck in 1996.

-- 
Those who do not understand Unix are condemned to reinvent it, poorly.



Re: my experience with openbsdstore.com

2015-04-12 Thread Theo de Raadt
 2015-04-12 20:12 GMT+02:00 Jason Adams adams...@gmail.com:
  On 04/11/2015 06:01 AM, IMAP List Administration wrote:
  The trouble began immediately. I chose electronic wire transfer as the 
  payment
  method,
 
  Its not 1929 any more. I'm utterly suprised the store still offers
  wire transfer.
 
 Not everyone lives in a country that still believes mailing paper
 scraps is the best way to transfer money.
 
 In Europe electronic transfer is the norm. It's fast and cheap (note:
 In the EU an electronic transfer in Euros across countries MAY NOT
 cost more than a national transfer - which often is free. And if one
 party is in a non-Euro country (like the UK) no exchange cost will be
 added).
 
 https://en.wikipedia.org/wiki/Wire_transfer#Regulation_and_price

I am always happy to have bankers on our list, people who can make
sure we know when we are being screwed, I guess that is the class of
people.

I wonder if this is the right moment for me to mention my experiences
with moving money in Argentina when I was a tourist there during the
economic problems, more than a decade ago.

I wonder if my story or insight is relevant in any way; I also wonder
if my commentary on this list -- and yours -- will have any impact on
the way banking and commerce works.



Re: my experience with openbsdstore.com

2015-04-12 Thread Martin Schröder
2015-04-12 20:12 GMT+02:00 Jason Adams adams...@gmail.com:
 On 04/11/2015 06:01 AM, IMAP List Administration wrote:
 The trouble began immediately. I chose electronic wire transfer as the 
 payment
 method,

 Its not 1929 any more. I'm utterly suprised the store still offers
 wire transfer.

Not everyone lives in a country that still believes mailing paper
scraps is the best way to transfer money.

In Europe electronic transfer is the norm. It's fast and cheap (note:
In the EU an electronic transfer in Euros across countries MAY NOT
cost more than a national transfer - which often is free. And if one
party is in a non-Euro country (like the UK) no exchange cost will be
added).

https://en.wikipedia.org/wiki/Wire_transfer#Regulation_and_price

Best
   Martin



Re: fax capable UMTS sticks [Was: Re: Question on Serial Ports]

2015-04-12 Thread hruodr
On Thu, 9 Apr 2015, Marcus MERIGHI mcmer-open...@tor.at wrote:

 Sorry, no. But I can confirm failure. Are you sure AT+GCAP is the
 right command? I'd be interested in such a fax-capable device as well...

+GCAP is a standard command to ask capabilities, see for example:

http://www.itu.int/rec/T-REC-V.250-200106-I!Sup1/en

And my Sony Ericsson GM29 is capable of Fax Class 1 and 2. With google
you find a description of it under GM29 Integrators Manual. Such
descriptions of UMTS Sticks are difficult to find, this is why I asked.

Your sticks answer +FCLASS: (0-1) to AT+FCLASS=?. They seem to
support class 1 fax, even if they do not answer to +GCAP. Perhaps
one have to try to send a fax with them. But there is another problem: the
mobile telephone provider must support GSM Fax, and the sellers of 
pre paid sim cards do not know what this means. I am still trying to
find the right provider.

In any case, the question has less to do with OpenBSD, but a short
positive answer of someone that had success will perhaps not disturb too much.

Rodrigo.



Trouble getting PPPoE working, any ideas?

2015-04-12 Thread Adam Van Ymeren
I've been trying to replace my ISP provided router with an OpenBSD 5.6
system, but I can't get PPPoE working.  Using the userspace pppd
daemon on a linux machine appears to work, but no luck using pppoe(4).

I did some debugging using wireshark, and for some reason
when my OpenBSD system sends the very first PPP discovery packet, it
receives no response.  I can't find any meaningful difference between
the packet that OpenBSD is sending and the packet that my linux machine
is sending.

As reported by wireshark, the successful packet from linux is describe
below.  My ISP decided that the internet service needs to be under a
VLAN with id 35.

Length: 36-bytes
Ethernet II, Src: 00:b5:6d:03:b8:9a, Dst: ff:ff:ff:ff:ff:ff
802.1Q Virtual Lan, PRI: 0, CFI: 0, ID: 35
  Type: PPPoE Discovery (0x8863)
PPPoE Discovery:
  Version: 1
  Type: 1
  Code: Active Discovery Initiation (PADI) (0x09)
  Session ID: 0x
  Payload Length: 12
  PPPoE Tags:
Host-Uniq: bf0f

Raw hex:

   ff ff ff ff ff ff 00 b5 6d 03 b8 9a 81 00 00 23
0010   88 63 11 09 00 00 00 0c 01 01 00 00 01 03 00 04
0020   bf 0f 00 00

The unsuccessful packet from my OpenBSD machine looks like this

Length: 64-bytes
Ethernet II, Src: 00:0d:b9:35:ac:Dc Dst: ff:ff:ff:ff:ff:ff
802.1Q Virtual LAN, PRI: 3, CFI: 0, ID: 35
  Type: PPPoE Discovery (0x8863)
PPPoE Discovery
  Version: 1
  Type: 1
  Code: Active Discovery Initiation (PADI) (0x09)
  Session Id: 0x
  Payload Length: 12
  PPPoE Tags
Host-Uniq: 54c6dda5

Raw Hex:

   ff ff ff ff ff ff 00 0d b9 35 ac dc 81 00 60 23
0010   88 63 11 09 00 00 00 0c 01 01 00 00 01 03 00 04
0020   54 c6 dd a5 00 00 00 00 00 00 00 00 00 00 00 00
0030   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

The main differences I see are:

MAC addresses are different, obviously.

The BSD ethernet frame has extra padding to bring it to 64-bytes,
whereas the linux packet is only 36-bytes

The BSD vlan tag has priority 3 set, rather than priority 0 in the linux
packet.

The PPPoE Host-Uniq tag is different, but this appears to be a random or
pseudo-random value.

I also plugged in to the other end of my ISP provided router and
captured the discovery packet from it.  It looks the same as the linux
packet, except it's padded to 60-bytes and the host-uniq tag is
different.  The vlan priority is set to 0 in that packet as well.


I've tried to get pf to set the pri tag on my vlan packets to 0, but I'm
new to pf and I couldn't get it to work.  I tried this rule and a few
other variants

match out all set prio 0


My best guesses at what's going wrong:

1)  Some sort of MTU failure that isn't visible in wireshark.  I messed
around with the MTU values for the pppoe0 and re0 interfaces, but didn't
have any luck there yet.

2)  Some lame bug in my ISP's equipment that is failing due to the
VLAN priority being 3 instead of 0, or the packet being padded to 64-bytes.


Sorry for the marathon long email, I wanted to include everything I
thought was relevant.

If anyone has any ideas on where I can look to debug this further I'd
really appreciate it.

Anyone know why I can't get the vlan pri set to 0?  Or is there a way I
can write raw ethernet frames to the wire.  Is a raw socket low-level
enough for this?

Thanks for the help!
-Adam