Re: website down from here

2011-06-21 Thread Fred Crowson
On 21 June 2011 05:37, Samuel Baldwin recursive.for...@gmail.com wrote:
 http://www.downforeveryoneorjustme.com/www.openbsd.org

 Simply openbsd.org works, however.
 --
 Samuel Baldwin - logik.li


openbsd.org and www.openbsd.org are two different systems see:

http://marc.info/?l=openbsd-miscm=127430012300582w=2

hth

Fred



Re: website down from here

2011-06-21 Thread Fredrik Henbjork

On 06/21/2011 06:39 AM, Philip Guenther wrote:


The market in baby mulching machines dropped out and the IPO won't be
floated, so it's all being shut down.


As long as I can still buy OpenBSD-based palestinian-baby-seeker-heads 
for my bulldozers, *I'm* a happy man.



(My point it simple.

OpenBSD wants even the worst nastiest 
anal-carotid-constriction-software-patent-loving-spam-your-grandma-for-a-dollar-bottom-feeding-killing-babies-in-palestine-and-iraq 
type organizations to be able to use our codebase in whatever they like. 
No matter who they feel they need to sue to seek revenue (or defend 
themselves in a countersuit). Even if they make an OpenBSD-based 
palestinian-baby-seeker-head for buldozers.


It's simply about Freedom - A-la Voltaire. I may completely disapprove 
of you, but I will defend to the death your right to use OpenBSD source 
code inu, but I will defend to the death your right to use OpenBSD 
source code in whatever you want.


-Bob Beck in t...@openbsd.org)



Re: Another weird notebook-booting problem.

2011-06-21 Thread Stuart Henderson
On 2011-06-21, Sean Howard sil...@callysto.com wrote:
 I am also using a ProBook 4520s
 I am however using OpenBSD-4.9 amd-64.

 I could try to see if I can install -current, but it would take me a few days 
 (find time, backup again, reinstall, etc), however - I have attached my amd64 
 dmesg.

 I had to disable ACPI to get it to work,

This is really not a good idea, especially on a particularly
temperature-sensitive system like a laptop.

 since, well, that would cause a kernel panic.

I don't see a bug report for this anywhere.

It would certainly be worth copying a -current kernel over
to see if it boots and make a bug report if the ACPI problem
persists, no need to overwrite your current kernel, just
use a different name instead of /bsd.



Re: panic: ioapic0: can't alloc vector

2011-06-21 Thread Kapetanakis Giannis

On 20/06/11 13:24, Kapetanakis Giannis wrote:

On 20/06/11 12:22, Kapetanakis Giannis wrote:

Trying to install latest snapshot 19-Jun-2011 I got kernel panic. SHA256
checksums verified.
Problem reported also with sendbug #6637

I've also tried to boot /bsd.sp with no luck
Tried disable ioapic with no luck
Tried disable acpi with no luck

Managed to boot both bsd.mp and bsd.sp by disabling BOTH acpi and mpbios



snapshot from 20-Jun fixed the problem.

OpenBSD 4.9-current (GENERIC.MP) #81: Mon Jun 20 13:56:42 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP


Giannis



VLANs on bridge

2011-06-21 Thread Dajka Tamas
Hi all,

I've to establish a highly redundant firewall cluster with openbsd, but I got
stuck with the config.
The config:


-2 CORE0 routers ( Cisco 7xxx )

-2 FW running OpenBSD 4.9

-2 internal Cisco 3750g switches ( SW01SW02 )

Please find attached the draft of the network infrastructure ( or just view it
here: http://img69.imageshack.us/img69/9414/monofwdraft.png )

In the external side of the FWs, I've 5 VLANS: 90-95 for separate data flows (
1 for public internet ).
In the internal side we've 4 VLANS: 40-44

The internal Ciscos are configured with RSTP and are connected to each other
directly with one VTP domain, SW01 being the master. The FW's ports are all
trunk ports with allowed VLANs 40-44.

What I can't establish: how to build the bridges with VLANs on top of them?

I've tried several ways, none of them worked well. Some scenarios it worked
partly: when I set hme2 to vlan40's vlandev, I could see the machines in VLAN
40, but when I disconnected hme2  - the traffic should switch to hme2 then -
the connection broke.

My latest try was this config ( just for vlan40 now ):

ifconfig hme2 up
ifconfig hme3 up
ifconfig vether0 create
ifconfig vlan40 create
ifconfig vlan40 vlandev vether0
ifconfig vlan40 inet 192.168.240.1 255.255.255.0
ifconfig vlan40 up
ifconfig vether0 up
ifconfig bridge1 create
ifconfig bridge1 add hme2
ifconfig bridge1 add hme3
ifconfig bridge1 add vether0
ifconfig bridge1 stp hme2
ifconfig bridge1 stp hme3
ifconfig bridge1 stp vether0
ifconfig bridge1 spanpriority 61400  # avoid being the root bridge
ifconfig bridge1 up

