Dealing with a mix of DHCP and fixed addresses

2015-05-09 Thread Alan Corey
I'm pretty sure I haven't seen this in the FAQ.

I don't like DHCP, I consider it useful in temporary situations only.
I've had a few machines on a LAN with fixed IPs for years and it all
works fine.

Along comes a cell phone and it becomes my internet gateway, at least
most of the time.  Typical Android anyway, I've seen 2 of them work
the same way.  When I turn on the WiFi hotspot it becomes
192.168.43.1.  It assigns IPs from a pool that includes 192.168.43.34,
192.168.43.72, 192.168.43.134

I am running Debian on this one but I'm not sure to what degree I can
circumnavigate the Android hotspot.  I could just turn it off I
suppose and do my sharing from within Linux.  If I turn on Android's
WiFi it expects to connect to an AP, which I could set up.  Trying to
bridge to a WiFi interface on an OpenBSD machine that's in a DHCP
arrangement gives an error.  The first machine to connect to the phone
always gets assigned 192.168.43.34 and the phone's IP (and gateway 
DNS) is always 192.168.43.1

I'd like to have some fixed IPs just because I want to be able to FTP
and SSH from one machine to another.  The phone's rooted, I suppose I
could try to find and modify its equivalent of dhcpd.conf.  There
isn't one but I can fiddle with how it's set up at least to some
degree.

WiFi seems the only reasonable way in and out of this thing, the USB
hardware doesn't support host mode and only works for some things.

So anyway, anybody else deal with this situation?

  Alan
-- 
Credit is the root of all evil.  - AB1JX



Re: OpenBSD Foundation and OpenBSD Project

2015-05-09 Thread Hrishikesh Muruk
Thank you for the replies. I donated the equivalent of the CD cost to
OpenBSD Project.

Hrishi

