Re: FAQ entry for printing?

2014-06-30 Thread Stuart Henderson
On 2014-06-30, Alan Corey alan01...@gmail.com wrote:
 Could we have an FAQ entry for how to set up printing with lpr and/or
 cups?  I had lpr working once years ago with a text printer.  Now I
 want to print (mostly JPEGs) to an HP color laser printer (cp2025dn).
 I've got a PPD file I found on the web (it's Postscript) for the
 printer which has its own IP address.

 I'm not using color management I don't think but the files I'm trying
 to print are sRGB.  Under Windows 2000 they worked fine but XP added
 color management so now a purple flower prints blue.  I'd like to
 print under OpenBSD as an alternative.

 If somebody's got this working and could describe the setup that would
 be a good start.  I'm trying to do photo quality prints which I used
 to be able to do under Windows 2000.

 Thanks,

   Alan


The pkg-readme files for CUPS and hplip-common are very useful for
getting this setup.

/usr/local/share/doc/pkg-readmes/hplip-common-*
/usr/local/share/doc/pkg-readmes/cups-*



Re: 5.5 bsd.rd fails to boot on alix

2014-06-30 Thread Stuart Henderson
On 2014-06-29, Christian Weisgerber na...@mips.inka.de wrote:
 Dewey Hylton:

  I vaguely remember that at some point there was a change that
  requires a new boot(8), otherwise a serial console won't be set
  correctly with a new kernel.
 
 hmmm ... would this affect both pxe and locally booting bsd.rd?

 It affects both pxeboot(8) and boot(8) on disk.

 where is this documented? 

 I don't think it is explicitly documented anywhere, but this may
 be pertinent:

 Upgrades are only supported from one release to the release immediately
  following it. Do not skip releases. If you got lucky skipping releases
  in the past, you may not this time.


I documented this carefully in current.html (after having been bitten
by it on a couple of machines) but unfortunately this didn't make it
through to the release notes.

+a name=20140214/a
+h32014/02/14 - amd64/i386 serial consoles need current bootloader/h3
+This is a reminder of a change which
+a href=http://permalink.gmane.org/gmane.os.openbsd.cvs/124092;took place
+earlier/a: backward compatibility for learning about a serial console device
+from old boot loaders was removed.
+This only affects those who will be doing a bremote/b upgrade bvia serial
+console/b on bamd64/i386/b who do not already have BOOT 3.20 (amd64)
+or BOOT 3.18 (i386).p
+The boot loader is updated as part of the normal upgrade procedure
+via the install media, but users who have previously upgraded from
+OpenBSD 5.2 or earlier using the without install kernel method on a
+running system may have missed this step.
+If this is the case, you can either do a ramdisk-based update to
+OpenBSD 5.4 first (even if you are already running 5.4), or manually
+use
+a 
href=http://www.openbsd.org/cgi-bin/man.cgi?query=installbootmanpath=OpenBSD+5%2e4arch=i386;installboot(8)/a
+!-- XXX do not update 5.4 link above to 5.5, this needs to show the old
+installboot syntax which has now changed --
+to update to boot blocks from OpenBSD 5.3 or 5.4, before attempting to
+boot a 5.5 kernel or installer.



/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Wesley MOUEDINE ASSABY

Hi,

I'm trying to make mailserv project working with the last OpenBSD 
version.


I meet this error :

/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load 
specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so 
(LoadError)

from /var/mailserv/scripts/rrdmon_create.rb:2

I checked the file 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so exists.
I already read the documentation about rrdtool-1.4.8p1. (located in 
/usr/local/share/doc/pkg-readmes)


Packages Installed :
ruby-1.8.7.374p0object oriented script language with threads
ruby-1.9.3.484p0object oriented script language with threads
ruby-daemons-1.1.9p0 wrap existing Ruby scripts to be run as a daemon
ruby-fastercsv-1.5.4p2 faster Ruby CSV library
ruby-fastthread-1.0.7p9 optimized replacement for Ruby thread.rb 
primitives

ruby-gem_plugin-0.2.3p7 install Ruby gems as plugins
ruby-gems-1.8.23p1  package management framework for the Ruby language
ruby-iconv-1.8.7.374 libiconv interface for ruby
ruby-mongrel-1.1.5p6 fast HTTP library and server for Ruby
ruby-mysql-2.8.1p16 access a MySQL database from Ruby
ruby-rake-0.9.2.2p0 ruby make
ruby-rrd-1.4.8p1ruby interface to librrd
ruby19-hoe-2.12.3p1 simple rake/rubygems helper for project Rakefiles

$(ldconfig -r | grep rrd) give me :
139:-lrrd.4.0 = /usr/local/lib/librrd.so.4.0
140:-lrrd_th.4.0 = /usr/local/lib/librrd_th.so.4.0

