core dumps disabled after chroot?

2005-08-28 Thread Kent Watsen
Hi, I want to chroot an application I'm developing, but I still want coredumps... _dump.c_ #include stdlib.h int main() { abort(); } # gcc dump.c -o dump # ./dump Abort trap (core dumped) # chroot ./ ./dump Abort trap[note

Re: core dumps disabled after chroot?

2005-08-28 Thread Kent Watsen
Theo de Raadt wrote: I want to chroot an application I'm developing, but I still want coredumps... _dump.c_ #include stdlib.h int main() { abort(); } # gcc dump.c -o dump # ./dump Abort trap (core dumped) # chroot ./ ./dump Abort trap

Re: OpenBSD's 10th birthday -- how about a present?

2005-10-18 Thread Kent Watsen
STeve Andre' wrote: On Tuesday 18 October 2005 21:07, Paul Greene wrote: STeve Andre' wrote: Seeing all sorts of good wishes to the project, but I haven't seen any gifts, yet. ;-) I just paypaled $25 to the project, as a birthday present. Given what we all get from this OS,

Re: OpenBSD firewalls as virtual machine ?

2007-09-21 Thread Kent Watsen
Some commercial firewalls (i.e. Juniper/NetScreen ScreenOS-based gear) have been offering virtual-systems for years now. I think the negative comments received here may be appropriate when sharing the system with non-secure guest OSs, but it seems that it might be alright if its nothing but

Re: vlan trunking with a powerconnect 5224

2008-01-28 Thread Kent Watsen
On a lark I just executed `ifconfig trunk0 up` and now my trunk is working! And, to make it come up automatically, I just added the single line up to hostname.trunk0... BTW, the trunk interface is not documented in hostname.if(5) Thanks anyways, Kent Kent Watsen wrote: Looking

Re: vlan trunking with a powerconnect 5224

2008-01-28 Thread Kent Watsen
Looking at the output from `ifconfig` (see below), I notice that the trunk0 doesn't show that its UP - why wouldn't it be up? Thanks, Kent # ifconfig lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33168 groups: lo inet 127.0.0.1 netmask 0xff00 inet6 ::1 prefixlen

vlan trunking with a powerconnect 5224

2008-01-28 Thread Kent Watsen
I successfully have two vlans running over one physical interface connected to my managed switch (a PowerConnect 5224), but I can't get the same two vlans to work when running over a trunk interface spanning four physical interfaces. Before: (this works, but only uses one physical

carped trunk or trunked carp or what?

2008-01-30 Thread Kent Watsen
I'm trying to setup CARP for my gateway. Both my gateways have 6 interfaces - one for uplink to ISP - one for CARP/pfsync - four that are trunked and then have vlans running on top of My current setup looks some like this: hme0 \ hme1 \ /- vlan0 ---

Re: carped trunk or trunked carp or what?

2008-01-30 Thread Kent Watsen
Johan Fredin wrote: On 08-01-30 17:50, Kent Watsen wrote: hme0 \ hme1 \ /- vlan0 --- carp0 --- trunk0 - vlan1 --- carp1 hme2 / \- valn2 --- carp2 hme3 / I say this is the way to go. You can consider trunk0 a physical interface

Re: carped trunk or trunked carp or what?

2008-01-31 Thread Kent Watsen
Johan Fredin wrote: Yep, two boxes with one cable each to the switch. Both with a bunch of vlans and carp interfaces on top of that. This is from one of the machines: snip Hey, thanks a lot, I got it working, but it isn't stable - in fact, I really only had one successful fail-over...

iperf results not good: 31% system, 69% interrupt, 0% idle!

2008-02-26 Thread Kent Watsen
I just installed a Netgear GA311 (re) into a 500MHz Netra T1 running 4.2 (sparc64) Running `iperf -s` on it shows only 187 Mbits/sec, which surprised me because other iperf-targets plugged into same switch show ~600 Mbits/sec Looking at `top` shows why: 31% system, 69% interrupt, 0% idle

Re: OpenBSD todo list?

2006-04-11 Thread Kent Watsen
Christmas in April? ;) A couple requests I recall seeing (*cough* posting *cough*): - enable chroot-ed apps to dump core (this is an easy one) - enable openbsd to run as a para-virtualized Xen guest (this is more involved) Kent Shawn Nock wrote: A quick search of the archive and google

