Re: Programming for OpenBSD

2018-05-30 Thread Joseph Mayer
Kevin, This is a meandering and irrelevant email. Please don't email more irrelevant ramblings. If you have practical Unix use or development questions you can ask on IRC, here or elsewhere. Joseph On May 31, 2018 11:41 AM, Kevin Burke wrote: > Hey guys, > ..

Programming for OpenBSD

2018-05-30 Thread Kevin Burke
Hey guys, I am waiting for my federal tax return (USA) to get a laptop to run OpenBSD on. I don't really know if this message is going to be format acceptable for this (through stripping or whatnot) I am using Windows 10 with gmail. I feel like I really don't have much control over my email

Re: VMM can't boot from *.iso files, right?

2018-05-30 Thread Mike Larkin
On Thu, May 31, 2018 at 03:37:22AM +0300, Leonid Bobrov wrote: > On Wed, May 30, 2018 at 01:23:13PM -0700, Carlos Cardenas wrote: > > On Wed, May 30, 2018 at 11:13:16PM +0300, Leonid Bobrov wrote: > > > On Wed, May 30, 2018 at 12:56:25PM -0700, Carlos Cardenas wrote: > > > > On Wed, May 30, 2018

Stall on booting, seems related to these 2 dmesg lines

2018-05-30 Thread Ken M
It happens right after these 2 lines: error: [drm:pid0:ivybridge_set_fifo_underrun_reporting] *ERROR* uncleared fifo underrun on pipe A error: [drm:pid0:intel_cpu_fifo_underrun_irq_handler] *ERROR* CPU pipe A FIFO underrun After those display the system seems to hang for about 30-40 seconds

The compiler error about modifying libcrypto

2018-05-30 Thread Nan Xiao
Hi misc@, Greeting from me! My OS is OpenBSD 6.3. Since now the -current modify the interface of libcrypto, there is error in "make": .. ===> lib/libcrypto cc -O2 -pipe -g -Wall -Wundef -Werror -DLIBRESSL_INTERNAL -DDSO_DLFCN -DHAVE_DLFCN_H -DHAVE_FUNOPEN -DOPENSSL_NO_HW_PADLOCK

iked.conf basics

2018-05-30 Thread David Higgs
I am looking to configure iked(8) on my OpenBSD router to provide IPsec services to remote clients. I would like to tunnel (nearly) all my traffic from my phone or laptop back into my home router, and leverage the services there (DNS, firewall, etc.), then either access my local network or the

Re: VMM can't boot from *.iso files, right?

2018-05-30 Thread Leonid Bobrov
On Wed, May 30, 2018 at 01:23:13PM -0700, Carlos Cardenas wrote: > On Wed, May 30, 2018 at 11:13:16PM +0300, Leonid Bobrov wrote: > > On Wed, May 30, 2018 at 12:56:25PM -0700, Carlos Cardenas wrote: > > > On Wed, May 30, 2018 at 10:13:03PM +0300, Leonid Bobrov wrote: > > > > Hi! > > > > > > > >

Re: VMM can't boot from *.iso files, right?

2018-05-30 Thread Carlos Cardenas
On Wed, May 30, 2018 at 11:13:16PM +0300, Leonid Bobrov wrote: > On Wed, May 30, 2018 at 12:56:25PM -0700, Carlos Cardenas wrote: > > On Wed, May 30, 2018 at 10:13:03PM +0300, Leonid Bobrov wrote: > > > Hi! > > > > > > Today I tried to boot FreeBSD, DragonFlyBSD and OpenBSD in VMM, for > > > some

Re: VMM can't boot from *.iso files, right?

2018-05-30 Thread Leonid Bobrov
On Wed, May 30, 2018 at 12:56:25PM -0700, Carlos Cardenas wrote: > On Wed, May 30, 2018 at 10:13:03PM +0300, Leonid Bobrov wrote: > > Hi! > > > > Today I tried to boot FreeBSD, DragonFlyBSD and OpenBSD in VMM, for > > some reason when I boot them from their .iso files, only their > > bootloaders

Re: VMM can't boot from *.iso files, right?