When I try to ping 192.168.240.251 ( linux host in vlan 40 ) I see the packets
in vlan40 ( tcpdump -ni vlan40 ), but the packet doesn't get to vether0 :( ( I
see just the BPDU packets of the RSTP on vether0 ).

Any suggestions? How should I bulid the bridge with full VLAN redundancy and
RSTP?

Thanks,

   Tamas

[demime 1.01d removed an attachment of type image/png which had a name of 
MonoFW_draft.png]



USB disks softraid bioctl auto mounting Q

2011-06-21 Thread keith
Hi,  I have a 1TB USB disk that I want to auto mount to my OBSD 4.9 
server but I needed to encrypted the disk using softraid that works but 
now I can't figure out how to make the disk auto mount. Can someone help 
me ?


The is where I am just now.

Pluig in disk...sd0 appears...

umass0 at uhub3 port 2 configuration 1 interface 0 FreeCom Freecom MD 
Secure rev 2.00/1.01 addr 5

umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: WDC WD10, TPVT-00U4RT1,  SCSI2 0/direct 
fixed

sd0: 953869MB, 512 bytes/sec, 1953525168 sec total

#fdisk -iy sd0
#printf a\n\n\n\nRAID\nw\nq\n\n | disklabel -E sd0
#bioctl -c C -l /dev/sd0a softraid0

passphrase = sausages

New disk appears...

###scsibus4 at softraid0: 1 targets
###sd2 at scsibus4 targ 0 lun 0: OPENBSD, SR CRYPTO, 004 SCSI2 
0/direct fixed

###sd2: 953866MB, 512 bytes/sec, 1953519473 sec total

# dd if=/dev/zero of=/dev/sd1 bs=1m count=1
# fdisk -iy sd1
# printf a\n\n\n\n4.2BSD\nw\nq\n\n | disklabel -E sd1
# newfs sd1a

# mount /dev/rsd1a  /mnt   or is it
# mount /dev/sd1a   /mnt

Disk works fine. But if I reboot we need to issue the 'bioctl' line 
again and I am not sure how to do this.


Thanks
Keith



Re: USB disks softraid bioctl auto mounting Q

2011-06-21 Thread Otto Moerbeek
On Tue, Jun 21, 2011 at 10:39:55AM +0100, keith wrote:

 Hi,  I have a 1TB USB disk that I want to auto mount to my OBSD 4.9
 server but I needed to encrypted the disk using softraid that works
 but now I can't figure out how to make the disk auto mount. Can
 someone help me ?
 
 The is where I am just now.
 
 Pluig in disk...sd0 appears...
 
 umass0 at uhub3 port 2 configuration 1 interface 0 FreeCom Freecom
 MD Secure rev 2.00/1.01 addr 5
 umass0: using SCSI over Bulk-Only
 scsibus2 at umass0: 2 targets, initiator 0
 sd0 at scsibus2 targ 1 lun 0: WDC WD10, TPVT-00U4RT1,  SCSI2
 0/direct fixed
 sd0: 953869MB, 512 bytes/sec, 1953525168 sec total
 
 #fdisk -iy sd0
 #printf a\n\n\n\nRAID\nw\nq\n\n | disklabel -E sd0
 #bioctl -c C -l /dev/sd0a softraid0
 
 passphrase = sausages
 
 New disk appears...
 
 ###scsibus4 at softraid0: 1 targets
 ###sd2 at scsibus4 targ 0 lun 0: OPENBSD, SR CRYPTO, 004 SCSI2
 0/direct fixed
 ###sd2: 953866MB, 512 bytes/sec, 1953519473 sec total
 
 # dd if=/dev/zero of=/dev/sd1 bs=1m count=1
 # fdisk -iy sd1
 # printf a\n\n\n\n4.2BSD\nw\nq\n\n | disklabel -E sd1
 # newfs sd1a
 
 # mount /dev/rsd1a  /mnt   or is it
 # mount /dev/sd1a   /mnt
 
 Disk works fine. But if I reboot we need to issue the 'bioctl' line
 again and I am not sure how to do this.
 
 Thanks
 Keith

Dunno the anwser to your question, but mounts are always done on block
devices, e.g. no 'r'. All other operations are done on char devices,
but most commands are nice enough to accept short device names without
'r'. 

-Otto



Re: VLANs on bridge

2011-06-21 Thread Dajka Tamas
Assigning one of the phys devices as vlandev to a vlan is not working. I mean, 
I can assign to them, but if vlan40 is assigned to hme2 and hme2 failes, than 
vlan40 will be down and hosts in vlan40 are unreacheable.



So:



ifconfig hme2 up

ifconfig hme3 up



ifconfig vlan40 create

ifconfig vlan40 vlandev hme2

ifconfig vlan40 inet 192.168.240.1 255.255.255.0

ifconfig vlan40 up



ifconfig bridge1 create