$(ldd /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so) give me :

StartEnd  Type Open Ref GrpRef Name
0702e000 27032000 dlib 10   0  
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
06448000 26455000 rlib 01   0  
/usr/local/lib/librrd.so.4.0
05814000 2583f000 rlib 01   0  
/usr/local/lib/libruby18.so.0.0

06bc6000 26bcf000 rlib 013   0  /usr/lib/libm.so.9.0
0e1bf000 2e1c3000 rlib 01   0  
/usr/local/lib/libpangocairo-1.0.so.3600.0
0396f000 23974000 rlib 011   0  
/usr/lib/libpthread.so.18.0
050fe000 25108000 rlib 03   0  
/usr/X11R6/lib/libpixman-1.so.32.4
0c77d000 2c785000 rlib 03   0  
/usr/local/lib/libpng.so.17.1
09da1000 29da5000 rlib 03   0  
/usr/X11R6/lib/libxcb-shm.so.1.0
067ec000 267f rlib 03   0  
/usr/X11R6/lib/libxcb-render.so.1.0
0d678000 2d67c000 rlib 03   0  
/usr/X11R6/lib/libXrender.so.6.0
021e9000 221ed000 rlib 03   0  
/usr/X11R6/lib/libXext.so.13.0
035a1000 2361f000 rlib 05   0  
/usr/X11R6/lib/libX11.so.16.0
0297b000 2298 rlib 08   0  
/usr/X11R6/lib/libxcb.so.3.0
0b102000 2b11a000 rlib 02   0  
/usr/local/lib/libcairo.so.12.2
0e448000 2e44d000 rlib 02   0  
/usr/local/lib/libpangoft2-1.0.so.3600.0
0649 264a3000 rlib 03   0  
/usr/local/lib/libharfbuzz.so.4.2
06042000 2604a000 rlib 04   0  
/usr/local/lib/libgraphite2.so.0.0
0767c000 27694000 rlib 03   0  
/usr/local/lib/libpango-1.0.so.3600.0
079c7000 279cb000 rlib 04   0  
/usr/local/lib/libgmodule-2.0.so.3800.0
0b625000 2b629000 rlib 04   0  
/usr/local/lib/libgthread-2.0.so.3800.0
0915e000 2916b000 rlib 04   0  
/usr/local/lib/libgobject-2.0.so.3800.0
0c779000 2c77d000 rlib 05   0  
/usr/local/lib/libffi.so.0.0
05441000 25457000 rlib 09   0  
/usr/local/lib/libpcre.so.3.0
0cf6c000 2cfc1000 rlib 08   0  
/usr/local/lib/libglib-2.0.so.3800.0
00a46000 20a57000 rlib 04   0  
/usr/X11R6/lib/libfontconfig.so.9.0
010b3000 210cd000 rlib 06   0  
/usr/X11R6/lib/libfreetype.so.22.0
038c 238c5000 rlib 05   0  
/usr/lib/libexpat.so.11.0
0c2bb000 2c2bf000 rlib 07   0  
/usr/X11R6/lib/libpthread-stubs.so.2.0
0ae99000 2aec rlib 01   0  
/usr/local/lib/libxml2.so.15.1

0616e000 26175000 rlib 08   0  /usr/lib/libz.so.5.0
049e3000 249e7000 rlib 09   0  
/usr/local/lib/libintl.so.6.0
0e60c000 2e6ec000 rlib 011   0  
/usr/local/lib/libiconv.so.6.0
0d051000 2d055000 rlib 02   0  
/usr/X11R6/lib/libXau.so.10.0
0111e000 21123000 rlib 02   0  
/usr/X11R6/lib/libXdmcp.so.11.0
0cba8000 2cbd6000 rlib 02   0  
/usr/lib/libstdc++.so.57.0


Any idea ?

Thank you very much.

Cheers,

Wesley MOUEDINE ASSABY



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Wesley MOUEDINE ASSABY

Now, error i have using LD_DEBUG :

env LD_DEBUG=1 ruby18 /var/mailserv/scripts/rrdmon_create.rb :

...
loading: libexpat.so.11.0 required by /usr/local/lib/librrd.so.4.0
 flags /usr/lib/libexpat.so.11.0 = 0x0
obj /usr/lib/libexpat.so.11.0 has 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so as head

loading: libXext.so.13.0 required by /usr/local/lib/librrd.so.4.0
 flags /usr/X11R6/lib/libXext.so.13.0 = 0x0
obj /usr/X11R6/lib/libXext.so.13.0 has 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so as head

loading: libpthread.so.18.0 required by /usr/local/lib/librrd.so.4.0
 flags /usr/lib/libpthread.so.18.0 = 0x68
