Re: Please forgive a blatant plug: I reviewed v10 for the Reg

2024-05-02 Thread Hauke Fath (SPG)

On 2024-05-02 11:44, Liam Proven wrote:

This is not so much about the binaries about about the ABI for libc and
other core libs.   But I suspec this works better than you think, if one
arranges for the other libs and deals with elf tags.

You are missing my point.

I am not asking "are they close?" or "are they compatible?" I am
saying: let's


And there's the rub, right there.

You want to tell other people ("developers") what they should spend 
their time on. And if you were ten times right, it wouldn't work that way.


Do the leg work yourself, and things *might* come to happen. Or not.


work out the differences, make a detailed specific list,
and see if it would be possible to work out a specific standard API so
that*the same binaries*  could run on them all.


Ob-xkcd: <https://xkcd.com/927/>

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344



Re: Mail delivery from Postfix to remote IMAP

2024-04-22 Thread Hauke Fath (SPG)

On 2024-04-22 18:27, Rhialto wrote:

Since mails can be transferred from one IMAP server to another,


... by an IMAP client, or server?


I know
it is possible to inject emails into IMAP mailboxes.


Yes, with a local delivery agent, on behalf of the local MTA. Or from 
within an IMAP client - works nicely. But that doesn't solve your problem.



But is there some convenient way already to do this from Postfix?


Postfix doesn't speak IMAP, does it? You would have to have a local 
delivery agent that (working with stored user credentials) also acts as 
an IMAP _client_. Interesting concept...


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344



Firefox with webcam

2024-03-11 Thread Hauke Fath (SPG)

Hi,

has anybody had any recent success in using a webcam with Firefox?

Sites like <https://webcamtests.com/> claim to detect the webcam (it's a 
logitech whatzit, attached as uvideo0), but are missing access permissions.


Firefox (123.0.1 here), OTOH, never asks for permissions; it does not 
log any related errors, either.


Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NetBSD and ECC RAM?

2024-02-16 Thread Hauke Fath (SPG)

On 2024-02-16 01:14, Michael van Elst wrote:

We should have EDAC drivers that should at least report events,
but so far there is nothing...


Sounds like a SoC project?

Cheerio,
Hauke


(FreeBSD appears to be no better off: 
<https://forums.freebsd.org/threads/how-to-find-out-if-ecc-is-enabled.72839/>)


--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NetBSD and ECC RAM?

2024-02-16 Thread Hauke Fath

On 2024-02-16 01:14, Michael van Elst wrote:

We should have EDAC drivers that should at least report events,
but so far there is nothing...


Sounds like a SoC project?

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344



NetBSD and ECC RAM?

2024-02-15 Thread Hauke Fath (SPG)

Hi,

one my favourite blogs is sporting a page on AMD ECC RAM support

<https://utcc.utoronto.ca/~cks/space/blog/linux/AMDWithECCKernelMessages>,

linking to

<https://sunshowers.io/posts/am5-ryzen-7000-ecc-ram/>.

Is this of any relevance to NetBSD, or do we just not bother?

Cheerio,
Hauke


(I had a server spit ECC errors recently, and it was kind of nice to 
know...)


--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Samba, ZFS and xattr

2023-08-21 Thread Hauke Fath

On 8/14/23 22:14, Chavdar Ivanov wrote:

supermicro# zfs set xattr=on pool0/backup/timemachine
property 'xattr' not supported on NetBSD: permission denied

If I'm not mistaken, this should be the step to set xattr?


According to Oracle's documentation, yes; it should be on by default.
On NetBSD (-current from yesterday) I get the same as above.


To my understanding, NetBSD's zfs is not the latest and greatest.

I am in the same boat - we have Time Machine backups to a FreeBSD Samba 
zfs server at work, and I failed to reproduce the setup at home on 
NetBSD 10 because of the missing xattr support.


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344



Re: Blacklistd configuration

2023-08-09 Thread Hauke Fath

On 8/5/23 23:17, Martin Neitzel wrote:

I have in -10 blAcklistd and blOcklistd. Is blacklistd now unsupported?
Man pages seem to be very similar.

>

It's just a renaming, and blocklistd gets continuing support.  On
a "true" netbsd-10-release (not available yet), there should be
just blocklistd.  Maybe you have old blAcklistd remnants from
upgrading into the your release-candidate?


I would have expected postinstall(8) to take care of the old binary and 
config file. Did you run that (or etcupdate(8), which will recommend to 
run it) after the upgrade?


Cheerio,
Hauke

--
 The ASCII Ribbon Campaign        Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344



Re: zfs pool behavior - is it ever freed?

2023-07-22 Thread Hauke Fath
On Sat, 22 Jul 2023 14:13:06 +0200, Hauke Fath wrote:
> It has a pair of SSDs (older intel SLC sata) for system partitions and 
> L2ARC, [...]

Got my acronyms wrong, I meant SLOG*. I understand that L2ARC is 
largely pointless, and a waste of good RAM.

Cheerio,
Hauke

* <https://www.truenas.com/docs/references/zilandslog/>

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: zfs pool behavior - is it ever freed?

2023-07-22 Thread Hauke Fath
On Sat, 22 Jul 2023 07:55:41 -0400, Greg Troxel wrote:
> Using half the ram for pools feels like perhaps a bug, depending -- even
> if you are getting away with it.
> 
> I am curious:
> 
>   What VM approach?

An nvmm accelerated qemu

>   How much ram in the domU (generic term even if not xen)?

800 MB

>   Are you using NFS from the domU to dom0?  domU running zfs?  Something
>   else?

The machine is not running Xen - I found the Dom0 too limiting for the 
purpose.

It has a pair of SSDs (older intel SLC sata) for system partitions and 
L2ARC, and a pair of 4TB Seagate IronWolf disks for zfs storage, 
exported through nfs, afp, smb.

The VM nfs-mounts pkgsrc and distfiles from the base machine.   

>   Is the 16G for pools the sum of the dom0 and domU pools?  Or ?

That is for the base machine, so yes.

>> My guess would be that your 8 GB are simply not enough for sustaining 
>> both zfs and builds.
> 
> I think that's how it is, but it seems obviously buggy for that to be
> the case.  It is dysfunctional to run the system to lockup caching
> things that don't need to be cached.  The ffs vnode cache for example
> does not do this.

Agreed. But zfs has had a reputation of being memory-hungry for ~ever. 
And to my understanding NetBSD's zfs version is not exactly state of 
the art.

> The zfs howto currently talks about zfs taking 1G plus 1G per 1T of
> disk.  For me that would be 1.8G, which would be ok.  But that's not
> what happens.

I wonder: How much memory are you assigning to the Dom0? That alone 
would increase memory pressure compared to a native kernel.
 
> Thanks for the data point; I'll probably edit the zfs HOWTO.  As it is
> we should probably be recommending against zfs unless you have 64G of
> RAM :-( as even your system doesn't seem healthy memory usage wise.

That sounds overly pessimistic to me. I have run a department 
fileserver with dozens of clients (home on NFS) on 32 GB RAM for years 
- the same hardware that now serves as file and build server under 
NetBSD - without ever running into zfs related memory issues.

Your 8 GB machine would probably be just fine with zfs as a pure 
fileserver.

Cheerio,
Hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: zfs pool behavior - is it ever freed?

2023-07-22 Thread Hauke Fath
On Fri, 21 Jul 2023 08:31:46 -0400, Greg Troxel wrote:
[zfs memory pressure]

>   Are others having this problem?

I have two machines, one at home (-10) and one at work (-9), in a 
similar role as yours (fileserver and builds). While both have had 
their moments, those have never been zfs related.

They both have 32 GB RAM. The home machine, currently running a 
netbsd-9 build natively and pkg_rr in a VM, is using 16 GB for pools as 
we speak. 

My guess would be that your 8 GB are simply not enough for sustaining 
both zfs and builds.

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: IP-based KVM solutions

2023-07-12 Thread Hauke Fath

On 5/3/23 22:39, Brook Milligan wrote:

Perhaps slightly off topic (forgive me), but I am guessing that some of you 
have NetBSD systems connected to IP-based (i.e., remote) KVM systems so that 
they can be monitored and controlled from afar.  I am wondering what solutions 
that you have found useful in that application.


Servers with serial console, and the comms/conserver{,8} package on a 
dedicated console server machine that we then ssh into.


Old school, but the console history is invaluable.

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344



Re: ldd-linux

2022-12-06 Thread Hauke Fath

On 12/4/22 12:49 PM, Robert Swindells wrote:

The one linux binary that I tried with suse15 couldn't do DNS lookups,
not worked out why, maybe glibc is expecting to talk to systemd using
dbus.


Interesting... I tried sysutils/tsm8 on suse15, and it failed with funny 
errors (can't quite remember what it was). I went back to suse13 at the 
time.


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NetBSD matrix client?

2022-11-26 Thread Hauke Fath
On Fri, 25 Nov 2022 19:55:08 -0500, Greg Troxel wrote:
> Lots of things that should be true about the world aren't.  I took the
> liberty of taking the suggested text that you should have included to be
> constructive ;-) and stuck it in DESCR.  Seriously, things get better
> when people make them better.

Point well taken.

I am generally wary, though, of twiddling knobs on packages I don't 
know anything about.

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NetBSD matrix client?

2022-11-24 Thread Hauke Fath
On Thu, 24 Nov 2022 14:47:31 -0500, Greg Troxel wrote:
> 
> Hauke Fath  writes:
> 
>> On 11/24/22 7:03 PM, Greg Troxel wrote:
>> 
>>> See chat/element-web.
>> 
>> I did. From its name I figured it was something to run with a web server.
> 
> It is a client that runs in a browser, and the package contains the
> files to be served to the browser.

So I guessed right! At last, something to be proud of...
 
>> Looking at the package, neither DESCR, nor the Makefile, nor the PLIST
>> gives me the slightest idea what to do with the thing - no
>> dependencies, and a bunch of files dumped under
>> PREFIX/share/element-web.
> 
> [...] A fair point that upstream's documentation
> is not great, but it's sort of explained in the README at toplevel in
> their github source repo.

"All the planning charts and demolition orders have been on display at 
your local planning department in Alpha Centauri for 50 of your Earth 
years, so you’ve had plenty of time to lodge any formal complaint..."

I shouldn't have to look up in an upstream repo what a package does, 
should I? pkgsrc should aim higher than that, no doubt. But as I said,
 
>> Which is quite representative for the whole matrix experience, as far
>> as it's gone for me.
> 
> It is a little complicated.  I worked through setting up synapse as a
> homeserver.
> 
> Besides Element, I believe there are other clients.   gomuks is in
> pkgsrc.  There is also ement.el, for emacs.

I tried gomuks - the colours, which cannot be changed, are unusable 
outside of "dark mode". Upstream has a ticket on that 
<https://github.com/tulir/gomuks/issues/23> which hasn't gone anywhere 
in years.

> In pkgsrc there is py-matrix-nio and py-mautrix, which have various
> degrees of library support.

They *are* libraries, at least according to DESCR, not client 
applications.

> Maybe you can get the university to use XMPP instead.

They are sooo proud of their Matrix server, security and all... not 
going to happen. But I don't run Exchange nor an AD server, so I'm not 
sure I am missing much.  =8>

Cheerio,
Hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344

Re: NetBSD matrix client?

2022-11-24 Thread Hauke Fath

On 11/24/22 6:10 PM, Martin Husemann wrote:

On Thu, Nov 24, 2022 at 06:03:06PM +0100, Hauke Fath wrote:

Any client I missed? What do people use on NetBSD?


Element in Firefox.


Google has <https://developer.mozilla.org/en-US/docs/Web/API/Element>:

"Element is the most general base class from which all element objects 
(i.e. objects that represent elements) in a Document inherit. It only 
has methods and properties common to all kinds of elements. More 
specific classes inherit from Element."


You are speaking in riddles. Assume I know nothing.  ;)

Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


NetBSD matrix client?

2022-11-24 Thread Hauke Fath

Hi,

I notice that NetBSD has matrix "rooms" 
<http://wikimirror.netbsd.de/matrix/>, but the page neglects to mention 
what client software to connect with:


The pkgsrc mail/thunderbird is way too old, the weechat-matrix 
extension is not packaged, and gomuks comes with the characteristic 
linux colour palette completely unusable unless you go dark-mode. Plus 
using an exotic implementation language appears to be mandatory, so 
stuff is not easily packaged.


Any client I missed? What do people use on NetBSD?

Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Local-only (non-ip) rpcbind(8)?

2022-11-18 Thread Hauke Fath

On 11/18/22 6:54 PM, Michael van Elst wrote:

When you specify hosts, rpcbind automatically adds 127.0.0.1 to the
list of addresses, thus the duplicate.


Yes, I got about that far, before coming here.  ;)