Re: OpenBSD as Xen domU

2008-10-03 Thread Kent Watsen
[Picking up on this old thread] Question for those of you running OpenBSD HVM DomUs, does your IO performance suck? Description: I have OpenBSD 4.3 DomU running HVM mode with 1x vcpu on top on OpenSolaris b97 xVM Dom0, which pins down 2x vcpus (box is a quad-core 1.9GHz opteron with 8GB

Re: Using TrinityDesktop to replace KDE3

2011-11-02 Thread Kent Watsen
Are there many users of KDE on OpenBSD? I thought OpenBSD is mostly GNOME :-) On the few systems I install X on, I use FVWM and like it K.

Re: 4.9 firewalls

2011-05-11 Thread Kent Watsen
On 5/11/11 9:14 AM, David Gwynne wrote: anyone replaced firewalls with 4.9 boxes yet? noticed a difference? A drop in replacement for me - works great!

typo in faq/upgrade49.html

2011-06-10 Thread Kent Watsen
s/which we have not been dealt with so far/which have not been dealt with so far/ BTW, the Final steps section would be clearer if the text between the title Final Steps and section 1a were put into a section called 1. Merging locally changed files, which then has the two existing

why is pf reseting this ssh connection?

2009-11-14 Thread Kent Watsen
I'm consistently getting a RST packet, but I can't figure out why? # tcpdump -nettti pflog0 tcpdump: listening on pflog0, link-type PFLOG Nov 14 11:42:20.408301 rule 62/(match) pass in on vlan4: 10.0.4.6.53255 10.0.1.24.22: [|tcp] (DF) Nov 14 11:42:20.408407 rule 34/(match) pass out on vlan1:

Re: why is pf reseting this ssh connection?

2009-11-17 Thread Kent Watsen
, this is with OBSD 4.2 Any ideas? Thanks, Kent Kent Watsen wrote: I'm consistently getting a RST packet, but I can't figure out why? # tcpdump -nettti pflog0 tcpdump: listening on pflog0, link-type PFLOG Nov 14 11:42:20.408301 rule 62/(match) pass in on vlan4: 10.0.4.6.53255

Re: why is pf reseting this ssh connection?

2009-11-18 Thread Kent Watsen
Todd Alan Smith wrote: This only happens with SSH connections? Are the rulesets identical between the two machines? Also, why are you still running 4.2? As I'm sure you know, there have been many improvements to pf since that release. No, I also see it happening with every TCP-based protocol

openbsd not blob free?

2010-05-05 Thread Kent Watsen
There is a discussion on the osol-discuss mailing list this morning where it's pointed out that OpenBSD source tree has a blob in it: http://osdir.com/ml/opensolaris-discuss/2010-05/msg00095.html The location of the blob in the tree is here:

how to fresh raidframe install on an already raidframe system?

2010-01-04 Thread Kent Watsen
Hi, I have a Netra T1 (sparc64) running 3.9 with raidframe on root. Being such an old system, I decided to do a fresh install, so I boot the 4.6 cdrom and install the system on the first disk (sd0). Rebooting again brings the 4.6 up fine so I compile and install a new raidframe-enabled

Re: how to fresh raidframe install on an already raidframe system?

2010-01-05 Thread Kent Watsen
Jurgen/Pete - thanks for your replies, but it seems that I wasn't clear - my question is how to do fresh-install of OpenBSD with the new kernel discovering and trying to use the old RAID partition. I ultimately solved this problem by rebooting using the old kernel and running `raidctl -A no

Re: SSH getting blocked on PF after 30 seconds (OpenBSD 4.7)

2011-02-10 Thread Kent Watsen
I had an issue like this a couple years ago. Turned out that the Solaris box I was SSH-ing into had NWAM misconfigured, which was causing it to periodically reset connections. It looked like a PF issue because what I saw was PF blocking a session it had previously accepted, but the reality

fdisk(8) missing from sparc64 install48.iso?