2018-05-30 Thread Carlos Cardenas
On Wed, May 30, 2018 at 10:13:03PM +0300, Leonid Bobrov wrote: > Hi! > > Today I tried to boot FreeBSD, DragonFlyBSD and OpenBSD in VMM, for > some reason when I boot them from their .iso files, only their > bootloaders show up. After that they reboot (DragonFlyBSD just shuts > down). But I was

VMM can't boot from *.iso files, right?

2018-05-30 Thread Leonid Bobrov
Hi! Today I tried to boot FreeBSD, DragonFlyBSD and OpenBSD in VMM, for some reason when I boot them from their .iso files, only their bootloaders show up. After that they reboot (DragonFlyBSD just shuts down). But I was able to boot kernels with -b flag. Funny: mazocomp$ doas vmctl start obsd

IKEDv2 OpenBSD Roadwarrior

2018-05-30 Thread Jan Lambertz
still one thing left before i can decalre this bazaar open. internet via vpn does not work yet. the vpn server is already acting as router for my home network. connecting vpn works. ping each sides via vpn works. using the vpnservers unbound as nameserver on notebook works. it seems like the

Re: Upgrade 6.0 -> 6.1: ix mmba is not mem space

2018-05-30 Thread Stuart Henderson
On 2018-05-30, Maxim Bourmistrov wrote: > I ended up with a -stable kernel and syspatch refusing to pull down patches, > but this is another story. syspatch is only for releases or systems which have been syspatch'ed directly from a release - it can't work with -stable, own-built kernels or

Re: Upgrade 6.0 -> 6.1: ix mmba is not mem space

2018-05-30 Thread Maxim Bourmistrov
Yepp. I ended up with a -stable kernel and syspatch refusing to pull down patches, but this is another story. It’s up2date now. Thanks all. Br > 30 maj 2018 kl. 09:36 skrev Peter Hessler : > > Assuming 1.140 is the "problem", 1.151 should fix it.

Re: OT: how do you write your tools /scripts for everyday tasks

2018-05-30 Thread Allan Streib
Markus Rosjat writes: > So what you guys using these days, is it shellscripts, c programs, > perl or? I've moved almost all my sysadmin automation to ansible. Ansible provides a large library of modules that handle most common things in an idempotent way.

Re: OT: how do you write your tools /scripts for everyday tasks

2018-05-30 Thread IL Ka
> > > Or when the tool would be running long enough that the performance > difference matters. Also, Javascript/Perl/Python/Ruby/shell all tend > to be lousy at dealing with anything where control over timing is the > overriding issue. > > Or when your target environment needs you to be miserly

Re: OT: how do you write your tools /scripts for everyday tasks

2018-05-30 Thread Raul Miller
On Wed, May 30, 2018 at 9:51 AM, IL Ka wrote: > There is no reason to use C for "onetime tools" except cases when no other > API exist. Or when the tool would be running long enough that the performance difference matters. Also, Javascript/Perl/Python/Ruby/shell all tend to be lousy at dealing

Re: OT: how do you write your tools /scripts for everyday tasks

2018-05-30 Thread IL Ka
Hello, Running external process from Python script is not good in most cases. It is better to use wrapper or binding. Search pypi.org for it. I use shell (ksh,sed,awk,tr,mail etc) for simple tools, and Python for something which is more complex. Python is used for scripting in many modern linux

Re: relayd for TLS termination

2018-05-30 Thread David Higgs
On Sat, Apr 28, 2018 at 2:12 PM, David Higgs wrote: > On Sat, Apr 28, 2018 at 11:33 AM, David Higgs wrote: >> On Sat, Apr 28, 2018 at 9:58 AM, Claudio Jeker >> wrote: >>> On Sat, Apr 28, 2018 at 09:39:56AM -0400, David Higgs wrote: I run several services on the same host and would like to

Re: OT: how do you write your tools /scripts for everyday tasks

2018-05-30 Thread Niels Kobschaetzki
On 18/05/30 14:29, Markus Rosjat wrote: Hi all, this is more a post to get an overview how the pros (not me ... you guys) put there tools together. I can write simple shell scripts and this is ok but I do a little python coding once in a while and noticed I'm going to write my tools in