Here is what rpbind does:

-> bind to local transport
 nconf = getnetconfigent("local");
 init_transport(nconf);

-> bind to all visible transports configured
 while ((nconf = getnetconfig(nc_handle))) {
 if (nconf->nc_flag & NC_VISIBLE) {
 if (ipv6_only == 1 && 


And here is where I naively would insert a commandline option flag to 
disable all things non-local. Unless something like that already exists, 
and I just didn't see it.



 strcmp(nconf->nc_protofmly,"inet") == 0) {
 /* DO NOTHING */
 } else
 init_transport(nconf);
 }
 }
 endnetconfig(nc_handle);


Thanks,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: help with cron/rsync error message

2022-11-18 Thread Hauke Fath

On 11/18/22 12:20 PM, Steve Blinkhorn wrote:

Anything to do with system configuration or services - mostly
concentrated in /etc but also including, for instance, /var/cron/tabs -
needs protection in the upgrade process.  What would be ideal would be
a process that never overwrites a customised configuration file with a
fresh new default.


etcupdate(8) is your friend.

It will update all the files under /etc it recognizes as untouched, and 
will offer options (keep old/new, merge) for any locally changed files.


As long as you understand what you are doing, it is perfectly safe. I 
must have used it hundreds of times. My routine is basically


Install new kernel (with modules, if you use those)

Reboot to single user with new kernel

Untar* all sets except {,x}etc.tar.whatever_compression

Reboot

Run etcupdate (and postinstall) with {,x}etc.tar.whatever_compression

Reboot

... and back in business.

Cheerio,
Hauke


* I have a script for that, but it's strictly for convenience

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Local-only (non-ip) rpcbind(8)?

2022-11-18 Thread Hauke Fath

Hi,

can rpcbind(8) be set up to only use local transport, as opposed to 
binding to interfaces?


The closest I seem to come to that goal is by specifying '-h 127.0.0.1', 
which results in a pointless


Nov 18 15:45:05 HOST rpcbind: cannot bind 127.0.0.1 on udp: Address 
already in use
Nov 18 15:45:05 HOST rpcbind: cannot bind 127.0.0.1 on tcp: Address 
already in use


from rpcbind.c adding localhost to the address list unconditionally.

Yes, hosts.allow(5) would take care of things, but just result in more 
log noise.


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: netbsd-9 nsd(8) borken?

2022-09-15 Thread Hauke Fath
On Thu, 15 Sep 2022 17:50:01 +0200, Hauke Fath wrote:
> On 9/15/22 4:58 PM, Christos Zoulas wrote:
>>> Or is there any perspective for an update?
>>> 
>>> Should I send-pr?
>> Yes, does the one at HEAD work?
> 
> I'll try tonight.

Interesting... I knew I had run into something similar a while back, 
and remembered I had to downgrade net/nsd: 
<https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56053>

Turns out the version I complained about then is exactly what HEAD has 
- 4.3.5. And that shows the very same error, too. 

The pkgsrc version below, for comparison, is 4.6.0, which I just 
upgraded to from my local 4.3.4 pkg.