2011-03-10 Thread Kent Watsen
| Welcome to the OpenBSD/sparc64 4.8 installation program. (I)nstall, (U)pgrade or (S)hell? S # fdisk sh: fdisk: not found # ls /sbin/fdisk ls: /sbin/fdisk: No such file or directory # ls /sbin bioctl dmesg initmount_udf restore chown fsck

Re: fdisk(8) missing from sparc64 install48.iso?

2011-03-10 Thread Kent Watsen
it's not there, nor should it be. sparc* does not use fdisk. That's what I had read, but my other Netra T1 running 4.6 has it - and I used it when configuring RAIDFrame (raid(4))...why is it there? - why did it work? Now I'm giving softraid(4) a go and these instructions

issues with acer aspire one

2011-04-20 Thread Kent Watsen
I've always wanted a netbook for OpenBSD. The form factor reminds me of the TS1000, my first computer. I picked up this refurbished Acer Aspire One (D255-1268) for just $229, and have 7 days (5 more now) to return it to the store. So far it's running OpenBSD pretty well, but I found some issues

Re: issues with acer aspire one (now tested with -current)

2011-04-20 Thread Kent Watsen
A couple listers suggested trying -current, so here it is again on a 4.9 snapshot dated 201104119 (summary: no change, all issues still present) 1. screen blacks out during boot Still blacks out, but the location changed. This is the last line I see before

Re: issues with acer aspire one (now tested with -current)

2011-04-21 Thread Kent Watsen
On 04/21/11 05:50, Jacob Meuser wrote: no. azalia(4) supports the HD audio interface on ich. see azalia(4). there's perhaps a gpio that controls eapd or somesuch. can you please send the output of '# pcidump -x 0:27:0' ? thanks for including a dmesg. # pcidump -x 0:27:0 0:27:0: Intel

use DUIDs rather than device names in fstab?

2011-04-26 Thread Kent Watsen
My first install was onto a USB pen drive and I thought this was brilliant. My second install was onto a fusion-based virtual machine and I was like WTF? I suppose that the installer can't tell if a sd root disk is swappable or not, but certainly it should know that wd is not - right? - or

Re: use DUIDs rather than device names in fstab?

2011-04-27 Thread Kent Watsen
Maybe you should tell us what happened and what you were expecting. I saw the check-in which stated that it was being turned on to see what response there is, which is all I'm doing... When installing on a system only having IDE-based drives, I was expecting to not be prompted, since I

Re: Real men don't attack straw men

2007-12-15 Thread Kent Watsen
Benjamin M. A'Lee wrote: They're not required to make their changes available. They're required to acknowledge your copyright, but your licence does not require proprietary developers to release changes at all and it does not require GPL developers to release changes under your choice of

Re: openbsd router hardware

2007-12-26 Thread Kent Watsen
While not quite meeting your requirements, I don't think you can beat the value of a Netra T1. I got two 500Mhz 512MB 64-bit Sparc boxes off eBay for $50 each. They come with two 100 Mbs ports, to which I added Sun Quad Fast Ethernet 4-port pci adapter for $12 each off eBay. While having a

Re: cant properly set up kernel to have root and swap on a RAIDframe device

2008-01-06 Thread Kent Watsen
Boris Goldberg wrote: Hello misc, I've been booting my system from RAIDframe partitions for a long while. Small partition for kernel(s), raidctl -A root raid0 - and I have root on raid0a and swap on raid0b. But with 4.2 I'm getting swapmount: no device error from the kernel and

Re: responding to buttonpress ACPI event sent by KVM/Qemu (same behavior in v5.2)

2013-09-16 Thread Kent Watsen
On 11/24/12 1:54 PM, Matthew Weigel wrote: On 11/24/2012 12:38 PM, Tomas Bodzar wrote: some of you may remember a posting of mine here from March, 2012, in which I mentioned that the ACPI buttonpress event is not being correctly transmitted form a debian 6 host to an OpenBSD v5.1 guest. In

pfctl -f /etc/pf.conf fails on boot when DNS-resolved symbolic names are used

2015-11-10 Thread Kent Watsen
Precondition: /etc/pf.conf contains scr_addr/dst_addr set to FQDNs On boot, the consoles shows error about not being able to load pf.conf because it can't resolve the symbolic names. http://www.openbsd.org/faq/faq6.html#Setup.activate says: Â Â Â "... if you had specified a DNS-resolved