dlopen: failed to open libpthread.so.18.0
unload_shlib called on 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so

unload_shlib called on /usr/local/lib/librrd.so.4.0
unload_shlib unloading on /usr/local/lib/librrd.so.4.0
unload_shlib called on /usr/local/lib/libruby18.so.0.0
unload_shlib called on /usr/lib/libm.so.9.0
unload_shlib called on /usr/lib/libc.so.73.1
unload_shlib unloading on 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
dlopen: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: done 
(failed).
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load 
specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so 
(LoadError)

from /var/mailserv/scripts/rrdmon_create.rb:2
doing dtors
doing dtors obj 0x8376a288 @0xb189630: 
[/usr/local/lib/libruby18.so.0.0]

doing dtors obj 0x8376a080 @0xc7cab30: [/usr/lib/libc.so.73.1]
doing dtors obj 0x844ee068 @0x6b20900: [/usr/lib/libm.so.9.0]


and verify now : ldconfig -r | grep libpthread.so.18.0
68:-lpthread.18.0 = /usr/lib/libpthread.so.18.0

and the file exists.

I don't understand why it is not loaded ...
Any idea ?

On 30.06.2014 16:52, sven falempin wrote:

ldd  /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so would
probably give the raeson

it is a dlib

On Mon, Jun 30, 2014 at 8:38 AM, Wesley MOUEDINE ASSABY
open...@e-solutions.re wrote:

Hi,

I'm trying to make mailserv project working with the last OpenBSD 
version.


I meet this error :

/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load 
specified
object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so 
(LoadError)

from /var/mailserv/scripts/rrdmon_create.rb:2

I checked the file 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so

exists.
I already read the documentation about rrdtool-1.4.8p1. (located in
/usr/local/share/doc/pkg-readmes)

Packages Installed :
ruby-1.8.7.374p0object oriented script language with threads
ruby-1.9.3.484p0object oriented script language with threads
ruby-daemons-1.1.9p0 wrap existing Ruby scripts to be run as a 
daemon

ruby-fastercsv-1.5.4p2 faster Ruby CSV library
ruby-fastthread-1.0.7p9 optimized replacement for Ruby thread.rb 
primitives

ruby-gem_plugin-0.2.3p7 install Ruby gems as plugins
ruby-gems-1.8.23p1  package management framework for the Ruby 
language

ruby-iconv-1.8.7.374 libiconv interface for ruby
ruby-mongrel-1.1.5p6 fast HTTP library and server for Ruby
ruby-mysql-2.8.1p16 access a MySQL database from Ruby
ruby-rake-0.9.2.2p0 ruby make
ruby-rrd-1.4.8p1ruby interface to librrd
ruby19-hoe-2.12.3p1 simple rake/rubygems helper for project 
Rakefiles


$(ldconfig -r | grep rrd) give me :
139:-lrrd.4.0 = /usr/local/lib/librrd.so.4.0
140:-lrrd_th.4.0 = /usr/local/lib/librrd_th.so.4.0

$(ldd /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so) give me 
:


StartEnd  Type Open Ref GrpRef Name
0702e000 27032000 dlib 10   0
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
06448000 26455000 rlib 01   0  
/usr/local/lib/librrd.so.4.0

05814000 2583f000 rlib 01   0
/usr/local/lib/libruby18.so.0.0
06bc6000 26bcf000 rlib 013   0  /usr/lib/libm.so.9.0
0e1bf000 2e1c3000 rlib 01   0
/usr/local/lib/libpangocairo-1.0.so.3600.0
0396f000 23974000 rlib 011   0  
/usr/lib/libpthread.so.18.0

050fe000 25108000 rlib 03   0
/usr/X11R6/lib/libpixman-1.so.32.4
0c77d000 2c785000 rlib 03   0  
/usr/local/lib/libpng.so.17.1

09da1000 29da5000 rlib 03   0
/usr/X11R6/lib/libxcb-shm.so.1.0
067ec000 267f rlib 03   0
/usr/X11R6/lib/libxcb-render.so.1.0
0d678000 2d67c000 rlib 03   0
/usr/X11R6/lib/libXrender.so.6.0
021e9000 221ed000 rlib 03   0
/usr/X11R6/lib/libXext.so.13.0
035a1000 2361f000 rlib 05   0  
/usr/X11R6/lib/libX11.so.16.0
0297b000 2298 rlib 08   0  
/usr/X11R6/lib/libxcb.so.3.0