[hauke@pizza] /<1>pkg/nsd > /usr/pkg/sbin/nsd-checkzone causeuse.org 
./causeuse.org
zone causeuse.org is ok
[hauke@pizza] /<1>pkg/nsd > /usr/sbin/nsd-checkzone causeuse.org 
./causeuse.org
[2022-09-15 23:11:10.426] nsd-checkzone[20324]: error: 
./causeuse.org:367: syntax error
zone causeuse.org file ./causeuse.org has 1 errors
[hauke@pizza] /<1>pkg/nsd >

Import 4.6.0, and upgrade -9 to that?

Cheerio,
Hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: netbsd-9 nsd(8) borken?

2022-09-15 Thread Hauke Fath

On 9/15/22 4:58 PM, Christos Zoulas wrote:

Or is there any perspective for an update?

Should I send-pr?

Yes, does the one at HEAD work?


I'll try tonight.

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


netbsd-9 nsd(8) borken?

2022-09-14 Thread Hauke Fath

Hi,

I have a need for an authoritative nameserver (actually several, there 
is a netbsd-5 named instance to replace), and so built netbsd-9 with 
MKNSD=1, since the base nsd(8) will set up and run in a chroot, unlike 
the pkgsrc version.


The result is less than convincing:


% head /etc/nsd/causeuse.org
; $Id: causeuse.org,v 1.15 2022/09/12 15:58:10 hf Exp hf $
;
; causeuse.org master
;
$ORIGIN causeuse.org.
$TTL 86400  ; 1 day
;
@   IN  SOA ns2.causeuse.org. hostmaster.causeuse.org. (
2022091201 ; serial
28800  ; refresh (8 hours)

-- this zone file is in production.

% /usr/sbin/nsd -v
NSD version 4.1.27
Written by NLnet Labs.

Copyright (C) 2001-2006 NLnet Labs.  This is free software.
There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.

-- what they said.

% /usr/sbin/nsd-checkzone causeuse.org /etc/nsd/causeuse.org
[2022-09-14 17:10:55.439] nsd-checkzone[12565]: error: 
/etc/nsd/causeuse.org:5: zero label length
[2022-09-14 17:10:55.440] nsd-checkzone[12565]: error: 
/etc/nsd/causeuse.org:5: syntax error
[2022-09-14 17:10:55.440] nsd-checkzone[12565]: error: 
/etc/nsd/causeuse.org:52: zone configured as 'causeuse.org' has no SOA 
record.

zone causeuse.org file /etc/nsd/causeuse.org has 3 errors

-- no search engine hits for "zero label length" "nsd"
   outside of the source code.

% /usr/pkg/sbin/nsd-checkzone causeuse.org /etc/nsd/causeuse.org
zone causeuse.org is ok
%

-- pkgsrc nsd is 4.6.0


Am I right in assuming that nobody uses the netbsd-9 nsd(8), since 
nobody appears to have noticed the bit rot? Yes, I know that it's not in 
the default build, but still...


Or is there any perspective for an update?

Should I send-pr?

Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Build original Csh on Linux and FreeBSD.

2022-09-12 Thread Hauke Fath

On 9/12/22 2:07 PM, Hauke Fath wrote:

On 9/7/22 1:52 AM, RVP wrote:

Anyway, since NetBSD csh is compiled with -DEDIT, try `set filec edit'.
Then, you can use libedit for standard Emacs-style of line-editing, and
tab for filename completion.


Heh! Since when are we doing that!? Thanks!


Interesting: This works when I set it at the shell prompt. But when 
setting it in csh.cshrc, csh(1) hangs indefinitely with


[hf@Gstoder] ~ > csh
[ 3270305.6523634] load: 0.23  cmd: csh 21649 [ttyraw] 0.00u 0.00s 0% 2252k

Ah well...

Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Build original Csh on Linux and FreeBSD.

2022-09-12 Thread Hauke Fath

On 9/7/22 1:52 AM, RVP wrote:

Anyway, since NetBSD csh is compiled with -DEDIT, try `set filec edit'.
Then, you can use libedit for standard Emacs-style of line-editing, and
tab for filename completion.


Heh! Since when are we doing that!? Thanks!

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: ifwatchd(8) and interface carrier changes

2022-08-01 Thread Hauke Fath
On Mon, 1 Aug 2022 10:27:53 +0200, Martin Husemann wrote:
> On Mon, Aug 01, 2022 at 09:57:33AM +0200, Hauke Fath wrote:
>> I see that the ethernet interface (wm(4) in this case) keeps the IP 
>> configuration when the carrier goes away and the wifi interface is 
>> being brought up, which leads to confusion in my setup.
> 
> Are you running dhcpcd?

Yes. And wpa_supplicant(8), of course. It's a bit of a maze...

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: ifwatchd(8) and interface carrier changes

2022-08-01 Thread Hauke Fath
On Mon, 1 Aug 2022 09:24:46 +0200, Martin Husemann wrote:
> Buf if there is a usefull application we could add an option to
> ifwatchd to poll it from userland (with a configurable timer). I don't
> see any obvious use for that though - Hauke, do you have one?

I see that the ethernet interface (wm(4) in this case) keeps the IP 
configuration when the carrier goes away and the wifi interface is 
being brought up, which leads to confusion in my setup. Since both 
interfaces are in different subnets, the machine cannot reach the LAN 
subnet via Wifi.

That could be mitigated by just downing wm(4), or - more convoluted - 
by manually clearing the routes on it. The former feels more 
straightforward.

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign        Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


ifwatchd(8) and interface carrier changes

2022-07-30 Thread Hauke Fath
All,

after an 'ifconfig wm0 down' ifwatchd(8) will not recognize or act on 
any carrier changes on wm0, although carrier status is indicated 
correctly in 'ifconfig wm0' output. Should it?

Cheerio,
Hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Default group on ZFS

2021-12-20 Thread Hauke Fath
On Mon, 20 Dec 2021 18:23:35 +0100, J. Hannken-Illjes wrote:
> Looks like the attached diff is sufficient.
> Will you commit or should I?

Thanks! I'll give it a test run, and commit.

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Default group on ZFS

2021-12-20 Thread Hauke Fath

On 12/20/21 1:46 PM, Hauke Fath wrote:
on BSD ffs, group ownership of a newly created file defaults to the 
enclosing directory's.


ZFS appears to go with SysV in defaulting to the owner's primary group.

Is there a mount option to change that? I know I could setgid all the 
directories on the zfs volume, but that's an ugly pain...


See also <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=139076> -- 
do we have this?


src/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c:1664 f.

-- we don't: Should I send-pr?

Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Default group on ZFS

2021-12-20 Thread Hauke Fath

Hi,

on BSD ffs, group ownership of a newly created file defaults to the 
enclosing directory's.


ZFS appears to go with SysV in defaulting to the owner's primary group.

Is there a mount option to change that? I know I could setgid all the 
directories on the zfs volume, but that's an ugly pain...


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NetBSD alsa and its oss plugin

2021-11-23 Thread Hauke Fath
On Tue, 23 Nov 2021 15:10:10 +0100, Hauke Fath wrote:
> I am trying a different machine now, to be sure.

The old machine was an HP Elitebook 2170p. The Thinkpad X61 is a little 
better. On netbsd-9 audio recording doesn't work, but with a current 
kernel it will record silence (might be my confusion about mixer 
settings). OTOH, wip/xoscope will just hang with

% xoscope
[ 9770.0863042] load: 0.00  cmd: xoscope 4016 [iowait parked poll 
parked audiord] 0.80u 0.16s 0% 26760k

till I kill it.

Cheerio,
Hauke

-- 
Hauke Fath
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


Re: NetBSD alsa and its oss plugin

2021-11-23 Thread Hauke Fath
On Tue, 23 Nov 2021 00:09:10 +, nia wrote:
> I have two patches for you to try. One implements AUDIO_GETIOFFS
> in the kernel, the other works around alsa-plugins-oss's abuse
> of non-blocking I/O. With both patches, I get crystal clear
> recording with arecord.

Why, thanks!

Unfortunately...

The kernel patch is against -current sources? It didn't apply to -9, 
and I made the changes by hand. The alsa-plugin-oss patch didn't apply 
either, and left me completely befuddled (patches to patch file...), so 
I did my best to extract the relevant bits and hand-apply. 

Patch files attached (patch-oss_pcm__oss.c in place of patch-ac), for 
comparison with your changes.

The resulting kernel spits 'audio0(hdafg0): device timeout' messages. 
Unsurprisingly arecord(1) doesn't do a thing, and xoscope just hangs.

Cheerio,
Hauke 

-- 
Hauke Fath
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


patch-oss_pcm__oss.c
Description: Binary data


sys_dev_audio.c.diff
Description: Binary data


Re: NetBSD alsa and its oss plugin

2021-11-22 Thread Hauke Fath
On Sun, 21 Nov 2021 14:37:17 +0100, Hauke Fath wrote:
> Has anybody successfully used the pipeline alsa-libs -> 
> alsa-plugins-oss on NetBSD?

As a data point, an attempt to record 10 seconds through alsa will hang 
indefinitely, and leave an empty file stub:

%  arecord -v -N -f cd -t wav recording.wav
Recording WAVE 'recording.wav' : Signed 16 bit Little Endian, Rate 
44100 Hz, Stereo
ALSA <-> OSS PCM I/O Plugin
Its setup is:
  stream   : CAPTURE
  access   : RW_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 44100
  exact rate   : 44100 (44100/1)
  msbits   : 16
  buffer_size  : 16384
  period_size  : 4096
  period_time  : 92879
  tstamp_mode  : NONE
  tstamp_type  : GETTIMEOFDAY
  period_step  : 1
  avail_min: 4096
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 16384
  silence_threshold: 0
  silence_size : 0
  boundary : 4611686018427387904
^CAborted by signal Interrupt...
% ls -l recording.wav 
-rw-r--r--  1 hauke  wheel  16428 Nov 22 11:58 recording.wav
% file recording.wav 
recording.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 
bit, stereo 44100 Hz
%

So, while playing audio that way works, it looks like recording through 
the alsa oss plugin is plain broken.

Cheerio,
Hauke

-- 
Hauke Fath
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


NetBSD alsa and its oss plugin

2021-11-21 Thread Hauke Fath
Hi,

I have packaged xoscope <http://xoscope.sourceforge.net/>, a digital 
oscilloscope which uses alsa as its sound input. It runs fine on 
NetBSD, but I am having the hardest time to hook up the input. With 

pcm.!default {
type oss
device /dev/audio
}

ctl.!default {
type oss
device /dev/mixer
}

in ~/.asoundrc, the alsa-utils aplay(1) will give (garbled) output, but 
arecord(1) does not produce anything, on two different machines. Nor, 
of course, does xoscope.

Has anybody successfully used the pipeline alsa-libs -> 
alsa-plugins-oss on NetBSD?

Cheerio,
Hauke

-- 
Hauke Fath
Linnéweg 7
64342 Seeheim-Jugenheim
Germany


Re: OS-level virtualization

2021-04-19 Thread Hauke Fath

On 4/11/21 8:51 AM, Austin Kim wrote:

while I’m ok decent with Git, to be able to contribute anything
useful I’d obviously have to get more intimately familiar with CVS
(but am really dreading sitting down to read up on CVS; I’d even
prefer Subversion or Mercurial over CVS).
For one, there are git, mercurial and fossil replications of the NetBSD 
CVS source tree, so you get to freely pick your poison. And until you 
are given commit bits, you would have to work on a local tree, anyway.


For another, the subset of CVS features that you need as a regular 
developer is surprisingly narrow. The relevant parts in the (well 
written) Cederqvist manual 
<https://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cederqvist-1.12.13.pdf> 
should cover you easily - after all, CVS has a much smaller footprint 
than the contemporary distributed VCSen.


It never ceases to amaze me how people claim to have mastered git, then 
proceed to make a mountain out of a molehill... how can you expect to 
find your way through the complexities of the NetBSD source tree, when 
you cannot even come to terms with CVS?


Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: OS-level virtualization

2021-04-19 Thread Hauke Fath

On 4/12/21 4:49 AM, Austin Kim wrote:

FWIW one possible suggestion might be for Core to consider announcing
holding a public vote later this year, say on July 1, among all
NetBSD developers with CVS commit rights, between migrating NetBSD’s
SCM system to Mercurial versus migrating to Git.  (That would give
people time to do their own research into the relative merits and
trade-offs between the two systems.)
My limited understanding of the matter is that the VCS transition is 
driven by those who put in the work, as opposed to those who hold an 
opinion, strongly.


Which is probably as it should be...

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: skills to document the netbsd kernel?

2021-04-19 Thread Hauke Fath

On 4/14/21 10:07 PM, Rocky Hotas wrote:

I think you may (and should!) surely have an overall idea of the kernel,
but you can not know everything about it with the same deep detail.


A book that might be helpful in the context of exploring a large code 
base is <https://www.spinellis.gr/codereading/> - not least because it 
partly uses NetBSD source code to demonstrate the methods it introduces.


Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: npf questions

2020-12-02 Thread Hauke Fath
On Tue, 1 Dec 2020 16:14:18 +0100, Martin Husemann wrote:
> On Tue, Dec 01, 2020 at 09:49:39AM -0500, Greg Troxel wrote:
>> I don't see why part of npf is built in and the other part isn't.
> 
> Indeed, for architectures supported by bpfjit (and where it works) they
> should go together.

Is there a technical reason why bpfjit is modules-only, or is it just 
somebody's conviction that modules are the bees' knees?

Spoken as somebody who will stick to monolithic kernels on his 
servers...

Cheerio,
Hauke

(who runs pf(4), since npf(4) is not feature complete.)

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Mapping kbd layout to connected) usb keyboard?