Re: Performance issues as KVM guest?

2018-01-11 Thread Kent Watsen
On 1/10/18 1:53 PM, Mike Larkin wrote: On Wed, Jan 10, 2018 at 03:51:19PM +, Mark Carroll wrote: Since my hosting provider https://www.bytemark.co.uk/cloud-hosting/ patched for Meltdown last weekend I'm seeing significant performance issues with an OpenBSD virtual instance there. It seems

Re: identifying software and licenses used in base install

2018-01-18 Thread Kent Watsen
FWIW, the permission I seek is from my Legal department.  They want to ensure that 1) we don't use software having unacceptable licenses or in unacceptable ways, and 2) that the terms of all the copyrights are adhered to (e.g., reproducing attribution statements, etc.). At this point, it

identifying software and licenses used in base install

2018-01-17 Thread Kent Watsen
I'm throwing together a quick proof-of-concept thingy to give to a customer and thought it might be  fun to use OpenBSD as the OS for the VM image.   Unfortunately, the not so fun part of it is that I'm required to get permission to use/distribute this open source software, which entails

Re: pip install (python3) requires some development libraries

2019-03-31 Thread Kent Watsen
[CC-ing Remi, "python2.7" package maintainer] [Stuart, already CC-ed, is maintainer of the "openldap-client" package] The subject line of this email says "python3", but the same issue occurs with python2.7 (this on OpenBSD 6.4). I filed an report for the broken `pip install python-ldap` issue

Re: pip install (python3) requires some development libraries

2019-03-31 Thread Kent Watsen
> You are bypassing [OpenBSD] packages by using pip True, but it's not "me" so much as the open source moinmoin wiki project. I think, perhaps, on purpose, because it's a pure-Python release that uses `virtualenv` (and `tox`, for devs) to maximize portability (it runs on all Unix and Windows).

Re: When will be created a great desktop experience for OpenBSD?

2019-05-07 Thread Kent Watsen
Probably not what the OP is looking for, but `tmux` is my current "window manager" of choice ;) K. > On May 7, 2019, at 2:01 PM, Otto Moerbeek wrote: > > On Tue, May 07, 2019 at 02:01:34AM -0300, Clark Block wrote: > >> In 2019 still there is not a great desktop experience for NetBSD.

`man 2 sysctl` issue

2019-05-07 Thread Kent Watsen
`man 2 sysctl` shows: KERN_SEMINFO_SEMMNI (kern.seminfo.semni) The maximum number of semaphore identifiers allowed. KERN_SEMINFO_SEMMNU (kern.seminfo.semnu) The maximum number of semaphore undo structures allowed in the system. But when using sysctl(8) or

Re: running git server with "smart http" protocol

2020-01-19 Thread Kent Watsen
For posterity, the issue was that the `git` command itself needs to be in the jail also. This is not written down anywhere. I only determined it after reading the source code for `git-http-backend`. This is my init script now: # cd /var/www # for c in git git-http-backend

running git server with "smart http" protocol

2020-01-17 Thread Kent Watsen
TL;DR; The current issue is this error: error: cannot run upload-pack: No such file or directory Steps: 1) OpenBSD 6.5 fresh install 2) pkg_add git 3) make /var/www/dev/null # mkdir dev # mknod dev/null c 2 2 # chmod 666 dev/null 4) put `git-http-backend` into

Re: running git server with "smart http" protocol

2020-01-17 Thread Kent Watsen
Regarding the rewrite rules below, `man git-http-backend` is instructive ...though it would be better if updated for OpenBSD's native `httpd` ;) K. > 6) set /etc/httpd.conf > > server "default" { > listen on 0.0.0.0 port 80 > > # these two rules are trying to match

Boot 6.8 MP hangs after install

2020-12-29 Thread Kent Watsen
I've been running a bunch of VMs on KVM/Qemu for close to 12 years now. Every year or so, I upgrade a few of them...to keep them "fresh". Now I'm trying to replace a VM having two CPUs that is has been running 6.5 since for about the last year. My general strategy is to fresh install into a