On Tue, May 5, 2015 at 11:47 AM, dan mclaughlin thev...@openmailbox.org
wrote:

 On Tue, 5 May 2015 09:49:13 +0530 Hrishikesh Muruk hris...@gmail.com
 wrote:
  Hi
 
  I dont want to purchase 5.7 CDs and pay international shipping (also done
  have a CD drive). I would like to donate that amount instead.
 
  From the OpenBSD Project donations page (
  http://www.openbsd.org/donations.html) I gather that donations to
 OpenBSD
  Project are different from donations to OpenBSD Foundation.
 
  When one purchases a OpenBSD CD from the OpenBSD store does that money
  (after admin fees etc) go to Project or Foundation?
 
  Thanks
  Hrishi
 

 Theo talks about this here:
 https://marc.info/?l=openbsd-miscm=140797419824100w=2
 and here:
 https://marc.info/?l=openbsd-miscm=140797507424445w=2



Problems Booting from CD2 of 5.7

2015-05-09 Thread Richard Laysell
Hello,

My copy of 5.7 arrived yesterday, but I seem to have problems booting
from the second CD (trying to boot an amd64 system)

The system will not boot at all - it reports that it can't see a
bootable disk.  I can boot the same system from the first CD (i386)
and this all works OK

If I take a look at the second CD, it seems that all of the files are
in uppercase, which isn't what I would have expected. The first CD
shows the installation files (base57.tgz etc.) having the expected case.

$ ls -lR 
total 153
dr-xr-xr-x  1 root  wheel   2048 Jul 29  2014 5.7
-r-xr-xr-x  1 root  wheel310 Mar 15 18:59 HARDWARE
-r-xr-xr-x  1 root  wheel  64780 Mar 15 18:59 OFWBOOT
-r-xr-xr-x  1 root  wheel   3387 Mar 15 18:59 PACKAGES
-r-xr-xr-x  1 root  wheel   2421 Mar 15 18:59 PORTS
-r-xr-xr-x  1 root  wheel   6463 Mar 15 18:59 README
-r-xr-xr-x  1 root  wheel582 Mar 15 18:59 SHA256.SIG
-r-xr-xr-x  1 root  wheel313 Mar 15 18:59 TRANS.TBL

./5.7:
total 12
dr-xr-xr-x  1 root  wheel  2048 Mar 14 20:13 AMD64
dr-xr-xr-x  1 root  wheel  2048 Mar 14 20:13 MACPPC
dr-xr-xr-x  1 root  wheel  2048 Mar  1  2014 PACKAGES
-r-xr-xr-x  1 root  wheel   133 Mar 15 18:59 TRANS.TBL

./5.7/AMD64:
total 451313
-r-xr-xr-x  1 root  wheel  57380394 Mar  8 17:04 BASE57.TGZ
-r-xr-xr-x  1 root  wheel  2048 Mar 14 20:13 BOOT.CAT
-r-xr-xr-x  1 root  wheel  10029237 Mar  8 17:04 BSD
-r-xr-xr-x  1 root  wheel  10069780 Mar  8 17:04 BSD.MP
-r-xr-xr-x  1 root  wheel   7592389 Mar  8 17:10 BSD.RD
-r-xr-xr-x  1 root  wheel 71076 Mar  8 16:54 CDBOOT
-r-xr-xr-x  1 root  wheel  2048 Mar  8 16:54 CDBR
-r-xr-xr-x  1 root  wheel  51246149 Mar  8 17:05 COMP57.TGZ
-r-xr-xr-x  1 root  wheel   1474560 Mar  8 17:10 FLOPPY57.FS
-r-xr-xr-x  1 root  wheel   2789725 Mar  8 17:05 GAME57.TGZ
-r-xr-xr-x  1 root  wheel 46518 Mar  8 17:10 INSTALL.AMD
-r-xr-xr-x  1 root  wheel   8984308 Mar  8 17:05 MAN57.TGZ
-r-xr-xr-x  1 root  wheel 80964 Mar  8 16:54 PXEBOOT
-r-xr-xr-x  1 root  wheel  1535 Mar 14 20:13 SHA256.SIG
-r-xr-xr-x  1 root  wheel   846 Mar 15 18:59 TRANS.TBL
-r-xr-xr-x  1 root  wheel  17060674 Mar  7 11:12 XBASE57.TGZ
-r-xr-xr-x  1 root  wheel  39930183 Mar  7 11:12 XFONT57.TGZ
-r-xr-xr-x  1 root  wheel  19794709 Mar  7 11:12 XSERV57.TGZ
-r-xr-xr-x  1 root  wheel   4519648 Mar  7 11:12 XSHARE57.TGZ

./5.7/MACPPC:
total 332962
-r-xr-xr-x  1 root  wheel  62022947 Mar  8 19:54 BASE57.TGZ
-r-xr-xr-x  1 root  wheel184723 Mar  8 19:20 BOOT.MAC
-r-xr-xr-x  1 root  wheel   7734082 Mar  8 19:53 BSD
-r-xr-xr-x  1 root  wheel   7747827 Mar  8 19:53 BSD.MP
-r-xr-xr-x  1 root  wheel   8457407 Mar  8 20:10 BSD.RD
-r-xr-xr-x  1 root  wheel  6917 Mar  8 19:20 BSD.TBX
-r-xr-xr-x  1 root  wheel  53558838 Mar  8 19:55 COMP57.TGZ
-r-xr-xr-x  1 root  wheel   2800308 Mar  8 19:55 GAME57.TGZ
-r-xr-xr-x  1 root  wheel 51050 Mar  8 20:10 INSTALL.MAC
-r-xr-xr-x  1 root  wheel 0 Mar  8 17:05 MAN57.TGZ
-r-xr-xr-x  1 root  wheel 64780 Mar  8 19:20 OFWBOOT
-r-xr-xr-x  1 root  wheel  1454 Mar 14 20:13 SHA256.SIG
-r-xr-xr-x  1 root  wheel   816 Mar 15 18:59 TRANS.TBL
-r-xr-xr-x  1 root  wheel  17803347 Mar  7 13:48 XBASE57.TGZ
-r-xr-xr-x  1 root  wheel 0 Mar  7 11:12 XFONT57.TGZ
-r-xr-xr-x  1 root  wheel  10045621 Mar  7 13:49 XSERV57.TGZ
-r-xr-xr-x  1 root  wheel 0 Mar  7 11:12 XSHARE57.TGZ

./5.7/PACKAGES:
total 8
dr-xr-xr-x  1 root  wheel  2048 Mar 15 18:59 AMD64
dr-xr-xr-x  1 root  wheel  2048 Mar 15 18:59 POWERPC
-r-xr-xr-x  1 root  wheel88 Mar 15 18:59 TRANS.TBL

./5.7/PACKAGES/AMD64:
total 3469
-r-xr-xr-x  1 root  wheel  1459954 Mar  7 16:56 LYNX-2_8.TGZ
-r-xr-xr-x  1 root  wheel   316899 Mar  7 16:56 RSYNC-3_.TGZ
-r-xr-xr-x  1 root  wheel  349 Mar 15 18:59 SHA256.SIG
-r-xr-xr-x  1 root  wheel  156 Mar 15 18:59 TRANS.TBL

./5.7/PACKAGES/POWERPC:
total 3554
-r-xr-xr-x  1 root  wheel  1497929 Mar  7 16:56 LYNX-2_8.TGZ
-r-xr-xr-x  1 root  wheel   322444 Mar  7 16:56 RSYNC-3_.TGZ
-r-xr-xr-x  1 root  wheel  349 Mar 15 18:59 SHA256.SIG
-r-xr-xr-x  1 root  wheel  156 Mar 15 18:59 TRANS.TBL

Is anyone else seeing similar issues?

Regards,

Richard



Re: Problems Booting from CD2 of 5.7

2015-05-09 Thread Maurice McCarthy
On Sat, May 09, 2015 at 10:36:57AM +0100 or thereabouts, Richard Laysell wrote:
 Hello,
 
 My copy of 5.7 arrived yesterday, but I seem to have problems booting
 from the second CD (trying to boot an amd64 system)
 
 The system will not boot at all - it reports that it can't see a
 bootable disk.  I can boot the same system from the first CD (i386)
 and this all works OK
 
 If I take a look at the second CD, it seems that all of the files are
 in uppercase, which isn't what I would have expected. The first CD
 shows the installation files (base57.tgz etc.) having the expected case.
 

Same trouble here.



Re: Problems Booting from CD2 of 5.7

2015-05-09 Thread Otto Moerbeek
On Sat, May 09, 2015 at 04:31:55PM +0100, Maurice McCarthy wrote:

 On Sat, May 09, 2015 at 10:36:57AM +0100 or thereabouts, Richard Laysell 
 wrote:
  Hello,
  
  My copy of 5.7 arrived yesterday, but I seem to have problems booting
  from the second CD (trying to boot an amd64 system)
  
  The system will not boot at all - it reports that it can't see a
  bootable disk.  I can boot the same system from the first CD (i386)
  and this all works OK
  
  If I take a look at the second CD, it seems that all of the files are
  in uppercase, which isn't what I would have expected. The first CD
  shows the installation files (base57.tgz etc.) having the expected case.
  
 
 Same trouble here.

It is possible that some bad cd's slipped trough, please contact the shop,

-Otto



ed -s

2015-05-09 Thread hruodr
Invoking ed -s file.txt, where file does not contain a newline at the
end, sends to stderr in spite of -s flag: newline appended. Is this 
normal behaviour?

Does ed/sed spoil files with non ascii bytes (for example unicode characters)?
By experience seems to me that they, as also lex, do not spoil the files, 
that one can edit them, but I do not know to what extent, if there is a risk.

Thanks
Rodrigo.



Pidgin crashes when trying to paste text

2015-05-09 Thread sam
Hello,

When using Pidgin on ports (system, etc. = -current), I have found that
Pidgin consistently crashes when pasting information from websites.
This happens in particular with guardian.co.uk.

(gdb) [~]$ gdb pidgin pidgin.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are welcome to change it and/or distribute copies of it under
certain conditions. Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for
details. This GDB was configured as amd64-unknown-openbsd5.7...(no
debugging symbols found)

Core was generated by `pidgin'.
Program terminated with signal 6, Aborted.
...
Loaded symbols for /usr/local/lib/pango/1.8.0/modules/pango-basic-fc.so
Reading symbols
from /usr/local/lib/enchant/libenchant_aspell.so...done. Loaded symbols
for /usr/local/lib/enchant/libenchant_aspell.so Reading symbols
from /usr/local/lib/libaspell.so.17.0...done. Loaded symbols
for /usr/local/lib/libaspell.so.17.0 Reading symbols
from /usr/local/lib/enchant/libenchant_ispell.so...done. 
Loaded symbols for /usr/local/lib/enchant/libenchant_ispell.so 

#0  0x0d1bf89a2a0a in kill () at stdin:2 
2   stdin: No such file or directory. 
in stdin 
(gdb) bt  
#0  0x0d1bf89a2a0a in kill () at stdin:2 
#1  0x0d1bf89dc889 in abort ()
at /usr/src/lib/libc/stdlib/abort.c:53 
#2  0x0d192f191141 in main () from /usr/local/bin/pidgin 
Current language:  auto; currently asm

If I CTRL-V, there is a crash.
If I right click and click paste, there is a crash.
If I right click and paste as plain text, there is no crash.

I am using OTR. My malloc conf:
lrwxr-xr-x  1 root  wheel  6 Mar 31 17:17 /etc/malloc.conf - AJGU

Example text is the contents of the news update box (from 'How' to
'messenger' at the end of the quote):
http://www.theguardian.com/politics/live/2015/may/09/election-aftermath-live-news-comment-and-reaction#block-554df3a7e4b031be1c73befd

Any ideas? Is this a bug in Pidgin and should it be reported upstream,
can I change something configuration to fix it, or should I inform the
porters of a bug?



Re: Pidgin crashes when trying to paste text

2015-05-09 Thread Stefan Sperling
On Sat, May 09, 2015 at 02:10:14PM +0100, sam wrote:
 Hello,
 
 When using Pidgin on ports (system, etc. = -current), I have found that
 Pidgin consistently crashes when pasting information from websites.
 This happens in particular with guardian.co.uk.

Looks like you're using the gtkspell flavour, correct?

 from /usr/local/lib/enchant/libenchant_aspell.so...done. Loaded symbols
 for /usr/local/lib/enchant/libenchant_aspell.so Reading symbols
 from /usr/local/lib/libaspell.so.17.0...done. Loaded symbols
 for /usr/local/lib/libaspell.so.17.0 Reading symbols
 from /usr/local/lib/enchant/libenchant_ispell.so...done. 
 Loaded symbols for /usr/local/lib/enchant/libenchant_ispell.so 



Re: spamdb - can't delete spam db entry (Error 22)

2015-05-09 Thread Adam Wolk
On Mon, Apr 27, 2015, at 11:45 PM, Adam Wolk wrote:
 On Mon, Apr 27, 2015, at 10:52 PM, Adam Wolk wrote:
  On Mon, Apr 27, 2015, at 10:43 PM, Adam Wolk wrote:
   On Mon, Apr 27, 2015, at 10:22 PM, Todd C. Miller wrote:
On Mon, 27 Apr 2015 20:06:59 +0200, Adam Wolk wrote:

 Apr 27 19:54:55 tintagel spamd[27724]: can't delete 66.111.4.25
 out1-smtp.messagingengine.com adam.w...@koparo.com
 adam.w...@tintagel.pl from spamd db (Error 22)

 Does anyone know how serious that error is (should I be worried) and
 what might have caused it?

Error 22 is EINVAL.  I'm not sure how that can happen in this case
though.  Have you tried restating spamd?

   
   Hi Todd,
   
   Indeed I tried restarting spamd and the issue is the same each time.
   With a spamd restart the error happens immediately startup:
   
   Apr 27 22:27:52 tintagel spamd[3732]: can't delete 66.111.4.25
   out1-smtp.messagingengine.com adam.w...@koparo.com
   adam.w...@tintagel.pl from spamd db (Error 0)
   Apr 27 22:28:51 tintagel spamd[25915]: listening for incoming
   connections.
   Apr 27 22:28:51 tintagel spamd[7233]: can't delete 66.111.4.25
   out1-smtp.messagingengine.com adam.w...@koparo.com
   adam.w...@tintagel.pl from spamd db (Error 0)
   
  
  Just noticed, that right after a previous restart it's no longer Error
  22 but Error 0
  Apr 27 21:50:27 tintagel spamd[27724]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 22)
  Apr 27 21:51:27 tintagel spamd[27724]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 22)
  Apr 27 21:52:18 tintagel spamd[8450]: listening for incoming
  connections.
  Apr 27 21:52:18 tintagel spamd[20180]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 0)
  Apr 27 21:52:25 tintagel spamd[6924]: listening for incoming
  connections.
  Apr 27 21:52:25 tintagel spamd[3732]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 0)
  Apr 27 21:53:26 tintagel spamd[3732]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 0)
  Apr 27 21:54:26 tintagel spamd[3732]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 0)
  Apr 27 21:55:27 tintagel spamd[3732]: can't delete 66.111.4.25
  out1-smtp.messagingengine.com adam.w...@koparo.com
  adam.w...@tintagel.pl from spamd db (Error 0)
  
  # ls -l /var/db/spamd
  -rw-r--r--  1 _spamd  _spamd  6881280 Apr 27 22:51 /var/db/spamd
  
  here's my process output limited to spamd
  # ps aux | grep -i spamd
  root 30279  0.0  3.3 68000 67956 ??  SsSun11PM1:22.68 perl:
  /usr/local/bin/spamd -d -u _spamdaemon -P (perl)
  _spamdaemon 10621  0.0  0.4 68016  8872 ??  S Sun11PM0:00.59
  perl: spamd child (perl)
  _spamdaemon 29838  0.0  0.4 68016  8936 ??  S Sun11PM0:00.83
  perl: spamd child (perl)
  _spamd7233  0.0  0.1  9860  1704 ??  Is10:28PM0:00.73 spamd:
  (pf spamd-white update) (spamd)
  _spamd   25915  0.0  0.3 10308  5220 ??  I 10:28PM0:00.12 spamd:
  [priv] (greylist) (spamd)
  _spamd   14894  0.0  0.0  9656  1020 ??  I 10:28PM0:00.00 spamd:
  (/var/db/spamd update) (spamd)
  root 30162  0.0  0.0   636 4 p7  R+10:52PM0:00.00 grep
  -i spamd (ksh)
  # 
  
  
You might also try running:

$ spamdb | fgrep 66.111.4.25
   
   Here is the output:
   $ spamdb | fgrep 66.111.4.25
   WHITE|66.111.4.25|||1430096342|1430098533|1433208963|4|0
   GREY|66.111.4.25|out1-smtp.messagingengine.com|adam.w...@koparo.com|mulan...@tintagel.pl|1430146234|1430148635|1430160634|3|0
   GREY|66.111.4.25|out1-smtp.messagingengine.com|adam.w...@koparo.com|mulan...@tintagel.pl|1430146234|1430148635|1430160634|3|0
   GREY|66.111.4.25|out1-smtp.messagingengine.com|adam.w...@koparo.com|adam.w...@tintagel.pl|1430142855|1430145035|1430157255|4|0
   
   

to see if that entry is really in the database and if so see if
spamdb -d can remove it.
   
   
   # spamdb -d 66.111.4.25
   # echo $?
   0
   # spamdb | fgrep 66.111.4.25
   WHITE|66.111.4.25|||1430096342|1430098533|1433208963|4|0
   GREY|66.111.4.25|out1-smtp.messagingengine.com|adam.w...@koparo.com|mulan...@tintagel.pl|1430146234|1430148635|1430160634|3|0
   GREY|66.111.4.25|out1-smtp.messagingengine.com|adam.w...@koparo.com|mulan...@tintagel.pl|1430146234|1430148635|1430160634|3|0
   GREY|66.111.4.25|out1-smtp.messagingengine.com|adam.w...@koparo.com|adam.w...@tintagel.pl|1430142855|1430145035|1430157255|4|0
   

 - todd

   
   The weird thing is - it just started happening. I did see other weird
   issues
   like 

Re: Pidgin crashes when trying to paste text

2015-05-09 Thread sam
On Sat, 9 May 2015 15:28:50 +0200
Stefan Sperling s...@stsp.name wrote:

 On Sat, May 09, 2015 at 02:10:14PM +0100, sam wrote:
  Hello,
  
  When using Pidgin on ports (system, etc. = -current), I have found
  that Pidgin consistently crashes when pasting information from
  websites. This happens in particular with guardian.co.uk.
 
 Looks like you're using the gtkspell flavour, correct?
 
  from /usr/local/lib/enchant/libenchant_aspell.so...done. Loaded
  symbols for /usr/local/lib/enchant/libenchant_aspell.so Reading
  symbols from /usr/local/lib/libaspell.so.17.0...done. Loaded symbols
  for /usr/local/lib/libaspell.so.17.0 Reading symbols
  from /usr/local/lib/enchant/libenchant_ispell.so...done. 
  Loaded symbols for /usr/local/lib/enchant/libenchant_ispell.so 
 

Yes, I am. However, I just reproduced the same crash (same gdb bt
output) with the plain, vanilla pidgin flavour.



Re: xbacklight: No outputs have backlight property

2015-05-09 Thread Maximilian Pichler
I guess what you might be after is called DDC/IC or MCCS:
http://en.wikipedia.org/wiki/Display_Data_Channel#DDC.2FCI

Not sure what part of OpenBSD manages this.


On Tue, May 5, 2015 at 11:47 PM, Sandrine Duvalier
clementine.duval...@gmail.com wrote:
 Hi!

 Not sure if this is possible but I'd like to dim my external display's
 backlight. Unfortunately this gives:

 $ xbacklight
 No outputs have backlight property

 One can do xrandr --output DP2 --brightness 0.5, but this only makes the
 colors less bright (as opposed to dimming the backlight).

 Any ideas?

 Thanks!

 Clementine


 $ xrandr
 Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 32767 x 32767
 DP1 disconnected (normal left inverted right x axis y axis)
 HDMI1 disconnected (normal left inverted right x axis y axis)
 DP2 connected 2560x1440+0+0 (normal left inverted right x axis y axis)
 553mm x 311mm
2560x1440 59.95*+
2048x1152 60.00
1920x1200 59.88
1920x1080 50.0030.00
1600x1200 60.00
1680x1050 59.95
1280x1024 75.0260.02
1200x960  59.99
1152x864  75.00
1280x720  50.00
1024x768  75.0860.00
800x600   75.0060.32
720x576   50.00
720x480   59.94
640x480   75.0060.0059.94
720x400   70.08
 HDMI2 disconnected (normal left inverted right x axis y axis)
 VIRTUAL1 disconnected (normal left inverted right x axis y axis)