2020-10-28 Thread Hauke Fath

On 2020-10-26 16:41, Mike Pumford wrote:

On 26/10/2020 13:00, Hauke Fath wrote:
Is there a way to automatically set the wscons keyboard layout 
depending on the keyboard attached? What about X11?


Not sure that's something any OS supports. I've not seen auto layout 
detection even in windows or linux as I'm not sure the keyboards can 
communicate that even over USB.


I guessed as much, but I thought I'd ask.

There is usually only one PS/2 keyboard, so that would be distinct; and 
USB HIDes do have a distinct signature:


[ 172843.427911] wskbd2 at ukbd1 mux 1
[ 172843.427911] wskbd2: connecting to wsdisplay0
[ 172843.427911] uhidev4 at uhub7 port 4 configuration 1 interface 4
[ 172843.427911] uhidev4: Keyboardio (0x1209) Atreus (0x2303), rev 
2.00/1.00, addr 3, iclass 3/1

[ 172843.427911] ukbd2 at uhidev4: 8 Variable keys, 6 Array codes
[ 172843.838050] wskbd3 at ukbd2 mux 1
[ 172843.838050] wskbd3: connecting to wsdisplay0

So it would be possible to switch to a separate layout for a newly 
appeared kbd device. OTOH, this would require per-kbd layouts, which 
AFAICS wscons does not do...


Normally there is an input selection widget in the UI to switch input 
keyboard layouts. Not sure if the X11 versions of those work in NetBSD.


I guess. Maybe I'll make do with a small shell script...

CHeerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Mapping kbd layout to connected) usb keyboard?

2020-10-26 Thread Hauke Fath

Hi,

I helped my self to a fancy keyboard (Keyboardio Atreus). It comes with 
US layout, which I am trying to get used to, unlike my old DE IBM kbd.


Is there a way to automatically set the wscons keyboard layout depending 
on the keyboard attached? What about X11?


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Use of disklabel, MBR and GPT

2020-10-23 Thread Hauke Fath

On 2020-10-23 15:48, Martin Husemann wrote:

On Fri, Oct 23, 2020 at 11:43:27AM +0200, Hauke Fath wrote:

On 2020-10-22 17:48, Bruce Lilly wrote:

For example, a type of disklabel
can be written to an OpenBSD
GPT partition rather than to the disk [P]MBR.


The NetBSD disklabel(8) will happily do that, too...


But the kernel won't find it and you can not use the subpartitions, or
am I overlooking something? The whole setup makes no sense at all to me.


I guess I was thinking of the workarounds needed on NetBSD before a 
gpt-only  RAID1 became bootable.


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Use of disklabel, MBR and GPT

2020-10-23 Thread Hauke Fath

On 2020-10-22 17:48, Bruce Lilly wrote:

For example, a type of disklabel
can be written to an OpenBSD
GPT partition rather than to the disk [P]MBR.


The NetBSD disklabel(8) will happily do that, too...


Writing a NetBSD disklabel with the eponymous utility will trash the
primary GPT on a GPT-formatted
disk (which can be recovered with NetBSD `gpt recover`).


... unless pointed to the whole disk. I wouldn't expect the OpenBSD 
disklabel to act any different here.


Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: fwohci users, anyone ?

2020-10-22 Thread Hauke Fath

On 2020-10-21 15:29, Michael van Elst wrote:

Is anyone using firewire hardware ? In particular for mass storage ?


I would love to, but - has it ever been usable?

Attaching a firewire disk to

%  uname -a
NetBSD Gstoder 9.99.48 NetBSD 9.99.48 (GA-MA770-UD3-$Revision$) #0: Thu 
Oct 22 12:43:04 CEST 2020 
hf@Hochstuhl:/var/obj/netbsd-builds/developer/amd64/sys/arch/amd64/compile/GA-MA770-UD3 
amd64

%

results in

[  3628.304008] fwohci0: BUS reset
[  3628.304008] fwohci0: node_id=0x8800ffc0, gen=3, non CYCLEMASTER mode
[  3628.304008] ieee1394if0: 2 nodes, maxhop <= 1 cable IRM irm(0) (me)
[  3628.304008] ieee1394if0: root node is not cycle master capable
[  3628.304008] ieee1394if0: bus manager 0
[  3628.304008] fwohci0: autoconfiguration error: too many cycle lost, 
no cycle master present?

[  3628.554096] fwohci0: autoconfiguration error: txd err=14 ack busy_X
[  3628.554096] ieee1394if0: autoconfiguration error: node1: 
explore_read_quads failure

[  3628.554096] fwohci0: autoconfiguration error: txd err=14 ack busy_X
[  3628.554096] ieee1394if0: autoconfiguration error: node1: 
explore_read_quads failure

[  3628.554096] fwohci0: autoconfiguration error: txd err=14 ack busy_X
[  3628.554096] ieee1394if0: autoconfiguration error: node1: 
explore_read_quads failure

[  3655.923722] fwohci0: BUS reset
[  3655.923722] fwohci0: node_id=0xc800ffc0, gen=4, CYCLEMASTER mode
[  3655.923722] ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
[  3655.923722] ieee1394if0: bus manager 0
[  3657.204171] fwohci0: BUS reset
[  3657.204171] fwohci0: node_id=0x8800ffc0, gen=6, non CYCLEMASTER mode
[  3657.204171] ieee1394if0: 2 nodes, maxhop <= 1 cable IRM irm(0) (me)
[  3657.204171] ieee1394if0: root node is not cycle master capable
[  3657.204171] ieee1394if0: bus manager 0
[  3657.204171] fwohci0: autoconfiguration error: too many cycle lost, 
no cycle master present?

[  3657.454259] fwohci0: autoconfiguration error: txd err=14 ack busy_X
[  3657.454259] ieee1394if0: autoconfiguration error: node1: 
explore_read_quads failure

[  3657.454259] fwohci0: autoconfiguration error: txd err=14 ack busy_X
[  3657.454259] ieee1394if0: autoconfiguration error: node1: 
explore_read_quads failure

[  3657.454259] fwohci0: autoconfiguration error: txd err=14 ack busy_X
[  3657.454259] ieee1394if0: autoconfiguration error: node1: 
explore_read_quads failure

[  3700.549400] fwohci0: BUS reset
[  3700.549400] fwohci0: node_id=0xc800ffc0, gen=7, CYCLEMASTER mode
[  3700.549400] ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
[  3700.549400] ieee1394if0: bus manager 0
[  3701.819846] fwohci0: BUS reset
[  3701.819846] fwohci0: node_id=0x8800ffc0, gen=9, non CYCLEMASTER mode
[  3701.829849] ieee1394if0: 2 nodes, maxhop <= 1 cable IRM irm(0) (me)
[  3701.829849] ieee1394if0: root node is not cycle master capable
[  3701.829849] ieee1394if0: bus manager 0
[  3701.829849] fwohci0: autoconfiguration error: too many cycle lost, 
no cycle master present?


-- not anything that I would trust data with.

Cheerio,
Hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Removing bl[ao]cklist entries?

2020-09-29 Thread Hauke Fath
All,

we are protecting our mail server's smtp-auth logins with 
bl[ao]cklistd*. It just so happens that every once in a while, careless 
updates or configuration changes (don't ask) lead to legitimate 
connections being blocked.

In this case, there are two databases to fix: bl?cklistd's, and the 
packet filter's state table. If I just go and remove the relevant entry 
from the packet filter's (npf in this case) state table, I find myself 
in a game of whack-a-mole, because bl?cklistd appears to re-create 
entries corresponding to its database.

And bl?cklistctl(8), despite its name, does not allow for removing 
blocking entries.

What is the proper procedure here, short of flushing both the 
bl?cklistd database and all of the packet filter  entries?

Cheerio,
Hauke


* "blacklistd", since the machine in question runs netbsd-9

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: possible new feature: unrm ?

2020-07-01 Thread Hauke Fath

On 2020-07-01 18:25, Michael Cheponis wrote:

I agree that backups are necessary, but who hasn't had a corrupted backup?
And it's much less convenient.  With disks so big these days, a 'shadow
filesystem' seems most logical to me.


There are scripts which will create and remove a set of snapshots on 
zfs, which would be pretty much what you have in mind.


Traditional Unix filesystems don't support this well, I am afraid.

Cheerio,
Hauke


--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: How to configure npf to restrict nfs to localhost

2020-06-30 Thread Hauke Fath

On 2020-06-29 23:24, Greg A. Woods wrote:

Stopping rpcbind from revealing ports other RPC servers are listening on
is the primary thing you need to do.  You can do this with filters
blocking TCP and UDP ports #111, and/or with rpcbind itself using its
built-in libwrap support, like so:

In your /etc/hosts.allow file you can restrict rpcbind to given
networks:

rpcbind:PARANOID:DENY
rpcbind:0.0.0.0, 127.0.0.1, 10.0.1.0/255.255.255.0 :ALLOW
rpcbind:ALL:DENY


In order for rpcbind(8) to actually heed /etc/hosts.{allow,deny} it 
needs to be started with


 -W  Enable libwrap (TCP wrappers) support.

which for whatever reason is not the default.

The default

 -l  Turns on libwrap connection logging.

will just log.

Cheerio,
Hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: netbsd 9 upgrade experience

2020-06-23 Thread Hauke Fath
On Sat, 20 Jun 2020 20:19:08 + (GMT), r0ller wrote:
> 3) xorg still crashes when it gets a little stress as it did in 8.1 
> with i915drmkms enabled tough I hoped that upgrading to 9 will solve 
> it. See xdm.log and Xorg.0.log attached.

You might be better off with wip/xf86-video-intel-git - it fixed 
similar problems for me on a HP EliteBook.

But I don't know if you can run a pkgsrc X server alongside base X11, 
or if you need to build all things X from pkgsrc.

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign        Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: smbd kills inetd?

2020-05-19 Thread Hauke Fath
On Tue, 19 May 2020 07:23:11 +0100, Sad Clouds wrote:
> On Mon, 18 May 2020 20:32:16 +0000 Hauke Fath wrote:
>> OTOH, when I run '/etc/rc.d/inetd start', my client cannot connect,
>> and inetd dies quietly - no core, no log entry anywhere.
> 
> Can you trace system calls to see what happens, see ktrace(1)? This may
> give you an idea.

