Re: A messed-up fresh install due to a careless user

2023-04-29 Thread Odd Martin Baanrud
Hello Brian,

I forgot to say that my site set did include the already prepared pf.conf, but 
not rc.conf.local, where pf was set to be disabled.
As the result, pf started with rules for nat/firewall, not the default ones.
And that created the “problem”.

Martin



Re: A messed-up fresh install due to a careless user

2023-04-29 Thread Brian Conway
On Sat, Apr 29, 2023, at 3:48 AM, Odd Martin Baanrud wrote:
> Yes, off course one should have a firewall.
> That was why I installed OpenBSD on the actual machine in the first place.
> I prepared it when it was on the LAN only, and then moved it into production.
> And now it works perfectely.
> But the firewall needed to be disabled while the machine was on the LAN only.

The default pf.conf is very sufficient for allowing incoming traffic in a LAN 
environment.

Brian Conway



Re: A messed-up fresh install due to a careless user

2023-04-29 Thread Odd Martin Baanrud
Hello Steve,

Yes, off course one should have a firewall.
That was why I installed OpenBSD on the actual machine in the first place.
I prepared it when it was on the LAN only, and then moved it into production.
And now it works perfectely.
But the firewall needed to be disabled while the machine was on the LAN only.

Regarding braille, I hope *BSD gets native support for braille displaies some 
day.
The software (brltty) compiles, but it doesn’t get any output from the console.
I guess this has to do with the console driver itself, not outputting data the 
way brltty needs.
OpenBSD has a port of brltty which can be run in “screen”, but the version is 
really out-dated.

Regards, Martin



Re: A messed-up fresh install due to a careless user

2023-04-29 Thread Steve Litt
Odd Martin Baanrud said on Fri, 28 Apr 2023 10:01:29 +0200

>Hello Stefan,
>
>Thanks for the clear-up.
>And now, it works!
>When I created the site set, I forgot to add /etc/rc.conf.local, where
>pf was set to be disabled. The reason was, as you see, pf. :-)
>So a simple “pfctl -d” solved the “problem”.
>Good to know that the fault actually wasn’t a careless user who
>installed the system, but rather a careless user who forgot to add a
>simple file to a tar archive. :-)
>
>Regards, Martin
>

You really should have a firewall though. Perhaps set up pf.conf to let
through what you need.


SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm



Re: A messed-up fresh install due to a careless user

2023-04-28 Thread Odd Martin Baanrud
Hello Stefan,

Thanks for the clear-up.
And now, it works!
When I created the site set, I forgot to add /etc/rc.conf.local, where pf was 
set to be disabled.
The reason was, as you see, pf. :-)
So a simple “pfctl -d” solved the “problem”.
Good to know that the fault actually wasn’t a careless user who installed the 
system, but rather a careless user who forgot to add a simple file to a tar 
archive. :-)

Regards, Martin



Re: A messed-up fresh install due to a careless user

2023-04-28 Thread Stefan Hagen
Hello Daniel,

I'm writing my text to the top of the email. This is probably easier for
you to read than inline quoting.

On the reboot question, you can ctrl+z + reboot. This would not have a
negative effect on the installation. This is exactly what the installer
would do if you answer "r" for reboot.

Also unplugging the USB stick has no negative effect at this point.

The boot loader has been installed, otherwise your OpenBSD installation
would not have started. And the boot loader is installed after all sets
have been extracted. Therefore it's unlikely that files are missing.

I can not tell why the network configuration has not been written. If
you type "mail" as root, you should find an email with all the questions
and answers that were used during the installation. Maybe this gives a
clue. I tend to believe that the network was not configured using the
installer.

Best Regards,
Stefan

Odd Martin Baanrud wrote (2023-04-27 23:31 CEST):
> Hello,
> 
> I’m blind, and got sighted help to install OpenBSD on the machine which 
> should become a new router.
> Unfortunately, I was stupid enough to detach the USB stick I booted from, 
> before I was to hit R for the reboot.
> The result was that the last selection disappeared due to the detach message 
> from the kernel, and I didn’t manage to get it back.
> The only way I thaught could be used for reboot was to hit ctrl+Z, and then 
> type reboot.
> And it “worked”.
> 
> When I connected the machine to the LAN afterwords, I didn’t get contact.
> After trying a few things, I finally got an IP on it, with the correct 
> hostname.
> (I connected a keyboard, logged in as root, and configured one of the 
> interfaces with ifconfig $if autoconf.)
> I’ve good expereince doing so without braille.
> 
> So the machine got an IP, but still no contact, either with ping or ssh.
> I then realized that mandatory files has not been written, including the 
> hostname.if file for the NIC used durring install.
> And I guess others too. :-)
> 
> Which files are actually written when rebooting the corret way?
> I’ve OpenBSD 7.3 installed on both a arm64 and a i386 machine.
> Can I use the missing files from one of those?
> I should be able to copy them to a USB stick, and mount it and get the files 
> in place without sighted help.
> And the network interface can be configured with dhcp for now.
> As soon as the machine is on the lan, I’ll ssh into it from a linux machine 
> with a braille display.
> 
> Regards, Martin
> 
> PS: I’ve now learned that one should reboot _BEFORE_ detaching any external 
> device when the installer is still running. :-)
> 



