Re: Patch for a little install.sub bug

2013-08-25 Thread Alexander Hall

On 08/25/13 01:39, Loïc BLOT wrote:

In fact i'm not tired, it's logical :)

Here is my patched question:
ask_which speed should $_d use \
 9600 19200 38400 57600 115200 $CSPEED $pxe_console_speed

Show:
[auto] instead if [9600] (auto is value of pxe_console_speed).

If i do a echo speed: $CSPEED before ask_which, CSPEED is empty
default argument is the first argument of the list.

A better patch could be:

ask_which speed should $_d use \
 9600 19200 38400 57600 115200 ${CSPEED:-}


That would be

9600 19200 38400 57600 115200 $CSPEED

in my world. ;-)



but this patch is useless without my pxe autoinstall patch, i think.


A diff is something produced by [cvs] diff -uNp, IMHO.

/Alexander




--
Best regards,
Loïc BLOT,
UNIX systems, security and network expert
http://www.unix-experience.fr


Le dimanche 25 août 2013 à 01:19 +0200, Loïc BLOT a écrit :

Hmm you are right, i think i'm tired :)

--
Best regards,
Loc BLOT,
UNIX systems, security and network expert
http://www.unix-experience.fr


Le samedi 24 aot 2013  23:03 +, Christian Weisgerber a crit :

Loc BLOT loic.b...@unix-experience.fr wrote:


 if [[ $resp == y ]]; then
 ask_which speed should $_d use \
 9600 19200 38400 57600 115200 $CSPEED
 case $resp in
 done)   defcons=n ;;
 *)  CSPEED=$resp ;;
 esac
 fi

By adding a 5th argument to ask_which, i have seen that $CSPEED isn't
found, and in fact it's right. Before this ask_which CSPEED isn't set,
it's set after.


That analysis can't be right.  When I install OpenBSD on a Soekris
with the comBIOS default serial speed of 19200, the installer prompt
offers 19200 as default.

And a quick look at install.sub shows that the call to questions()
is preceded by this:

---
CONSOLE=$(scan_dmesg '/^\([^ ]*\).*: console$/s//\1/p')
CONSOLE=${CONSOLE% }
[[ -n $CONSOLE ]]  CSPEED=$(stty speed)

# Look for the serial device matching the console. If we are not

installing

# from a serial console, just find the first serial device that could be

used

# as a console. If a suitable device is found, set CDEV, CTTY, CSPEED,

CPROM.

md_consoleinfo
---


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

had a name of signature.asc]

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]




Re: Patch for a little install.sub bug

2013-08-25 Thread Alexander Hall

On 08/25/13 10:18, Alexander Hall wrote:

On 08/25/13 01:39, Loïc BLOT wrote:



A better patch could be:

ask_which speed should $_d use \
 9600 19200 38400 57600 115200 ${CSPEED:-}


That would be

 9600 19200 38400 57600 115200 $CSPEED

in my world. ;-)



but this patch is useless without my pxe autoinstall patch, i think.


A diff is something produced by [cvs] diff -uNp, IMHO.


Er, which thereby would be implied to be the preffered format for a patch.

/Alexander



Developing device driver for parallel lcd dispaly modules

2013-08-25 Thread Denis Maros
Hello @misc,

I could not resist more againist the strength of OpenBSD and PF so switched
to this great OS from Linux at my network servers.
Also i have to admit that OpenSmtpd is my next target. For the first,
thanks to all who contributed these technologies.

Here is my problem.
I need to implement OpenBSD device driver for an unsupported parallel LCD
display module. The vendor supplied me some information and also linux
driver.
I read this paper :
http://www.openbsd.org/papers/opencon06-drivers/index.html
But i could not clearly understand how to develop device driver code under
OpenBSD.
I know that OpenBSD is againist to binary blobs so i do. So should i ignore
man lkm?
Please tell me a fresh start point. Is there any device driver template?
Any supported parallel port lcd display module's code to strip?

Thanks.

Denis



Re: Developing device driver for parallel lcd dispaly modules

2013-08-25 Thread Alexander Hall

On 08/25/13 13:56, Denis Maros wrote:

Hello @misc,

I could not resist more againist the strength of OpenBSD and PF so switched
to this great OS from Linux at my network servers.
Also i have to admit that OpenSmtpd is my next target. For the first,
thanks to all who contributed these technologies.

Here is my problem.
I need to implement OpenBSD device driver for an unsupported parallel LCD
display module. The vendor supplied me some information and also linux
driver.
I read this paper :
http://www.openbsd.org/papers/opencon06-drivers/index.html
But i could not clearly understand how to develop device driver code under
OpenBSD.
I know that OpenBSD is againist to binary blobs so i do. So should i ignore
man lkm?
Please tell me a fresh start point. Is there any device driver template?
Any supported parallel port lcd display module's code to strip?


Are you talking about a NxM character LCD display connected to the 
printer port, and if so, are you using it as a proper display or do 
you merely need to be able to feed it some characters now and then?


Rather, from the [partial lack of] information you supply, do you really 
need a driver, or would accessing the device through /dev/lpt0 be enough?


/Alexander



Two primary OBSD partitions on a HDD

2013-08-25 Thread josef . winger
I read fdisk(8) carefully (At least I think so), but I repeatedly failed to
install two OBSDS on two primary partitions of a HDD.

The idea was to realize a multiboot by toogleing the boot-flag to the primary
partition of the particular OBSD system I want to boot.

However, I think that the install process always chooses the same primary
OBSD partition for installation (the first that appears in the table?) 
and I have no control.


/jo



Re: Two primary OBSD partitions on a HDD

2013-08-25 Thread Tony Abernethy
josef.win...@email.de wrote

I read fdisk(8) carefully (At least I think so), but I repeatedly failed to
install two OBSDS on two primary partitions of a HDD.

The idea was to realize a multiboot by toogleing the boot-flag to the primary
partition of the particular OBSD system I want to boot.

However, I think that the install process always chooses the same primary
OBSD partition for installation (the first that appears in the table?) 
and I have no control.

/jo


##-
I'm sure Nick Holland will explain it better, but
OpenBSD works from THE (singular) disklabel on the physical disk
Other than keeping other OS's out, and a bit of help booting,
the fdisk partitions are actually completely irrelevant.



Re: Two primary OBSD partitions on a HDD

2013-08-25 Thread System Administrator
On 25 Aug 2013 at 10:50, Tony Abernethy wrote:

 josef.win...@email.de wrote
 
 I read fdisk(8) carefully (At least I think so), but I repeatedly failed to
 install two OBSDS on two primary partitions of a HDD.
 
 The idea was to realize a multiboot by toogleing the boot-flag to the primary
 partition of the particular OBSD system I want to boot.
 
 However, I think that the install process always chooses the same primary
 OBSD partition for installation (the first that appears in the table?) 
 and I have no control.
 
 /jo
 
 
 ##-
 I'm sure Nick Holland will explain it better, but
 OpenBSD works from THE (singular) disklabel on the physical disk
 Other than keeping other OS's out, and a bit of help booting,
 the fdisk partitions are actually completely irrelevant.
 
 

To expand on Tony's comment, OpenBSD uses the fdisk(8) partition 
information only just enough to locate its disklabel(8). So if you want 
to have two complete (primary) OBSD installs on a single disk you 
have to *hide* them one from another. I succeeded in doing just that by 
using grub's hide/unhide partition feature -- it toggle the partition 
id of the inactive (other) partition from a6 to b6. YMMV



Re: Two primary OBSD partitions on a HDD

2013-08-25 Thread Mihai Popescu
Hi,

Before investigating further, be sure to read the FAQ about i386 disk
layout and pay attention to the two very important things there: slices and
partitions.



IPSec and routing of IPv6

2013-08-25 Thread Gregor Best
Hi people,

I am having a few problems getting routing of IPv6 over IPSec to work. I
have two nodes, one is a server, one is my laptop. On the server, I have
IPv6 access over a gif interface. There is a /64 routed to the server,
which I want to use on my laptop.

I have now set up an IPSec tunnel between my laptop and the server, with
the following configuration, in /etc/ipsec.conf:

# on my laptop
unobtanium_v6 = 2001:470:1f0b:1d3::/64
ike esp from any to $unobtanium_v6 peer unobtanium.de \
main auth hmac-sha1 enc aes-256 \
quick auth hmac-sha1 enc aes-256 \
psk secretkey \
tag IPSEC-UNO

# on the server
unobtanium_v6 = 2001:470:1f0b:1d3::/64

ike passive esp from $unobtanium_v6 to any \
main auth hmac-sha1 enc aes-256 \
quick auth hmac-sha1 enc aes-256 \
psk Sahpeque2quieC8e \
tag IPSEC-UNO

The link between both machines seems to be up and running. On both
machines, I have configured a bridge with the link2 flag set, which
according to the manpage causes IPSec traffic to be sent over the
bridge. The bridges each have a vether device in them, with addresses in
the subnet in the ipsec.conf.

Pinging the other side of the tunnel works fine, as does other direct
traffic, but only if it does not originate from the link-local address
of the vether device.

Using tcpdump on pflog0 with a pass log inet6 in /etc/pf.conf, does
not show anything. Shouldn't traffic at least show up in pf?

What did I miss? Using from any to any does not change the situation
at hand.

-- 
Gregor Best



Freetype and Fontconfig on OpenBSD

2013-08-25 Thread eatg75
Hi there, as you can presume I new to OpenBSD (but not a newbie at
all) and I like well rendered fonts
and whatnot, a tool that I really love in GNU/Linux systems is
_fontconfig _because It lets me tweaking
fonts to the finer grain and mostly because I can replace fonts,
anyway, I was surfing at 
http://openports.se searching for the packages freetype and
fontconfig, but, I could not find the 
fontconfig but found freetype version 1.x which is almost a decade
old, I was wondering why these
packages I are not in OpenBSD ports, is it because we rarely have need
for them in OpenBSD? Or
is the apple's rendering patents that freetype uses? (If I'm not wrong
those patents have expired).

I would like to hear some thought on this.
Thank you.
 eatg75



Re: Freetype and Fontconfig on OpenBSD

2013-08-25 Thread Marc Espie
On Sun, Aug 25, 2013 at 11:17:38PM +0100, eat...@hush.com wrote:
 Hi there, as you can presume I new to OpenBSD (but not a newbie at
 all) and I like well rendered fonts
[...]
 http://openports.se searching for the packages freetype and
 fontconfig, but, I could not find the 
 fontconfig but found freetype version 1.x which is almost a decade
 old, I was wondering why these
 packages I are not in OpenBSD ports, is it because we rarely have need
 for them in OpenBSD? Or

No, it's because they're in the base xenocara system, and so they won't
appear in packages.

e.g., which fc-list = /usr/X11R6/bin/fc-list

fc-list --version
fontconfig version 2.10.91

that's in the faq somewhere, OpenBSD is not debian, the base system (and X)
are not packaged, they're part of the base install (for better or for worse)



Re: In some man pages Mb means MB, in others it means Mb/s

2013-08-25 Thread Zeljko Jovanovic

On 24.08.2013. 15:36, Jason McIntyre wrote:


at first i feared a can of worms, but actually it's not looking so bad.
of the two pages in base you point out, i think sort(1) definitely needs
changed. ld(1) is 3rd party, however, so i'm not touching that.

of the pf-related pages...i think hostapd.conf(5) could be clearer,


...


as far as packages, i doubt the man pages would be changed. i guess you
could talk to the individual port maintainer if you wanted.



Thank you!
As for GNU binutils and ports, I will contact their maintainers directly.

Zeljko Jovanovic



What should we look before buying a laptop?

2013-08-25 Thread Michael Paul Zamot

Hello, my name is Michael Paul Zamot, I'm from Costa Rica.
I'm using OpenBSD since two months ago and I'm in love with it.

I'm planning buying a laptop, perhaps a screen of 11 or 12 inches.

I would like to know if you know about a compatible model, under $400.
What should I look before buying one? Any recommendations?

With recent addition of AMD KMS and Intel KMS I don't think video would 
be an issue.


Thanks!