Re: Unconsistent two-level write speed bouncing on softraid RAID1 SSD's

2021-06-10 Thread Kent Watsen
The Crucial BX500 SSD uses SMR technology, which is best used for infrequent-write applications. For general-purpose, and especially NAS, applications, CMR technology should be used. K. > On Jun 10, 2021, at 6:20 AM, Xavier Sanchez wrote: > > Hi ! not so surprising news: hardware is

Re: Unconsistent two-level write speed bouncing on softraid RAID1 SSD's

2021-06-10 Thread Kent Watsen
>> The Crucial BX500 SSD uses SMR technology, which is best used for >> infrequent-write applications. >> For general-purpose, and especially NAS, applications, CMR technology should >> be used. > > hmm, does SMR stand for something other than "shingled magnetic recording" > related to

default authentication-failed page

2021-06-18 Thread Kent Watsen
This is incredibly basic, but after reading httpd.conf(5) and random web searches, I’ve been unable to determine how to customize the default failed login page (from the "authenticate” directive in httpd.conf) to be something other than: 401 Unauthorized OpenBSD httpd I

Re: default authentication-failed page

2021-06-19 Thread Kent Watsen
tpd-plus#custom-error-documents > > > > On 2021-06-19 07:26, Kent Watsen wrote: >> This is incredibly basic, but after reading httpd.conf(5) and random web >> searches, I’ve been unable to determine how to customize the default failed >> login page (fr

Re: default authentication-failed page

2021-06-19 Thread Kent Watsen
[My previous message was clobbered by the mailer because, I think, it contained some non-ASCII characters] >> Perfect, but I’m hesitant to use without long-term viability. > > Since I have no plans to give up OpenBSD, you shouldn't worry > too much about this. Fair, and one could fork your

kernel size over time

2021-05-12 Thread Kent Watsen
I used to be able to install OpenBSD on a 1G disk (sets: -x* -g* -c*) and 256M ram, but no more….now a 1280M disk + 384M ram is needed. After a little sleuthing, the primary reason seems to be that the size of /usr/share/relink/kernel/GENERIC/ has been growing: Rel Size

Re: Using relayd as a reverse proxy for multiple local servers

2021-05-27 Thread Kent Watsen
I did this too, because I have: 1) a single external IP 2) multiple internal HTTP-based services 3) a port-based firewall policy This whole issue would disappear, and remove a single point of failure (relayd), if my firewall directed inbound traffic based on URLs (for port 80) and

Re: am and nfsv3

2021-07-05 Thread Kent Watsen
>> Does openbsd amd use NFSv3 ? >> >> Thanks in advance. >> > > No, NFSv2, according to a recent post on this list. This is incorrect; mount_nfs(8) clearly indicates support for v2 and v3 (the default). The recent debate is has been around if to support v4. For instance:

Re: Hi, general question about cryptography...

2021-04-23 Thread Kent Watsen
OT, but that’s a signature and doesn’t imply that the content has been encrypted. I suggest you ask your friend about it. K. > On Apr 22, 2021, at 8:35 PM, Braden Speer wrote: > > I had a friend make me backups of some pretty important information, and for > some reason I can't get my

Re: Hi, general question about cryptography...

2021-04-23 Thread Kent Watsen
[My SMTP-client is garbling my mail again! Just changed it to always send plain-text! Sorry for the noise :sigh:] OT, but that’s a signature and doesn’t imply that the content has been encrypted. I suggest you ask your friend about it. K. > On Apr 23, 2021, at 6:52 PM, Kent Watsen wr

Re: default Offset to 1MB boundaries for improved SSD (and Raid Virtual Disk) partition alignment

2021-04-21 Thread Kent Watsen
[My previous message was somewhat garbled when reflected back at me. It looks better in the archives here: https://marc.info/?l=openbsd-misc=161902769301731=2. I’m resending as plain-text to see if the problem is on my end.] I’m running OpenBSD on top of bHyve using virtual disks allocated

Re: default Offset to 1MB boundaries for improved SSD (and Raid Virtual Disk) partition alignment

2021-04-21 Thread Kent Watsen
I’m running OpenBSD on top of bHyve using virtual disks allocated out of ZFS pools. While not the same setup, some concepts carry over… I have two types of pools: 1) an “expensive" pool for fast random IO: - this pool is made up stripes of SSD-based vdevs. - ZFS is configured