ifconfig bridge1 add vlan40

ifconfig bridge1 add hme2

ifconfig bridge1 add hme3



ifconfig bridge1 stp hme2

ifconfig bridge1 stp hme3

ifconfig bridge1 stp vlan40

ifconfig bridge1 spanpriority 61400  # avoid being the root bridge

ifconfig bridge1 up



is not working :(



I want a solution, what is working with just one VLAN, so the VLAN is not 
dependent ont he phys interface. In your solution, if I don't pull up vlan41, 
than hme3 won't be in the bridge.



Cheers,



Tamas



-Original Message-

From: Claer [mailto:cl...@claer.hammock.fr] 

Sent: Tuesday, June 21, 2011 12:00 PM

To: Dajka Tamas

Subject: Re: VLANs on bridge



On Tue, Jun 21 2011 at 10:11, Dajka Tamas wrote:

 Hi all,

Hi,



 I've to establish a highly redundant firewall cluster with openbsd, but I got

 stuck with the config.

 The config:

 

 

 -2 CORE0 routers ( Cisco 7xxx )

 

 -2 FW running OpenBSD 4.9

 

 -2 internal Cisco 3750g switches ( SW01SW02 )

 

 Please find attached the draft of the network infrastructure ( or just view it

 here: http://img69.imageshack.us/img69/9414/monofwdraft.png )

 

 In the external side of the FWs, I've 5 VLANS: 90-95 for separate data flows (

 1 for public internet ).

 In the internal side we've 4 VLANS: 40-44

 

 The internal Ciscos are configured with RSTP and are connected to each other

 directly with one VTP domain, SW01 being the master. The FW's ports are all

 trunk ports with allowed VLANs 40-44.

 

 What I can't establish: how to build the bridges with VLANs on top of them?

 

 I've tried several ways, none of them worked well. Some scenarios it worked

 partly: when I set hme2 to vlan40's vlandev, I could see the machines in VLAN

 40, but when I disconnected hme2  - the traffic should switch to hme2 then -

 the connection broke.

 

 My latest try was this config ( just for vlan40 now ):

 

 ifconfig hme2 up

 ifconfig hme3 up

 ifconfig vether0 create

 ifconfig vlan40 create

 ifconfig vlan40 vlandev vether0

 ifconfig vlan40 inet 192.168.240.1 255.255.255.0

 ifconfig vlan40 up

 ifconfig vether0 up

 ifconfig bridge1 create

 ifconfig bridge1 add hme2

 ifconfig bridge1 add hme3

 ifconfig bridge1 add vether0

 ifconfig bridge1 stp hme2

 ifconfig bridge1 stp hme3

 ifconfig bridge1 stp vether0

 ifconfig bridge1 spanpriority 61400  # avoid being the root bridge

 ifconfig bridge1 up

 

 When I try to ping 192.168.240.251 ( linux host in vlan 40 ) I see the packets

 in vlan40 ( tcpdump -ni vlan40 ), but the packet doesn't get to vether0 :( ( I

 see just the BPDU packets of the RSTP on vether0 ).

 

 Any suggestions? How should I bulid the bridge with full VLAN redundancy and

 RSTP?



A stupid one, did you try to bridge vlans one by one ?





ifconfig hme2 up

ifconfig hme3 up



ifconfig vether40 create

ifconfig vether40 inet 192.168.240.1 255.255.255.0

ifconfig vether40 up



ifconfig vlan40 create

ifconfig vlan40 vlandev hme2

ifconfig vlan41 create

ifconfig vlan41 vlandev hme3



ifconfig vlan40 up

ifconfig vlan41 up



ifconfig bridge1 create

ifconfig bridge1 add vlan40

ifconfig bridge1 add vlan41

ifconfig bridge1 add vether0



ifconfig bridge1 stp vlan40

ifconfig bridge1 stp vlan41

ifconfig bridge1 stp vether0

ifconfig bridge1 spanpriority 61400  # avoid being the root bridge

ifconfig bridge1 up



...



This is by far a bad solution but could be interesting for finding a better one.





Regards,



Claer




Re: USB disks softraid bioctl auto mounting Q

2011-06-21 Thread Ted Unangst
On Tue, Jun 21, 2011 at 5:39 AM, keith ke...@scott-land.net wrote:
 Disk works fine. But if I reboot we need to issue the 'bioctl' line again
 and I am not sure how to do this.

Same command as the first time.  Put it in /etc/rc or /etc/rc.local or
somewhere convenient.



bcrypt.c licensing

2011-06-21 Thread Aaron Patterson
Hi!