0b102000 2b11a000 rlib 02   0
/usr/local/lib/libcairo.so.12.2
0e448000 2e44d000 rlib 02   0
/usr/local/lib/libpangoft2-1.0.so.3600.0
0649 264a3000 rlib 03   0
/usr/local/lib/libharfbuzz.so.4.2
06042000 2604a000 rlib 04   0
/usr/local/lib/libgraphite2.so.0.0
0767c000 27694000 rlib 03   0

Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Ted Unangst
On Mon, Jun 30, 2014 at 16:38, Wesley MOUEDINE ASSABY wrote:
 Hi,
 
 I'm trying to make mailserv project working with the last OpenBSD
 version.
 
 I meet this error :
 
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
 specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 (LoadError)
 from /var/mailserv/scripts/rrdmon_create.rb:2

LD_PRELOAD=libpthread.so ruby 



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread sven falempin
On Mon, Jun 30, 2014 at 10:10 AM, Wesley MOUEDINE ASSABY 
open...@e-solutions.re wrote:

 Now, error i have using LD_DEBUG :

 env LD_DEBUG=1 ruby18 /var/mailserv/scripts/rrdmon_create.rb :

 ...
 loading: libexpat.so.11.0 required by /usr/local/lib/librrd.so.4.0
  flags /usr/lib/libexpat.so.11.0 = 0x0
 obj /usr/lib/libexpat.so.11.0 has 
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 as head
 loading: libXext.so.13.0 required by /usr/local/lib/librrd.so.4.0
  flags /usr/X11R6/lib/libXext.so.13.0 = 0x0
 obj /usr/X11R6/lib/libXext.so.13.0 has 
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 as head
 loading: libpthread.so.18.0 required by /usr/local/lib/librrd.so.4.0
  flags /usr/lib/libpthread.so.18.0 = 0x68
 dlopen: failed to open libpthread.so.18.0
 unload_shlib called on /usr/local/lib/ruby/site_ruby/
 1.8/i386-openbsd/RRD.so
 unload_shlib called on /usr/local/lib/librrd.so.4.0
 unload_shlib unloading on /usr/local/lib/librrd.so.4.0
 unload_shlib called on /usr/local/lib/libruby18.so.0.0
 unload_shlib called on /usr/lib/libm.so.9.0
 unload_shlib called on /usr/lib/libc.so.73.1
 unload_shlib unloading on /usr/local/lib/ruby/site_ruby/
 1.8/i386-openbsd/RRD.so
 dlopen: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: done
 (failed).
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
 specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 (LoadError)
 from /var/mailserv/scripts/rrdmon_create.rb:2
 doing dtors
 doing dtors obj 0x8376a288 @0xb189630: [/usr/local/lib/libruby18.so.0.0]
 doing dtors obj 0x8376a080 @0xc7cab30: [/usr/lib/libc.so.73.1]
 doing dtors obj 0x844ee068 @0x6b20900: [/usr/lib/libm.so.9.0]


 and verify now : ldconfig -r | grep libpthread.so.18.0
 68:-lpthread.18.0 = /usr/lib/libpthread.so.18.0

 and the file exists.

 I don't understand why it is not loaded ...
 Any idea ?


 On 30.06.2014 16:52, sven falempin wrote:

 ldd  /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so would
 probably give the raeson

 it is a dlib

 On Mon, Jun 30, 2014 at 8:38 AM, Wesley MOUEDINE ASSABY
 open...@e-solutions.re wrote:

 Hi,

 I'm trying to make mailserv project working with the last OpenBSD
 version.

 I meet this error :

 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
 specified
 object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 (LoadError)
 from /var/mailserv/scripts/rrdmon_create.rb:2

 I checked the file /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 exists.
 I already read the documentation about rrdtool-1.4.8p1. (located in
 /usr/local/share/doc/pkg-readmes)

 Packages Installed :
 ruby-1.8.7.374p0object oriented script language with threads
 ruby-1.9.3.484p0object oriented script language with threads
 ruby-daemons-1.1.9p0 wrap existing Ruby scripts to be run as a daemon
 ruby-fastercsv-1.5.4p2 faster Ruby CSV library
 ruby-fastthread-1.0.7p9 optimized replacement for Ruby thread.rb
 primitives
 ruby-gem_plugin-0.2.3p7 install Ruby gems as plugins
 ruby-gems-1.8.23p1  package management framework for the Ruby language
 ruby-iconv-1.8.7.374 libiconv interface for ruby
 ruby-mongrel-1.1.5p6 fast HTTP library and server for Ruby
 ruby-mysql-2.8.1p16 access a MySQL database from Ruby
 ruby-rake-0.9.2.2p0 ruby make
 ruby-rrd-1.4.8p1ruby interface to librrd
 ruby19-hoe-2.12.3p1 simple rake/rubygems helper for project Rakefiles

 $(ldconfig -r | grep rrd) give me :
 139:-lrrd.4.0 = /usr/local/lib/librrd.so.4.0
 140:-lrrd_th.4.0 = /usr/local/lib/librrd_th.so.4.0

 $(ldd /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so) give me :

 StartEnd  Type Open Ref GrpRef Name
 0702e000 27032000 dlib 10   0
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
 06448000 26455000 rlib 01   0
  /usr/local/lib/librrd.so.4.0
 05814000 2583f000 rlib 01   0
 /usr/local/lib/libruby18.so.0.0
 06bc6000 26bcf000 rlib 013   0  /usr/lib/libm.so.9.0
 0e1bf000 2e1c3000 rlib 01   0
 /usr/local/lib/libpangocairo-1.0.so.3600.0
 0396f000 23974000 rlib 011   0
  /usr/lib/libpthread.so.18.0
 050fe000 25108000 rlib 03   0
 /usr/X11R6/lib/libpixman-1.so.32.4
 0c77d000 2c785000 rlib 03   0
  /usr/local/lib/libpng.so.17.1
 09da1000 29da5000 rlib 03   0
 /usr/X11R6/lib/libxcb-shm.so.1.0
 067ec000 267f rlib 03   0
 /usr/X11R6/lib/libxcb-render.so.1.0
 0d678000 2d67c000 rlib 03   0
 /usr/X11R6/lib/libXrender.so.6.0
 021e9000 221ed000 rlib 03   0
 /usr/X11R6/lib/libXext.so.13.0
 035a1000 2361f000 rlib 05   0
  /usr/X11R6/lib/libX11.so.16.0
 0297b000 2298 rlib 08   0
  /usr/X11R6/lib/libxcb.so.3.0
 0b102000 2b11a000 rlib 02   0
 /usr/local/lib/libcairo.so.12.2
 0e448000 2e44d000 rlib 02   0
 /usr/local/lib/libpangoft2-1.0.so.3600.0
 0649 264a3000 rlib 03   0
 

Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Wesley MOUEDINE ASSABY