Re: A messed-up fresh install due to a careless user

2023-04-27 Thread Odd Martin Baanrud
Hello Daniel,

The problem is, as I told, that I’m blind.
I don’t have a screen at home, and it’s not easy to bring it to someone who has.

All went just fine until it was time to reboot.
So if someone could tell me what is missing, I guess it should work to get in 
the missing files from another install of the same version. (7.3)

Regards, Martin



Re: A messed-up fresh install due to a careless user

2023-04-27 Thread Daniel Ouellet

If that's a new install, may as well just redo it.

The install is really fast, so this way you are sure you have a clean 
system and NOT one that you may have problem down the road, specially if 
that's your first time.


That's what I would do anyway.

Compare to any other IS, the install for OpenBSD is the fastest I ever 
seen, except may be NixOS when you move it to a new system. (;







On 4/27/23 5:31 PM, Odd Martin Baanrud wrote:

Hello,

I’m blind, and got sighted help to install OpenBSD on the machine which should 
become a new router.
Unfortunately, I was stupid enough to detach the USB stick I booted from, 
before I was to hit R for the reboot.
The result was that the last selection disappeared due to the detach message 
from the kernel, and I didn’t manage to get it back.
The only way I thaught could be used for reboot was to hit ctrl+Z, and then 
type reboot.
And it “worked”.

When I connected the machine to the LAN afterwords, I didn’t get contact.
After trying a few things, I finally got an IP on it, with the correct hostname.
(I connected a keyboard, logged in as root, and configured one of the 
interfaces with ifconfig $if autoconf.)
I’ve good expereince doing so without braille.

So the machine got an IP, but still no contact, either with ping or ssh.
I then realized that mandatory files has not been written, including the 
hostname.if file for the NIC used durring install.
And I guess others too. :-)

Which files are actually written when rebooting the corret way?
I’ve OpenBSD 7.3 installed on both a arm64 and a i386 machine.
Can I use the missing files from one of those?
I should be able to copy them to a USB stick, and mount it and get the files in 
place without sighted help.
And the network interface can be configured with dhcp for now.
As soon as the machine is on the lan, I’ll ssh into it from a linux machine 
with a braille display.

Regards, Martin

PS: I’ve now learned that one should reboot _BEFORE_ detaching any external 
device when the installer is still running. :-)





A messed-up fresh install due to a careless user

2023-04-27 Thread Odd Martin Baanrud
Hello,

I’m blind, and got sighted help to install OpenBSD on the machine which should 
become a new router.
Unfortunately, I was stupid enough to detach the USB stick I booted from, 
before I was to hit R for the reboot.
The result was that the last selection disappeared due to the detach message 
from the kernel, and I didn’t manage to get it back.
The only way I thaught could be used for reboot was to hit ctrl+Z, and then 
type reboot.
And it “worked”.

When I connected the machine to the LAN afterwords, I didn’t get contact.
After trying a few things, I finally got an IP on it, with the correct hostname.
(I connected a keyboard, logged in as root, and configured one of the 
interfaces with ifconfig $if autoconf.)
I’ve good expereince doing so without braille.

So the machine got an IP, but still no contact, either with ping or ssh.
I then realized that mandatory files has not been written, including the 
hostname.if file for the NIC used durring install.
And I guess others too. :-)

Which files are actually written when rebooting the corret way?
I’ve OpenBSD 7.3 installed on both a arm64 and a i386 machine.
Can I use the missing files from one of those?
I should be able to copy them to a USB stick, and mount it and get the files in 
place without sighted help.
And the network interface can be configured with dhcp for now.
As soon as the machine is on the lan, I’ll ssh into it from a linux machine 
with a braille display.

Regards, Martin

PS: I’ve now learned that one should reboot _BEFORE_ detaching any external 
device when the installer is still running. :-)