I have a question about the license for bcrypt.c.  The OpenBSD policy
page (http://www.openbsd.org/policy.html) says:

  Berkeley rescinded the 3rd term (the advertising term) on 22 July
  1999. Verbatim copies of the Berkeley license in the OpenBSD tree have
  that term removed. In addition, many 3rd-party BSD-style licenses
  consist solely of the first two terms.

But bcrypt.c still contains the 3rd term:

  http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/crypt/bcrypt.c?rev=1.24;
content-type=text%2Fplain

Is bcrypt.c still under the 4 term license?  Should the third term be
removed?

Thanks.

--
Aaron Patterson
http://tenderlovemaking.com/

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: bcrypt.c licensing

2011-06-21 Thread Otto Moerbeek
On Tue, Jun 21, 2011 at 09:23:13AM -0700, Aaron Patterson wrote:

 Hi!
 
 I have a question about the license for bcrypt.c.  The OpenBSD policy
 page (http://www.openbsd.org/policy.html) says:
 
   Berkeley rescinded the 3rd term (the advertising term) on 22 July
   1999. Verbatim copies of the Berkeley license in the OpenBSD tree have
   that term removed. In addition, many 3rd-party BSD-style licenses
   consist solely of the first two terms.
 
 But bcrypt.c still contains the 3rd term:
 
   http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/crypt/bcrypt.c?rev=1.24;
 content-type=text%2Fplain
 
 Is bcrypt.c still under the 4 term license?  Should the third term be
 removed?

Why don't you ask the copyright owner i.e. Niels Provos? He's the only
one who can decide that. 

-Otto



Re: bcrypt.c licensing

2011-06-21 Thread Aaron Patterson
On Tue, Jun 21, 2011 at 06:28:21PM +0200, Otto Moerbeek wrote:
 On Tue, Jun 21, 2011 at 09:23:13AM -0700, Aaron Patterson wrote:

  Hi!
 
  I have a question about the license for bcrypt.c.  The OpenBSD policy
  page (http://www.openbsd.org/policy.html) says:
 
Berkeley rescinded the 3rd term (the advertising term) on 22 July
1999. Verbatim copies of the Berkeley license in the OpenBSD tree have
that term removed. In addition, many 3rd-party BSD-style licenses
consist solely of the first two terms.
 
  But bcrypt.c still contains the 3rd term:
 
 
http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/crypt/bcrypt.c?rev=1.24;
  content-type=text%2Fplain
 
  Is bcrypt.c still under the 4 term license?  Should the third term be
  removed?

 Why don't you ask the copyright owner i.e. Niels Provos? He's the only
 one who can decide that.

Okay.  I will try asking him.  Thank you.

--
Aaron Patterson
http://tenderlovemaking.com/

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: bcrypt.c licensing

2011-06-21 Thread Theo de Raadt
 I have a question about the license for bcrypt.c.  The OpenBSD policy
 page (http://www.openbsd.org/policy.html) says:
 
   Berkeley rescinded the 3rd term (the advertising term) on 22 July
   1999. Verbatim copies of the Berkeley license in the OpenBSD tree have
   that term removed.

That applies to the files gotten *from Berkeley*.

 In addition, many 3rd-party BSD-style licenses
   consist solely of the first two terms.

You have found a file which does not fall into this list of many.
This file is apparently one of the files behind the use of the word
many instead of the word all.

 But bcrypt.c still contains the 3rd term:
 
   http://www.openbsd.org/cgi-bin/cvsweb/src/lib/libc/crypt/bcrypt.c?rev=1.24;
 content-type=text%2Fplain
 
 Is bcrypt.c still under the 4 term license?

As you can see in the file, yup.

 Should the third term be removed?

Only if that author says so.



Re: Latest snapshot packages: Interloper?

2011-06-21 Thread jared r r spiegel
On Mon, Jun 20, 2011 at 01:34:47PM +1000, Rod Whitworth wrote:
 On Sun, 19 Jun 2011 18:28:10 -0400, STeve Andre' wrote:
 
 On 06/19/11 18:19, Rod Whitworth wrote:
  This popped up as the first file (in name order) when I went to see if
  there was a new bunch of pkgs to go with the install iso I'm
  downloading:
 
  ftp://ftp.ca.openbsd.org/pub/OpenBSD/snapshots/packages/i386/.marathonin
  finity-0.0.20090509p0.tgz.RrgZXP
 
  WTF?
 
  Enquiring minds and all that 
 
 A temp file from rsync, possibly in progress?
 
 Must have been. Funny that I've not seen one of those before. The
 leading dot puts it at the top and I often scan for updated packages
 after I've downloaded a snap install iso.

  this definitely happens on the mirror i run, which pulls from upstream
  via rsync

-- 

  jared



Sendmail+SSL+SASL

2011-06-21 Thread gdrm
Hello misc,
I'm trying to configure OpenBSD4.9 with Sendmail as a mail server and so far,
so good, I have a configuration with static IP, masked and with ssl support,
but I can not figure out how to implement sasl, someonehas a link where to
find information and guides on the subject?
thanks



-I-

2011-06-21 Thread Friedrich Locke
I have just installed OpenBSD 4.9 and when i try to compile an ansi C
source file it complains about using -I- and suggest -iquote.
What is that? What does -iquote means ?

May some one help me?



Re: Sendmail+SSL+SASL

2011-06-21 Thread roberth
On Tue, 21 Jun 2011 23:24:11 +0200
gdrm g...@opensrv.org wrote:

 Hello misc,
 I'm trying to configure OpenBSD4.9 with Sendmail as a mail server and
 so far, so good, I have a configuration with static IP, masked and
 with ssl support, but I can not figure out how to implement sasl,
 someonehas a link where to find information and guides on the subject?
 thanks
 

# man starttls
(as referenced in the sendmail manpage.)

or have a look at the sendmail website?

or just use postfix and be a lot happier. ;)



Re: Sendmail+SSL+SASL

2011-06-21 Thread Vijay Sankar
On 2011-06-21, at 4:24 PM, gdrm wrote:

 Hello misc,
 I'm trying to configure OpenBSD4.9 with Sendmail as a mail server and so
far,
 so good, I have a configuration with static IP, masked and with ssl
support,
 but I can not figure out how to implement sasl, someonehas a link where to
 find information and guides on the subject?
 thanks


1) You have to have a file /usr/local/lib/sasl2/Sendmail.conf with

pwcheck_method: saslauthd

2) man 8 saslauthd has the detailed info and please read it. I start saslauthd
-a getpwent in rc.local

3) Create your users using saslpasswd2