Well, inetd daemonizes. And when you run it in the foreground ('inetd 
-l -d'), it runs fine, true to Murphy's Laws.

See also bin/55278.

Cheerio,
Hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


smbd kills inetd?

2020-05-18 Thread Hauke Fath
All,

this is a funny bit: On a machine that does not see windows clients 
very often, I would like to run smbd and nmbd from inetd:

# Samba 4
netbios-ssn stream  tcp nowait  root/usr/pkg/sbin/smbd  
smbd
microsoft-dsstream  tcp nowait  root/usr/pkg/sbin/smbd  
smbd
netbios-ns  dgram   udp waitroot/usr/pkg/sbin/nmbd  
nmbd

Now, when I run 'inetd -d -l', my client can connect to microsoft-ds, 
and mount a volume.

OTOH, when I run '/etc/rc.d/inetd start', my client cannot connect, and 
inetd dies quietly - no core, no log entry anywhere.

What gives?

Cheerio,
Hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Old BPB too big, use -f

2019-12-11 Thread Hauke Fath

On 2019-12-10 18:13, Martin Husemann wrote:

On Tue, Dec 10, 2019 at 02:19:10PM +0100, Hauke Fath wrote:

I tried setting up a gpt/gpt raid1 from sysinst a few weeks ago, and it
dumped core pretty quickly. Is this a known issue?


No - how did you do it? (Just a rough sketch of the process should be enough
to reproduce it).


Easy and repeatable:

[boot netbsd-9 install cd on amd64, 2 SCSI disks]

sysinst menus:

Utility Menu
Partition a disk
Create software RAID
RAID level 1
a:
Add:  --> segmentation fault

Cheerio,
hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Old BPB too big, use -f

2019-12-10 Thread Hauke Fath

On 2019-12-10 12:40, Mayuresh wrote:

9.0RC1 installer has feel of bugs, it occasionally ends in segmentation
violation also - no precise description for PR, I think it was when trying
to edit MBR partition sizes.


I tried setting up a gpt/gpt raid1 from sysinst a few weeks ago, and it 
dumped core pretty quickly. Is this a known issue?


Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: No HDMI output on Lenovo V145, NetBSD 8.0

2019-12-09 Thread Hauke Fath

On 2019-12-09 14:25, Mayuresh wrote:

I have a NetBSD 8.0 installation on a USB stick, working fine on an asus
laptop.

Now I have another lenovo laptop[1] that boots fine using the same stick
but for HDMI not showing any output.


At this point, I would recommend giving netbsd-9 a spin, which is late 
in its release cycle and, if anything, more stable than -8.


You can download a snapshot from 
<http://www.netbsd.org/releases/formal-9/NetBSD-9.0.html>. And if you 
don't want to upgrade your installation right away, you can always just 
install a kernel (plus kernel modules, these days, unless you go with a 
MONOLITHIC kernel), and boot that with -8 userland.


Cheerio,
hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


puc(4) serial multiport clock multipliers?

2019-11-06 Thread Hauke Fath

Hi,

does anyone out there use SystemBase SB16C105{4,8} serial multiport PCI 
cards through puc(4)?


sys/dev/pci/pucdata.c currently has three SystemBase models. The 
SB16C1050 entry has a clock multiplier of 8, while SB16C1054 and 
SB16C1058 entries do not.


I find that my SB16C1058 cards need the x8 multiplier for nominal port 
speeds, and I suspect the SB16C1054 is the same, but cannot verify.


Comments?

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: netbsd-9 ip6 kernel log messages

2019-08-30 Thread Hauke Fath

On 2019-08-30 03:22, Robert Elz wrote:

Thanks for the detailed analysis!


Since you have v4 statically configured, I will guess that you're
not starting dhcpcd


Correct.


- if that's not running, the kernel is managing
v6 autoconfig for you.

Your initial message said "/var/log/messages gets spammed with..."
from which I have been assuming not just one message, but many.


From dmesg(8):

[...]
[ 97324.649076] in6_setscope: can't set scope for not loopback interface 
vioif0 and loopback address ::1
[ 97324.649076] in6_setscope: can't set scope for not loopback interface 
vioif0 and loopback address ::1
[ 97326.651757] in6_setscope: can't set scope for not loopback interface 
vioif0 and loopback address ::1
[ 97326.651757] in6_setscope: can't set scope for not loopback interface 
vioif0 and loopback address ::1
[ 97330.657141] in6_setscope: can't set scope for not loopback interface 
vioif0 and loopback address ::1
[ 97330.657141] in6_setscope: can't set scope for not loopback interface 
vioif0 and loopback address ::1

[...]

Assuming the time is in seconds, the messages come in pairs, in 
consistent distances of 2, 4 and 4 seconds.



Can you deduce from the timestamps the appoximate frequency, and
perhape correlate that with the frequency of RA messages from whatever
v6 enabled router is on the same (bridged, I am guessing from voif0)
network link?


I tcpdump(8)ed ~1000 icmp6 packets, and there wasn't a single router 
advertisement; they were all "neighbor solicitation"s.


Cheerio,
hauke

--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: netbsd-9 ip6 kernel log messages

2019-08-29 Thread Hauke Fath

On 2019-08-29 10:43, Robert Elz wrote:

 Date:Thu, 29 Aug 2019 09:59:01 +0200
 From:Hauke Fath 
 Message-ID:  


   | What gives you the impression that I did?

I misread your ifconfig output.  Sorry.

But that is what the error message you reported mean, when a loopback
address is being added to a non-loopback interface, that message is
logged.   Something is making that happen.


I understand. But in terms of network configuration, this is a very 
plain  setup, just a static ip4 address. Which is why I am left puzzled...



   | ip6 isn't even configured on the machine.

In terms of addresses, no, but it is enabled, as shown in your
ifconfig output.


Well, that is what NetBSD does out of the box.


What is the system's hostname set to?
And what is in either /etc/ifconfig.voif0 or ifconfig_voif0 (whichever
you use) [you can drop any v4 addressees, this is a v6 issue.]


# hostname
oak
# cat ifconfig.vioif0
 netmask 255.255.255.0
#

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: netbsd-9 ip6 kernel log messages

2019-08-29 Thread Hauke Fath

On 2019-08-29 00:46, Robert Elz wrote:

Thanks for looking at this.


 Date:Wed, 28 Aug 2019 17:43:04 +0200
 From:Hauke Fath 
 Message-ID:  

   | /netbsd: [ 22431.3702756] in6_setscope: can't set scope for not loopback
   | interface vioif0 and loopback address ::1

::1 should only be configureds as an address on lo0 - why are you
trying to assign it to vioif0 ?


What gives you the impression that I did?

ip6 isn't even configured on the machine. While it has a public ip6 
address, I didn't get to that yet.


# fgrep ::1 /etc/*
/etc/hosts:::1  localhost localhost.
/etc/hosts.allow:ALL :  [::1] 127.
/etc/ntp.conf:restrict ::1
#

is all there is.

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


netbsd-9 ip6 kernel log messages

2019-08-28 Thread Hauke Fath

On a netbsd-9 KVM guest, /var/log/messages gets spammed with

/netbsd: [ 22431.3702756] in6_setscope: can't set scope for not loopback 
interface vioif0 and loopback address ::1


# ifconfig -a
vioif0: flags=0x8843 mtu 1500
ec_capabilities=1
ec_enabled=0
address: 
inet /24 broadcast .255 flags 0x0
inet6 %vioif0/64 flags 0x0 scopeid 0x1
lo0: flags=0x8049 mtu 33624
inet 127.0.0.1/8 flags 0x0
inet6 ::1/128 flags 0x20
inet6 fe80::1%lo0/64 flags 0x0 scopeid 0x2
npflog0: flags=0x1
#

-- does this speak to anybody?

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: wd pb: atactl standby, smart and errors

2019-08-20 Thread Hauke Fath

On 2019-08-20 12:52, tlaro...@polynum.com wrote:

BTW, I read in the PR that the diff for 7.x was applied to 8.x but
didn't get to current?


It did, but apparently other changes to the driver undid its effect.

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: wd pb: atactl standby, smart and errors

2019-08-20 Thread Hauke Fath

On 2019-08-20 10:37, tlaro...@polynum.com wrote:

Reported problems are like this:

[ 51498.493926] wd0c: error reading fsbn 8740546 of 8740546-8740577 (wd0
bn 8740546; cn 8671 tn 2 sn 52), xfer 12f0, retry 0
[ 51498.503930] wd0: (uncorrectable data error)


Sounds familiar - see kern/49457...

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: State of ZFS in 9.0_BETA

2019-08-10 Thread Hauke Fath
On Thu, 8 Aug 2019 16:46:46 +0200, Marc Baudoin wrote:
> ZFS has been updated for 9.0_BETA.

On the same topic, is there a perspective for 

file-system ZFS # Solaris ZFS

(i.e. a monolithic, non-module kernel)?

Cheerio,
hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: GPT BIOS boot

2019-05-30 Thread Hauke Fath
On Thu, 30 May 2019 12:22:31 -0400 (EDT), MLH wrote:
> m...@netbsd.org (Emmanuel Dreyfus) writes:
>> I migrated a RAID setup from MBR to GPT and I have trouble getting
>> it booting again, using legacy BIOS boot.
>> 
>> The GPT, RAID and wedges setup are listed below.
> 
> Almost a year ago [...]
> 
> At the time, I finally decided I was just too dense to figure out
> what was needed, but if Emmanuel is having the same problems, maybe
> it isn't me. :^)

No, it's not you. I filed install/44982, which puts it back a bit...

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: GPT BIOS boot

2019-05-30 Thread Hauke Fath
On Thu, 30 May 2019 11:58:39 +0700, Robert Elz wrote:
[booting from RAID1 on gpt]
> We really need the boot code to read the GPT tables, find the right 
FFS/raid partition, and get 
> the offset that way - reading GPT isn't hard, recognising FFS/raid is easy, 
and testing 
> the "bootable" flag is trivial, so (unlike actually dealing correctly with 
> raid in all its possible forms) this would be entirely reasonable to add to 
boot. 

I fully agree, and do not think hardcoding offsets into filesystems is 
something that NetBSD should do.

Cheerio,
hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Rock-solid USB ethernet adapters?

2019-05-21 Thread Hauke Fath

On 2019-05-20 20:25, Brad Spencer wrote:

I have had very good luck with anything that uses axe(4).


I'll second that. I ran my uplink over one at gome for years, and have a 
few of them in a drawer @work. Cheap and reliable.


Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Banana pi pro - which list

2019-05-20 Thread Hauke Fath
On Mon, 20 May 2019 12:08:38 -0400, Ron Georgia wrote:
> I am having issues installing NetBSD 8.0 on my banana pi pro. Would 
> that be something for this list or port-arm?

netbsd-users is fine, I guess, unless it were clearly about a 
machine-specific issue.

Cheerio,
hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Pinebook on it's way

2019-05-15 Thread Hauke Fath

On 2019-05-13 15:22, Ron Georgia wrote:

My new Pinebook should be here today. Any recommendations on "An
Idiots Guide to Installing NetBSD" on a Pinebook?
Well, just in case you didn't get an answer yet, the following links 
should get you started:


<https://blog.netbsd.org/tnf/entry/pinebook>
<http://mail-index.netbsd.org/port-arm/2018/11/09/msg005166.html>
<https://wiki.netbsd.org/ports/evbarm/allwinner/#index2h2>

This page <https://www.invisible.ca/arm/> will provide you with a 
bootable image that you can dd(1) on a micro sd card.


Be gentle with the SD card slot - I managed to bend a pin in mine, and 
the Pin(e)book doesn't boot from USB.


Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: playing with bootxx_ext2fs

2019-03-12 Thread Hauke Fath

On 3/12/19 9:21 AM, pierre-philipp braun wrote:

Please help me understand how installboot is doing its job.  I can try
to take bits from bootxx_ext2fs and push it on the right places onto the
ext2 file-system with dd if/skip of/seek.


I am going out on a limb here, but what installboot does is (1) install 
bootxx_*fs as PBR (mbr partition boot record), and (2) patch the 
location (sector offset, presumably?) of /boot into the PBR code.


I would think this is fs agnostic?

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: apm command netbsd 8

2018-11-13 Thread Hauke Fath

On 11/10/18 14:22, Michael Jensen wrote:
Has the old apm command been removed in NetBSD 8? If not what do I need 
to get it back. Also the apm api is needed for asbatt in pkgsrc can this 
be made to work with newer versions?


To my understanding, the apm kernel code and associate userland have 
been yanked out a while back, leaving pre-acpi machines without any 
power management.


You could port the code to -current, or stick with, say, netbsd-5.

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: booting from gpt/raid?

2018-07-13 Thread Hauke Fath

On 07/11/18 21:58, MLH wrote:

Unfortunately, gpt-on-raid1-on-gpt is not bootable, as opposed to
disklabel-on-RAID1-on-disklabel (which has size limitations).

The mbr boot code is able to account for disklabel-on-raid1, but not for
gpt-on-raid1, see e.g. install/44982.

>

I'm not quite sure I am understanding your nomenclature here.


I don't blame you.

Think of it as an onion.

You start by putting gpts / disklabels on two empty disks, then create a 
partition designated as type raid on each. You configure the raid1, 
which sets up its own header at the beginning of the partition, and then 
create another ("inner") gpt / disklabel on the resulting raid device.


Now, the MBR boot sector code knows how to parse the outer gpt / 
disklabel for a partition marked 'bootable', then load and execute its 
first block (the PBR). The PBR code knows how to recognize a BSD 
disklabel raid partition and skip the fixed-size raid header[1], which 
requires a disklabel right at the start of the raid.


But as it is, the PBR code does not know how to find the inner gpt in 
presence of a raid header. ISTR this was because of variable size of 
on-disk structures, but my memory is hazy.


Cheerio,
hauke

[1] see comment at the beginning of 
<http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/bootxx/pbr.S?rev=1.22=text/x-cvsweb-markup>, 
and 
<http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/i386/stand/bootxx/boot1.c?rev=1.20=text/x-cvsweb-markup>.


--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Support for pci-e serial multiport adapters?

2018-07-08 Thread Hauke Fath
Hi,

I am currently looking into building a serial terminal server on 
~current amd64 hardware.

Looking through documentation and man pages, the supported serial 
multiport adapters are generally pci. What pci-e adapters does NetBSD 
support? Does anybody have first hand experience?

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: booting from gpt/raid?

2018-07-06 Thread Hauke Fath

On 07/01/18 22:55, MLH wrote:

Things are generally going well but before I actually install a
system, one question I have is how to make the configuration
bootable.


Unfortunately, gpt-on-raid1-on-gpt is not bootable, as opposed to 
disklabel-on-RAID1-on-disklabel (which has size limitations).


The mbr boot code is able to account for disklabel-on-raid1, but not for 
gpt-on-raid1, see e.g. install/44982.


Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Does Linux emulation work?

2017-12-08 Thread Hauke Fath
On Tue, 5 Dec 2017 12:52:16 + (UTC), Christos Zoulas wrote:
> $ sysctl -a | grep linux
> emul.linux.kern.ostype = Linux
> emul.linux.kern.osrelease = 3.11.6
> emul.linux.kern.osversion = #1 SMP PREEMPT Thu Oct 24 16:23:02 UTC 2013
> emul.linux.enabled = 0
> emul.linux32.kern.ostype = Linux
> emul.linux32.kern.osrelease = 3.11.6
> emul.linux32.kern.osversion = #1 SMP PREEMPT Thu Oct 24 16:23:02 UTC 2013
> emul.linux32.enabled = 0
> 
> You need to enable it.

Maybe make this an rc.d script? Running with linux emul isn't that 
uncommon (or unimportant) as some would have it...

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Pulseaudio & browsers - anyone got something ELSE working?

2017-08-14 Thread Hauke Fath
On Mon, 14 Aug 2017 07:48:25 -0600 (MDT), Swift Griggs wrote:
> On Sun, 13 Aug 2017, Chavdar Ivanov wrote:
>> My firefox-54.0 was build with the default 'oss' option, sound is working
>> well, I have never noticed any problems.
> 
> I'll try that. I didn't realize there was such a thing. That should 
> work well for my purposes.

From my mk.conf:

# Sound Globals
PKG_DEFAULT_OPTIONS =  oss -pulseaudio -alsa -arts -esound -nas

-- appears to nicely take care of things.

HTH,
hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Hypervisor advice

2017-07-31 Thread Hauke Fath

On 07/30/17 05:22, Andy Ruhl wrote:

Don't really care what the Hypervisor is as long as it's reliable and
straightforward. Free would be a bonus. If it was BSD it would be even
better.


Xen should tick all your boxes, tnen.

I have been running VMs on Xen for the last ~ten years, starting with 
utility servers. Five years ago, I split out main DMZ server into three 
VMs (mail, web, database), and the setup has been rock stable ever since.


My 0.02 EUR..

Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NetBSD 8.0-BETA NFS Server over OpenVPN: mount_nfs: can't access /: Permission denied

2017-07-24 Thread Hauke Fath

On 07/23/17 19:03, Andreas Beck wrote:

When I want to mount from the client, i get this error:
mount_nfs: can't access /: Permission denied


[...]


/etc/exports
/  -network 10.8.0.0 -mask 255.255.255.255 -maproot=root


Unless 10.8.0.0 is the client's address (and you have 
net.inet.ip.hostzerobroadcast=0 to make use of the all-zeroes sublet 
address), your subnet mask will not match any host.