Re: httpd index directive confusion

2018-05-30 Thread Paco Esteban
On Wed, 30 May 2018, Markus Rosjat wrote: > > > location "/admin/*" { > > > root "/path/to/my/site/admin" > > > root strip 1 > > > directory index index.php > > > > > > fastcgi socket "/run/php-fpm.sock" > > > > > > authenticate

OT: how do you write your tools /scripts for everyday tasks

2018-05-30 Thread Markus Rosjat
Hi all, this is more a post to get an overview how the pros (not me ... you guys) put there tools together. I can write simple shell scripts and this is ok but I do a little python coding once in a while and noticed I'm going to write my tools in python. Sure its a little overhead and most

Re: httpd index directive confusion

2018-05-30 Thread Markus Rosjat
hi Paco, Am 30.05.2018 um 13:31 schrieb Paco Esteban: On Wed, 30 May 2018, Markus Rosjat wrote: so I Configure my Location in httpd.conf like this location "/admin/*" { root "/path/to/my/site/admin" root strip 1 directory index index.php

Re: Limit CPU usage of a process?

2018-05-30 Thread Kevin Chadwick
On Wed, 30 May 2018 11:49:04 +0200 > Are these commandline options or stuff you have to program into your > apps? They also seem to be more geared towards giving different > processes different priorities of which gets to use the highest CPU. > You could set your processor performance low with

Re: httpd index directive confusion

2018-05-30 Thread Paco Esteban
On Wed, 30 May 2018, Markus Rosjat wrote: > so I Configure my Location in httpd.conf like this > > location "/admin/*" { > root "/path/to/my/site/admin" > root strip 1 > directory index index.php > > fastcgi socket "/run/php-fpm.sock" > >

httpd index directive confusion

2018-05-30 Thread Markus Rosjat
Hi there, i hope someone can sort this out for me but I dont get it. I get a nice "Primary Script unknown" message when I try to reach a defined location. I try reach https://UrlToMySite.tld/admin/ and in thsi location is a index.php file so I Configure my Location in httpd.conf like

Re: OpenBSD 6.2: how to tear down partial ipsec tunnels without restarting ipsec/isakmpd?

2018-05-30 Thread Andre Ruppert
Hello Philipp, hello @misc I thought the problems were gone, but often deleting an unmamed phase 1 SA didn't work with the "cookie method" at least with 6.3/amd64. My way: 1.) # sh -c "echo S > /var/run/isakmpd.fifo" # less /var/run/isakmpd.result --> identify the dead phase 1 SA SA name:

Re: 6.3 just died (not for the first time)

2018-05-30 Thread Peter van Oord van der Vlies
Hi Harald, > >please check the threads on the b...@openbsd.org mailing list. The patch >posted by Martin Pieuchot seemst to help. Its running on my hosts for >5 days without any hiccup. I applied them also on my systems on the 22 and they are still stable. So it seems this

Re: Limit CPU usage of a process?

2018-05-30 Thread BergenBergen BergenBergen
Are these commandline options or stuff you have to program into your apps? They also seem to be more geared towards giving different processes different priorities of which gets to use the highest CPU. This doesn't seem to be very helpful for us who are looking for a simple commandline option

Re: Upgrade 6.0 -> 6.1: ix mmba is not mem space

2018-05-30 Thread Peter Hessler
Assuming 1.140 is the "problem", 1.151 should fix it. AKA: upgrade to 6.3. On 2018 May 30 (Wed) at 09:21:58 +0200 (+0200), mxb wrote: :Reverting if_ix.c to rev 1.139 brought ix back to live. : :Sent from my iDevice : :> 29 мая 2018 г., в 21:36, Maxim Bourmistrov написал(а): :> :> Diff,

Re: Upgrade 6.0 -> 6.1: ix mmba is not mem space

2018-05-30 Thread mxb
Reverting if_ix.c to rev 1.139 brought ix back to live. Sent from my iDevice > 29 мая 2018 г., в 21:36, Maxim Bourmistrov > написал(а): > > Diff, discussed in the thread, seems to follow all the way to 6.3. > Sure I probably can try out 6.3, but I have a feeling that this will not help. > >