On 30.06.2014 18:11, Ted Unangst wrote:

On Mon, Jun 30, 2014 at 16:38, Wesley MOUEDINE ASSABY wrote:

Hi,

I'm trying to make mailserv project working with the last OpenBSD
version.

I meet this error :

/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
specified object - 
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so

(LoadError)
from /var/mailserv/scripts/rrdmon_create.rb:2


LD_PRELOAD=libpthread.so ruby 


I tried this : env LD_PRELOAD=/usr/lib/libpthread.so.18.0 ruby18 
path_to_rb

The error go away. But the ruby app doesn't work.



CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Peus, Christoph
Hi all,

in the official CARP/pfsync faq here: http://www.openbsd.org/faq/pf/carp.html
I found an information, that suggests that it's possible to use CARP without
IPs attached to the physical interfaces used in a CARP group:

ipaddress
This is the shared IP address assigned to the redundancy group. This address
does not have to be in the same subnet as the IP address on the physical
interface (if present). This address needs to be the same on all hosts in the
group, however.

And in this netbsd related guide:
https://www.netbsd.org/docs/guide/en/chap-carp.html I found this :
...although with the introduction of the carpdev directive, there is no more
need for IP addresses on the physical interfaces.

Is it really possible to use CARP without IPs assigned to the physical
interfaces? How does the communication between the interfaces of a group work
if there are no IPs assigned to them? Which disadvantages could this mode of
operation have compared to the classic mode with IPs assigned? (Each and every
configuration example I found on the net including those on the OpenBSD site,
use IPs assigned to the physical interfaces...)

Thanks!

Regards
Christoph



Private Universit?t Witten/Herdecke gGmbH
Alfred-Herrhausen-Stra?e 50
D - 58448 Witten

Homepage: http://www.uni-wh.de
Twitter: http://twitter.com/UniWH
Facebook: http://www.facebook.com/UniWH

Gesch?ftsf?hrung: Prof. Dr. Martin Butzlaff (Pr?sident), Dipl. oec. Jan Peter
Nonnenkamp (Kanzler)

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671



Re: CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Henning Brauer
* Peus, Christoph christoph.p...@uni-wh.de [2014-06-30 17:24]:
 Is it really possible to use CARP without IPs assigned to the physical
 interfaces?

Sure.

 How does the communication between the interfaces of a group work
 if there are no IPs assigned to them?

multicast

 Which disadvantages could this mode of operation have compared to the
 classic mode with IPs assigned?

the backup node might not be able to reach the network on the carp if

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services GmbH, http://bsws.de, Full-Service ISP
Secure Hosting, Mail and DNS. Virtual  Dedicated Servers, Root to Fully Managed
Henning Brauer Consulting, http://henningbrauer.com/



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Paul de Weerd
I prefer topposting over forgetting to trim your quote...  If you
don't, I keep thinking you must not want me to actually read your
reply.