4) /usr/share/sendmail README has a lot of the smtpauth details. Please read
that as well.

HTH,

Vijay Sankar
vsan...@foretell.ca



Re: -I-

2011-06-21 Thread Ingo Schwarze
Hi Friedrich,

Friedrich Locke wrote on Tue, Jun 21, 2011 at 06:42:22PM -0300:

 I have just installed OpenBSD 4.9 and when i try to compile an ansi C
 source file it complains about using -I- and suggest -iquote.
 What is that? What does -iquote means ?

To get you started, read gcc(1) and search for -I- and -iquote
in particular.  Both are explained in the manual.

 May some one help me?

Not really, you provide too little information to work on.
We can only guess.  When asking for help, in general:

 - provide the exact commands you type;
 - briefly state what you expect to happen;
 - and provide the exact and complete output.

When asking about compilers, providing a *minimal* code sample
exhibiting the problem helps as well.

Like this:

  $ echo 'int main() { return 0; }'  testfile.c
  $ gcc -I. -I- -I /usr/include testfile.c
  cc1: note: obsolete option -I- used, please use -iquote instead

That's just a warning, inviting you to talk in a less archaic way.

Yours,
  Ingo



50% popusta na tretman haloterapije u slanoj sobi Salt-art

2011-06-21 Thread Grupnipopust Srbija
SRE

22.06

Grupnipopust Srbija
===

POTREBNO JE 5 KUPONA ZA PROLAZ

UD
itajte sliku za ispravan pregled

[IMAGE]

50% popusta na tretman haloterapije u slanoj sobi Salt-art
==

za samo 300 dinara umesto 600 dinara, 20 minuta haloterapije za decu i
gratis 20 minuta za roditelje

Tajna lekovitog dejstva slanih soba ispunjenih stenama soli je vrlo
jednostavna. Vazduh u njima je zasiDen solima, ali i mnogim mineralima i
elementima koji u tragovima sadrEe so. Boravkom u sobama od soli,
elementi neophodni za funkcionisanje organizma se apsorbuju u njemu. Telo
tako dospeva u ravnoteEu i poD
inje da leD
i samo sebe. Ova terapija je
delotvorna ne samo za poboljE!anje fiziD
kog zdravlja nego i za
olakE!anje mentalnih tegoba kao E!to su: prenapetost, umor, iscrpljenost,
stres, kao i pomoD pri odvikavanju od puE!enja. Termin Haloterapija u
upotrebi je od sredine osamdesetih godina. Ime dolazi od grD
ke reD
i
Halos(energija soli), pa bi se moglo reDi da je haloterapija leD
enje uz
pomoD soli. Blagotvorni efekti su poznati vekovima i potkrepljeni su
obilnom medicinskom literaturom. Dakle, izvesno je da ne postoji
D
istiji, prirodniji i ekoloE!ki prihvatljiviji element od soli i D
iste
morske vode koju je dala priroda i koja u prirodi isparava, a koju je
D
ovek doveo do perfekcije u svoju sluEbu i korist. Salt-art odgovara na
naE!a pitanja :)

OpE!irnije o ponudi B;

[IMAGE]

E-mail se ne prikazuje ispravno? Posetite online verziju

Grupni popust d.o.o, Masarikova 96, E abac PIB: 107063637, E=R:
340-11006036-40 (ERSTE BANK), Tel: 015/352 085, Fax: 015/352 985,
Mob:065/22 05 535, Mob: 063/1 529 135