Cheerio,
hauke



--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: NPF newbie questions

2017-01-14 Thread Hauke Fath

On 01/11/17 10:02, Egerváry Gergely wrote:

Let me ask some NPF newbie questions.


Hum - there has been a constant trickle of questions recently on users@ 
about what is supposed to be the go-to packet filter on NetBSD.


Answers - not so much.

Would tech-net@ be a better forum, or did NetBSD just inherit yet 
another packet filter whose architect moved on to greener pastures?


On a related note: Is there a recognized "missing features" list for npf(4)?

Puzzled,
hauke


(who is working on moving a router from pf(4) to npf(4) as we speak, and 
has a growing suspicion that the instability he has seen lately is 
related more to carp(4) than to pf(4)...)


--
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: upgrading an old system

2016-08-18 Thread Hauke Fath

On 08/16/16 14:45, Brad Spencer wrote:

Going from 2.0 or 3.0 it might be simpler to find another hard drive and
install it in the system and just reload everything onto the new drive
and swap it in.


I wouldn't be too worried about booting a netbsd-7 kernel on a v2 
system. But there is a pitfall: Newer systems will not let you log on to 
multi-user without a populated /etc/pam.d, which IIRC was fois^W^Wcame 
to us with netbsd-3.


Cheerio,
hauke