On Mon, Jun 30, 2014 at 10:14:58AM -0400, sven falempin wrote:
| dont forget to bottom post here

-- 
[++-]+++.+++[---].+++[+
+++-].++[-]+.--.[-]
 http://www.weirdnet.nl/ 



Re: CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Peus, Christoph
Henning, thanks for your quick reply.

 Which disadvantages could this mode of operation have compared to the
 classic mode with IPs assigned?

the backup node might not be able to reach the network on the carp if

Hmm... what does this mean to me..? To make it more precise - my setup looks 
like this:

Physical NIC - trunk interface - vlan interface = physical interface of the 
carpdev -  carpdev - virtual IP  (no IP on the vlan interface)

I tested this setup and experienced unpredictable transitions from and to 
master/backup state on different carp groups configured that way and also 
unstable connections with 50% packet loss. I strictly followed the carp/pfsync 
configuration guidance in respect of advskew, sysctl.conf options and so on. So 
I wondered if this may have been caused by the no IP configuration.

Is multicast only used when there are no IPs configured for the physical 
interfaces of the carpdevs?

Regards
Christoph


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Homepage:  http://www.uni-wh.de
Twitter:   http://twitter.com/UniWH
Facebook:  http://www.facebook.com/UniWH

Geschäftsführung: Prof. Dr. Martin Butzlaff (Präsident), Dipl. oec. Jan Peter 
Nonnenkamp (Kanzler)

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671



Re: 5.5 bsd.rd fails to boot on alix

2014-06-30 Thread Dewey Hylton
Christian Weisgerber:

   I vaguely remember that at some point there was a change that
   requires a new boot(8), otherwise a serial console won't be set
   correctly with a new kernel.
  
  hmmm ... would this affect both pxe and locally booting bsd.rd?
 
 It affects both pxeboot(8) and boot(8) on disk.
 
  where is this documented?
 
 I don't think it is explicitly documented anywhere, but this may
 be pertinent:
 
 Upgrades are only supported from one release to the release
 immediately
  following it. Do not skip releases. If you got lucky skipping
  releases
  in the past, you may not this time.

excellent, copying the updated pxeboot(8) into place was the ticket. 

as this was not an upgrade, but instead a wipe-and-reload it never occurred to 
me that the boot(8) blurb in the upgrading documentation would have been 
relevant. i now understand that pxeboot(8) is just a modified version of 
boot(8), but still may not have found it myself because i didn't make that 
connection.

thanks for pointing this out.



Re: CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Adam Thompson
On 2014-06-30 11:11, Peus, Christoph wrote: 

 Henning, thanks for
your quick reply.
 
 Which disadvantages could this mode of
operation have compared to the classic mode with IPs assigned?
 the
backup node might not be able to reach the network on the carp if
 

Hmm... what does this mean to me..? To make it more precise - my setup
looks like this:
 
 Physical NIC - trunk interface - vlan interface
= physical interface of the carpdev - carpdev - virtual IP (no IP on
the vlan interface)
 
 I tested this setup and experienced
unpredictable transitions from and to master/backup state on different
carp groups configured that way and also unstable connections with 50%
packet loss. I strictly followed the carp/pfsync configuration guidance
in respect of advskew, sysctl.conf options and so on. So I wondered if
this may have been caused by the no IP configuration.
 
 Is
multicast only used when there are no IPs configured for the physical
interfaces of the carpdevs?

Not exactly. 

From ifconfig(8): 


CARPPEER _peer_address_
 Send the carp advertisements to a specified
point-to-point peer
 or multicast group instead of sending the messages
to the default
 carp multicast group. The _peer_address_ is the IP
address of the
 other host taking part in the carp cluster. With this
option,
 carp(4) traffic can be protected using ipsec(4) and it may
be
 desired in networks that do not allow or have problems with IPv4

multicast traffic.

So it always uses multicast unless you specify
carppeer. Reading ip_carp.c, I don't see any reason carppeer can't be
a completely arbitrary address, including an address bound to a loopback
adapter. Using carppeer unwisely can defeat the purpose of the multicast
transmission, i.e. detecting layer 2 failures, if your layer 3 ensures
the carppeer address remains reachable (e.g. both hosts are running OSPF
and can re-route over another interface). 