Re: make: don't know how to make /usr/lib/crt0.o (prerequisite of: httpd)

2021-10-31 Thread Kent Watsen
> Does /usr/lib/crt0.o exist? If it doesn't did tar complete successfully? I’ve since scrubbed that install, but I did check before for the file and noted that it was not present. Interestingly, the file is in the TGZ, so something happened… $ tar -tzvf comp70.tgz | grep

Re: make: don't know how to make /usr/lib/crt0.o (prerequisite of: httpd)

2021-10-31 Thread Kent Watsen
> As you're the one in possession of the system with the nonstandard > configuration you're the best person to figure out what's different > between that and a normally installed system. My bad, I thought it was supported to install filesets this way, but I don’t see this approach discussed on

make: don't know how to make /usr/lib/crt0.o (prerequisite of: httpd)

2021-10-31 Thread Kent Watsen
The “httpd-plus” [1] patch installs just find when a fresh 7.0 install selects packages "base", "bsd", "bsd.rd", "bsd.mp", “comp”, and “man”. However, when a fresh 7.0 install selects all the same packages except “comp”, and then subsequently adds the “comp” package via the command:

Re: make: don't know how to make /usr/lib/crt0.o (prerequisite of: httpd)

2021-10-31 Thread Kent Watsen
> Which uses the whole toolchain. > > You need comp. You don't have a choice. > > Kent Watsen wrote: > >> The “httpd-plus” [1] patch installs just find when a fresh 7.0 install >> selects packages "base", "bsd", "bsd.rd", "bsd.mp

`jq` won't chroot?

2021-07-16 Thread Kent Watsen
I’ve spent a few hours on this and am lost. I have plenty experience moving executables into a chroot environments, but `jq` is proving to be exceptionally difficult. The executable is found when chrooted to ‘/‘ but not ' /var/www’. Yes, of course I copied all the files referenced from `ldd`

Re: `jq` won't chroot?

2021-07-16 Thread Kent Watsen
cp $f /var/www/$d/ done K. > On Jul 16, 2021, at 6:24 PM, Kent Watsen wrote: > > I’ve spent a few hours on this and am lost. I have plenty experience moving > executables into a chroot environments, but `jq

Re: `jq` won't chroot?

2021-07-16 Thread Kent Watsen
Thanks Theo! > It seems you copied libjq and libonig into usr/local/lib in the chroot. > By default, ld.so only looks for shared objects in /usr/lib, so it can't > find them. > > # env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib chroot /var/www > /usr/local/bin/jq --version > > should work.

7.3 php gd.so cannot load

2023-04-12 Thread Kent Watsen
[I'm new to PHP, but I believe that this was an issue in 7.2 as well] Both 'xbase' and 'xshare' are installed. What got me started was trying to run a DokuWiki CLI command ``` # ./bin/plugin.php usermanager list PHP Warning: PHP Startup: Unable to load dynamic library 'gd.so' (tried:

Re: 7.3 php gd.so cannot load

2023-04-12 Thread Kent Watsen
> That should have /usr/X11R6/lib as well. This makes me want to mention that I installed xshare73 and xbase73 after the installer completed, using these commands: ``` (curl -s -O https://cdn.openbsd.org/pub/OpenBSD/7.3/amd64/xshare73.tgz && cd / && tar xzvphf /root/xshare73.tgz) (curl

Re: 7.3 php gd.so cannot load

2023-04-13 Thread Kent Watsen
> Ah, if you didn't reboot after doing that, then what you saw is expected. Good to know. >> Is there a better way to install xshare73 and xbase73? > > From the installer, usually. I can’t do that, but point taken. Thank you Stu and Daniel!

Re: 7.3 php gd.so cannot load

2023-04-12 Thread Kent Watsen
> is /usr/X11R6/lib a real directory or have you moved it elsewhere > and replaced with a symlink? No symlink. No mount either. > did you get any errors after "creating runtime link editor directory > cache" at boot? (check with dmesg -s) None. Here are the last 5 lines of `dmesg -s`: ```