Ne Eelite viE!e da primate nesletter? U vaE!im korisniD
kim postavkama
moEete dac promenite opciju slanja.

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

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

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

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

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



Can command-line options be specified in any place?

2011-06-21 Thread vadimou
Hi,

I'm considering migrating my desktop from Linux to OpenBSD but the
main feature that
kept me away from *BSD world for over a decade since I've first tried
FreeBSD was the
one that options must only be specified after command before any
arguments. (At least
that is true for basic commands). For example on Linux a command

  ls -l foo -h

will print the foo's size with suffix (K, M, G, etc.). On *BSD
(including Mac OS X) I get error
message:

  ls: -h: No such file or directory

Is there an easy way to get the desired behavior on OpenBSD? If that
can only be achieved
by patching system's sources is there a standard way to maintain my
personal set of
patches so that they will be automatically applied every time I upgrade system?

Best regards,
Vadim.



Re: Can command-line options be specified in any place?

2011-06-21 Thread Ingo Schwarze
vadi...@gmail.com wrote on Tue, Jun 21, 2011 at 07:39:31PM -0400:

   ls -l foo -h

That's ugly, useless and dangerous.

 Is there an easy way to get the desired behavior on OpenBSD?

No.  We don't desire it.

If you want Linux, use Linux.



Re: Can command-line options be specified in any place?

2011-06-21 Thread Abel Abraham Camarillo Ojeda
On Tue, Jun 21, 2011 at 6:39 PM,  vadi...@gmail.com wrote:
 Hi,

 I'm considering migrating my desktop from Linux to OpenBSD but the
 main feature that
 kept me away from *BSD world for over a decade since I've first tried
 FreeBSD was the
 one that options must only be specified after command before any
 arguments. (At least
 that is true for basic commands). For example on Linux a command

 B ls -l foo -h

 will print the foo's size with suffix (K, M, G, etc.). On *BSD
 (including Mac OS X) I get error
 message:

 B ls: -h: No such file or directory

 Is there an easy way to get the desired behavior on OpenBSD? If that
 can only be achieved
 by patching system's sources is there a standard way to maintain my
 personal set of
 patches so that they will be automatically applied every time I upgrade
system?

 Best regards,
 Vadim.



It would be more useful to fix your scripts...



Re: Can command-line options be specified in any place?

2011-06-21 Thread vadimou
 Please continue to use Linux.
 That's ugly, useless and dangerous.

Oops, looks like that was a holy war type of question. Sorry I did
not want to start that.

 If you want Linux, use Linux.

It's not that I want specifically Linux. I've just decided to look for
a system that cat satisfy me from the usability point of view. I do
not care if that will be Linux or *BSD or Solaris or whatever  else.
The main idea was that the work with the system should be a pleasure,
not a pain :)



Re: Can command-line options be specified in any place?

2011-06-21 Thread Benny Lofgren
On 2011-06-22 03.03, vadi...@gmail.com wrote:
 Please continue to use Linux.
 That's ugly, useless and dangerous.
 
 Oops, looks like that was a holy war type of question. Sorry I did
 not want to start that.
 
 If you want Linux, use Linux.
 
 It's not that I want specifically Linux. I've just decided to look for
 a system that cat satisfy me from the usability point of view. I do
 not care if that will be Linux or *BSD or Solaris or whatever  else.
 The main idea was that the work with the system should be a pleasure,
 not a pain :)

What you should do is relearn the proper way. :-)

Consider the fact that Unix have been around since the 1970's, and the
*BSD flavor is as direct a descendant of the original look, feel and
intent as you can possibly find today.

Linux is, in that regard, an abomination. It's the bastard child of
someone not properly trained in the unix way, who made stuff up
as he went without regard for history, continuity, elegance or, for
that matter, backwards compatibility.

I feel the same way as you do, only the other way around. I really
can't stand using a linux system for any length of time. Everything
is similar, but different. Or different, but similar. And so darn stupid!

Linus didn't do his homework properly. That, combined with the fact that
Linux became such a huge success is both a blessing and a curse to us
in the unix community; on the one hand Linux provides us with plenty of
young blood in a new generation of hackers... while on the other hand
they can't speak properly!

It's as if they've accidentally gone to veterinary school instead of
medical school, without knowing it. Sure, they'd know just as much
about anatomy as a real doctor would, but take my advice: if you're
not a horse, don't go there for your pains...


Regards,
/Benny

-- 
internetlabbet.se / work:   +46 8 551 124 80  / Words must
Benny LC6fgren/  mobile: +46 70 718 11 90 /   be weighed,
/   fax:+46 8 551 124 89/not counted.
   /email:  benny -at- internetlabbet.se



Re: Can command-line options be specified in any place?

2011-06-21 Thread Theo de Raadt
It is pretty clear you are a troll.



Can one interface have an IP address and bridge as well?

2011-06-21 Thread Paul Suh
Folks,

Is this possible and/or a good idea? I have a router with three interfaces:

sis0: external interface, IPv4 address 1.2.3.4/24
sis1: internal interface, IPv4 address 192.168.1.1/24
sis2: DMZ interface, IPv4 address 192.168.2.1/24

NAT rules pass all traffic from the internal and DMZ zones through the
external IP address. I have a couple of servers with IPv4 addresses
192.168.2.2 and 192.168.2.3 in the DMZ, with rdr-to rules that send traffic in
to them from 1.2.3.4.

I need to place a server at 1.2.3.5, and the software I have to run needs the
server itself to have the IPv4 address 1.2.3.5 -- I can't NAT it and give the
server the address 192.168.2.4 in the DMZ. (Don't ask. *shudder*) Can I set up
a bridge between sis0 and sis2 so that traffic for 1.2.3.5 gets passed through
to the server via sis2 as well as having the IPv4 address 1.2.3.4 on sis0? Or
is there a better way to do this?


--Paul

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: Can command-line options be specified in any place?

2011-06-21 Thread Amit Kulkarni
 Consider the fact that Unix have been around since the 1970's, and the
 *BSD flavor is as direct a descendant of the original look, feel and
 intent as you can possibly find today.

 Linux is, in that regard, an abomination. It's the bastard child of
 someone not properly trained in the unix way, who made stuff up
 as he went without regard for history, continuity, elegance or, for
 that matter, backwards compatibility.

history, continuity and backwards compatibility.

That would apply to all BSDs and all Unixes. You get tweaking all the
time, over the years all codebases would diverge. And you shouldn't
blindly respect any particular thing. The opensource world for the
most part doesn't. :-)

 I feel the same way as you do, only the other way around. I really
 can't stand using a linux system for any length of time. Everything
 is similar, but different. Or different, but similar. And so darn stupid!

 Linus didn't do his homework properly. That, combined with the fact that
 Linux became such a huge success is both a blessing and a curse to us
 in the unix community; on the one hand Linux provides us with plenty of
 young blood in a new generation of hackers... while on the other hand
 they can't speak properly!

Yep, in some cases they speak way too fast, and change their protocol
every two years just for the heck of it.

 It's as if they've accidentally gone to veterinary school instead of
 medical school, without knowing it. Sure, they'd know just as much
 about anatomy as a real doctor would, but take my advice: if you're
 not a horse, don't go there for your pains...

In the real world, doctors learn their stuff as they go along too. A
vet's job is more challenging than a human doctor, think of the
differing but similar anatomies. Unfortunately, vet patients can't sue
yet (they might do it yet, what with the spread of technology in these
here parts) for any mistakes.



Re: Can command-line options be specified in any place?

2011-06-21 Thread john slee
On 22 June 2011 11:48, Benny Lofgren bl-li...@lofgren.biz wrote:
 Linux is, in that regard, an abomination. It's the bastard child of
 someone not properly trained in the unix way, who made stuff up
 as he went without regard for history, continuity, elegance or, for
 that matter, backwards compatibility.

Fair points, I suppose, but this gripe is really about glibc and its
getopt/getopt_long, not Linux. No?

John



Re: Can command-line options be specified in any place?

2011-06-21 Thread Johan Beisser
On Jun 21, 2011, at 18:48, Benny Lofgren bl-li...@lofgren.biz wrote:

 On 2011-06-22 03.03, vadi...@gmail.com wrote:
 Please continue to use Linux.
 That's ugly, useless and dangerous.

 Oops, looks like that was a holy war type of question. Sorry I did
 not want to start that.

It's not.


 Linus didn't do his homework properly. That, combined with the fact that
 Linux became such a huge success is both a blessing and a curse to us
 in the unix community; on the one hand Linux provides us with plenty of
 young blood in a new generation of hackers... while on the other hand
 they can't speak properly!

Laying the blame on Linus isn't really correct. The environment of the Linux
toolchain is from GNU. Blame starts and ends there.



Re: Can command-line options be specified in any place?

2011-06-21 Thread vadimou
Sorry I really did not want to start any flame. I just thought that
getting answer from the mailing list would be faster than spending my
time studying source code of the new system.

 What you should do is relearn the proper way. :-)

Ok, let me turn my question the other way around. Suppose I typed

 ls -l /some/very/long/path/to/file

and the file is too big so I want to use -h option. I use a text
terminal so I can not use mouse to position cursor. How people usually
handle this on *BSD systems?



Re: Can one interface have an IP address and bridge as well?

2011-06-21 Thread Shane Lazarus
Heya