Recap: 
- Interface state
(carrier/no-carrier) detects local layer 1 failures only 
- Multicast
heartbeat detects layer 2 failures, and remote layer 1 failures; this is
desirable in VLAN scenarios, I believe, where carrier/no-carrier does
not signify anything useful. 
- Using carpdev specifies the interface on
which to bind the CARP address and on which to send multicast packets.
If it is not specified, it is inferred from the subnet. 
- Using
carppeer disables multicast - the nominal use case is to protect CARP
traffic with IPSec. Other uses are possible, but questionable because
they may break lower-level assumptions. (or so I believe, anyway. I'm
sure Henning will correct me if not.) 

FWIW, I don't use carppeer even
though it could save me substantial IP address space, for a couple of
reasons: 
1) I want the canary-in-the-coal-mine to inform me of any
layer 2 weirdness 
2) I prefer predictability and normal use cases 
3)
if I ever stop using CARP and switch to HSRP or VRRP, I'll need those
addresses again 

-Adam 



Re: CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Henning Brauer
* Adam Thompson athom...@athompso.net [2014-06-30 19:15]:
 traffic with IPSec. Other uses are possible, but questionable because
 they may break lower-level assumptions. (or so I believe, anyway. I'm
 sure Henning will correct me if not.) 

I don't think carppeer uses than manually specifying the IP on the
carpdev of the other node are very well tested, so there might be
surprises, but I really don't why other uses shouldn't work as long as
the nodes see each other.

 FWIW, I don't use carppeer even
 though it could save me substantial IP address space, for a couple of
 reasons: 
 1) I want the canary-in-the-coal-mine to inform me of any
 layer 2 weirdness 
 2) I prefer predictability and normal use cases 
 3)
 if I ever stop using CARP and switch to HSRP or VRRP, I'll need those
 addresses again 

you are creating massive confusion here regarding carppeer and
unnumbered carpdevs - those really have nothing to do with each other.

That said, I do use unnumbered carpdevs in some cases and places.

If carp0 has 10.0.0/24, and carp0 is backup on nodeX, nodeX might not
be able to reach 10.0.0/24. No more, no less. Can hurt, esp when the
default gateway is in that net, but is perfectly fine in many cases.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services GmbH, http://bsws.de, Full-Service ISP
Secure Hosting, Mail and DNS. Virtual  Dedicated Servers, Root to Fully Managed
Henning Brauer Consulting, http://henningbrauer.com/



Re: CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Adam Thompson
On 2014-06-30 14:06, Henning Brauer wrote: 

 FWIW, I don't use
carppeer even though it could save me substantial IP address space, for
a couple of reasons: 1) I want the canary-in-the-coal-mine to inform me
of any layer 2 weirdness 2) I prefer predictability and normal use
cases 3) if I ever stop using CARP and switch to HSRP or VRRP, I'll need
those addresses again
 
 you are creating massive confusion here
regarding carppeer and
 unnumbered carpdevs - those really have nothing
to do with each other.
 
 That said, I do use unnumbered carpdevs in
some cases and places.
 
 If carp0 has 10.0.0/24, and carp0 is backup
on nodeX, nodeX might not
 be able to reach 10.0.0/24. No more, no
less. Can hurt, esp when the
 default gateway is in that net, but is
perfectly fine in many cases.

Whoops, you're right - I fixed a few
errors in my email before sending, but missed those ones. 

#1 is
somewhat valid - using carppeer would prevent me from learning that
multicast was broken. I'm not sure how it could ever break on a L2 VLAN,
but still... 

#2 is somewhat valid - using carppeer isn't the typical
scenario. Nor is using carpdev, although I have the impression that use
of carpdev (and therefore only needing 1 IP address) is increasing. 

#3
really has nothing to do with carppeer, unless I deliberately used
addresses foreign to that interface/subnet, which would probably be
silly, but could be another way around needing 3 IPs in the same subnet
to implement CARP. Using carpdev is a much more sensible option to avoid
IP address proliferation with CARP. 

-Adam 



Re: CARP without IP on the physical interfaces of carp group?

2014-06-30 Thread Henning Brauer
* Adam Thompson athom...@athompso.net [2014-06-30 21:31]:
 Nor is using carpdev [the typical case], although I have the
 impression that use of carpdev (and therefore only needing 1 IP
 address) is increasing.  

I consider carpdev that natural use, we're stacking interfaces after
all.

I even wouldn't be surprised if the !carpdev case bites the bullet at
some point, should we change/redesign basics. There's nothing up in
that direction tho, call it a vague feeling.

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services GmbH, http://bsws.de, Full-Service ISP
Secure Hosting, Mail and DNS. Virtual  Dedicated Servers, Root to Fully Managed
Henning Brauer Consulting, http://henningbrauer.com/



Re: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load specified object

2014-06-30 Thread Stuart Henderson
On 2014-06-30, Wesley MOUEDINE ASSABY open...@e-solutions.re wrote:
 dlopen: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: done
 (failed).
 /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
 specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