--
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281


NetBSD and bridge(4)?

2016-07-08 Thread Hauke Fath
All,

on netbsd-7, when I create a bridge(4) device 

# ifconfig bridge0 create

and add the machine's nic to it, 

# brconfig bridge0 add wm0 up

all entwork activity stops until an

# ifconfig bridge0 destroy

-- what am I missing?

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Booting NetBSD from GPT/EFI

2016-06-09 Thread Hauke Fath
On Wed, 8 Jun 2016 15:23:59 +0200, Hauke Fath wrote:
> It also looks as if some notebooks (I have my hands o an HP 2170p here) 
> blindly assume UEFI when they find a gpt formatted disk, even when 
> advised to attempt a "legacy boot".

Ah well -- PR bin/51230

Cheerio,
hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Booting NetBSD from GPT/EFI

2016-06-08 Thread Hauke Fath
On Tue, 7 Jun 2016 20:34:27 + (UTC), Michael van Elst wrote:
> While there is a 'gptmbr.bin' bootloader for NetBSD that
> requires BIOS boot but then accesses a GPT instead of the MBR
> partitions, I doubt that such a disk is supported by Windows.

It also looks as if some notebooks (I have my hands o an HP 2170p here) 
blindly assume UEFI when they find a gpt formatted disk, even when 
advised to attempt a "legacy boot". After a bit of groping in the dark, 
and frantic hardware-swapping, I found that the HP will boot from a 
plain old mbr disk.

disklabel(8) partitioning is not ot much of a restriction on the 
2170p's 128GB SSD, but it might be soon enough...

Cheerio,
hauke

-- 
 The ASCII Ribbon Campaign    Hauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-21344


Re: Booting from raid0g?

2015-02-19 Thread Hauke Fath
On Thu, 19 Feb 2015 14:09:57 -0500, Greg Troxel wrote:
 If you want to have a fallback partition/kernel, I think you'll need a
 separate RAID set.

Or a separate fdisk partition, even. Why do I get the impression that 
the whole i386 booting business is a festering pile of hacks?  ;) 

 But, if this is really for rescue, you can also boot off cd, and that's
 easier than changing your layout.

Sure, if I can be around to do that. The idea in the background was to 
set up a poor man's failover scheme, where the fallback machine would 
run a different system until needed, so it can keep the copy of the 
main system updated.

I am looking into CARP currently, maybe that offers an alternate path.

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281


Re: Booting from raid0g?

2015-02-19 Thread Hauke Fath
On Thu, 19 Feb 2015 12:15:33 +0100, J. Hannken-Illjes wrote:
 I use this entry in boot.cfg:
 
 menu=Boot alternate:multiboot netbsd console=com console_speed=57600 
 root=raid0h

Hm - would this load the kernel from raid0a, or from the alternate 
partition (raid0h in your case)?

Interesting enough, the local equivalent reboots spontaneously while 
loading the kernel (netbsd-7 here)...

hauke 

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281


Booting from raid0g?

2015-02-19 Thread Hauke Fath
All,

on an amd64 machine with a raidframe raid 1 (mirrored), I have set up a 
fallback system on raid0e. 

Now, the partition boot record (bootxx_ffsv2) doesn't seem to know 
about raid?, instead boot.cfg(5) advises to specify hd?. At the 
boot prompt, boot hd0g:netbsd gives me open hd0g:netbsd: bad 
partition.

I can, OTOH, boot netbsd -a, and then select raid0g, but this 
requires manual intervention. How can I permanently specify the 
selection in boot.cfg(5)?

Cheerio,
hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281


Re: Which lightweight window manager with menu auto-update?

2013-11-14 Thread Hauke Fath
On Thu, 14 Nov 2013 16:11:05 +, Ottavio Caruso wrote:
 I am looking for a recommendation for a lightweight manager that can
 update itself after installing new packages and doesn't list non
 existent applications.

icewm does that. 

Applications have to be listed in either the system pr per-user menu 
file, though; for all I know, pkgsrc does not maintain a list of (X11 
GUI) applications for window managers to peruse.

HTH,
hauke 

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281


Re: [Fwd: Re: netbsd-6.1: squid from pkgsrc-2013-Q2 uses too much CPU time]

2013-10-10 Thread Hauke Fath
On Wed, 09 Oct 2013 19:01:22 +0200, Adrian Immanuel Kieß wrote:
 No comment.

Publishing private mail... so, yes, you are a troll.

hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281


Re: success story -- SUN storage bay with RAIDframe

2013-04-29 Thread Hauke Fath
On Mon, 29 Apr 2013 11:47:21 +0200, Pierre-philipp Braun wrote:
 sdX: async, 8-bit transfers, tagged queueing

Hmmm... you might want to look into this. As it is, these drives are 
not going to be very fast.

hauke

-- 
 The ASCII Ribbon CampaignHauke Fath
() No HTML/RTF in emailInstitut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
 Respect for open standards  Ruf +49-6151-16-3281