On Wed, Jun 22, 2011 at 12:13 PM, Paul Suh pl...@goodeast.com wrote:

 Folks,

 Is this possible and/or a good idea? I have a router with three interfaces:

 sis0: external interface, IPv4 address 1.2.3.4/24
 sis1: internal interface, IPv4 address 192.168.1.1/24
 sis2 http://192.168.1.1/24sis2: DMZ interface, IPv4 address
 192.168.2.1/24

 NAT rules pass all traffic from the internal and DMZ zones through the
 external IP address. I have a couple of servers with IPv4 addresses
 192.168.2.2 and 192.168.2.3 in the DMZ, with rdr-to rules that send traffic
 in
 to them from 1.2.3.4.

 I need to place a server at 1.2.3.5, and the software I have to run needs
 the
 server itself to have the IPv4 address 1.2.3.5 -- I can't NAT it and give
 the
 server the address 192.168.2.4 in the DMZ. (Don't ask. *shudder*) Can I set
 up
 a bridge between sis0 and sis2 so that traffic for 1.2.3.5 gets passed
 through
 to the server via sis2 as well as having the IPv4 address 1.2.3.4 on sis0?
 Or
 is there a better way to do this?


 --Paul

 [demime 1.01d removed an attachment of type application/pkcs7-signature
 which had a name of smime.p7s]


I personally would check to see if you could get a /30 routed to 1.2.3.4.
5.6.7.8 - 5.6.7.11

Append one of the /30 to the sis2 interface, and the other to your new
server.

If 1.2.3.4  1.2.3.5 are part of a bigger block that you own, see if you
can't allocate a /30 from that larger pool.
( 1.2.3.8 - 1.2.3.11 ?? )


Shane



Re: Can command-line options be specified in any place?

2011-06-21 Thread Johan Beisser
On Jun 21, 2011, at 20:20, vadi...@gmail.com wrote:

 Sorry I really did not want to start any flame. I just thought that
 getting answer from the mailing list would be faster than spending my
 time studying source code of the new system.

 What you should do is relearn the proper way. :-)

 Ok, let me turn my question the other way around. Suppose I typed

 ls -l /some/very/long/path/to/file

 and the file is too big so I want to use -h option. I use a text
 terminal so I can not use mouse to position cursor. How people usually
 handle this on *BSD systems?

I use Bash and OpenBSD's ksh. In both CTRL-a gets me back to the beginning of
the line.


A short google search turns up these two handy references for Bash, the
favored son of shells on Linux.

Vi mode:
http://www.catonmat.net/blog/bash-vi-editing-mode-cheat-sheet

Alternatively, emacs mode:

http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-sheet/



Re: Can command-line options be specified in any place?

2011-06-21 Thread Josh Rickmar
vadi...@gmail.com wrote:

 Sorry I really did not want to start any flame. I just thought that
 getting answer from the mailing list would be faster than spending my
 time studying source code of the new system.

  What you should do is relearn the proper way. :-)

 Ok, let me turn my question the other way around. Suppose I typed

  ls -l /some/very/long/path/to/file

 and the file is too big so I want to use -h option. I use a text
 terminal so I can not use mouse to position cursor. How people usually
 handle this on *BSD systems?


^A plus a few M-f's



Re: Can command-line options be specified in any place?

2011-06-21 Thread Andres Perera
you can compile gnu coreutils

the reason posix and bsd dont allow options after operands is because
it complicates the implementation of getopt and it introduces
ambiguity, specially with options that take arguments

the gnu getopt has to look at the first characters of every argv
member unless -- is used, which is inconvenient in interactive shells

On Tue, Jun 21, 2011 at 7:09 PM,  vadi...@gmail.com wrote:
 Hi,

 I'm considering migrating my desktop from Linux to OpenBSD but the
 main feature that
 kept me away from *BSD world for over a decade since I've first tried
 FreeBSD was the
 one that options must only be specified after command before any
 arguments. (At least
 that is true for basic commands). For example on Linux a command

 B ls -l foo -h

 will print the foo's size with suffix (K, M, G, etc.). On *BSD
 (including Mac OS X) I get error
 message:

 B ls: -h: No such file or directory

 Is there an easy way to get the desired behavior on OpenBSD? If that
 can only be achieved
 by patching system's sources is there a standard way to maintain my
 personal set of
 patches so that they will be automatically applied every time I upgrade
system?

 Best regards,
 Vadim.



Re: Can command-line options be specified in any place?

2011-06-21 Thread vadimou
On 6/21/11, Johan Beisser j...@caustic.org wrote:
 I use Bash and OpenBSD's ksh. In both CTRL-a gets me back to the beginning
 of the line.

I use zsh in vi mode. So Esc, Shift+6, f, -, a, h (total 7 keys) or ls
-lh !!$ (total 10 keys). Just adding -h requires pressing 3 keys.
Looks like I'm too lazy for BSD :)



Re: Can command-line options be specified in any place?

2011-06-21 Thread vadimou
 you can compile gnu coreutils

Thank you. That sounds like a good idea. I'll try that.

 If you want pleasure and usability point of view, you are
 not looking in the good place. Stay with Linux.

Linux started to disappoint me to the point when I decided to try
something else.

 OpenBSD has its own objectives. Clean good code and security.

That's why I started my search with OpenBSD.