...

 and verify now : ldconfig -r | grep libpthread.so.18.0
 68:-lpthread.18.0 = /usr/lib/libpthread.so.18.0

 and the file exists.

 I don't understand why it is not loaded ...

dlopen() doesn't automatically pull in libpthread. Either the main
program must be linked against it, or you need LD_PRELOAD.


On 2014-06-30, Wesley MOUEDINE ASSABY open...@e-solutions.re wrote:
 On 30.06.2014 18:11, Ted Unangst wrote:

 LD_PRELOAD=libpthread.so ruby 

 I tried this : env LD_PRELOAD=/usr/lib/libpthread.so.18.0 ruby18 
 path_to_rb
 The error go away. But the ruby app doesn't work.

So this fixed one problem, now you have another and need to debug a
bit further..



Re: crowding out bsd using systemd?

2014-06-30 Thread frank ernest
If I'm posting to the wrong bsd list kindly redirect me to the correct
one, I thought misc was best. 
https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systemd-utl.git There is
either something wrong with the web page or firefox as it mentions that
the connection was reset while the page was loading. However, I've used
curl and worked around the issue. I'm not going to read the code just
yet. But I wanted to know, (it's docs are unclear as to what it is
supposed to do,) is it intended to replace systemd? I was going to
propose, if nobody else had, to work to replace systemd. I've read a lot
about it and it's been sending chills up my spine. The devs are
totally unconcerned about how their project breaks others and the
language about policing the processes and the users using cgroups to
force them to only use X amout of cpu time is, well, dictatorish and
promotes laxity in the way of writing your programs and running them to
be light on resources. But, like I said, are other people fixing this in
a cross platform way, or should I work towards that end? The reason
sysVinit is nolonger supported is because it is deemed to difficult to
maintain, at least by the opensuse community. Oh, before I forget, the
systemd project DOES do one thing and do it well, (they cause problems,)
they start and controll all processes on the system. If you read the
initial announcement it even mentions that they wish to replace inetd and
in later pages they also mention cron as something that they could
replace (and at the rate that they are going they will.) Thanks, David



Re: crowding out bsd using systemd?

2014-06-30 Thread Sadiq Saif
On 6/30/2014 19:31, frank ernest wrote:
 If I'm posting to the wrong bsd list kindly redirect me to the correct
 one, I thought misc was best. 
 https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systemd-utl.git There is


According to the page about the project on the Google Summer of Code
2014 website:

I intend to produce the four systemd utilities as outlined on the
OpenBSD Foundation's web page, in full form. In doing so, I intend to
adhere to the UNIX philosophy of programming the *BSD community expects
as well as the utmost level of security the OpenBSD community,
specifically, expects. Considering the contentious, political climate
surrounding systemd, I intend for my code to be as unobtrusive and
compliant as possible, specifically with the OpenBSD community.

https://www.google-melange.com/gsoc/project/details/google/gsoc2014/kremlin/5639274879778816

-- 
Sadiq Saif
XMPP - statics...@jabber.org



support new

2014-06-30 Thread Miriam Salas
0
C Argentina
P Buenos Aires
T Buenos Aires
Z 1044
O SoporteSoftwareLibre.com
I Miriam Salas
A Lavalle 1783
M i...@soportesoftwarelibre.com
U http://www.soportesoftwarelibre.com/
B +54 11 3221 0552
X +54 11 3221 0552 int 0552
N We offer professional services to companies implementing open source
in their IT infrastructure. We use OpenBSD in firewalls, edge servers
and authentication servers. FreeBSD used mainly in data servers.



Re: crowding out bsd using systemd?

2014-06-30 Thread ian kremlin
 https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systemd-utl.git There
 is either something wrong with the web page or firefox as it mentions
 that the connection was reset while the page was loading. However,
 I've used

you probably caught me in the middle of a reboot

 yet. But I wanted to know, (it's docs are unclear as to what it is
 supposed to do,) is it intended to replace systemd? I was going to

no. no, no, no it is not. it is meant to provide a few very basic DBus
interfaces who expose an API similar to systemd ones. this is necessary
for porting some GNOME components that depend on them. most of these
DBus interfaces (hostnamed, localed, timedated) have method/properties
that map straight to OpenBSD's standard library. the last one, logind,
is quite complicated and most of my work will concern setting up a
framework for future development.

 propose, if nobody else had, to work to replace systemd. I've read a
 lot about it and it's been sending chills up my spine. The devs are

i am not personally a fan of systemd either, i don't intend to bring
systemd to openbsd or anything like that. my code will still have to
stand up to the usual caliber openbsd ports are subject to, there are no
special guarantees because i am a gsoc student.

thanks
ian