Re: failure to read huge .text section

2024-07-27 Thread Claudio Jeker
On Sat, Jul 27, 2024 at 08:14:42PM +0900, Shein Asker wrote:
> Dear @misc readers,
> 
> I have recently started using OpenBSD and have encountered the problem
> shown in the subject when porting a software used on Linux to OpenBSD.
> The problem is outlined as follows: SEGV occurs when trying to read huge
> size data placed in a .text section that exceeds the `PAGE_SIZE` by a large
> amount.
> 
> My environments are as follows:
> machine:
>   1. QEMU/KVM x86_64 6.2.0
>   2. Dynabook R63/J (Intel Core i5-7300U)
> OS: OpenBSD 7.5
> compiler: clang 16.0.6
> 
> Below is the minimal code that reproduces the problem.
> https://github.com/sheinasker/data-asm/tree/main
> 
> What this code does is to copy the contents of a global string variable
> defined in the assembler to a dynamically allocated area and display the
> address, size, and leading and trailing data. The entity of `sample_code`
> is defined in assembler and its content is a string of 12289 bytes filled
> with 'A'. The SEGV occurs in the part of the code below that executes
> `memcpy`.
> 
> ```cpp
> #include 
> #include 
> #include 
> 
> extern "C" char sample_code[];
> extern "C" std::uint32_t sample_code_size;
> 
> int main() {
> std::cout << "address: " << reinterpret_cast(sample_code) <<
> std::endl;
> char* buf = (char*)std::malloc(sample_code_size);
> 
> // SEGV
> std::memcpy(buf, sample_code, sample_code_size);
> 
> std::cout << "size: " << std::strlen(buf) << std::endl;
> std::cout << "head: " << std::string(buf, buf + 10) << std::endl;
> std::cout << "tail: " << std::string(buf + sample_code_size - 11, buf +
> sample_code_size - 1) << std::endl;
> }
> ```
> 
> Running it with `make run1`, you will see that it crashes with SIGSEGV.
> 
> The log when debugging with `lldb` is as follows:
> ```
> openbsd-host$ lldb sample1
> (lldb) target create "sample1"
> Current executable set to '/home/asker/src/data-asm/sample1' (x86_64).
> (lldb) b main
> Breakpoint 1: where = sample1`main, address = 0x6410
> (lldb) run
> Process 8967 launched: '/home/asker/src/data-asm/sample1' (x86_64)
> Process 8967 stopped
> * thread #1, stop reason = breakpoint 1.1
> frame #0: 0x0befee364410 sample1`main
> sample1`main:
> ->  0xbefee364410 <+0>:  endbr64
> 0xbefee364414 <+4>:  movq   0x372d(%rip), %r11; __retguard_831
> 0xbefee36441b <+11>: xorq   (%rsp), %r11
> 0xbefee36441f <+15>: pushq  %rbp
> (lldb) c
> Process 8967 resuming
> address: 0xbefee361400
> Process 8967 stopped
> * thread #1, stop reason = signal SIGSEGV
> frame #0: 0x0bf2b0c282b0
> libc.so.99.0`memcpy(dst0=0x0bf29066c000, src0=,
> length=12289) at memcpy.c:103:2
> (lldb) c
> Process 8967 resuming
> Process 8967 exited with status = 11 (0x000b)
> (lldb) q
> ```
> 
> At the same time, the history of system calls was also recorded by
> `ktrace`, so that is also shown.
> ```
>   8967 sample1  CALL  kbind(0x6fe6698ee708,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee6b8,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee628,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee608,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee628,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee5d8,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL
>  mprotect(0xbf24ee36000,0x1000,0x3)
>   8967 sample1  RET   mprotect 0
>   8967 sample1  CALL  mprotect(0xbf24ee36000,0x1000,0x1)
>   8967 sample1  RET   mprotect 0
>   8967 sample1  CALL  fstat(1,0x6fe6698ee500)
>   8967 sample1  STRU  struct stat { dev=0, ino=104192, mode=crw--w ,
> nlink=1, uid=1000<"asker">, gid=4<"tty">, rdev=1283, atime=1722062206<"Jul
> 27 15:36:46 2024">.276320559, mtime=1722062206<"Jul 27 15:36:46
> 2024">.276320559, ctime=1722062206<"Jul 27 15:36:46 2024">.276320559,
> size=0, blocks=0, blksize=65536, flags=0x0, gen=0x0 }
>   8967 sample1  RET   fstat 0
>   8967 sample1  CALL
>  mmap(0,0x1,0x3,0x1002,-1,0)
>   8967 sample1  RET   mmap 13137847422976/0xbf2e4ba9000
>   8967 sample1  CALL  fcntl(1,F_ISATTY)
>   8967 sample1  RET   fcntl 1
>   8967 sample1  CALL  kbind(0x6fe6698ee6b8,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee798,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee668,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee568,24,0x3e7ebd77b6a5befb)
>   8967 sample1  RET   kbind 0
>   8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
>   8967 

failure to read huge .text section

2024-07-27 Thread Shein Asker
Dear @misc readers,

I have recently started using OpenBSD and have encountered the problem
shown in the subject when porting a software used on Linux to OpenBSD.
The problem is outlined as follows: SEGV occurs when trying to read huge
size data placed in a .text section that exceeds the `PAGE_SIZE` by a large
amount.

My environments are as follows:
machine:
  1. QEMU/KVM x86_64 6.2.0
  2. Dynabook R63/J (Intel Core i5-7300U)
OS: OpenBSD 7.5
compiler: clang 16.0.6

Below is the minimal code that reproduces the problem.
https://github.com/sheinasker/data-asm/tree/main

What this code does is to copy the contents of a global string variable
defined in the assembler to a dynamically allocated area and display the
address, size, and leading and trailing data. The entity of `sample_code`
is defined in assembler and its content is a string of 12289 bytes filled
with 'A'. The SEGV occurs in the part of the code below that executes
`memcpy`.

```cpp
#include 
#include 
#include 

extern "C" char sample_code[];
extern "C" std::uint32_t sample_code_size;

int main() {
std::cout << "address: " << reinterpret_cast(sample_code) <<
std::endl;
char* buf = (char*)std::malloc(sample_code_size);

// SEGV
std::memcpy(buf, sample_code, sample_code_size);

std::cout << "size: " << std::strlen(buf) << std::endl;
std::cout << "head: " << std::string(buf, buf + 10) << std::endl;
std::cout << "tail: " << std::string(buf + sample_code_size - 11, buf +
sample_code_size - 1) << std::endl;
}
```

Running it with `make run1`, you will see that it crashes with SIGSEGV.

The log when debugging with `lldb` is as follows:
```
openbsd-host$ lldb sample1
(lldb) target create "sample1"
Current executable set to '/home/asker/src/data-asm/sample1' (x86_64).
(lldb) b main
Breakpoint 1: where = sample1`main, address = 0x6410
(lldb) run
Process 8967 launched: '/home/asker/src/data-asm/sample1' (x86_64)
Process 8967 stopped
* thread #1, stop reason = breakpoint 1.1
frame #0: 0x0befee364410 sample1`main
sample1`main:
->  0xbefee364410 <+0>:  endbr64
0xbefee364414 <+4>:  movq   0x372d(%rip), %r11; __retguard_831
0xbefee36441b <+11>: xorq   (%rsp), %r11
0xbefee36441f <+15>: pushq  %rbp
(lldb) c
Process 8967 resuming
address: 0xbefee361400
Process 8967 stopped
* thread #1, stop reason = signal SIGSEGV
frame #0: 0x0bf2b0c282b0
libc.so.99.0`memcpy(dst0=0x0bf29066c000, src0=,
length=12289) at memcpy.c:103:2
(lldb) c
Process 8967 resuming
Process 8967 exited with status = 11 (0x000b)
(lldb) q
```

At the same time, the history of system calls was also recorded by
`ktrace`, so that is also shown.
```
  8967 sample1  CALL  kbind(0x6fe6698ee708,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee6b8,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee628,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee608,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee628,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee5d8,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL
 mprotect(0xbf24ee36000,0x1000,0x3)
  8967 sample1  RET   mprotect 0
  8967 sample1  CALL  mprotect(0xbf24ee36000,0x1000,0x1)
  8967 sample1  RET   mprotect 0
  8967 sample1  CALL  fstat(1,0x6fe6698ee500)
  8967 sample1  STRU  struct stat { dev=0, ino=104192, mode=crw--w ,
nlink=1, uid=1000<"asker">, gid=4<"tty">, rdev=1283, atime=1722062206<"Jul
27 15:36:46 2024">.276320559, mtime=1722062206<"Jul 27 15:36:46
2024">.276320559, ctime=1722062206<"Jul 27 15:36:46 2024">.276320559,
size=0, blocks=0, blksize=65536, flags=0x0, gen=0x0 }
  8967 sample1  RET   fstat 0
  8967 sample1  CALL
 mmap(0,0x1,0x3,0x1002,-1,0)
  8967 sample1  RET   mmap 13137847422976/0xbf2e4ba9000
  8967 sample1  CALL  fcntl(1,F_ISATTY)
  8967 sample1  RET   fcntl 1
  8967 sample1  CALL  kbind(0x6fe6698ee6b8,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee798,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee668,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee568,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  kbind(0x6fe6698ee738,24,0x3e7ebd77b6a5befb)
  8967 sample1  RET   kbind 0
  8967 sample1  CALL  write(1,0xbf2e4ba9000,0x17)
  8967 sample1  GIO   fd 1 wrote 23 bytes
   "address: 0xbefee361400
   "
  8967 sample1  RET   write 23/0x17
  8967 sample1  CALL  

Alder Lake motherboard (i3-N305) not booting

2024-07-27 Thread Rob Schmersel
Hi,

I recently got a new motherboard with an alder lake CPU (i3-N305),
which uses a JMicron JMB585 SATA multipler connect to one of the
PCI-E lanes. Disk connected to this will get detected (albeit a bit
slower as direct connected SATA disks)

(There is no serial console, waiting for a IP KVM switch. So all typed
by hand and apologies for any typos)

A number of devices  are not configured (just in case that is relevant
and only those that are still visible, there might be more): 

"Intel ADL-N eSPI" rev 0x00 at pci0 dev31 function 0 not configured
"Intel ADL-N HD Audio" rev 0x00 at pci0 dev31 function 3 not configured
"Intel ADL-N SMBus" rev 0x00 at pci0 dev31 function 4 not configured
"Intel ADL-N SPI" rev 0x00 at pci0 dev31 function 5 not configured

The system hangs when trying to determine if softraid is
available (does not matter if disk are connected or not):

softraid0 at root
scsibus4 at softraid0: 256 targets
> hanging forever after this

The disks used are from my older system (also an AMD64 system based on
an intel J3720 CPU) was used before, but no softraid was ever
configured. 

The hanging occurs for both booting from the old disk and booting with a
current snapshot miniroot75.img

The system only supports USB and the connected keyboard does not work
when trying to use 'boot -c' to see if I could disable softraid.

Apart from building my own kernel anyhting I could do?

BR/Rob

PS. does this belong in bugs@ ?



Re: avoid single-user mode boot

2024-07-27 Thread Odhiambo Washington
On Wed, Jul 24, 2024 at 2:01 PM <04-psyche.tot...@icloud.com> wrote:

> Hi all,
>
> I have a machine that will be placed in a remote location, and have no
> physical access to. The connection will be made through ssh only.
>
> I'd like to make it as resilient to failure as possible.
>
> A big concern to me is for a disk failure to happen (say a power outage),
> and the machine to be rebooted in single user mode. At that point, the
> machine has no network access, and so I lose contact to it.
>
> Is there any way to disable going to single user mode when fsck is not
> happy?
>
> Is it reasonable to change the /etc/fstab to modify the fsck flag from 1
> and 2 to 0, to bypass the fsck checks ?
>
> Alternatively, is there a way to have ssh access in single user mode?
>
> Thanks!
> Jake
>

Can they give you an extra IP address??
If yes, take a look at this:
1. https://www.youtube.com/watch?v=cVWF3u-y-Zg
2.
https://www.jeffgeerling.com/blog/2022/blikvm-pcie-puts-computer-your-computer


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]


Re: avoid single-user mode boot

2024-07-26 Thread 04-psyche . totter
Thanks Matthew, that's helpful. I will look into that.



headscale segfault on openbsd 7.5

2024-07-26 Thread Jona Joachim

Hi!

I upgraded my system to openbsd 7.5 today and headscale to headscale-0.22.1.

With openbsd 7.4, everything was running fine.

Now I get a segfault when I try to run headscale (see below).

I know nothing about golang so it's a bit hard to debug.

I tried to compile the software manually with "go build" with different 
options. I seems to compile fine but it doesn't generate a runnable binary.


I wonder if you can reproduce on 7.5.



$ sudo -u _headscale headscale serve
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x16ad5e8]

goroutine 1 [running]:
modernc.org/libc.(*TLS).setErrno(0x1c59020?, {0x292f80?, 0x656220?})
    modernc.org/libc@v1.22.2/etc.go:189 +0xa8
modernc.org/libc.Xmalloc(0x0, 0x334ec0?)
    modernc.org/libc@v1.22.2/mem.go:34 +0xc5
modernc.org/libc.init()
    modernc.org/libc@v1.22.2/libc_openbsd.go:49 +0x2a9





Best regards,

Jona JOACHIM




upsdrvctl issue (nut/UPS) since sysupgrade to 7.5 (and nut update)

2024-07-26 Thread Steve Fairhead
Hi folks,

I have no doubt this will turn out to be pilot error, so apologies in advance.

We have a server with an APC UPS via USB, which was working fine over
several sysupgrades to 7.4. Since 7.5, not so much.

I also did a package update (pkg_add -ui) as part of the process, and
saw that nut was updated - but didn't see anything change of
significance.

I'm familiar with restoring the ownerships and rights to /dev/ugen0.00
and /dev/usb0 (in my case) after the sysupgrade.

Running "upsdrvctl start" now returns an error, including:

USB communication driver (libusb 1.0) 0.46
interrupt pipe disabled (add 'pollonly' flag to 'ups.conf' to get rid
of this message)
libusb1: Could not open any HID devices: insufficient permissions on everything
No matching HID UPS found

The thing I find very odd is that running nut-scanner before the
sysupgrade gave me a sensible result:

Scanning USB bus.
[nutdev1]
driver = "usbhid-ups"
port = "auto"
vendorid = "051D"
productid = "0003"
product = "Smart-UPS_3000 FW:UPS 06.0 / ID=1027"
serial = "xxx"
vendor = "American Power Conversion"
bus = "000"

Afterwards, it's odd:

Cannot load SNMP library (libnetsnmp.so) : file not found. SNMP search disabled.
Cannot load XML library (libneon.so) : file not found. XML search disabled.
Scanning USB bus.
[nutdev1]
driver = "apc_modbus"
port = "auto"
vendorid = "051D"
productid = "0003"
product = "Smart-UPS_3000 FW:UPS 06.0 / ID=1027"
serial = "xxx"
vendor = "American Power Conversion"
bus = "000"
device = "002"
busport = "003"
###NOTMATCHED-YET###bcdDevice = "0001"

Modbus? Really? (I tried it anyway; didn't work. No surprise.)

I conclude that I've missed permissions on something (new?), as
suggested by the error message. But what?

Any help gratefully received.

Steve



Re: Startup script for Netbox: can't start with a user and can't stop

2024-07-25 Thread Mik J
Hello Stuart,

Thank you for your answer.

1)
>but you start as _netbox:
>> daemon_user="_netbox"
>that won't work, it needs root to change uid (to www).
I finally chose to run it as _netbox and change this line
daemon_flags="--name netbox --pid /var/run/netbox.pid --user=_netbox 
--group=_netbox --config=${_BASEDIR}/gunicorn.py"
So that everything is aligned


2)
>this doesn't make a lot of sense, why not either start it from the
>rc script itself, or save a separate script to disk, rather than
>writing to /var/run?

>also if you run commands from the venv bin directory, they set
>things up for you so you don't need to source "activate".

I didn't understand what you wrote except that what I did was not correct.

To run the application that acts like a daemon, I need to do these tasks 
manually

_BASEDIR=/var/www/htdocs/applications/netbox-4.0.7
APPDIR=${_BASEDIR}/netbox
daemon_flags="--name netbox --pid /var/run/netbox.pid --user=_netbox 
--group=_netbox --config=${_BASEDIR}/gunicorn.py"
daemon_flags="${daemon_flags} --log-level=info --log-file=- netbox.wsgi"

cd ${_BASEDIR}/netbox
. ${_BASEDIR}/env/bin/activate
export 
PYTHONPATH=${_BASEDIR}/env/lib/python3.10/site-packages:${APPDIR}${PYTHONPATH:+:${PYTHONPATH}}
exec gunicorn ${daemon_flags}

Q: When you write "start it from the rc script itself", should I try to add 
instructions in the rc_pre() section ?
Q: You - write if you run commands from the venv bin directory, they set things 
up for you so you don't need to source "activate" -
So I don't need to use . ${_BASEDIR}/env/bin/activate
Should my rc_start() only contain rc_exec ${daemon} ${daemon_flags} ?

Regards



Le jeudi 25 juillet 2024 à 09:45:10 UTC+2, Stuart Henderson 
 a écrit : 





here you tell it to run it as www:

> daemon_flags="--name netbox --pid /var/run/netbox.pid --user=www --group=www 
> --config=${_BASEDIR}/gunicorn.py"
> daemon_flags="${daemon_flags} --log-level=info --log-file=- netbox.wsgi"

but you start as _netbox:

> daemon_user="_netbox"

that won't work, it needs root to change uid (to www).

> pexp="${_BASEDIR}/env/bin/python3.10 ${daemon}${daemon_flags:+ 
> ${daemon_flags}}"

> echo "pkill -f ${daemon}"

?

> rc_pre() {
>     cat  APPDIR=${_BASEDIR}/netbox
>
> packages:${APPDIR}${PYTHONPATH:+:${PYTHONPATH}}
> cd ${_BASEDIR}/netbox
> . ${_BASEDIR}/env/bin/activate
> export 
> PYTHONPATH=${_BASEDIR}/env/lib/python3.10/site-packages:${APPDIR}${PYTHONPATH:+:${PYTHONPATH}}
> exec gunicorn ${daemon_flags}
> EOF
>     chmod u+x /var/run/netbox_start
>     chmod o+x /var/run/netbox_start
> }

this doesn't make a lot of sense, why not either start it from the
rc script itself, or save a separate script to disk, rather than
writing to /var/run?

also if you run commands from the venv bin directory, they set
things up for you so you don't need to source "activate".

> rc_stop() {
>     pkill -f "${_BASEDIR}/env/bin/gunicorn"
> }

if pexp was set correctly then you wouldn't need to override rc_stop.

> doing rc_check
> [2024-07-25 00:52:55 +0200] [61573] [INFO] Starting gunicorn 22.0.0
> ...
> PermissionError: [Errno 13] Permission denied: '/var/run/tmp5jrbni2l'
> doing _rc_rm_runfile
> (failed)
>
> I don't know why it's trying to create /var/run/tmp5jrbni2l

must be something in gunicorn or netbox.

> If I remove daemon_user="_netbox", everything works

in that case, it starts as root, so it can write there (at least until
it drops privs).

> ii) When I try to stop the process, it doesn't work
> # ps ax | grep /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
> 61611 p1  S    0:00.75 
> /var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
> /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox 
> --pid /var/run/netbox.pid --user=www --group=www 
> --config=/var/www/htdocs/appli
...
> # /etc/rc.d/netbox -d stop
> doing _rc_parse_conf
> netbox_flags empty, using default >--name netbox --pid /var/run/netbox.pid 
> --user=www --group=www 
> --config=/var/www/htdocs/applications/netbox-4.0.7/gunicorn.py 
> --log-level=info --log-file=- netbox.wsgi<
> pkill -f /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
> doing _rc_parse_conf /var/run/rc.d/netbox
> doing rc_check

I didn't check carefully but I guess pexp doesn't match this process,
so rc_check doesn't find it running.

You could try

pexp="/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox.*"



-- 
Please keep replies on the mailing list.



Re: M-Audio Fast Track Ultra 8R

2024-07-25 Thread Jan Stary
On Jul 07 18:03:56, h...@stare.cz wrote:
> On Jul 01 15:07:48, a...@caoua.org wrote:
> > On Sun, Jun 30, 2024 at 08:26:06AM +0200, Jan Stary wrote:
> > > This is current/amd64 on a PC (full dmesg below).
> > > I got my hands on an M-Audio Fast Track Ultra 8R,
> > > an USB audio interface; eight tracks, 24/96, nice.
> > > 
> > > It doesn't seem to be supported though:
> > > it attaches as an ugen, but no uaudio.
> > > 
> > > umidi0 at uhub4 port 2 configuration 1 interface 3 "M-Audio Fast Track 
> > > Ultra 8R" rev 2.00/1.51 addr 3
> > > umidi0: (genuine USB-MIDI)
> > > umidi0: out=1, in=1
> > > midi0 at umidi0: 
> > > ugen0 at uhub4 port 2 configuration 1 "M-Audio Fast Track Ultra 8R" rev 
> > > 2.00/1.51 addr 3
> > > 
> > > This happens in any USB slot.
> > > 
> > > What can I do to debug this?
> > > Is anyone using this on OpenBSD?
> > > 
> > > It is an USB-compliant audio device,
> > > macOS and Windows use it just fine.
> > 
> > It seems that the uaudio driver doesn't even try to attach. You could
> > instrument the uaudio_match() kernel function, and try to figure out
> > why it returns UMATCH_NONE for your device.
> 
> For the record, it is _not_ a USB-compliant audio device.
> I had another one plugged into mac by mistake (sorry),
> and on win, it only works with the latest = 2014 drivers.

But then again, it attaches like this on FreeBSD:

ugen0.6:  at usbus0
uaudio0 on uhub2
uaudio0:  on 
usbus0
uaudio0: Play[0]: 96000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. 
(selected)
uaudio0: Play[0]: 88200 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 48000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Play[0]: 44100 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 96000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer. 
(selected)
uaudio0: Record[0]: 88200 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 48000 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Record[0]: 44100 Hz, 8 ch, 24-bit S-LE PCM format, 2x4ms buffer.
uaudio0: Single command MIDI quirk enabled
uaudio0: MIDI sequencer.
pcm3 on uaudio0
uaudio0: No HID volume keys found.

But according to wiki, class 0xef (= 239) is "miscelaneous",
i.e. not audio, which is 0x01, so I still don't believe
it is a class-compliant device ...

Jan



Re: firefox crashes on an M1 macbook

2024-07-25 Thread Jan Stary
On Jul 25 15:14:01, benni+openbsd-m...@stuerz.xyz wrote:
> On 4/12/23 11:11 AM, Jan Stary wrote:
> > This is current/arm64 on an Apple M1 MacBook Air (dmesg below).
> > While everything mostly works, Firefox keeps crashing.
> > 
> > Reproducibly, it always crashes on calendar.google.com;
> > _sometimes_ it crashes when playing a video.
> > On simple sites, it works withotu problems.
> > 
> > How can I debug this?  Is it related to
> > the lack of video acceleration on these machines?
> > 
> > Thanks,
> > 
> > Jan
> > 
> 
> I had an M1 Mac Mini a while ago and ironically apple.com would crash.
> Does that happen to you too?

No. With current/arm64 and an upgraded firefox as of now,
both calendar.google.com and apple.com seem to work fine.

Jan



Re: trying to get openbsd nfs client to work

2024-07-25 Thread void
On Thu, 25 Jul 2024, at 15:09, Stefan Kapfhammer wrote:
> Do you have an /etc/exports file? 
> Here is an example: /etc/examples/exports. 
> -Stefan 

Do you mean on the nfs server?

1. on the freebsd server - it's an empty file because nfs is via the zfs 
property "sharenfs" with the value

maproot=root -alldirs -network 192.168.1.0 -mask 255.255.255.0

2. Or do you mean on the OpenBSD client? /etc/exports is not present.
-- 




trying to get openbsd nfs client to work

2024-07-25 Thread void

Hi,

I'm trying to get openbsd (7.5) nfs client to see a (freebsd14) server nfs
share. The freebsd and debian clients work well, it's only OpenBSD
where I can't mount the share.

After looking at man fstab and man mount_nfs, in fstab I have this line

192.168.1.102:/home/void/docs /home/void/docs nfs rw,nodev,nosuid,soft,intr 0 0

this results in the following at reboot

NFS Portmap: RPC: Port mapper failure - RPC: Timed out
NFS Portmap: RPC: Port mapper failure - RPC: Timed out

(etc)

similarly if I try manually like this 


# mount_nfs 192.168.1.102:/home/void/docs /home/void/docs
# mount_nfs -T 192.168.1.102:/home/void/docs /home/void/docs
# mount_nfs -T -3 192.168.1.102:/home/void/docs /home/void/docs
# mount_nfs -U 192.168.1.102:/home/void/docs /home/void/docs
# mount_nfs -U -3 192.168.1.102:/home/void/docs /home/void/docs

But portmapper on the server can be seen from openbsd client:

$ rpcinfo -p 192.168.1.102
  program vers proto   port
  104   tcp111  portmapper
  103   tcp111  portmapper
  102   tcp111  portmapper
  104   udp111  portmapper
  103   udp111  portmapper
  102   udp111  portmapper
  104 7111  portmapper
  103 7111  portmapper
  102 7111  portmapper
  151   udp927  mountd
  153   udp927  mountd
  151   tcp927  mountd
  153   tcp927  mountd
  132   udp   2049  nfs
  133   udp   2049  nfs
  132   tcp   2049  nfs
  133   tcp   2049  nfs

$

and the nfs server is allowed from the whole (internal) network of which
the openbsd machine is part. The openbsd machine is on 192.168.1.100.

What am I doing wrong?

--



Re: firefox crashes on an M1 macbook

2024-07-25 Thread Benjamin Stürz

On 4/12/23 11:11 AM, Jan Stary wrote:

This is current/arm64 on an Apple M1 MacBook Air (dmesg below).
While everything mostly works, Firefox keeps crashing.

Reproducibly, it always crashes on calendar.google.com;
_sometimes_ it crashes when playing a video.
On simple sites, it works withotu problems.

How can I debug this?  Is it related to
the lack of video acceleration on these machines?

Thanks,

Jan



I had an M1 Mac Mini a while ago and ironically apple.com would crash.
Does that happen to you too?



Fwd: POSIX.1-2024 now online

2024-07-25 Thread Katherine Mcmillan
Dear all,
>
> It seems the Open Group Base Specifications Issue 8 now is available
> online:
>
> https://pubs.opengroup.org/onlinepubs/9799919799

-Katie

From: owner-t...@openbsd.org  on behalf of Jason 
McIntyre 
Sent: Thursday, July 25, 2024 1:47:16 AM
To: t...@openbsd.org 
Subject: Re: POSIX.1-2024 now online

Attention : courriel externe | external email

On Thu, Jul 25, 2024 at 12:56:37AM +, Job Snijders wrote:
> Dear all,
>
> It seems the Open Group Base Specifications Issue 8 now is available
> online:
>
> https://pubs.opengroup.org/onlinepubs/9799919799/
>
> Kind regards,
>
> Job
>

thanks!
jmc



Re: avoid single-user mode boot

2024-07-25 Thread chohag
04-psyche.tot...@icloud.com writes:
> Thanks Stuart for all these thoughts. That's a lot of great ideas.
>
> Let me try to clarify a few things:
>
> - change `do_fsck` to `do_fsck -y`
> -
>   I assume you mean Line 410. That seems like a great idea.
>   Do I understand correctly that the normal behaviour for this `do_fsck` is 
> to run the check, and mark filesystems dirty, and then enter single-user mode?
>   Whereas if I replace it with `do_fsck -y `, the filesystems will not be 
> marked dirty, and it will not enter singe user mode?

More or less.

If the filesystem is already marked dirty (ie. has been mounted
read-write and was not cleanly unmounted) then fsck will check it
and mark it as clean or, if its problems are too much, abort without
making any changes.

Including the -y option makes fsck fix some problems that are common
and often harmless without giving up. Most of the time when plain
fsck fails you will simply run fsck -y yourself anyway.

But it's useful to know if a regular fsck was not enough to repair
the filesystem because it should then be examined manually as files
might have been lost or damaged.

> - starting network and sshd in single user mode
> 
>   In /etc/profile, I guess I can add something like:
>
>if [IS_SINGLE_USER_MODE]; then
>   sh /etc/netstart
> rcctl start sshd
>fi
>
> does that seem reasonable?
>
> (I have to figure out how to check if I am in user mode)

I would create a script to do it by hand. Someone has to press a
key to enter single user mode after all, they might as well also
run an activation script. This means you won't have to put any kind
of dangerous magic in the shell profile.

I have a feeling sshd may require more system state to have been
set up though, and pf in particular will not have been configured.

You will have to read /etc/rc and figure out which parts you need
then test it thoroughly. Consider what happens when /etc/netstart
runs while the router is still booting, for example, or when the
enter-presser has tripped over the ethernet cable.

Matthew



Re: Startup script for Netbox: can't start with a user and can't stop

2024-07-25 Thread Stuart Henderson
here you tell it to run it as www:

> daemon_flags="--name netbox --pid /var/run/netbox.pid --user=www --group=www 
> --config=${_BASEDIR}/gunicorn.py"
> daemon_flags="${daemon_flags} --log-level=info --log-file=- netbox.wsgi"

but you start as _netbox:

> daemon_user="_netbox"

that won't work, it needs root to change uid (to www).

> pexp="${_BASEDIR}/env/bin/python3.10 ${daemon}${daemon_flags:+ 
> ${daemon_flags}}"

> echo "pkill -f ${daemon}"

?

> rc_pre() {
>     cat  APPDIR=${_BASEDIR}/netbox
>
> packages:${APPDIR}${PYTHONPATH:+:${PYTHONPATH}}
> cd ${_BASEDIR}/netbox
> . ${_BASEDIR}/env/bin/activate
> export 
> PYTHONPATH=${_BASEDIR}/env/lib/python3.10/site-packages:${APPDIR}${PYTHONPATH:+:${PYTHONPATH}}
> exec gunicorn ${daemon_flags}
> EOF
>     chmod u+x /var/run/netbox_start
>     chmod o+x /var/run/netbox_start
> }

this doesn't make a lot of sense, why not either start it from the
rc script itself, or save a separate script to disk, rather than
writing to /var/run?

also if you run commands from the venv bin directory, they set
things up for you so you don't need to source "activate".

> rc_stop() {
>     pkill -f "${_BASEDIR}/env/bin/gunicorn"
> }

if pexp was set correctly then you wouldn't need to override rc_stop.

> doing rc_check
> [2024-07-25 00:52:55 +0200] [61573] [INFO] Starting gunicorn 22.0.0
> ...
> PermissionError: [Errno 13] Permission denied: '/var/run/tmp5jrbni2l'
> doing _rc_rm_runfile
> (failed)
>
> I don't know why it's trying to create /var/run/tmp5jrbni2l

must be something in gunicorn or netbox.

> If I remove daemon_user="_netbox", everything works

in that case, it starts as root, so it can write there (at least until
it drops privs).

> ii) When I try to stop the process, it doesn't work
> # ps ax | grep /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
> 61611 p1  S    0:00.75 
> /var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
> /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox 
> --pid /var/run/netbox.pid --user=www --group=www 
> --config=/var/www/htdocs/appli
...
> # /etc/rc.d/netbox -d stop
> doing _rc_parse_conf
> netbox_flags empty, using default >--name netbox --pid /var/run/netbox.pid 
> --user=www --group=www 
> --config=/var/www/htdocs/applications/netbox-4.0.7/gunicorn.py 
> --log-level=info --log-file=- netbox.wsgi<
> pkill -f /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
> doing _rc_parse_conf /var/run/rc.d/netbox
> doing rc_check

I didn't check carefully but I guess pexp doesn't match this process,
so rc_check doesn't find it running.

You could try

pexp="/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox.*"



-- 
Please keep replies on the mailing list.



Re: iked authentication logging ?

2024-07-25 Thread Michael Dinon
Yes
Kind regards,
Mike


On Thu, Jul 25, 2024 at 3:13 AM Crystal Kolipe 
wrote:

> On Wed, Jul 24, 2024 at 06:20:26PM -0400, J Doe wrote:
> > My hypothesis is that iked does not name an identity because this is
> > certificate based authentication vs. MSCHAPv2 for EAP authentication
> > which would provide an identity (ie: a username).
> >
> > Is that correct ?
>
> No.
>
> The identity that would be printed is the srcid of the peer.  By default
> this
> would be it's hostname, and should be present in the SAN field of any
> certificate used for iked.
>
> You can see that error message displayed both with and without a named ID
> when
> using certificate authentication, depending on the cause of the error.
>
> It will also display without an ID even if one if known, if the printing
> code
> in iked fails some internal consistency checks, (which is unlikely but
> possible).
>
>


Re: iked authentication logging ?

2024-07-25 Thread Crystal Kolipe
On Wed, Jul 24, 2024 at 06:20:26PM -0400, J Doe wrote:
> My hypothesis is that iked does not name an identity because this is
> certificate based authentication vs. MSCHAPv2 for EAP authentication
> which would provide an identity (ie: a username).
> 
> Is that correct ?

No.

The identity that would be printed is the srcid of the peer.  By default this
would be it's hostname, and should be present in the SAN field of any
certificate used for iked.

You can see that error message displayed both with and without a named ID when
using certificate authentication, depending on the cause of the error.

It will also display without an ID even if one if known, if the printing code
in iked fails some internal consistency checks, (which is unlikely but
possible).



iked authentication logging ?

2024-07-24 Thread J Doe

Hi list,

I sent the following on 2024-07-05 and didn't receive any responses, so
I thought I would post it again - please see below and thanks in advance!

--

Hi list,

It occurs to me that I did not include the configuration I have for iked
(iked.conf), which would probably be helpful ... I also didn't mention
the version of OpenBSD I was running as my server, which is 7.5.

I run a "road-warrior" configuration similar to what is displayed in the
OpenBSD FAQ[0].  Here is my configuration:


ikev2 "VPN" passive ipcomp tunnel esp \
from any to dynamic \
local egress peer any \
srcid server.home.arpa \
dstid client.home.arpa \
rsa \
config address 10.0.5.0/24 \
tag "ROADW"


As mentioned in my previous e-mail, sometimes connections will be made
to my VPN server that display the following:

Jul  5 10:55:47 server iked[15172]: spi=0x7680ddead2051f3c:
ikev2_send_auth_failed: authentication failed for

I am wondering if this is an indication of someone attempting to
authenticate using public key/certificate authentication and being
_rejected_ by iked ?

My hypothesis is that iked does not name an identity because this is
certificate based authentication vs. MSCHAPv2 for EAP authentication
which would provide an identity (ie: a username).

Is that correct ?

Thanks,

- J





Startup script for Netbox: can't start with a user and can't stop

2024-07-24 Thread Mik J
Hello,

I'm trying to write a startup script for an application called netbox (it's an 
opensource IPAM).

I created a user and a group
# grep netbox /etc/group
_netbox:*:9994:
# grep netbox /etc/passwd
_netbox:*:9994:9994::/home/netbox:/sbin/nologin

And I have this script
#!/bin/ksh

_BASEDIR=/var/www/htdocs/applications/netbox-4.0.7

daemon="${_BASEDIR}/env/bin/gunicorn"
daemon_flags="--name netbox --pid /var/run/netbox.pid --user=www --group=www 
--config=${_BASEDIR}/gunicorn.py"
daemon_flags="${daemon_flags} --log-level=info --log-file=- netbox.wsgi"
daemon_user="_netbox"

. /etc/rc.d/rc.subr

pexp="${_BASEDIR}/env/bin/python3.10 ${daemon}${daemon_flags:+ ${daemon_flags}}"
rc_reload=YES
rc_bg=YES

echo "pkill -f ${daemon}"

APPDIR=${_BASEDIR}/netbox

rc_pre() {
    cat --name netbox --pid /var/run/netbox.pid 
--user=www --group=www 
--config=/var/www/htdocs/applications/netbox-4.0.7/gunicorn.py --log-level=info 
--log-file=- netbox.wsgi<
pkill -f /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
doing rc_check
netbox
doing rc_pre
doing rc_start
doing _rc_wait_for_start
doing rc_check
doing rc_check
[2024-07-25 00:52:55 +0200] [61573] [INFO] Starting gunicorn 22.0.0
...
PermissionError: [Errno 13] Permission denied: '/var/run/tmp5jrbni2l'
doing _rc_rm_runfile
(failed)

I don't know why it's trying to create /var/run/tmp5jrbni2l

If I remove daemon_user="_netbox", everything works

Q1: What can I do to avoid this permission problem ? Because I'm not supposed 
to give write access to /var/run


ii) When I try to stop the process, it doesn't work
# ps ax | grep /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
61611 p1  S    0:00.75 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
79274 p1  S    0:04.63 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
50615 p1  S    0:04.12 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
 9700 p1  S    0:04.08 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
88687 p1  S    0:04.14 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
72441 p1  S    0:04.05 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli

# /etc/rc.d/netbox -d stop
doing _rc_parse_conf
netbox_flags empty, using default >--name netbox --pid /var/run/netbox.pid 
--user=www --group=www 
--config=/var/www/htdocs/applications/netbox-4.0.7/gunicorn.py --log-level=info 
--log-file=- netbox.wsgi<
pkill -f /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
doing _rc_parse_conf /var/run/rc.d/netbox
doing rc_check

# ps ax | grep /var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn
61611 p1  S    0:00.78 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
79274 p1  S    0:04.66 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
50615 p1  S    0:04.15 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/python 
/var/www/htdocs/applications/netbox-4.0.7/env/bin/gunicorn --name netbox --pid 
/var/run/netbox.pid --user=www --group=www --config=/var/www/htdocs/appli
 9700 p1  S    0:04.11 

Re: avoid single-user mode boot

2024-07-24 Thread 04-psyche . totter
Thanks Stuart for all these thoughts. That's a lot of great ideas.

Let me try to clarify a few things:

- change `do_fsck` to `do_fsck -y`
-
  I assume you mean Line 410. That seems like a great idea.
  Do I understand correctly that the normal behaviour for this `do_fsck` is to 
run the check, and mark filesystems dirty, and then enter single-user mode?
  Whereas if I replace it with `do_fsck -y `, the filesystems will not be 
marked dirty, and it will not enter singe user mode?


- starting network and sshd in single user mode

In /etc/profile, I guess I can add something like:

   if [IS_SINGLE_USER_MODE]; then
sh /etc/netstart
rcctl start sshd
   fi

does that seem reasonable?

(I have to figure out how to check if I am in user mode)


- noatime, memory buffers, mfs
--
All great ideas, I will implement that.


@crystal, thank you, unfortunately, even an SBC on the router is not a viable 
option for this specific use case.


Re: avoid single-user mode boot

2024-07-24 Thread Anon Loli
On Wed, Jul 24, 2024 at 07:11:40AM -0300, Crystal Kolipe wrote:
> On Wed, Jul 24, 2024 at 09:04:17AM +0100, 04-psyche.tot...@icloud.com wrote:
> > Alternatively, is there a way to have ssh access in single user mode?
> 
> The normal way to handle this and other boot-related problems is with a serial
> connection from another machine that is still accessible via the network.
> 
> Depending on your budget, what this system is being used for, and the
> connectivity that is available at the remote location, there are various ways
> of making that happen.
> 

Yeah I got the same reply when asking a bunch of people how someone could
update a machine that's FDE, or even sysupgrade... the answer is 2 machines via
a serial connection heh..
I didn't try this yet, but sounds like hella fun!



Re: trying to boot on HP EliteBook 820 G1

2024-07-24 Thread Jan Stary
On Jul 24 09:28:16, n...@holland-consulting.net wrote:
> On 7/24/24 08:24, Jan Stary wrote:
> > On Jul 24 07:46:09, kolip...@exoticsilicon.com wrote:
> > > On Wed, Jul 24, 2024 at 12:19:34PM +0200, Jan Stary wrote:
> > > > The problem persists with every USB stick,
> > > > with each of miniroot75.img, install75.img
> > > > and a full usb stick install, on every USB port.
> > > 
> > > Out of curiosity, does the machine successfully boot OpenBSD/i386 from a 
> > > USB
> > > stick?
> > 
> > No. Booting install75,img gets to boot>, but stops at the
> > 
> > booting hd0a:/7.5/i386/bsd.rd: |
> > 
> > The rotating slash stops rotating and the machine freezes
> > This is what _sometimes_ also happens with amd64,
> > but more often, the amd64 reboots at that point.
> > 
> 
> Interesting twist -- boots from installed SSD but not from install image
> on USB.  So ... while you are thinking there's a boot issue with USB, I'm
> more inclined to believe it is the install kernel vs. the full kernel.

The USB boot failure happens with both the install kernel
(as in install75.img or miniroot75.img) and the full kernel
of a full installation on an USB stick.

> So ... two tests...one easy, one slow:
> 1) Can the installed system boot the install kernel from SSD?
> boot> boot bsd.rd

Yes; dmesg below in case the difference is of any interest.

> 2) IF on another computer you build an installed system on a USB stick,
> so rather than booting the installer, it boots an installed OpenBSD, will
> that work on this machine?

No; that is my original problem: I have a USB stick with a full amd64
install that I regularly boot and use on various machines, but it
does not boot on this machine.

> I'm betting a very tiny amount of money #2 works, but #1 fails.

Exactly the opposite, so I win a very tiny amount.

So my current speculation is that OpenBSD has
a problem booting _from_USB_ on this laptop.

Jan


OpenBSD 7.5-current (RAMDISK_CD) #204: Mon Jul 22 21:45:30 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 7962357760 (7593MB)
avail mem = 7716790272 (7359MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9de3f000 (32 entries)
bios0: vendor Hewlett-Packard version "L71 Ver. 01.49" date 02/24/2020
bios0: Hewlett-Packard HP EliteBook 820 G1
acpi0 at bios0: ACPI 5.0
acpi0: tables DSDT FACP HPET APIC MCFG TCPA SSDT SSDT SLIC FPDT BGRT SSDT SSDT 
SSDT SSDT ASF!
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz, 1995.40 MHz, 06-45-01, patch 
0026
cpu0: cpuid 1 
edx=bfebfbff
 
ecx=77fafbff
cpu0: cpuid 6 eax=77 ecx=9
cpu0: cpuid 7.0 ebx=27ab 
edx=9c000600
cpu0: cpuid a vers=3, gp=4, gpwidth=48, ff=3, ffwidth=48
cpu0: cpuid d.1 eax=1
cpu0: cpuid 8001 edx=2c100800 ecx=21
cpu0: cpuid 8007 edx=100
cpu0: MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 
8-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 40 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP04)
acpiprt4 at acpi0: bus 3 (RP06)
acpiprt5 at acpi0: bus -1 (RP07)
acpiprt6 at acpi0: bus -1 (RP08)
acpiec0 at acpi0
"HPQ6001" at acpi0 not configured
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
acpicmos0 at acpi0
"PNP0A06" at acpi0 not configured
"SYN3008" at acpi0 not configured
"HPQ6007" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"IFX0102" at acpi0 not configured
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpitz at acpi0 not configured
acpitz at acpi0 not configured
acpitz at acpi0 not configured
acpitz at acpi0 not configured
acpitz at acpi0 not configured
acpitz at acpi0 not configured
cpu0: using VERW MDS workaround
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x0b
vga1 at pci0 dev 2 function 0 "Intel HD Graphics" rev 0x0b
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
"Intel Core 4G HD Audio" rev 0x0b at pci0 dev 3 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 
addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
"Intel 8 Series KT" rev 0x04 at pci0 dev 22 function 3 not 

Re: trying to boot on HP EliteBook 820 G1

2024-07-24 Thread Nick Holland

On 7/24/24 08:24, Jan Stary wrote:

On Jul 24 07:46:09, kolip...@exoticsilicon.com wrote:

On Wed, Jul 24, 2024 at 12:19:34PM +0200, Jan Stary wrote:
> The problem persists with every USB stick,
> with each of miniroot75.img, install75.img
> and a full usb stick install, on every USB port.

Out of curiosity, does the machine successfully boot OpenBSD/i386 from a USB
stick?


No. Booting install75,img gets to boot>, but stops at the

booting hd0a:/7.5/i386/bsd.rd: |

The rotating slash stops rotating and the machine freezes
This is what _sometimes_ also happens with amd64,
but more often, the amd64 reboots at that point.



Interesting twist -- boots from installed SSD but not from install image
on USB.  So ... while you are thinking there's a boot issue with USB, I'm
more inclined to believe it is the install kernel vs. the full kernel.

So ... two tests...one easy, one slow:
1) Can the installed system boot the install kernel from SSD?
boot> boot bsd.rd

2) IF on another computer you build an installed system on a USB stick,
so rather than booting the installer, it boots an installed OpenBSD, will
that work on this machine?

I'm betting a very tiny amount of money #2 works, but #1 fails.

I have a machine where bsd.rd fails because there's no monitor attached
to the HDMI port.  Attach a monitor or HDMI "fake monitor" plug, and the
thing boots bsd.rd fine.  But...it's a thin client machine, no monitor
at all..I'm having trouble believing your laptop is having this same
issue.  (this particular machine is noted for this problem on Linux, too,
except Linux won't boot headless at all; the full OpenBSD kernel boots
just fine headless, but you can't do a headless upgrade.)

Nick.



Re: trying to boot on HP EliteBook 820 G1

2024-07-24 Thread Jan Stary
On Jul 24 07:46:09, kolip...@exoticsilicon.com wrote:
> On Wed, Jul 24, 2024 at 12:19:34PM +0200, Jan Stary wrote:
> > The problem persists with every USB stick,
> > with each of miniroot75.img, install75.img
> > and a full usb stick install, on every USB port.
> 
> Out of curiosity, does the machine successfully boot OpenBSD/i386 from a USB
> stick?

No. Booting install75,img gets to boot>, but stops at the

booting hd0a:/7.5/i386/bsd.rd: |

The rotating slash stops rotating and the machine freezes
This is what _sometimes_ also happens with amd64,
but more often, the amd64 reboots at that point.



Re: avoid single-user mode boot

2024-07-24 Thread 04-psyche . totter
Thanks Crystal, unfortunately for this specific case, adding another machine to 
the same network is not an option.

> On 24 Jul 2024, at 11:11, Crystal Kolipe  wrote:
> 
> On Wed, Jul 24, 2024 at 09:04:17AM +0100, 04-psyche.tot...@icloud.com wrote:
>> Alternatively, is there a way to have ssh access in single user mode?
> 
> The normal way to handle this and other boot-related problems is with a serial
> connection from another machine that is still accessible via the network.
> 
> Depending on your budget, what this system is being used for, and the
> connectivity that is available at the remote location, there are various ways
> of making that happen.



Re: avoid single-user mode boot

2024-07-24 Thread Crystal Kolipe
On Wed, Jul 24, 2024 at 10:53:28AM -, Stuart Henderson wrote:
> On 2024-07-24, Crystal Kolipe  wrote:
> > The normal way to handle this and other boot-related problems is with a 
> > serial
> > connection from another machine that is still accessible via the network.
> >
> > Depending on your budget, what this system is being used for, and the
> > connectivity that is available at the remote location, there are various 
> > ways
> > of making that happen.
> 
> Exactly. (Note that some consumer/small business-ish routers can handle
> running as a serial console server over a USB/RS232 interface - e.g.
> picocom and USB serial port drivers can often be installed on openwrt -
> routeros has /system serial-terminal or /system special-login).

Failing that, an arm SBC running OpenBSD and connected to a spare port on the
router is also an option.



Re: avoid single-user mode boot

2024-07-24 Thread Stuart Henderson
On 2024-07-24, 04-psyche.tot...@icloud.com <04-psyche.tot...@icloud.com> wrote:
> Hi all,
>
> I have a machine that will be placed in a remote location, and have no
> physical access to. The connection will be made through ssh only.
>
> I'd like to make it as resilient to failure as possible.
>
> A big concern to me is for a disk failure to happen (say a power
> outage), and the machine to be rebooted in single user mode. At that
> point, the machine has no network access, and so I lose contact to it.

If there's an actual disk failure, you're going to have to visit.
I guess you mean "dirty filesystem that requires changes before it
can be marked clean".

> Is there any way to disable going to single user mode when fsck is not
> happy?

No.

You can reduce the chance of fsck failing by:

- reduce writes to mounted filesystems: noatime, use memory buffers
or network for syslog, use mfs for things like /tmp /var/run
- mounting filesystems read-only where possible

Sometimes people modify /etc/rc to use "do_fsck -y" instead of just
"do_fsck" on systems like this. (imho: if the only thing you'd do when
running fsck manually is hit 'F' or keep hitting 'y' then this change
is no worse, though some people don't like it).

> Is it reasonable to change the /etc/fstab to modify the fsck flag from
> 1 and 2 to 0, to bypass the fsck checks ?

If a filesystem is marked "dirty" you can't mount it read-write.

> Alternatively, is there a way to have ssh access in single user mode?

Sure, start network and run sshd. You may be able to do this from
/etc/profile. You just need someone/something to press enter to the
question about running the shell...


On 2024-07-24, Crystal Kolipe  wrote:
> The normal way to handle this and other boot-related problems is with a serial
> connection from another machine that is still accessible via the network.
>
> Depending on your budget, what this system is being used for, and the
> connectivity that is available at the remote location, there are various ways
> of making that happen.

Exactly. (Note that some consumer/small business-ish routers can handle
running as a serial console server over a USB/RS232 interface - e.g.
picocom and USB serial port drivers can often be installed on openwrt -
routeros has /system serial-terminal or /system special-login).




Re: trying to boot on HP EliteBook 820 G1

2024-07-24 Thread Crystal Kolipe
On Wed, Jul 24, 2024 at 12:19:34PM +0200, Jan Stary wrote:
> The problem persists with every USB stick,
> with each of miniroot75.img, install75.img
> and a full usb stick install, on every USB port.

Out of curiosity, does the machine successfully boot OpenBSD/i386 from a USB
stick?



Re: trying to boot on HP EliteBook 820 G1

2024-07-24 Thread Jan Stary
On Jul 22 15:22:21, h...@stare.cz wrote:
> I am trying to boot current/amd64 on this HP laptop from  USB stick.
> 
> Disabling the "secure boot" in BIOS, so that something else
> than the preinstalled windows is even allowed to boot,
> and choosing USB Flash Disk as the boot source,
> I see the usual
> 
>   Using drive 0, partition 3
> 
> etc, up to
> 
>   boot>
> 
> There, the rotating slash either stops and nothing else happens,
> or the machine reboots after the first number in
> 
>   booting hd0a:/bsd 12345678 + [reboot]
> 
> This happens with both bsd and bsd.rd.
> 
> The USB stick holds a full current/amd64 installation
> which I regularly boot on various amd64 machines,
> so I don;t suppose that is the problem.
> 
> Any clues please?

Ha, progress: after replacing the SSD with another one,
from another amd64 laptop, it runs just fine (it has
recompiled itself for example). So it is perhaps the
_booting_from_usb_ which is the problem; booting from
a preinstalled SSD works fine.

Is there something I can do to help debug this?

The problem persists with every USB stick,
with each of miniroot75.img, install75.img
and a full usb stick install, on every USB port.

Jan


OpenBSD 7.5-current (GENERIC.MP) #207: Mon Jul 22 21:40:56 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3667390464 (3497MB)
avail mem = 3533099008 (3369MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9de3f000 (31 entries)
bios0: vendor Hewlett-Packard version "L71 Ver. 01.10" date 03/25/2014
bios0: Hewlett-Packard HP EliteBook 820 G1
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG TCPA SSDT SSDT SLIC FPDT BGRT SSDT SSDT 
SSDT SSDT ASF!
acpi0: wakeup devices LANC(S5) EHC1(S0) XHC_(S0) PCIB(S5) NIC_(S5) RP04(S5) 
WNIC(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.86 MHz, 06-45-01, patch 
0026
cpu0: cpuid 1 
edx=bfebfbff
 
ecx=77fafbff
cpu0: cpuid 6 eax=77 ecx=9
cpu0: cpuid 7.0 ebx=27ab 
edx=9c000600
cpu0: cpuid a vers=3, gp=4, gpwidth=48, ff=3, ffwidth=48
cpu0: cpuid d.1 eax=1
cpu0: cpuid 8001 edx=2c100800 ecx=21
cpu0: cpuid 8007 edx=100
cpu0: MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 
8-way L2 cache, 3MB 64b/line 12-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.87 MHz, 06-45-01, patch 
0026
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.87 MHz, 06-45-01, patch 
0026
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.89 MHz, 06-45-01, patch 
0026
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP04)
acpiprt4 at acpi0: bus 3 (RP06)
acpiprt5 at acpi0: bus -1 (RP07)
acpiprt6 at acpi0: bus -1 (RP08)
acpiec0 at acpi0
"HPQ6001" at acpi0 not configured
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
acpicmos0 at acpi0
"PNP0A06" at acpi0 not configured
"SYN3008" at acpi0 not configured
"HPQ6007" at acpi0 not configured
tpm0 at acpi0 GTPM 1.2 (TIS) addr 0xfed4/0x5000, Infineon SLB9635 1.2 rev 
0x10
acpibat0 at acpi0: BAT0 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
"PNP0C14" at acpi0 not configured
acpicpu0 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@506 mwait.1@0x60), C2(200@148 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: APPR, resource for HDEF
acpipwrres1 at acpi0: COMP, resource for COM1
acpipwrres2 at acpi0: LPP_, resource for LPT0
acpipwrres3 at acpi0: PXP6, resource for RP06
acpitz0 at acpi0: critical temperature is 128 degC
acpitz1 at acpi0: critical temperature is 128 degC
acpitz2 at acpi0: critical temperature is 128 degC
acpitz3 at acpi0: critical temperature is 128 degC
acpitz4 at acpi0: critical temperature is 128 degC
acpitz5 at acpi0: critical temperature is 128 degC
acpivideo0 at acpi0: GFX0
acpivout0 at 

Re: avoid single-user mode boot

2024-07-24 Thread Crystal Kolipe
On Wed, Jul 24, 2024 at 09:04:17AM +0100, 04-psyche.tot...@icloud.com wrote:
> Alternatively, is there a way to have ssh access in single user mode?

The normal way to handle this and other boot-related problems is with a serial
connection from another machine that is still accessible via the network.

Depending on your budget, what this system is being used for, and the
connectivity that is available at the remote location, there are various ways
of making that happen.



avoid single-user mode boot

2024-07-24 Thread 04-psyche . totter
Hi all,

I have a machine that will be placed in a remote location, and have no physical 
access to. The connection will be made through ssh only.

I'd like to make it as resilient to failure as possible.

A big concern to me is for a disk failure to happen (say a power outage), and 
the machine to be rebooted in single user mode. At that point, the machine has 
no network access, and so I lose contact to it.

Is there any way to disable going to single user mode when fsck is not happy?

Is it reasonable to change the /etc/fstab to modify the fsck flag from 1 and 2 
to 0, to bypass the fsck checks ?

Alternatively, is there a way to have ssh access in single user mode?

Thanks!
Jake


Re: trying to boot on HP EliteBook 820 G1

2024-07-23 Thread Eike Lantzsch ZP5CGE / KY4PZ
On Tuesday, 23 July 2024 16:27:03 -04 Nick Holland wrote:
> On 7/22/24 09:22, Jan Stary wrote:
> > I am trying to boot current/amd64 on this HP laptop from  USB stick.
> >
> > Disabling the "secure boot" in BIOS, so that something else
> > than the preinstalled windows is even allowed to boot,
> > and choosing USB Flash Disk as the boot source,
> > I see the usual
> >
> > Using drive 0, partition 3
> >
> > etc, up to
> >
> > boot>
> >
> > There, the rotating slash either stops and nothing else happens,
> > or the machine reboots after the first number in
> >
> > booting hd0a:/bsd 12345678 + [reboot]
> >
> > This happens with both bsd and bsd.rd.
> >
> > The USB stick holds a full current/amd64 installation
> > which I regularly boot on various amd64 machines,
> > so I don;t suppose that is the problem.
> >
> > Any clues please?
> >
> > Jan
>
> Have you tried UEFI and "Legacy" modes?
> I've seen some machines that like one over the other.
> But yes, HPs are weird.  Some work great, others are horribly
> non-standard, "Works with windows, ship it!".
>
> Nick.

Hi Jan and Nick,

I'm sorry to say the following because it is not helpful to you Jan.
[rant]
HP notebooks were very weird when they still were COMPAQS.
Now any HP is weird. HP h/w comes with shackles for the customer.
They even don't take their own products if those are not officially HP-
listed as viable additions / upgrades for the exact model. No, there are
no error pop-ups that say e.g. - "we are sorry but this nnn device does
not work for this model" No, it is always just weird behaviour,
unpredictable and unexplainable behaviour.
That is only hardware. HP even managed to brick some of their notebook
models with s/w updates of MS-Windows.
When it comes to other OS than MS it is even worse.
The problem has always been the BIOS / FW since COMPAQ days.
I suspect that is on purpose - for over 30 years.
[\rant]

All the best and I hope that you eventually find a solution.

--
Eike Lantzsch KY4PZ / ZP5CGE





Re: trying to boot on HP EliteBook 820 G1

2024-07-23 Thread Nick Holland

On 7/22/24 09:22, Jan Stary wrote:

I am trying to boot current/amd64 on this HP laptop from  USB stick.

Disabling the "secure boot" in BIOS, so that something else
than the preinstalled windows is even allowed to boot,
and choosing USB Flash Disk as the boot source,
I see the usual

Using drive 0, partition 3

etc, up to

boot>

There, the rotating slash either stops and nothing else happens,
or the machine reboots after the first number in

booting hd0a:/bsd 12345678 + [reboot]

This happens with both bsd and bsd.rd.

The USB stick holds a full current/amd64 installation
which I regularly boot on various amd64 machines,
so I don;t suppose that is the problem.

Any clues please?

Jan




Have you tried UEFI and "Legacy" modes?
I've seen some machines that like one over the other.
But yes, HPs are weird.  Some work great, others are horribly
non-standard, "Works with windows, ship it!".

Nick.



Re: trying to boot on HP EliteBook 820 G1

2024-07-23 Thread Jan Stary
> > > - "machine mem" output might be useful to someone looking at this

> Region 0: type 1 at 0x0 for 631KB
> Region 1: type 2 at 0x9dc00 for 9KB
> Region 2: type 2 at 0xe for 128KB
> Region 3: type 1 at 0x10 for 3058172KB
> Region 4: type 2 at 0xbab7f000 for 19456KB
> Region 5: type 4 at 0xbbe7f000 for 1024KB
> Region 6: type 3 at 0xbbf7f000 for 512KB
> Region 7: type 1 at 0xbbfff000 for 4KB
> Region 8: type 2 at 0xbc00 for 16384KB
> Region 9: type 2 at 0xbd00 for 34816KB
> Region 10: type 2 at 0xe000 for 262144KB
> Region 11: type 2 at 0xfec0 for 4KB
> Region 12: type 2 at 0xfed1 for 16KB
> Region 13: type 2 at 0xfed18000 for 4KB
> Region 14: type 2 at 0xfed19000 for 4KB
> Region 15: type 2 at 0xfed1c000 for 16KB
> Region 16: type 2 at 0xfee0 for 4KB
> Region 17: type 2 at 0xff80 for 8192KB
> Region 18: type 1 at 0x1 for 1030144KB
> Low ram: 631KB  High ram: 3058172KB
> Total free memory: 4088951KB

I guess is tells the same s above, but for completenes,
here is the memory mapping as reported by Debian.

[0.00] Linux version 6.9.9-amd64 (debian-ker...@lists.debian.org) 
(x86_64-linux-gnu-gcc-13 (Debian 13.3.0-3) 13.3.0, GNU ld (GNU Binutils for 
Debian) 2.42.50.20240710) #1 SMP PREEMPT_DYNAMIC Debian 6.9.9-1 (2024-07-13)
[0.00] Command line: BOOT_IMAGE=/boot/vmlinuz-6.9.9-amd64 
root=UUID=c6f79696-79f9-4557-8ae2-1f927694a8f7 ro quiet
[0.00] BIOS-provided physical RAM map:
[0.00] BIOS-e820: [mem 0x-0x0009dbff] usable
[0.00] BIOS-e820: [mem 0x0009dc00-0x0009] reserved
[0.00] BIOS-e820: [mem 0x000e-0x000f] reserved
[0.00] BIOS-e820: [mem 0x0010-0xbab7efff] usable
[0.00] BIOS-e820: [mem 0xbab7f000-0xbbe7efff] reserved
[0.00] BIOS-e820: [mem 0xbbe7f000-0xbbf7efff] ACPI NVS
[0.00] BIOS-e820: [mem 0xbbf7f000-0xbbffefff] ACPI data
[0.00] BIOS-e820: [mem 0xbbfff000-0xbbff] usable
[0.00] BIOS-e820: [mem 0xbc00-0xbf1f] reserved
[0.00] BIOS-e820: [mem 0xe000-0xefff] reserved
[0.00] BIOS-e820: [mem 0xfec0-0xfec00fff] reserved
[0.00] BIOS-e820: [mem 0xfed1-0xfed13fff] reserved
[0.00] BIOS-e820: [mem 0xfed18000-0xfed19fff] reserved
[0.00] BIOS-e820: [mem 0xfed1c000-0xfed1] reserved
[0.00] BIOS-e820: [mem 0xfee0-0xfee00fff] reserved
[0.00] BIOS-e820: [mem 0xff80-0x] reserved
[0.00] BIOS-e820: [mem 0x0001-0x00023edf] usable
[0.00] NX (Execute Disable) protection: active
[0.00] APIC: Static calls initialized
[0.00] SMBIOS 2.7 present.
[0.00] DMI: Hewlett-Packard HP EliteBook 820 G1/1991, BIOS L71 Ver. 
01.10 03/25/2014
[0.00] tsc: Fast TSC calibration using PIT
[0.00] tsc: Detected 2494.316 MHz processor
[0.001229] e820: update [mem 0x-0x0fff] usable ==> reserved
[0.001234] e820: remove [mem 0x000a-0x000f] usable
[0.001246] last_pfn = 0x23ee00 max_arch_pfn = 0x4
[0.001254] MTRR map: 8 entries (3 fixed + 5 variable; max 23), built from 
10 variable MTRRs
[0.001257] x86/PAT: Configuration [0-7]: WB  WC  UC- UC  WB  WP  UC- WT  
[0.001636] last_pfn = 0xbc000 max_arch_pfn = 0x4
[0.013671] Using GB pages for direct mapping
[0.014036] RAMDISK: [mem 0x3070f000-0x3437efff]
[0.014042] ACPI: Early table checksum verification disabled
[0.014046] ACPI: RSDP 0x000F2FE0 24 (v02 HPQOEM)
[0.014053] ACPI: XSDT 0xBBFFE120 A4 (v01 HPQOEM SLIC-MPC 
0001  0113)
[0.014061] ACPI: FACP 0xBBFFC000 00010C (v05 HPQOEM 1991 
0001 HP   0001)
[0.014069] ACPI: DSDT 0xBBFD1000 025314 (v02 HPQOEM 1991 
0001 INTL 20110112)
[0.014074] ACPI: FACS 0xBBDE4000 40
[0.014078] ACPI: FACS 0xBBDE4000 40
[0.014082] ACPI: HPET 0xBBFFB000 38 (v01 HPQOEM 1991 
0001 HP   0001)
[0.014087] ACPI: APIC 0xBBFFA000 BC (v01 HPQOEM 1991 
0001 HP   0001)
[0.014092] ACPI: MCFG 0xBBFF9000 3C (v01 HPQOEM 1991 
0001 HP   0001)
[0.014097] ACPI: TCPA 0xBBFF7000 32 (v02 HPQOEM 1991 
 HP   0001)
[0.014101] ACPI: SSDT 0xBBFCE000 000313 (v01 HPQOEM SataAhci 
1000 INTL 20110112)
[0.014106] ACPI: SSDT 0xBBFCD000 00048A (v01 HPQOEM PtidDevc 
1000 INTL 20110112)
[0.014111] ACPI: SLIC 0xBBFCC000 000176 (v01 HPQOEM SLIC-MPC 
0001 HP   0001)
[0.014116] ACPI: FPDT 0xBBFCA000 44 (v01 HPQOEM 1991 
0001 HP   0001)
[0.014121] 

Re: pf.conf syntax highlighting in your favourite editor

2024-07-23 Thread Dan


I started my RADXIDE peeking code (MIT) from

https://github.com/aplsimple/alited/

My RADXIDE has been lauched in few days and it has not syntax highlighing.
Alited is written completely in a simple Tcl/tk and it has syntax highlighting 
functionalities.

Alex is also, often, available and friendly to talk with.

Please refer to him if you want go for Tcl/tk.

Best wishes,

-Dan

Jul 23, 2024 16:50:08 Tom Smyth :

> I was just wondering if any had done highlighting for vim, emacs
> etc...  ?  or at least something I can get started with ...



Re: trying to boot on HP EliteBook 820 G1

2024-07-23 Thread Jan Stary
On Jul 22 15:22:21, h...@stare.cz wrote:
> I am trying to boot current/amd64 on this HP laptop from  USB stick.
> 
> Disabling the "secure boot" in BIOS, so that something else
> than the preinstalled windows is even allowed to boot,
> and choosing USB Flash Disk as the boot source,
> I see the usual
> 
>   Using drive 0, partition 3
> 
> etc, up to
> 
>   boot>
> 
> There, the rotating slash either stops and nothing else happens,
> or the machine reboots after the first number in
> 
>   booting hd0a:/bsd 12345678 + [reboot]
> 
> This happens with both bsd and bsd.rd.
> 
> The USB stick holds a full current/amd64 installation
> which I regularly boot on various amd64 machines,
> so I don;t suppose that is the problem.

FWIW, here is a dmesg of FreeBSD on the machine.


---<>---
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
FreeBSD clang version 18.1.5 (https://github.com/llvm/llvm-project.git 
llvmorg-18.1.5-0-g617a15a9eac9)
VT(vga): resolution 640x480
CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (2494.38-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x40651  Family=0x6  Model=0x45  Stepping=1
  
Features=0xbfebfbff
  
Features2=0x7ffafbff
  AMD Features=0x2c100800
  AMD Features2=0x21
  Structured Extended 
Features=0x2fbb
  XSAVE Features=0x1
  VT-x: (disabled in BIOS) PAT,HLT,MTF,PAUSE,EPT,UG,VPID
  TSC: P-state invariant, performance statistics
real memory  = 8589934592 (8192 MB)
avail memory = 8171106304 (7792 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads
random: registering fast source Intel Secure Key RNG
random: fast provider: "Intel Secure Key RNG"
arc4random: WARNING: initial seeding bypassed the cryptographic random device 
because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
ioapic0  irqs 0-39
Launching APs: 1 2 3
random: entropy device external interface
kbd1 at kbdmux0
vtvga0: 
smbios0:  at iomem 0xf2fc0-0xf2fde
smbios0: Version: 2.7, BCD Revision: 2.7
aesni0: 
acpi0: 
acpi0: Power Button (fixed)
cpu0:  on acpi0
hpet0:  iomem 0xfed0-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Event timer "HPET3" frequency 14318180 Hz quality 440
Event timer "HPET4" frequency 14318180 Hz quality 440
atrtc0:  port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atrtc0: registered as a time-of-day clock, resolution 1.00s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0:  port 0x40-0x43,0x50-0x53 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0
acpi_ec0:  port 0x62,0x66 on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
vgapci0:  port 0x3000-0x303f mem 
0xd000-0xd03f,0xc000-0xcfff irq 16 at device 2.0 on pci0
vgapci0: Boot video device
hdac0:  mem 0xd073-0xd0733fff irq 16 at 
device 3.0 on pci0
xhci0:  mem 0xd072-0xd072 irq 
16 at device 20.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Port routing mask set to 0x
usbus0 on xhci0
usbus0: 5.0Gbps Super Speed USB v3.0
pci0:  at device 22.0 (no driver attached)
uart2:  port 0x30b0-0x30b7 mem 
0xd073f000-0xd073 irq 19 at device 22.3 on pci0
uart2: Using 1 MSI message
em0:  port 0x3080-0x309f mem 
0xd070-0xd071,0xd073e000-0xd073efff irq 20 at device 25.0 on pci0
em0: EEPROM V0.3-4
em0: Using 1024 TX descriptors and 1024 RX descriptors
em0: Using an MSI interrupt
em0: Ethernet address: 28:80:23:d8:c3:93
em0: netmap queues/slots: TX 1/1024, RX 1/1024
hdac1:  mem 0xd0734000-0xd0737fff irq 22 at 
device 27.0 on pci0
pcib1:  irq 16 at device 28.0 on pci0
pci1:  on pcib1
pcib2:  irq 19 at device 28.3 on pci0
pci2:  on pcib2
pci2:  at device 0.0 (no driver attached)
pcib3:  irq 17 at device 28.5 on pci0
pci3:  on pcib3
pci3:  at device 0.0 (no driver attached)
ehci0:  mem 0xd073d000-0xd073d3ff irq 
17 at device 29.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
isab0:  at device 31.0 on pci0
isa0:  on isab0
ahci0:  port 
0x30a8-0x30af,0x30bc-0x30bf,0x30a0-0x30a7,0x30b8-0x30bb,0x3060-0x307f mem 
0xd073c000-0xd073c7ff irq 19 at device 31.2 on pci0
ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier not supported
ahcich0:  at channel 0 on ahci0
battery0:  on acpi0
acpi_acad0:  on acpi0
acpi_button0:  on acpi0
acpi_lid0:  on acpi0

Re: pf.conf syntax highlighting in your favourite editor

2024-07-23 Thread Sven F.
On Tue, Jul 23, 2024 at 12:22 PM  wrote:
>
> On Tue, Jul 23, 2024 at 03:46:56PM +0100, Tom Smyth wrote:
> >Folks,
> >I wondering had anyone tried to make a syntax highlighting for  pf.conf 
> >syntax,
> >
> >to help folks new to the pf.conf syntax in the editor of their choice...
> >
> >I was thinking that this approach might be lower hanging fruit rather
> >than trying to write a rule editor in nsh (for now at least), and it
> >might be more generally useful for for the community or those in the
> >community who like syntax highlighting
> >
>
> This already exists in the vim port.
>


/usr/local/share/vim/vim82/syntax/ipfilter.vim
/usr/local/share/vim/vim82/syntax/pf.vim
/usr/local/share/vim/vim82/syntax/pfmain.vim

" pf syntax file
" Language:OpenBSD packet filter configuration (pf.conf)
" Original Author: Camiel Dobbelaar 
" Maintainer:  Lauri Tirkkonen 
" Last Change: 2018 Jul 16

Interesting.



Re: pf.conf syntax highlighting in your favourite editor

2024-07-23 Thread readme
On Tue, Jul 23, 2024 at 03:46:56PM +0100, Tom Smyth wrote:
>Folks,
>I wondering had anyone tried to make a syntax highlighting for  pf.conf syntax,
>
>to help folks new to the pf.conf syntax in the editor of their choice...
>
>I was thinking that this approach might be lower hanging fruit rather
>than trying to write a rule editor in nsh (for now at least), and it
>might be more generally useful for for the community or those in the
>community who like syntax highlighting
>

This already exists in the vim port.



Re: pf.conf syntax highlighting in your favourite editor

2024-07-23 Thread Joel Carnat
I think vim already has it.
share/vim/${P}/syntax/pf.vim

> Le 23 juil. 2024 à 16:49, Tom Smyth  a écrit :
> 
> Folks,
> I wondering had anyone tried to make a syntax highlighting for  pf.conf 
> syntax,
> 
> to help folks new to the pf.conf syntax in the editor of their choice...
> 
> I was thinking that this approach might be lower hanging fruit rather
> than trying to write a rule editor in nsh (for now at least), and it
> might be more generally useful for for the community or those in the
> community who like syntax highlighting
> 
> i saw some pf.conf syntax highlighting for sublime text editor,
> 
> I was just wondering if any had done highlighting for vim, emacs
> etc...  ?  or at least something I can get started with ...
> 
> Thanks again
> 
> Tom Smyth.
> 



Re: pf.conf syntax highlighting in your favourite editor

2024-07-23 Thread Omar Polo

On 23/07/24 16:46, Tom Smyth wrote:

Folks,
I wondering had anyone tried to make a syntax highlighting for  pf.conf syntax,

to help folks new to the pf.conf syntax in the editor of their choice...

I was thinking that this approach might be lower hanging fruit rather
than trying to write a rule editor in nsh (for now at least), and it
might be more generally useful for for the community or those in the
community who like syntax highlighting

i saw some pf.conf syntax highlighting for sublime text editor,

I was just wondering if any had done highlighting for vim, emacs
etc...  ?  or at least something I can get started with ...


emacs has a built-in `conf-mode' which, while not knowing the exact 
syntax of any specific configuration file, usually does a decent job at 
handling configuration files (these includes pf.conf, httpd.conf, 
etc...). It's enabled by default for file that ends in *.conf (among 
other things.)




pf.conf syntax highlighting in your favourite editor

2024-07-23 Thread Tom Smyth
Folks,
I wondering had anyone tried to make a syntax highlighting for  pf.conf syntax,

to help folks new to the pf.conf syntax in the editor of their choice...

I was thinking that this approach might be lower hanging fruit rather
than trying to write a rule editor in nsh (for now at least), and it
might be more generally useful for for the community or those in the
community who like syntax highlighting

i saw some pf.conf syntax highlighting for sublime text editor,

I was just wondering if any had done highlighting for vim, emacs
etc...  ?  or at least something I can get started with ...

Thanks again

Tom Smyth.



Re: trying to boot on HP EliteBook 820 G1

2024-07-23 Thread Stuart Henderson
On 2024/07/22 21:04, Jan Stary wrote:
> On Jul 22 15:08:15, stu.li...@spacehopper.org wrote:
> > On 2024-07-22, Jan Stary  wrote:
> > > I am trying to boot current/amd64 on this HP laptop from  USB stick.
> > >
> > > Disabling the "secure boot" in BIOS, so that something else
> > > than the preinstalled windows is even allowed to boot,
> > > and choosing USB Flash Disk as the boot source,
> > > I see the usual
> > >
> > >   Using drive 0, partition 3
> > >
> > > etc, up to
> > >
> > >   boot>
> > >
> > > There, the rotating slash either stops and nothing else happens,
> > > or the machine reboots after the first number in
> > >
> > >   booting hd0a:/bsd 12345678 + [reboot]
> > >
> > > This happens with both bsd and bsd.rd.
> > >
> > > The USB stick holds a full current/amd64 installation
> > > which I regularly boot on various amd64 machines,
> > > so I don;t suppose that is the problem.
> > >
> > > Any clues please?
> > 
> > Some things you could perhaps try -
> 
> Thanks for the hints.
> 
> > - does a 7.5 kernel boot? 7.4? (7.3, [..]?)
> 
> No. The same happens with 7.5, 7.4 and 7.3;
> also, the current/amd64 I was trying was about two weeks old,
> but the same happens with the currently current current.
> 
> > - "machine mem" output might be useful to someone looking at this
> 
> Sorry for the jpeg (attached), no cereal here.

so that's approx 19GB of mail sending to all misc subscribers, plus
the people who you want to see this might well be reading mail somewhere
that image attachments are at least a slight pain.

typing is not so hard, so we can at least do something about the
second part of that:

Region 0: type 1 at 0x0 for 631KB
Region 1: type 2 at 0x9dc00 for 9KB
Region 2: type 2 at 0xe for 128KB
Region 3: type 1 at 0x10 for 3058172KB
Region 4: type 2 at 0xbab7f000 for 19456KB
Region 5: type 4 at 0xbbe7f000 for 1024KB
Region 6: type 3 at 0xbbf7f000 for 512KB
Region 7: type 1 at 0xbbfff000 for 4KB
Region 8: type 2 at 0xbc00 for 16384KB
Region 9: type 2 at 0xbd00 for 34816KB
Region 10: type 2 at 0xe000 for 262144KB
Region 11: type 2 at 0xfec0 for 4KB
Region 12: type 2 at 0xfed1 for 16KB
Region 13: type 2 at 0xfed18000 for 4KB
Region 14: type 2 at 0xfed19000 for 4KB
Region 15: type 2 at 0xfed1c000 for 16KB
Region 16: type 2 at 0xfee0 for 4KB
Region 17: type 2 at 0xff80 for 8192KB
Region 18: type 1 at 0x1 for 1030144KB
Low ram: 631KB  High ram: 3058172KB
Total free memory: 4088951KB



Re: folks is there any VPN pseudo device that allows for spliting a fullsized frame or packet across 2x VPN encapsulated packets

2024-07-23 Thread Claudio Jeker
On Tue, Jul 23, 2024 at 09:04:45AM +0100, Tom Smyth wrote:
> Do you ever have issues with the IP fragments being broken across
> broken NAT implementations... or are the IP fragmensts encapsulated in
> the IPSec Packets ?
> i.e.
> gif fragments and IPsec wraps the gif packet + ip fragment  in 2
> encapsulated ipsec packets ?

IPsec has PMTU support so as long as you get ICMP errors then it will
adjust so that you end up with 2 packets. If it is badly broken you can
adjust the MTU of the route the gif tunnel uses (make it a host route).

I think that should also work with wg(4) but I do not use wg(4).
 
> On Tue, 23 Jul 2024 at 08:54, Claudio Jeker  wrote:
> >
> > On Tue, Jul 23, 2024 at 08:51:19AM +0100, Tom Smyth wrote:
> > > Folks,
> > >
> > > As an ISP we often have to manage wans for customers where we don't
> > > have access to customers firewalls, and the customers expect full
> > > sized frames / packets across the wan,
> > > the issue is when we used 3rd party networks with constrained MTUs,
> > > while we can adjust TCP MSS if we control the network devices  putting
> > > packets across the VPN, this is not always possible,
> > >
> > > IP fragmentation (sometimes) works but it breaks load balancing
> > > (hashes of IP fragments do not match the hashes for original packet
> > > being sent.  but sometimes is not good enough.
> > >
> > > Possible solutions which we have seen in in other vendors
> > > MLPPP on L2TP / PPPoE  with MRRU (Maximum Received Reconstructed Unit)
> > > which allowed for packet splitting outbound  and reconstruction  on
> > > inbound
> > >
> > > OpenVPN have UDP fragment option (which works by encapsulating a
> > > packet across 2 equal sided packets once the encapsulated packet would
> > > be greater than 1/2 the size of the Max UDP fragment,  ( packets would
> > > have the same size, same src & destination port and src and
> > > destination ip (so packet ordering / LACP load balancing path would be
> > > consistent or at least more consistent  for those packets
> > >
> > > OpenVPN & tap interface performance is not brilliant ,  so I'm hopping
> > > there is a kernel driver device that would allow
> > >
> > > I was wondering if anyone else ran into this issue and resolved it
> > > with an existing device driver in  OpenBSD...
> > >
> >
> > I run gif tunnels over ipsec with MTU 1500 and the stack just does the
> > fragmentation. Not sure if the performance of that is much better than
> > OpenVPN.
> >
> > --
> > :wq Claudio
> 
> 
> 
> -- 
> Kindest regards,
> Tom Smyth.
> 

-- 
:wq Claudio



Re: folks is there any VPN pseudo device that allows for spliting a fullsized frame or packet across 2x VPN encapsulated packets

2024-07-23 Thread Tom Smyth
Do you ever have issues with the IP fragments being broken across
broken NAT implementations... or are the IP fragmensts encapsulated in
the IPSec Packets ?
i.e.
gif fragments and IPsec wraps the gif packet + ip fragment  in 2
encapsulated ipsec packets ?

On Tue, 23 Jul 2024 at 08:54, Claudio Jeker  wrote:
>
> On Tue, Jul 23, 2024 at 08:51:19AM +0100, Tom Smyth wrote:
> > Folks,
> >
> > As an ISP we often have to manage wans for customers where we don't
> > have access to customers firewalls, and the customers expect full
> > sized frames / packets across the wan,
> > the issue is when we used 3rd party networks with constrained MTUs,
> > while we can adjust TCP MSS if we control the network devices  putting
> > packets across the VPN, this is not always possible,
> >
> > IP fragmentation (sometimes) works but it breaks load balancing
> > (hashes of IP fragments do not match the hashes for original packet
> > being sent.  but sometimes is not good enough.
> >
> > Possible solutions which we have seen in in other vendors
> > MLPPP on L2TP / PPPoE  with MRRU (Maximum Received Reconstructed Unit)
> > which allowed for packet splitting outbound  and reconstruction  on
> > inbound
> >
> > OpenVPN have UDP fragment option (which works by encapsulating a
> > packet across 2 equal sided packets once the encapsulated packet would
> > be greater than 1/2 the size of the Max UDP fragment,  ( packets would
> > have the same size, same src & destination port and src and
> > destination ip (so packet ordering / LACP load balancing path would be
> > consistent or at least more consistent  for those packets
> >
> > OpenVPN & tap interface performance is not brilliant ,  so I'm hopping
> > there is a kernel driver device that would allow
> >
> > I was wondering if anyone else ran into this issue and resolved it
> > with an existing device driver in  OpenBSD...
> >
>
> I run gif tunnels over ipsec with MTU 1500 and the stack just does the
> fragmentation. Not sure if the performance of that is much better than
> OpenVPN.
>
> --
> :wq Claudio



-- 
Kindest regards,
Tom Smyth.



Re: folks is there any VPN pseudo device that allows for spliting a fullsized frame or packet across 2x VPN encapsulated packets

2024-07-23 Thread Claudio Jeker
On Tue, Jul 23, 2024 at 08:51:19AM +0100, Tom Smyth wrote:
> Folks,
> 
> As an ISP we often have to manage wans for customers where we don't
> have access to customers firewalls, and the customers expect full
> sized frames / packets across the wan,
> the issue is when we used 3rd party networks with constrained MTUs,
> while we can adjust TCP MSS if we control the network devices  putting
> packets across the VPN, this is not always possible,
> 
> IP fragmentation (sometimes) works but it breaks load balancing
> (hashes of IP fragments do not match the hashes for original packet
> being sent.  but sometimes is not good enough.
> 
> Possible solutions which we have seen in in other vendors
> MLPPP on L2TP / PPPoE  with MRRU (Maximum Received Reconstructed Unit)
> which allowed for packet splitting outbound  and reconstruction  on
> inbound
> 
> OpenVPN have UDP fragment option (which works by encapsulating a
> packet across 2 equal sided packets once the encapsulated packet would
> be greater than 1/2 the size of the Max UDP fragment,  ( packets would
> have the same size, same src & destination port and src and
> destination ip (so packet ordering / LACP load balancing path would be
> consistent or at least more consistent  for those packets
> 
> OpenVPN & tap interface performance is not brilliant ,  so I'm hopping
> there is a kernel driver device that would allow
> 
> I was wondering if anyone else ran into this issue and resolved it
> with an existing device driver in  OpenBSD...
> 

I run gif tunnels over ipsec with MTU 1500 and the stack just does the
fragmentation. Not sure if the performance of that is much better than
OpenVPN.

-- 
:wq Claudio



folks is there any VPN pseudo device that allows for spliting a fullsized frame or packet across 2x VPN encapsulated packets

2024-07-23 Thread Tom Smyth
Folks,

As an ISP we often have to manage wans for customers where we don't
have access to customers firewalls, and the customers expect full
sized frames / packets across the wan,
the issue is when we used 3rd party networks with constrained MTUs,
while we can adjust TCP MSS if we control the network devices  putting
packets across the VPN, this is not always possible,

IP fragmentation (sometimes) works but it breaks load balancing
(hashes of IP fragments do not match the hashes for original packet
being sent.  but sometimes is not good enough.

Possible solutions which we have seen in in other vendors
MLPPP on L2TP / PPPoE  with MRRU (Maximum Received Reconstructed Unit)
which allowed for packet splitting outbound  and reconstruction  on
inbound

OpenVPN have UDP fragment option (which works by encapsulating a
packet across 2 equal sided packets once the encapsulated packet would
be greater than 1/2 the size of the Max UDP fragment,  ( packets would
have the same size, same src & destination port and src and
destination ip (so packet ordering / LACP load balancing path would be
consistent or at least more consistent  for those packets

OpenVPN & tap interface performance is not brilliant ,  so I'm hopping
there is a kernel driver device that would allow

I was wondering if anyone else ran into this issue and resolved it
with an existing device driver in  OpenBSD...

Thanks

-- 
Kindest regards,
Tom Smyth.



igc device does not work after install "Intel I225-V" rev 0x03: not enough msi-x vectors

2024-07-22 Thread Todd
I installed OpenBSD 7.5 on a new firewall appliance.
I did not have any trouble setting up the network during the installation

igc0 was detected and configured to use dhcp.
The installer was able to download the installation sets and correctly set
the time via NTP.

After rebooting into the installed system, the igc devices are not listed
in the ifconfig output.
Dmesg shows the error "Intel I225-V" rev 0x03: not enough msi-x vectors

I saw a similar message on misc@ but with no resolution.

I am using a USB network adapter for now, ure0
I will try OpenBSD current to see if there are any new fixes.

Full Dmesg

OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8388227072 (7999MB)
avail mem = 8112943104 (7737MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xeae90 (57 entries)
bios0: vendor American Megatrends Inc. version "5.13" date 01/06/2022
bios0: Default string Default string
acpi0 at bios0: ACPI 6.2
acpi0: sleep states S0 S3 S4 S5, can't enable ACPI
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz, 1994.49 MHz, 06-7a-08, patch
0024
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,GDS_NO,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 4MB
64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 19MHz
cpu0: mwait min=64, max=64, C-substates=0.2.0.2.4.2.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz, 1994.48 MHz, 06-7a-08, patch
0024
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,GDS_NO,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 4MB
64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz, 1994.48 MHz, 06-7a-08, patch
0024
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,GDS_NO,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu2: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 4MB
64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz, 1994.48 MHz, 06-7a-08, patch
0024
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,SMEP,ERMS,MPX,RDSEED,SMAP,CLFLUSHOPT,PT,SHA,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,SENSOR,ARAT,IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,GDS_NO,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu3: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 4MB
64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
mpbios0: bus 0 is type PCI
mpbios0: bus 1 is type PCI
mpbios0: bus 2 is type PCI
mpbios0: bus 3 is type PCI
mpbios0: bus 4 is type PCI
mpbios0: bus 5 is type PCI
mpbios0: bus 6 is type PCI
mpbios0: bus 7 is type ISA
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 120 pins
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Gemini Lake Host" rev 0x06
inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 600" rev 0x06
drm0 at inteldrm0
inteldrm0: apic 1 int 19, GEMINILAKE, gen 9
azalia0 at pci0 dev 14 function 0 "Intel Gemini 

Re: Filesystem corruption on OpenBSD routers after power outage?

2024-07-22 Thread Tom Smyth
Hi Jan sorry for the late reply,
Thanks for your comments and questions ,
Replies are in line

On Wed, 17 Jul 2024 at 13:12, Jan Stary  wrote:
>
> On Jul 10 17:05:55, tom.sm...@wirelessconnect.eu wrote:
> > Hi Jan
> > thanks for your Reply and feedback,
> >  please find my replies  in line ,
> >
> > On Wed, 10 Jul 2024 at 16:28, Jan Stary  wrote:
> > >
> > > On Jul 10 14:44:28, tom.sm...@wirelessconnect.eu wrote:
> > > > we have been using  mfs mounted /var /dev and /tmp for years
> > >
> > > Why?
> > so any writes to disk would be simply written a memory filesystem and
> > if  there was a power cut
>
> How often do you get these power cuts?
Not Often in Ireland but want to avoid truck rools,
>
> > there would be no changes happening to the
> > disk because it is being just written to memory
>
> To be clear, you are concerned with changes to the filesystem
> (not disk as such), which makes a dirty fs and invokes fsck
> at reboot, right?

one of the main reasons which I didnt articulate was repeated log
writes of chatty daemons,
OpenVPN with a very short timeout/ retry interval  writing to disk and
causing flash / ssd wear

>
> > > > however  the impact of mfs (/var in particular) on upgrades has been
> > > > quite painful,
> > >
> > > How?
> > Losing new files in /var if the box is rebooted without first copying
> > the /var (in memory) to where the persistent storage is  (on shutdown)
>
> Whht do you mean by "new files"? Those coming to exist
> during regular operation (as in /var/run), or "new" if
> they get installed under /var on an upgrade?
the New files that would be installed in /var on upgrade yes,

>
> The above (losing the nonpersistent mfs storage) is exactly
> what would happen on a power outage; but what does that have
> to do with upgrades? If you reboot (cleanly) after an upgrade,
> the content of /var gets stored to persitent storage.
Oh ok ... I had not seen that behaviour  ...and  sometimes /var/db
the relinked kernel hash would throw the
relink failure ...

>
> > > > #cat /etc/fstab
> > > > ff0023511d131fc2.a / ffs rw,softdep,noatime 1 1
> > > > ff0023511d131fc2.b /usr/local ffs rw,wxallowed,nodev,softdep,noatime 1 2
> > > > ff0023511d131fc2.d /var ffs rw,nodev,nosuid,softdep,noatime 1 2
> > >
> > > So you _don't_ have /var on mfs ...
> > > Also, softdep no loger exists.
> > Thanks  it was an older option (now a noop (for backward compatibility
> > ) just checked the manual there...  Ill drop it off the deployment
> > script
> >
> > > > swap /tmp mfs rw,nosuid,noexec,nodev,-s=262144,-P=/persist-fs/tmp 0 0
> > > > swap /var/log mfs 
> > > > rw,nosuid,noexec,nodev,-s=524288,-P=/persist-fs/var/log 0 0
> > > > swap /var/run mfs 
> > > > rw,nosuid,noexec,nodev,-s=262144,-P=/persist-fs/var/run 0 0
> > > > swap /dev mfs rw,nosuid,noexec,-P=/persist-fs/dev,-i=2048,-s=32768 0 0
> > >
> > > Why do you need /tmp to persist?
> > Fair point  I was more interested in getting /tmp to be memory mounted
> > (dont care about persistence) in that case
> > checking manual
> >
> > > Why do you have a separate /dev?
> > when programs write to /dev/blah  is there a possibility of the
> > filesystem being updated...
>
> Above you talk about an upgrade, here about an update.
> What you mean is just a write to the filesystem?
>
> I never saw a / filesystem (holding /dev)
> been screwed in a way that fsck couldn't get out of
> because a file under /dev was being written ...
I think I took this advice so that / could be mounted read only (if I
Recall correctly )
so I was being cautious ... on this front ...

>
> > > Why don't you have a separate /home?
> > it is a router /firewall / network appliance  /not a standard desktop
> > / server ...  users are admins... etc .
> > >
> > > > ###
> > > > This seems to solve problems with  upgrades and  package updates,
> > basically if the partition was not synced with a copy on shutdown you
> > would lose the updated files ...
>
> Wll, you wouldn't have this problem
> if you were not using mfs :-)

indeed yes :)
>
> Filesystem inconsistency after a power outage is normal;
> fsck will deal with it. You might lose some files -
sometimes you lose the wrong file...  and the system requires manual
intervention / truck roll... I want to avoid that

> with mfs, you lose everything.

so I wanted to have  a reliable boot and prefer losing logs and tmp
files rather than risking corruption...

>
> Jan
>
Thanks for your feedback Jan
really appreciate it



Re: trying to boot on HP EliteBook 820 G1

2024-07-22 Thread Stuart Henderson
On 2024-07-22, Jan Stary  wrote:
> I am trying to boot current/amd64 on this HP laptop from  USB stick.
>
> Disabling the "secure boot" in BIOS, so that something else
> than the preinstalled windows is even allowed to boot,
> and choosing USB Flash Disk as the boot source,
> I see the usual
>
>   Using drive 0, partition 3
>
> etc, up to
>
>   boot>
>
> There, the rotating slash either stops and nothing else happens,
> or the machine reboots after the first number in
>
>   booting hd0a:/bsd 12345678 + [reboot]
>
> This happens with both bsd and bsd.rd.
>
> The USB stick holds a full current/amd64 installation
> which I regularly boot on various amd64 machines,
> so I don;t suppose that is the problem.
>
> Any clues please?

Some things you could perhaps try -

- does a 7.5 kernel boot? 7.4? (7.3, [..]?)
- how about trying an older bootloader (extract usr/share/mdec
files from old baseXX.tgz and installboot)
- "machine mem" output might be useful to someone looking at this

HP machines are often a bit awkward, have been for many years.


-- 
Please keep replies on the mailing list.



Re: security(8) for linux?

2024-07-22 Thread Rubén Llorente
Give aide a try. It isn't exactly a security(8) replacement but it is 
fine for detecting filesystem changes.


chrootkit and rkhunter are also fine for detecting suspicious activity 
and tracking critical filesystem changes, but adapting them to your 
environment might take some work.


Allan Streib wrote:

I am guessing that many of us also manage linux systems, is anyone
aware of a port or adaptation of security(8) for linux, specifically
Ubuntu or Debian distributions?

Allan





Re: trying to boot on HP EliteBook 820 G1

2024-07-22 Thread Jan Stary
On Jul 22 10:38:44, kolip...@exoticsilicon.com wrote:
> On Mon, Jul 22, 2024 at 03:22:21PM +0200, Jan Stary wrote:
> > There, the rotating slash either stops and nothing else happens,
> > or the machine reboots after the first number in
> > 
> > booting hd0a:/bsd 12345678 + [reboot]
> > 
> > This happens with both bsd and bsd.rd.
> > 
> > The USB stick holds a full current/amd64 installation
> > which I regularly boot on various amd64 machines,
> > so I don;t suppose that is the problem.
> > 
> > Any clues please?
> 
> Is it related to the issue described here? :
> 
> https://marc.info/?l=openbsd-misc=171650034722844

No idea. I saw that thread, but it's not the same problem.



Re: trying to boot on HP EliteBook 820 G1

2024-07-22 Thread Crystal Kolipe
On Mon, Jul 22, 2024 at 03:22:21PM +0200, Jan Stary wrote:
> There, the rotating slash either stops and nothing else happens,
> or the machine reboots after the first number in
> 
>   booting hd0a:/bsd 12345678 + [reboot]
> 
> This happens with both bsd and bsd.rd.
> 
> The USB stick holds a full current/amd64 installation
> which I regularly boot on various amd64 machines,
> so I don;t suppose that is the problem.
> 
> Any clues please?

Is it related to the issue described here? :

https://marc.info/?l=openbsd-misc=171650034722844



Re: security(8) for linux?

2024-07-20 Thread Eric Pruitt
On Sat, Jul 20, 2024 at 03:11:08PM -0400, Allan Streib wrote:
> I am guessing that many of us also manage linux systems, is anyone
> aware of a port or adaptation of security(8) for linux, specifically
> Ubuntu or Debian distributions?

The closest thing I'm familiar with is tripwire
(https://packages.debian.org/buster/tripwire), but it doesn't do most of
what security(8) does.

Eric



security(8) for linux?

2024-07-20 Thread Allan Streib
I am guessing that many of us also manage linux systems, is anyone
aware of a port or adaptation of security(8) for linux, specifically
Ubuntu or Debian distributions?

Allan



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-19 Thread José Maldonado
El vie, 19 jul 2024 a la(s) 9:08 p.m., Justin Yates Fletcher
(jyfletc...@gmail.com) escribió:
>
> On Fri, 2024-07-19 at 17:18 +, Anon Loli wrote:
> > Please stop joking and get serious.
>
> This is my favorite part so far. Everything written on almost every
> post has been hilarious: Inane ramblings, word salads, delusions of
> grandeur, help vampirism, thread hijacking, and even more!
>
> Top level trolling, really. I think congratulations are in order.
>

Don´t feed the troll.

-- 
"Dios en su Cielo, todo bien en la Tierra"
***



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-19 Thread Justin Yates Fletcher
On Fri, 2024-07-19 at 17:18 +, Anon Loli wrote:
> Please stop joking and get serious.

This is my favorite part so far. Everything written on almost every
post has been hilarious: Inane ramblings, word salads, delusions of
grandeur, help vampirism, thread hijacking, and even more!

Top level trolling, really. I think congratulations are in order.



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-19 Thread Anon Loli
On Thu, Jul 18, 2024 at 11:23:08PM -0400, José Maldonado wrote:
> >
> > I don't really deserve OpenBSD, I get that, but there is a reason as to why
> > Theo De Raadt and other folks are still active on mailing lists and respond 
> > to
> > topics like these, everything else should click and make sense now, I don't
> > know how much clearer I can get, low critical thinking is required to 
> > understand
> > what I wrote right now, and the only thing I can be wrong about here is that
> > OpenBSD folks don't need new people (in general) who might even have greater
> > potential than some of existing folks, to work on OpenBSD and related 
> > projects
> > and I'd love to know why if that's the case.
> >
> > If that's not the case (I hope it's not), then I've already started my 
> > payback,
> > and hope to somewhat give back to the OpenBSD
> >
> 
> Personally, I don't give a shit about anything you've said.

Excellent, then what I said doesn't apply to you, it applies to people who care
about mutual contributions and contribution-investments.


> RTFM and stop crying on the list.

I read your incomplete buggy and discriminating (against skill levels) manuals,
if you want mutual contributions and contribution-investment-returns - which
you don't so just stop replying because it doesn't concern you after that
point.


> ...That you are autistic is not, at least on my part,
> something that matters to me. If you're looking for help, at least be friendly
> and stop pointing fingers at everyone else to try to
> "fit into your world and your vision of it."

You think I'm here to just get help and run away? I thought for a OpenBSD
contributor(or whatever you are) that you'd be smarter than that, I literally
explained your how shit works in real life, what is here to not understand?

You either agree with me and literally admit that butterfly effect is real and 
very
strong and you help me (and all which that entails), or you don't and you don't
respond, it's very simple


> Don´t be a troll.

If you cared enough to read and think about what I wrote (talking about the 1st
reply line you wrote here), then you'd realize that you're the troll, not me,
because I care about this conversation, you literally admitted you don't, so
please kindly stop replying, there might be people who do care, you just aren't
one of those and that's (not) okay, please stop wasting everyone's time if you

aren't invested in the conversation (like literally closing your ears and
yelling, that's you right now)



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-19 Thread Anon Loli
On Thu, Jul 18, 2024 at 10:34:23PM +0100, cho...@jtan.com wrote:
> Anon Loli writes:
> > On Thu, Jul 18, 2024 at 07:15:28PM +0100, cho...@jtan.com wrote:
> > > Anon Loli writes:
> > > > On Tue, Jul 16, 2024 at 11:04:17PM +0100, cho...@jtan.com wrote:
> > > > > I think there is a fundamental misunderstanding here.
> > > > > 
> > > > > Anon Loli writes:
> > > > > > Hello list, after I compiled ...
> > > > > 
> > > > > Once you have crossed this Rubicon you are a developer and On Your 
> > > > > Own.
> > > >
> > > > That's mean!
> > > 
> > > But it is the truth. Do I not correctly recall you writing that you
> > > prefer to hear the truth, however blunt? I believe asshole was the
> > > term you used. Is it a one-way phenomenon?
> >
> > I forgot that my mood can't be transfered
> > automatically trough text, and that my joke won't be understood
> 
> Funny, that.
> 
> > > If you want to code get coding. If you want a working system that's
> > > built by others others then put the compiler down and use what they
> > > have produced.
> > > 
> > > There is no middle ground. You break it, you get to keep both halves.
> >
> > When undoing 1 screw, I didn't expect the whole wheel to fall off (you can
> > still drive with 3 wheels, but like not for long)
> 
> You still get to keep all the parts. If you play with power tools
> you can expect to get hurt.

This is why people go insane and do terrorist attacks, because more and more
people don't really give a shit what they're selling and poor people don't have
a choice..
I know it's bad to compare this to OpenBSD, because it's for free, but we also
don't have a good enough alternative yet (I'm semi-serious here, if it wasn't
obvious)


> > > > I didn't change the source code related to Xenocara, I was just curious 
> > > > if
> > > > Xenocara compiles with different Makefile or something.. it'd be nice 
> > > > if at
> > > > least someone told me if it affects the mouse profile/driver somehow.
> > > 
> > > Incorrect. If you had followed the build instructions as they are
> > > written with the xenocara sources unchanged then xenocara would
> > > have compiled. It didn't therefore you changed something.
> >
> > What do you mean it didn't compile? What did I say which would indicate 
> > that I
> > got a error message while compiling Xenocara?
> 
> I'm sorry I rushed. I meant to say that xenocara would have been
> compiled in the same way. If you follow the instructions correctly
> against a pristine source repository you will get the same binary
> artefacts that upstream produce and so of course they will do the
> same thing in the same way.
> 
> I mixed up "broken" with "didn't build".

Yeah, that's what I expected too, but it doesn't seem to be compiling-related
perhaps...
Also by UEFI I think that I meant BIOS related


> > > > I have a lot of experience when it comes to helping each other and "do 
> > > > to
> > > > others as you want done to yourself"(or something like that phrase), 
> > > > which is
> > > 
> > > When you are thrown in the deep end of a pool, you will learn to
> > > swim or you will sink. Conveniently in this metaphor you don't also
> > > drown, so consider it done unto you. You're welcome.
> > > 
> > > Coincidentally you've (mis-)quoted from the book of Matthew. Chapter 7.
> >
> > Most people will sink if such continues
> 
> That is up to them. Each of us gets to choose.
> 
> > > > > Use the source, Luke.
> > > >
> > > > But source big big big
> > > 
> > > Then you have a lot of reading to do.
> > > 
> > > The OpenBSD developers have also put a lot of work into their
> > > exceptionally fine manuals. I suggest you read those too.
> >
> > Exceptionally fine manuals? Are you joking?
> 
> *whoosh*
> 
> RTFM. And S.

I can see that you're joking about this, that says a lot


> > You obviously don't know what a manual written by a perfectionist autist 
> > look
> > like - literally perfection
> 
> You cannot use autism as an excuse for anything in a group of engineers.

Excuse? You mean I can't excuse my perfection?
I write better shit than OpenBSD does, but not really on same topic, but lets
say that when I put an effort (like OpenBSD hints to do or else it's a bug), I
perfectly explain stuff about what I'm talking or the contex as if my reader is
a loli... almost no one has time to decipher text and gamble wether or not they
are SKILLED ENOUGH TO RTFM provided.

Please stop joking and get serious.


> And you cannot comment on perfectionism with bad grammar. It is "looks like".

I know how to write it, I just missed it, I don't have infinite free time
and/or patience to reread my replies a bunch of times until absolute
perfection, I think I got my points across well and had explained as if.. you
know the rest.


> Matthew
> 
> Fig leaf: If you would like to know why you are not getting the
> support you wish and how to present your questions in such a way
> that they might actually be dealt with amicably, that is way off
> topic and you can contact 

pf af-to silently dropping oversized packets (affects pmtud)

2024-07-19 Thread Jason Healy
I'm working on setting up an OpenBSD box to perform CLAT services for 464XLAT 
on my network.  v4-only clients will be behind the pf box, which uses af-to to 
translate v4 packets to v6 and send them to my border NAT64 gateway.

Things are working pretty well, but I've bumped into an issue with large 
packets.  If the v4 client sends a max-size packet (1500 bytes), it looks like 
the pf box is silently dropping them.  I've tested this by setting DF on an 
ICMP ping that is too big to fit in an IPv6 packet (1453 bytes).  tcpdump shows 
the packet arriving on the pf box, but not leaving.  Because the IPv6 headers 
are 20 bytes bigger, this makes sense (the resulting translated packet is too 
large).

I was hoping that pf would return an ICMP type 3, code 4 (dest 
unreachable/fragmentation needed), but I'm not getting anything back.  I have a 
default "pass out" rule so I don't believe I am blocking any ICMP sourced by 
the pf box.  Without the ICMP feedback, the v4 client is unaware of the v6 bump 
in the path (essentially, the MTU is reduced to 1480), and path MTU discovery 
cannot detect it.

Am I missing any config, or does af-to not generate ICMP messages in this 
circumstance?  As a workaround I tried to find a pf rule to filter on packet 
size, but that doesn't exist either.

I did add a scrub rule for max-mss, and that has helped with TCP.  However, I 
was hoping to get full coverage on UDP and ICMP as well.

I'm going to try lowering the MTU on the clients, but some of them are IoT 
garbage that doesn't give me access to those settings, so pmtud is really my 
best bet.

Thanks,

Jason


Re: POSIX Inquiry

2024-07-19 Thread Страхиња Радић
Дана 24/07/18 08:53PM, Katherine Mcmillan написа:
> In the Core Program for the POSIX standards, a relational database is 
> listed.

Link?



Re: Dual boot with 2 openbsd

2024-07-19 Thread Crystal Kolipe
On Thu, Jul 18, 2024 at 10:38:42PM +0200, Martin Schrder wrote:
> Am Mi., 17. Juli 2024 um 00:18 Uhr schrieb <04-psyche.tot...@icloud.com>:
> > Does this idea make sense?
> 
> No.
> You'll have to keep both systems up-to-date.

Only if you expect the system to come up 100% automatically when the first
disk fails.

Otherwise all that is necessary is to arrange for it to boot in to a fresh
installation of the base system which has enough minimal configuration to
ensure that it can be accessed remotely, and you can then update and
reconfigure it in one go as required.

So no need to mirror each update and configuration change step by step on both
installations.

Since the OP is planning to store user data on disk 2, it would be trivial to
write a script that tars up essential config files from the main installation
on disk 1 and writes them to the other disk, ready for reference in case of
failing over to the second installation.  Running the script on a daily basis
from cron and deleting backups over a week old would probably suffice.



Re: Apache chroot ?

2024-07-18 Thread J Doe


> On Jul 16, 2024, at 05:16, Stuart Henderson  wrote:
> On 2024-07-15, J Doe  wrote:
>> I know in the past (before OpenBSD's httpd), the Apache package on
>> OpenBSD was packaged to run in a chroot.  Does this still hold for
>> Apache 2.4.61 on OpenBSD 7.5 ?
> 
> The version of Apache httpd (1.x) that used to be in the base OS (before
> it was replaced by nginx) included a patch to chroot by default. That's
> never (IIRC) been the case for the 2.x versions in ports/packages.
> 
> The mod_unixd module is included in the port though - that has a way to
> chroot (see https://httpd.apache.org/docs/2.4/mod/mod_unixd.html) but
> isn't done by default.
> 

Hi Stuart,

Ok, thanks for the clarification.

- J



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-18 Thread José Maldonado
>
> I don't really deserve OpenBSD, I get that, but there is a reason as to why
> Theo De Raadt and other folks are still active on mailing lists and respond to
> topics like these, everything else should click and make sense now, I don't
> know how much clearer I can get, low critical thinking is required to 
> understand
> what I wrote right now, and the only thing I can be wrong about here is that
> OpenBSD folks don't need new people (in general) who might even have greater
> potential than some of existing folks, to work on OpenBSD and related projects
> and I'd love to know why if that's the case.
>
> If that's not the case (I hope it's not), then I've already started my 
> payback,
> and hope to somewhat give back to the OpenBSD
>

Personally, I don't give a shit about anything you've said.

RTFM and stop crying on the list. That you are autistic is not, at
least on my part,
something that matters to me. If you're looking for help, at least be friendly
and stop pointing fingers at everyone else to try to
"fit into your world and your vision of it."

Don´t be a troll.

-- 
"Dios en su Cielo, todo bien en la Tierra"
***



Re: POSIX Inquiry

2024-07-18 Thread Philip Guenther
On Thursday, July 18, 2024, Katherine Mcmillan  wrote:
>
> In the Core Program for the POSIX standards, a relational database is
> listed.  I am wondering what this is referring to?
>

You’ll need to be more specific about what you’re referring to and how it
relates to OpenBSD.

Philip Guenther


Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-18 Thread chohag
Anon Loli writes:
> On Thu, Jul 18, 2024 at 07:15:28PM +0100, cho...@jtan.com wrote:
> > Anon Loli writes:
> > > On Tue, Jul 16, 2024 at 11:04:17PM +0100, cho...@jtan.com wrote:
> > > > I think there is a fundamental misunderstanding here.
> > > > 
> > > > Anon Loli writes:
> > > > > Hello list, after I compiled ...
> > > > 
> > > > Once you have crossed this Rubicon you are a developer and On Your Own.
> > >
> > > That's mean!
> > 
> > But it is the truth. Do I not correctly recall you writing that you
> > prefer to hear the truth, however blunt? I believe asshole was the
> > term you used. Is it a one-way phenomenon?
>
> I forgot that my mood can't be transfered
> automatically trough text, and that my joke won't be understood

Funny, that.

> > If you want to code get coding. If you want a working system that's
> > built by others others then put the compiler down and use what they
> > have produced.
> > 
> > There is no middle ground. You break it, you get to keep both halves.
>
> When undoing 1 screw, I didn't expect the whole wheel to fall off (you can
> still drive with 3 wheels, but like not for long)

You still get to keep all the parts. If you play with power tools
you can expect to get hurt.

> > > I didn't change the source code related to Xenocara, I was just curious if
> > > Xenocara compiles with different Makefile or something.. it'd be nice if 
> > > at
> > > least someone told me if it affects the mouse profile/driver somehow.
> > 
> > Incorrect. If you had followed the build instructions as they are
> > written with the xenocara sources unchanged then xenocara would
> > have compiled. It didn't therefore you changed something.
>
> What do you mean it didn't compile? What did I say which would indicate that I
> got a error message while compiling Xenocara?

I'm sorry I rushed. I meant to say that xenocara would have been
compiled in the same way. If you follow the instructions correctly
against a pristine source repository you will get the same binary
artefacts that upstream produce and so of course they will do the
same thing in the same way.

I mixed up "broken" with "didn't build".

> > > I have a lot of experience when it comes to helping each other and "do to
> > > others as you want done to yourself"(or something like that phrase), 
> > > which is
> > 
> > When you are thrown in the deep end of a pool, you will learn to
> > swim or you will sink. Conveniently in this metaphor you don't also
> > drown, so consider it done unto you. You're welcome.
> > 
> > Coincidentally you've (mis-)quoted from the book of Matthew. Chapter 7.
>
> Most people will sink if such continues

That is up to them. Each of us gets to choose.

> > > > Use the source, Luke.
> > >
> > > But source big big big
> > 
> > Then you have a lot of reading to do.
> > 
> > The OpenBSD developers have also put a lot of work into their
> > exceptionally fine manuals. I suggest you read those too.
>
> Exceptionally fine manuals? Are you joking?

*whoosh*

RTFM. And S.

> You obviously don't know what a manual written by a perfectionist autist look
> like - literally perfection

You cannot use autism as an excuse for anything in a group of engineers.

And you cannot comment on perfectionism with bad grammar. It is "looks like".

Matthew

Fig leaf: If you would like to know why you are not getting the
support you wish and how to present your questions in such a way
that they might actually be dealt with amicably, that is way off
topic and you can contact me off-list.



Re: POSIX Inquiry

2024-07-18 Thread Dan
Oh, that means it is an old standard.

Sorry for the joke ;-)

-Dan

Jul 18, 2024 22:57:11 Katherine Mcmillan :

> In the Core Program for the POSIX standards, a relational database is listed. 
>  I am wondering what this is referring to?



POSIX Inquiry

2024-07-18 Thread Katherine Mcmillan
Hello all,

In the Core Program for the POSIX standards, a relational database is listed.  
I am wondering what this is referring to?

Thank you,
Katie


Re: Dual boot with 2 openbsd

2024-07-18 Thread Martin Schröder
Am Mi., 17. Juli 2024 um 00:18 Uhr schrieb <04-psyche.tot...@icloud.com>:
> Does this idea make sense?

No.
You'll have to keep both systems up-to-date.
Learn how to do backups and how to restore.

Best
Martin



Re: Dual boot with 2 openbsd

2024-07-18 Thread tetrosalame

Il 17/07/2024 12:05, 04-psyche.tot...@icloud.com ha scritto:


RAID1 on the overlapping capacity: I don't like that idea much because RAID1 
has an extra cost where any modification on disk1 will be performed on disk2. I 
want to reap the benefits of having disk1 for the OS and disk2 for data. That 
makes the overall system much faster, because each drive is ddicated to 1 task, 
and each task is independent.


If you simply want to make sure disk2 is somehow bootable, investigate 
altroot too. man daily(8), see ROOTBACKUP.


BTW, in my own experience, BIOS manufacturers always find new, funny 
ways to make sure machines won't come back up without manual 
intervention if the primary disk fails.

Good luck,
--
f



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-18 Thread Anon Loli
On Thu, Jul 18, 2024 at 07:15:28PM +0100, cho...@jtan.com wrote:
> Anon Loli writes:
> > On Tue, Jul 16, 2024 at 11:04:17PM +0100, cho...@jtan.com wrote:
> > > I think there is a fundamental misunderstanding here.
> > > 
> > > Anon Loli writes:
> > > > Hello list, after I compiled ...
> > > 
> > > Once you have crossed this Rubicon you are a developer and On Your Own.
> >
> > That's mean!
> 
> But it is the truth. Do I not correctly recall you writing that you
> prefer to hear the truth, however blunt? I believe asshole was the
> term you used. Is it a one-way phenomenon?

Your recall returns exit code 0.. I forgot that my mood can't be transfered
automatically trough text, and that my joke won't be understood, because of
course, this isn't real life, sorry..


> If you want to code get coding. If you want a working system that's
> built by others others then put the compiler down and use what they
> have produced.
> 
> There is no middle ground. You break it, you get to keep both halves.

When undoing 1 screw, I didn't expect the whole wheel to fall off (you can
still drive with 3 wheels, but like not for long)


> > I didn't change the source code related to Xenocara, I was just curious if
> > Xenocara compiles with different Makefile or something.. it'd be nice if at
> > least someone told me if it affects the mouse profile/driver somehow.
> 
> Incorrect. If you had followed the build instructions as they are
> written with the xenocara sources unchanged then xenocara would
> have compiled. It didn't therefore you changed something.

What do you mean it didn't compile? What did I say which would indicate that I
got a error message while compiling Xenocara?


> > I have a lot of experience when it comes to helping each other and "do to
> > others as you want done to yourself"(or something like that phrase), which 
> > is
> 
> When you are thrown in the deep end of a pool, you will learn to
> swim or you will sink. Conveniently in this metaphor you don't also
> drown, so consider it done unto you. You're welcome.
> 
> Coincidentally you've (mis-)quoted from the book of Matthew. Chapter 7.

Most people will sink if such continues, but if someone were to swim out, and
for that spot to be known as a location where people get thrown to like learn
swimming or something, someone could throw in a few life jackets or have
someone be on ready, this example is so stupid, but still somewhat applicable,
because either I don't understand you or you don't understand me, and of course
now you'll say something like "you're the one who doesn't understand me", but
what is there to understand, you seemingly just wanted to say that steel is
forged with fire, without a care for that not everyone is steel, some people
are still iron ;) 


> > > Use the source, Luke.
> >
> > But source big big big
> 
> Then you have a lot of reading to do.
> 
> The OpenBSD developers have also put a lot of work into their
> exceptionally fine manuals. I suggest you read those too.

Exceptionally fine manuals? Are you joking?
You obviously don't know what a manual written by a perfectionist autist look
like - literally perfection - and OpenBSD manuals are lacking in some places,
and if my recall is correct, then I've already complained about manual pages,
and not much has been done about it, as far as I know.

Not sure if this is it, but it might have something to do with that SOME
manual pages are for developers that are approximately the same skill-level as
the author of them, so this is represents a huge problem, which is unless
someone is extremely motivated, the skill-gap will never be bridged, people
will not learn, OpenBSD will not gain more passionate people, and I suspect
that everyone using OpenBSD is at a loss per-say

Excellent example:
So if say you buy a car, and you say have to connect it together, and the
provided manual requires you to say have finished some related school or
something like that, then most people are unlikely to ever fully build that
car and since they won't ride in it, other people also won't get to see that
type/model of car in the streets and thus won't buy one for themselves.
Very similar thing happens with most things in our live, same goes for OpenBSD

Now you might say something like: "So then help write better manual pages", but
there are still parts of OpenBSD (manual pages) which I don't understand,
partially because a significant amount of it expects you to know something
which isn't mentioned directly (for example it doesn't say "you're expected to
know/have read this this and this).


> Appeals of "but it is le hard" to people who have openly published
> every scrap of their work for anybody to learn from for over 50
> years are not likely to find much sympathy.
> 
> Matthew

Won't find much sympathy? I don't understand why.. just because they had to
swim trough shit doesn't mean that everyone is, because even if OpenBSD isn't a
commercial thing for profit doesn't mean you know what - above I gave 

Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-18 Thread chohag
Anon Loli writes:
> On Tue, Jul 16, 2024 at 11:04:17PM +0100, cho...@jtan.com wrote:
> > I think there is a fundamental misunderstanding here.
> > 
> > Anon Loli writes:
> > > Hello list, after I compiled ...
> > 
> > Once you have crossed this Rubicon you are a developer and On Your Own.
>
> That's mean!

But it is the truth. Do I not correctly recall you writing that you
prefer to hear the truth, however blunt? I believe asshole was the
term you used. Is it a one-way phenomenon?

If you want to code get coding. If you want a working system that's
built by others others then put the compiler down and use what they
have produced.

There is no middle ground. You break it, you get to keep both halves.

> I didn't change the source code related to Xenocara, I was just curious if
> Xenocara compiles with different Makefile or something.. it'd be nice if at
> least someone told me if it affects the mouse profile/driver somehow.

Incorrect. If you had followed the build instructions as they are
written with the xenocara sources unchanged then xenocara would
have compiled. It didn't therefore you changed something.

> I have a lot of experience when it comes to helping each other and "do to
> others as you want done to yourself"(or something like that phrase), which is

When you are thrown in the deep end of a pool, you will learn to
swim or you will sink. Conveniently in this metaphor you don't also
drown, so consider it done unto you. You're welcome.

Coincidentally you've (mis-)quoted from the book of Matthew. Chapter 7.

> > Use the source, Luke.
>
> But source big big big

Then you have a lot of reading to do.

The OpenBSD developers have also put a lot of work into their
exceptionally fine manuals. I suggest you read those too.

Appeals of "but it is le hard" to people who have openly published
every scrap of their work for anybody to learn from for over 50
years are not likely to find much sympathy.

Matthew



Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-18 Thread Anon Loli
(the mouse acted weird: the original profile is back, read the part with CAP
letters for more info)




On Tue, Jul 16, 2024 at 11:04:17PM +0100, cho...@jtan.com wrote:
> I think there is a fundamental misunderstanding here.
> 
> Anon Loli writes:
> > Hello list, after I compiled ...
> 
> Once you have crossed this Rubicon you are a developer and On Your Own.

That's mean!
I didn't change the source code related to Xenocara, I was just curious if
Xenocara compiles with different Makefile or something.. it'd be nice if at
least someone told me if it affects the mouse profile/driver somehow.

I have a lot of experience when it comes to helping each other and "do to
others as you want done to yourself"(or something like that phrase), which is
in some way like anarcho-socialism or anarcho-communism or whatthefuckever, the
point being that until it's something important as audio not working (I'm a
tester contributor and happy I did that), who's going to spend 3 days finding
the fucking reason as to why this happened?

OpenBSD already does enough stuff that's unintuitive and to those people very
time consuming (it took me like 1 week to compile everything the way I wanted
it to, partially because of it taking a long time to compile, but also because
of the object file thing which I made a thread about), so it's to be expected
that even little things can sometimes take a long time...

...due to developers making stuff for developers on THEIR LEVEL, which
futhermore disincentivizes new tinkerers or even potential developers/testers
from contributing, which in turn damages the initial developers themselves
because the tinkerers/potential developers might do something cool and
beautiful one day from which they could benefit as well.
It's simple logic, really.

I try to do good (if not better than that) things to others because it affects
me directly or indirectly, it's literally the buttefly effect which almost
noone understands because they don't want to understand things, it's too hard,
and sometimes obviously logical.


> Not that OpenBSD was ever going to hold anyone's hand.

...continuing from above... you don't have to, maybe someone else will, and
maybe I help someone else related to OpenBSD (I did lots of times), and then
maybe that someone else helps you, etc, etc.


> Use the source, Luke.

But source big big big, is there like a default OpenBSD Makefile I can compare
with the one in xenocara src or something like that?
I tried reading some Xenocara files... even READMEs are dizzying with it's
enormous sizes



-
WHILE TYPING THIS E-MAIL THE ORIGINAL MOUSE PROFILE IS FUCKING BACK!!!
WHAT??!!!?

I don't know how or why, but it's fucking BACK!
Possible cause: computer has been completely plugged out of power recently, but
I tried plugging out this mouse and it didn't change... could it be UEFI
related or something like that?

The funny thing is that the problem with simultaneously pressing
primary+secondary buttons has also been resolved... weird as fuck!
I hope that this bug or whatever has happened, does not repeat.

Or fuck - maybe it would be good if it repeated in case I can somehow help,
just like how I struggled with the OpenBSD audio bug for years until I found a
patch and tested it successfully


> > Does this belong in @tech?
> 
> No.
> 
> Matthew
> 

What about now? xD



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Mark Gary
On Thu, 2024-07-18 at 12:10 +0200, Jan Stary wrote:
> > On Jul 18 10:42:23, mwg...@btinternet.com wrote:
> > > > > > > > > > https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html
> > > > > > > > > > 
> > > > > > > > 
> > > > > > > > I did already change that.  However it only changes the
> > > > > > > > header
> > > > > > > > view, on > > > the email. Not the column view on list
> > > > > > > > of
> > > > > > > > emails.
> > > > > > 
> > > > > > Have you reported that upstream?
> > > > > > 
> > > > Not yet, trying to sort it out myself, as it works fine on
> > > > other
> > > > *BSDs.
> > > > I might though, as small change its baked into the binary,
> > > > maybe.
> > 
> > > > > > I know how to fix this in
> > > > > > FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
> > > > > > text
> > > > > > files.
> > > > > > However on OpenBSD, this hasn't worked in exactly the same
> > > > > > way.
> > 
> > To be clear: "hasn't worked in exactly same way" means what then?
> > 
meaning that under the other BSDs changing the locale settings in the
specified files will make sure the dates shown on the Date column in
the inbox are shown the correct way, i.e. for the traditional UK users,
and not confusingly.  So far I've failed to get the formating correct.
Either it's baked into the binary, so there would be bugger all I could
do about it, or I've there is another text file somewhere that needs
adding the locale setting.





Re: Frustrating feature in Evolution mail

2024-07-18 Thread Jan Stary
> > > > > > > I know how to fix this in
> > > > > > > FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
> > > > > > > text
> > > > > > > files.
> > > > > > > However on OpenBSD, this hasn't worked in exactly the same
> > > > > > > way.
> > > 
> > > To be clear: "hasn't worked in exactly same way" means what then?
> > > 
> meaning that under the other BSDs changing the locale settings in the
> specified files will make sure the dates shown on the Date column in
> the inbox are shown the correct way, i.e. for the traditional UK users,
> and not confusingly. So far I've failed to get the formating correct.

If "hasn't worked in exactly same way" means "doesn't do anything"
just say that, don't confuse people with "not exactly the same".

> Either it's baked into the binary,

How would it be affected by LANG then, on the other systems?

> so there would be bugger all I could do about it,
> or I've there is another text file somewhere that needs
> adding the locale setting.

What matters is whether the correct LC_* is set in the _environment_
you launch Evolution in. Do you click a button in GNOME?
Do you exec "evolution" from an xterm?

Have you figured out yet which of the LC_* does that
(on the other systems)?



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Mark Gary
On Thu, 2024-07-18 at 11:17 +0200, Jan Stary wrote:
> On Jul 18 09:21:14, mwg...@btinternet.com wrote:
> > On Wed, 2024-07-17 at 13:22 +0200, Jan Stary wrote:
> > > On Jul 17 09:59:01, mwg...@btinternet.com wrote:
> > > > HI All,
> > > > 
> > > > I'm trying to resolve a trivial, but annoying problem with
> > > > using
> > > > Evolution mail on my OpenBSD setup. The style of date used in
> > > > the
> > > > list
> > > > of mail in my inbox is in US format, i.e month first, day
> > > > second,
> > > > and I
> > > > want it is UK format, day first, then month.
> > > 
> > > Does Evolution itself have a knob for that?
> > 
> > No, unfortunately it doesn't.  It picks up its behaviour from the
> > locale.  That's definitely how it works on other systems, FreeBSD,
> > NetBSD, Linux etc.
> 
> Googling "evolution date format", this is the first hit:
> https://help.gnome.org/users/evolution/stable/mail-change-time-format.html.en

Yes, I found that too.  It does change the date format, but only on the
header display in the email, not the column for the list of emails in
the inbox. That gets its setting from locale for some strange reason.
> 



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Jan Stary
On Jul 18 10:42:23, mwg...@btinternet.com wrote:
> > > > https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html
> > > > 
> > > 
> > > I did already change that.  However it only changes the header
> > > view, on > > > the email. Not the column view on list of emails.
> > 
> > Have you reported that upstream?
> > 
> Not yet, trying to sort it out myself, as it works fine on other *BSDs.
> I might though, as small change its baked into the binary, maybe.

>> I know how to fix this in
>> FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of text files.
>> However on OpenBSD, this hasn't worked in exactly the same way.

To be clear: "hasn't worked in exactly same way" means what then?



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Mark Gary
On Wed, 2024-07-17 at 13:22 +0200, Jan Stary wrote:
> On Jul 17 09:59:01, mwg...@btinternet.com wrote:
> > HI All,
> > 
> > I'm trying to resolve a trivial, but annoying problem with using
> > Evolution mail on my OpenBSD setup. The style of date used in the
> > list
> > of mail in my inbox is in US format, i.e month first, day second,
> > and I
> > want it is UK format, day first, then month.
> 
> Does Evolution itself have a knob for that?

No, unfortunately it doesn't.  It picks up its behaviour from the
locale.  That's definitely how it works on other systems, FreeBSD,
NetBSD, Linux etc.

> 
> > I know how to fix this in
> > FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of text
> > files. 
> > However on OpenBSD, this hasn't worked in exactly the same way.
> 
> So what happened on OpenBSD, after defining LANG?
> (Note that LANG is a fallback if any of the LC_* are unset.)
> 
> As you probably know, the base system ignores the locale
> except for the character encoding (LC_CTYPE);
> that is not the case for packages though.
> 
> > As an aside, I was getting a similar problem with Libreoffice
> > defaulting to
> > USA dictionaries, but that has been fixed and is picking up its
> > locale
> > properly from one of the text files I amended.
> > 
> > text files where i have the correct variable is :
> > 
> > .bashrc
> > .bash_profile
> > .xinitrc
> > .xsession
> > .profile
> 

I've added the following to the above files:-

export LC_COLLATE="en_GB.UTF-8"
export LC_CTYPE="en_GB.UTF-8"
export LC_MONETARY="en_GB.UTF-8"
export LC_NUMERIC="en_GB.UTF-8"
export LC_TIME="en_GB.UTF-8"
export LC_MESSAGES="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
export LANG="en_GB.UTF-8"
export LANGUAGE="en_GB.UTF-8

That's probably overkill, but I'm throwing spaghetti at the wall now!


> If by "the correct variable" you mean LANG=en_GB.UTF-8,
> then it sets all the _unset_ LC vars for you.
> Can you pinpoint it to which of the LC vars specificaly
> is the one that alters Evolution's behaviour (if any)?
> 
> > /etc/login.conf - yes I did run cap_mkdb.
> 
> What exactly have ypu put in there?

added to bottom of the default section of login.conf :-

:LC_COLLATE=en_GB.UTF-8:\
:LC_TYPE=en_GB.UTF-8:\
:LC_MONETARY=en_GB.UTF-8:\
:LC_NUMERIC=en_GB.UTF-8:\
:LC_TIME=en_GB.UTF-8:\
:LC_MESSAGES=en_GB.UTF-8:\
:LC_ALL=en_GB.UTF-8:\
:LANG=en_GB.UTF-8:\
:LANGUAGE=en_GB.UTF-8:

Again, overkill but,  ¯\_(ツ)_/¯

> 
> > when I issue the locale command from the terminal, it shows all the
> > correct en_GB.UTF-8 variables. So everything looks OK, but i'm
> > obviously missing something.  So if there is another text file to
> > amend
> > I would apprecate any suggestion.
> 
> I would consult Evolutuon's documentation first.
> Wouldn't a mail client have a knob for the date format?
> 
> Jan
> 




Re: Frustrating feature in Evolution mail

2024-07-18 Thread Stuart Henderson
On 2024-07-17, Crystal Kolipe  wrote:
> On Wed, Jul 17, 2024 at 09:59:01AM +0100, Mark Gary wrote:
>> /etc/login.conf - yes I did run cap_mkdb.
>
> Don't.
>
> On a small personal system there is no point in using the db format for
> login.conf.

Nor on a big server either, really. Pretty much any time saved in
parsing the file is going to be lost in one instance of forgetting to
rebuild the db and having to debug.

>  Remove the db version and stick to the plain text file.

+1.



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Stuart Henderson
On 2024-07-18, Mark Gary  wrote:
> On Wed, 2024-07-17 at 13:13 +0200, Rob Schmersel wrote:
>> On Wed, 17 Jul 2024 09:59:01 +0100
>> Mark Gary  wrote:
>> 
>> > HI All,
>> > 
>> > I'm trying to resolve a trivial, but annoying problem with using
>> > Evolution mail on my OpenBSD setup. The style of date used in the
>> > list
>> > of mail in my inbox is in US format, i.e month first, day second,
>> > and
>> > I want it is UK format, day first, then month.  I know how to fix
>> > this in FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
>> > text files. However on OpenBSD, this hasn't worked in exactly the
>> > same way.  As an aside, I was getting a similar problem with
>> > Libreoffice defaulting to USA dictionaries, but that has been fixed
>> > and is picking up its locale properly from one of the text files I
>> > amended.
>> > 
>> > text files where i have the correct variable is :
>> > 
>> > .bashrc
>> > .bash_profile
>> > .xinitrc
>> > .xsession
>> > .profile
>> > /etc/login.conf - yes I did run cap_mkdb.
>> > 
>> > when I issue the locale command from the terminal, it shows all the
>> > correct en_GB.UTF-8 variables. So everything looks OK, but i'm
>> > obviously missing something.  So if there is another text file to
>> > amend I would apprecate any suggestion.
>> > 
>> Don't use evolution, but what about following the advise in the
>> manual:
>
> Well yes, but I like evolution, I've used it for years (on other
> systems).  However I don't like mysteries, even if they are very
> trivial. 
>
>> https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html
>> 
>
> I did already change that.  However it only changes the header view, on
> the email. Not the column view on list of emails.  This is picked up
> from the machine locale settings.

OpenBSD's standard library functions don't support different national
formats, so if Evolution is relying on this (e.g. strftime), it's
expected that it won't work.

Some info in setlocale(3).

-- 
Please keep replies on the mailing list.



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Antoine Jacoutot
On Thu, 2024-07-18 at 09:28 +0100, Mark Gary wrote:
> On Wed, 2024-07-17 at 13:13 +0200, Rob Schmersel wrote:
> > On Wed, 17 Jul 2024 09:59:01 +0100
> > Mark Gary  wrote:
> > 
> > > HI All,
> > > 
> > > I'm trying to resolve a trivial, but annoying problem with using
> > > Evolution mail on my OpenBSD setup. The style of date used in the
> > > list
> > > of mail in my inbox is in US format, i.e month first, day second,
> > > and
> > > I want it is UK format, day first, then month.  I know how to fix
> > > this in FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
> > > text files. However on OpenBSD, this hasn't worked in exactly the
> > > same way.  As an aside, I was getting a similar problem with
> > > Libreoffice defaulting to USA dictionaries, but that has been fixed
> > > and is picking up its locale properly from one of the text files I
> > > amended.
> > > 
> > > text files where i have the correct variable is :
> > > 
> > > .bashrc
> > > .bash_profile
> > > .xinitrc
> > > .xsession
> > > .profile
> > > /etc/login.conf - yes I did run cap_mkdb.
> > > 
> > > when I issue the locale command from the terminal, it shows all the
> > > correct en_GB.UTF-8 variables. So everything looks OK, but i'm
> > > obviously missing something.  So if there is another text file to
> > > amend I would apprecate any suggestion.
> > > 
> > Don't use evolution, but what about following the advise in the
> > manual:
> 
> Well yes, but I like evolution, I've used it for years (on other
> systems).  However I don't like mysteries, even if they are very
> trivial. 
> 
> > https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html
> > 
> 
> I did already change that.  However it only changes the header view, on
> the email. Not the column view on list of emails.  This is picked up
> from the machine locale settings.

Hello.

If you are running under GNOME, you can try going to the control center, 
"System" / "Region & Language".
There you can set up the language and formats.

-- 
Antoine



Re: Frustrating feature in Evolution mail

2024-07-18 Thread Mark Gary
On Wed, 2024-07-17 at 13:13 +0200, Rob Schmersel wrote:
> On Wed, 17 Jul 2024 09:59:01 +0100
> Mark Gary  wrote:
> 
> > HI All,
> > 
> > I'm trying to resolve a trivial, but annoying problem with using
> > Evolution mail on my OpenBSD setup. The style of date used in the
> > list
> > of mail in my inbox is in US format, i.e month first, day second,
> > and
> > I want it is UK format, day first, then month.  I know how to fix
> > this in FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
> > text files. However on OpenBSD, this hasn't worked in exactly the
> > same way.  As an aside, I was getting a similar problem with
> > Libreoffice defaulting to USA dictionaries, but that has been fixed
> > and is picking up its locale properly from one of the text files I
> > amended.
> > 
> > text files where i have the correct variable is :
> > 
> > .bashrc
> > .bash_profile
> > .xinitrc
> > .xsession
> > .profile
> > /etc/login.conf - yes I did run cap_mkdb.
> > 
> > when I issue the locale command from the terminal, it shows all the
> > correct en_GB.UTF-8 variables. So everything looks OK, but i'm
> > obviously missing something.  So if there is another text file to
> > amend I would apprecate any suggestion.
> > 
> Don't use evolution, but what about following the advise in the
> manual:

Well yes, but I like evolution, I've used it for years (on other
systems).  However I don't like mysteries, even if they are very
trivial. 

> https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html
> 

I did already change that.  However it only changes the header view, on
the email. Not the column view on list of emails.  This is picked up
from the machine locale settings.





Re: Frustrating feature in Evolution mail

2024-07-18 Thread Jan Stary
On Jul 18 09:21:14, mwg...@btinternet.com wrote:
> On Wed, 2024-07-17 at 13:22 +0200, Jan Stary wrote:
> > On Jul 17 09:59:01, mwg...@btinternet.com wrote:
> > > HI All,
> > > 
> > > I'm trying to resolve a trivial, but annoying problem with using
> > > Evolution mail on my OpenBSD setup. The style of date used in the
> > > list
> > > of mail in my inbox is in US format, i.e month first, day second,
> > > and I
> > > want it is UK format, day first, then month.
> > 
> > Does Evolution itself have a knob for that?
> 
> No, unfortunately it doesn't.  It picks up its behaviour from the
> locale.  That's definitely how it works on other systems, FreeBSD,
> NetBSD, Linux etc.

Googling "evolution date format", this is the first hit:
https://help.gnome.org/users/evolution/stable/mail-change-time-format.html.en



Re: default route for a subset of addresses

2024-07-18 Thread Kapetanakis Giannis
On 17/07/2024 23:50, Sonic wrote:
> On Wed, Jul 17, 2024 at 11:55 AM Sonic  wrote:
>> The wg interface using an rdomain:
> Got it to work, although it seems a bit convoluted.
> The wg interface config:
> ==
> rdomain 4
> inet 10.2.0.2/32
> wgkey 
> wgpeer  wgaip 0.0.0.0/0 wgendpoint  51868
> !route -T4 -n add default 10.2.0.2
> wgrtable 0
> ==
> I started to realize that that wg interface had no clue how to get
> back to the hosts on the vlan. Attempting to add routes did not work
> so I added the "wgrtable 0" to the interface as that rtable knew the
> routes.
>
> Thanks!
> Chris


makes sense. 

You communicate with peer on rdomain 0 and not rdomain 4.

tunneled traffic goes on rdomain 4

G



Re: default route for a subset of addresses

2024-07-17 Thread Sonic
On Wed, Jul 17, 2024 at 11:55 AM Sonic  wrote:
> The wg interface using an rdomain:

Got it to work, although it seems a bit convoluted.
The wg interface config:
==
rdomain 4
inet 10.2.0.2/32
wgkey 
wgpeer  wgaip 0.0.0.0/0 wgendpoint  51868
!route -T4 -n add default 10.2.0.2
wgrtable 0
==
I started to realize that that wg interface had no clue how to get
back to the hosts on the vlan. Attempting to add routes did not work
so I added the "wgrtable 0" to the interface as that rtable knew the
routes.

Thanks!
Chris



SSHD: banner line contains invalid characters

2024-07-17 Thread misc

Hi,

I am running SSHD over Tor in a VPS in openbsd.amsterdam. In all my 
other setups, in other providers, I do not see this problem happening.
Upon connecting for the first time, I do get a "banner line contains 
invalid characters" error, and the connection is terminated. (MSG1)

Upon connecting for the second time, everything goes smooth. (MSG2)

Problem is happening on my 2 servers in openbsd.amsterdam.

Any directions into debugging this problem? Both via Tor or via SSHD?

System:
uname -a
OpenBSD ..com.br 7.5 GENERIC#188 amd64


*(MSG1):

OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 284: Applying options for ams02
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 22: include 
/etc/ssh/ssh_config.d/*.conf matched no files
debug1: Connecting to 
hug43gx6ftw3rxd3vchtsnbkl5doyqknqdnxua46deaosomghpjmyhqd.onion 
[127.42.42.0] port 60112.

debug1: Connection established.
debug1: identity file /root/.ssh/oams002_2 type 0
debug1: identity file /root/.ssh/oams002_2-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.7
kex_exchange_identification: banner line contains invalid characters
banner exchange: Connection to 127.42.42.0 port 60112: invalid format


*(MSG2):

OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 284: Applying options for ams02
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 22: include 
/etc/ssh/ssh_config.d/*.conf matched no files
debug1: Connecting to 
hug43gx6ftw3rxd3vchtsnbkl5doyqknqdnxua46deaosomghpjmyhqd.onion 
[127.42.42.0] port 60112.

debug1: Connection established.
debug1: identity file /root/.ssh/oams002_2 type 0
debug1: identity file /root/.ssh/oams002_2-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_9.8
debug1: compat_banner: match: OpenSSH_9.8 pat OpenSSH* compat 0x0400
debug1: Authenticating to 
hug43gx6ftw3rxd3vchtsnbkl5doyqknqdnxua46deaosomghpjmyhqd.onion:60112 as 
'xxxREDACTEDxxx'
debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or 
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or 
directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or 
directory

debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
...

dmesg:

OpenBSD 7.5-current (GENERIC) #188: Sun Jul 14 05:56:27 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056952320 (1007MB)
avail mem = 1002041344 (955MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf2760 (10 entries)
bios0: vendor SeaBIOS version "1.16.3p0-OpenBSD-vmm" date 01/01/2011
bios0: OpenBSD VMM
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz, 2300.03 MHz, 06-2d-07
cpu0: cpuid 1 
edx=78ba97f 
ecx=96982203

cpu0: cpuid 7.0 edx=400
cpu0: cpuid 8001 edx=24100800 ecx=1
cpu0: cpuid 8007 edx=100
cpu0: MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 
64b/line 8-way L2 cache, 15MB 64b/line 20-way L3 cache

cpu0: smt 0, core 0, package 0
cpu0: using VERW MDS workaround
pvbus0 at mainbus0: OpenBSD
pvclock0 at pvbus0
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio0
virtio0: irq 3
virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio1: address fe:e1:bb:d4:c3:10
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio2
scsibus1 at vioblk0: 1 targets
sd0 at scsibus1 targ 0 lun 0: 
sd0: 51200MB, 512 bytes/sector, 104857600 sectors
virtio2: irq 6
virtio3 at pci0 dev 4 function 0 "OpenBSD VMM Control" rev 0x00
vmmci0 at virtio3
virtio3: irq 7
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns8250, no fifo
com0: console
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (f32b57a6105ff2a8.a) swap on sd0b dump on sd0b


I am running SSHD over Tor in a VPS in openbsd.amsterdam. In all my 
other setups, in other providers, I do not see this problem happening.
Upon connecting for the first time, I do get a "banner line contains 
invalid characters" error, and the connection is terminated. (MSG1)

Upon connecting for the second time, usually everything goes smooth. (MSG2)

Any directions into debugging this problem? Both via Tor or via SSHD?

System:
uname -a
OpenBSD ..com.br 7.5 GENERIC#188 amd64


*(MSG1):

OpenSSH_9.7p1, OpenSSL 3.2.1 30 Jan 2024
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 284: Applying options for 

Re: default route for a subset of addresses

2024-07-17 Thread Sonic
On Tue, Jul 16, 2024 at 3:23 PM Stuart Henderson  wrote:
> Your route-to should specify the IP to send packets to, not an interface 
> (which would expand to the _local_ address on that interface)

Even then the problem exists. Tried today with an rdomain and the same issue.
I'm thinking it might be something in the way the wireguard is
configured. My other wireguard are all site-to-site and work fine. But
in this case the remote side is not under my control and it's probably
a peer-to-peer type configuration (is there a difference?).
The configuration works fine on a single peer imported as a tunnel
into the standard wireguard app. Trying to use it on a gateway may not
work.
The wg interface using an rdomain:
==
rdomain 4
inet 10.2.0.2/32
wgkey 
wgpeer  wgaip 0.0.0.0/1 wgaip 128.0.0.0/1 wgendpoint  51868
!route -T4 -n add default 10.2.0.2
==

When I ping from one of the client addresses in question the reply
comes back to the 10.2.0.2 address and goes no further. When I ping to
a host on the other side of one of my site-to-site wireguard
interfaces the packet returns to the client, not the gateway.
Same issue as with route-to instead of rdomain.

tcpdump of a wg interface of a ping to a host on the other side of a
site-to-site
11:22:26.784561 192.168.77.182 > 172.24.42.1: icmp: echo request (DF)
11:22:26.803307 172.24.42.1 > 192.168.77.182: icmp: echo reply (DF)
11:22:27.784768 192.168.77.182 > 172.24.42.1: icmp: echo request (DF)
11:22:27.805880 172.24.42.1 > 192.168.77.182: icmp: echo reply (DF)

tcpdump of a wg interface of a ping to a host on the other side of the
problem interface
11:40:47.526857 192.168.77.182 > 98.137.11.164: icmp: echo request (DF)
11:40:47.619352 98.137.11.164 > 10.2.0.2: icmp: echo reply (DF)
11:40:48.526989 192.168.77.182 > 98.137.11.164: icmp: echo request (DF)
11:40:48.618770 98.137.11.164 > 10.2.0.2: icmp: echo reply (DF)

So it may be that the issue is with the wireguard peer that I have no
control over. Or I'm still missing some proper configuration on my
end.



Re: Dual boot with 2 openbsd

2024-07-17 Thread Crystal Kolipe
On Wed, Jul 17, 2024 at 11:05:05AM +0100, 04-psyche.tot...@icloud.com wrote:
> Your point regarding no guarantee for the system to boot to disk 2 is well
> taken. It makes me question if it's worth doing at all. Do yo uhave a sense
> if there is a large enough probability of disk1 failing catastrophically
> enough for the UEFI to directly boot to disk2, rather than being in a bad
> state on disk1?

When hardware fails basically anything can happen, it's undefined behaviour.

In the old days of multi-drop SCSI, one failed disk could literally take out
six others.  Since you're running on modern hardware, the scenario that I
would be most be thinking about is that the machine fails in such a way that
it recognises disk 1 but hangs on boot, which just needs somebody to go in to
the UEFI config and change the boot order in to make it come up again,
(booting from disk 2).

You said that:

On Tue, Jul 16, 2024 at 09:57:20PM +0100, 04-psyche.tot...@icloud.com wrote:
> It is for a system that I will not be able to access physically easily.

Will you be able to reach some somebody on the phone who can follow
instructions to fiddle with the BIOS?  If so, then that might be enough.

If the machine is in a truely remote location with nobody around, and you need
a good guarantee of it continuing to work, it's probably not.



Re: Filesystem corruption on OpenBSD routers after power outage?

2024-07-17 Thread Jan Stary
On Jul 10 17:05:55, tom.sm...@wirelessconnect.eu wrote:
> Hi Jan
> thanks for your Reply and feedback,
>  please find my replies  in line ,
> 
> On Wed, 10 Jul 2024 at 16:28, Jan Stary  wrote:
> >
> > On Jul 10 14:44:28, tom.sm...@wirelessconnect.eu wrote:
> > > we have been using  mfs mounted /var /dev and /tmp for years
> >
> > Why?
> so any writes to disk would be simply written a memory filesystem and
> if  there was a power cut

How often do you get these power cuts?

> there would be no changes happening to the
> disk because it is being just written to memory

To be clear, you are concerned with changes to the filesystem
(not disk as such), which makes a dirty fs and invokes fsck
at reboot, right?

> > > however  the impact of mfs (/var in particular) on upgrades has been
> > > quite painful,
> >
> > How?
> Losing new files in /var if the box is rebooted without first copying
> the /var (in memory) to where the persistent storage is  (on shutdown)

Whht do you mean by "new files"? Those coming to exist
during regular operation (as in /var/run), or "new" if
they get installed under /var on an upgrade?

The above (losing the nonpersistent mfs storage) is exactly
what would happen on a power outage; but what does that have
to do with upgrades? If you reboot (cleanly) after an upgrade,
the content of /var gets stored to persitent storage.

> > > #cat /etc/fstab
> > > ff0023511d131fc2.a / ffs rw,softdep,noatime 1 1
> > > ff0023511d131fc2.b /usr/local ffs rw,wxallowed,nodev,softdep,noatime 1 2
> > > ff0023511d131fc2.d /var ffs rw,nodev,nosuid,softdep,noatime 1 2
> >
> > So you _don't_ have /var on mfs ...
> > Also, softdep no loger exists.
> Thanks  it was an older option (now a noop (for backward compatibility
> ) just checked the manual there...  Ill drop it off the deployment
> script
> 
> > > swap /tmp mfs rw,nosuid,noexec,nodev,-s=262144,-P=/persist-fs/tmp 0 0
> > > swap /var/log mfs rw,nosuid,noexec,nodev,-s=524288,-P=/persist-fs/var/log 
> > > 0 0
> > > swap /var/run mfs rw,nosuid,noexec,nodev,-s=262144,-P=/persist-fs/var/run 
> > > 0 0
> > > swap /dev mfs rw,nosuid,noexec,-P=/persist-fs/dev,-i=2048,-s=32768 0 0
> >
> > Why do you need /tmp to persist?
> Fair point  I was more interested in getting /tmp to be memory mounted
> (dont care about persistence) in that case
> checking manual
> 
> > Why do you have a separate /dev?
> when programs write to /dev/blah  is there a possibility of the
> filesystem being updated...

Above you talk about an upgrade, here about an update.
What you mean is just a write to the filesystem?

I never saw a / filesystem (holding /dev)
been screwed in a way that fsck couldn't get out of
because a file under /dev was being written ...

> > Why don't you have a separate /home?
> it is a router /firewall / network appliance  /not a standard desktop
> / server ...  users are admins... etc .
> >
> > > ###
> > > This seems to solve problems with  upgrades and  package updates,
> basically if the partition was not synced with a copy on shutdown you
> would lose the updated files ...

Wll, you wouldn't have this problem
if you were not using mfs :-)

Filesystem inconsistency after a power outage is normal;
fsck will deal with it. You might lose some files -
with mfs, you lose everything.

Jan



Re: Dual boot with 2 openbsd

2024-07-17 Thread 04-psyche . totter
Thanks a lot to you 3 for your thoughts.

RAID1 on the overlapping capacity: I don't like that idea much because RAID1 
has an extra cost where any modification on disk1 will be performed on disk2. I 
want to reap the benefits of having disk1 for the OS and disk2 for data. That 
makes the overall system much faster, because each drive is ddicated to 1 task, 
and each task is independent.

@Crystal, thanks a lot for all the details.

I am not planning to share the home drive, because indeed I feared the extra 
complications. the extra partition m is beyond the OS partitions.

Your point regarding no guarantee for the system to boot to disk 2 is well 
taken. It makes me question if it's worth doing at all. Do yo uhave a sense if 
there is a large enough probability of disk1 failing catastrophically enough 
for the UEFI to directly boot to disk2, rather than being in a bad state on 
disk1?

Thanks!


Re: Frustrating feature in Evolution mail

2024-07-17 Thread Jan Stary
On Jul 17 09:59:01, mwg...@btinternet.com wrote:
> HI All,
> 
> I'm trying to resolve a trivial, but annoying problem with using
> Evolution mail on my OpenBSD setup. The style of date used in the list
> of mail in my inbox is in US format, i.e month first, day second, and I
> want it is UK format, day first, then month.

Does Evolution itself have a knob for that?

> I know how to fix this in
> FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of text files. 
> However on OpenBSD, this hasn't worked in exactly the same way.

So what happened on OpenBSD, after defining LANG?
(Note that LANG is a fallback if any of the LC_* are unset.)

As you probably know, the base system ignores the locale
except for the character encoding (LC_CTYPE);
that is not the case for packages though.

> As an aside, I was getting a similar problem with Libreoffice defaulting to
> USA dictionaries, but that has been fixed and is picking up its locale
> properly from one of the text files I amended.
> 
> text files where i have the correct variable is :
> 
> .bashrc
> .bash_profile
> .xinitrc
> .xsession
> .profile

If by "the correct variable" you mean LANG=en_GB.UTF-8,
then it sets all the _unset_ LC vars for you.
Can you pinpoint it to which of the LC vars specificaly
is the one that alters Evolution's behaviour (if any)?

> /etc/login.conf - yes I did run cap_mkdb.

What exactly have ypu put in there?

> when I issue the locale command from the terminal, it shows all the
> correct en_GB.UTF-8 variables. So everything looks OK, but i'm
> obviously missing something.  So if there is another text file to amend
> I would apprecate any suggestion.

I would consult Evolutuon's documentation first.
Wouldn't a mail client have a knob for the date format?

Jan



Re: Frustrating feature in Evolution mail

2024-07-17 Thread Rob Schmersel
On Wed, 17 Jul 2024 09:59:01 +0100
Mark Gary  wrote:

> HI All,
> 
> I'm trying to resolve a trivial, but annoying problem with using
> Evolution mail on my OpenBSD setup. The style of date used in the list
> of mail in my inbox is in US format, i.e month first, day second, and
> I want it is UK format, day first, then month.  I know how to fix
> this in FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of
> text files. However on OpenBSD, this hasn't worked in exactly the
> same way.  As an aside, I was getting a similar problem with
> Libreoffice defaulting to USA dictionaries, but that has been fixed
> and is picking up its locale properly from one of the text files I
> amended.
> 
> text files where i have the correct variable is :
> 
> .bashrc
> .bash_profile
> .xinitrc
> .xsession
> .profile
> /etc/login.conf - yes I did run cap_mkdb.
> 
> when I issue the locale command from the terminal, it shows all the
> correct en_GB.UTF-8 variables. So everything looks OK, but i'm
> obviously missing something.  So if there is another text file to
> amend I would apprecate any suggestion.
> 
Don't use evolution, but what about following the advise in the manual:
https://gnome.pages.gitlab.gnome.org/evolution/help/mail-change-time-format.html





Re: Frustrating feature in Evolution mail

2024-07-17 Thread Crystal Kolipe
On Wed, Jul 17, 2024 at 09:59:01AM +0100, Mark Gary wrote:
> /etc/login.conf - yes I did run cap_mkdb.

Don't.

On a small personal system there is no point in using the db format for
login.conf.  Remove the db version and stick to the plain text file.



Frustrating feature in Evolution mail

2024-07-17 Thread Mark Gary
HI All,

I'm trying to resolve a trivial, but annoying problem with using
Evolution mail on my OpenBSD setup. The style of date used in the list
of mail in my inbox is in US format, i.e month first, day second, and I
want it is UK format, day first, then month.  I know how to fix this in
FreeBSD by  including LANG=en_GB.UTF-8 etc in a number of text files. 
However on OpenBSD, this hasn't worked in exactly the same way.  As an
aside, I was getting a similar problem with Libreoffice defaulting to
USA dictionaries, but that has been fixed and is picking up its locale
properly from one of the text files I amended.

text files where i have the correct variable is :

.bashrc
.bash_profile
.xinitrc
.xsession
.profile
/etc/login.conf - yes I did run cap_mkdb.

when I issue the locale command from the terminal, it shows all the
correct en_GB.UTF-8 variables. So everything looks OK, but i'm
obviously missing something.  So if there is another text file to amend
I would apprecate any suggestion.

Many thanks
Mark G.



Re: Dual boot with 2 openbsd

2024-07-17 Thread Abel Abraham Camarillo Ojeda
On Wed, Jul 17, 2024 at 12:02 AM <04-psyche.tot...@icloud.com> wrote:

> I don't use RAID1 because the disks have vastly different capacity (one is
> 4 times the size of the other).
>
>
You can use RAID1 just in the overlapping capacity, just create raid
partitions in both drives having the same size, and partition the rest of
the free space independently

regards


Re: Dual boot with 2 openbsd

2024-07-17 Thread Crystal Kolipe
On Tue, Jul 16, 2024 at 09:57:20PM +0100, 04-psyche.tot...@icloud.com wrote:
> - Install OpenBSD on the 2 drives
>   + drive1 : partition a to k for the OS
>   + drive 2: partition a to k for the OS and partition m for data
> - In UEFI, set up boot priority drive1, then drive2
> - In the OS of drive1, mount only partition m of drive2
> 
> - As long as drive1 does not fail, I enjoy the OS on drive1 and I still make
> use of drive2
> - If drive1 fails, the UEFI will automatically boot on drive2, and I can
> still enjoy the usage of the system, without having needed to access it 
> physically.
> 
> 
> Does this idea make sense?

In theory it will work.  But there are some details that you should consider:

* If drive 1 fails, there is no guarantee that the system will still boot from
  drive 2 automatically.  It depends on the way it failed, the machine could
  hang during the POST, or it might continue to attempt to boot from drive 1
  but crash after reading the first few sectors of the bootloader.

* If drive 1 fails intermittently, (such as due to a bad sata cable), you
  might boot from drive 2 once and start using that alternative OS
  installation, only to boot back in to the system on drive 1 at some point in
  the future.

* If you have any scripts or programs accessing partitions via device names
  rather than DUIDs, then be aware that these device names might change when
  booting from drive 2 with drive 1 present but failed, compared with drive 1
  present and still working, (I.E. during testing and initial setup).

> If yes, any tip on how to do it? In particular, when I install OpenBSD on
> drive2, is it better to run the openBSD installer by having booted on
> drive2, or can I just run it from OpenBSD_drive1 and select drive 2 as
> destination for the new OS?

It shouldn't matter, as long as the correct boot code is written to both drives
and you're using DUIDs everywhere instead of device names.

One detail:

>   + drive1 : partition a to k for the OS
>   + drive 2: partition a to k for the OS and partition m for data

It's not clear whether you are intending to share the 'home' partition between
the OS installs or not.

Is 'm' actually the home partition, or a separate partition for data?

The default automatic partitioning scheme in the installer creates eight
partitions from 'd' onwards, and the last one is '/home'.

If you don't have an EFI system partition on 'i', (which could be the case
despite you mentioning UEFI boot, if you are installing on a softraid crypto
volume, for example), then '/home' will end up as 'k'.  Otherwise it will
likely be 'l', (unless you have other non-OpenBSD partitions on the drives).

Sharing a single 'home' partition between the two installs is certainly
possible, but it brings various complications that you might prefer not to
deal with.  Especially in the case of drive 1 failing intermittently and
booting in to the alternative OS, then going back to the main install, if you
have application programs writing stuff to your home directory and not
expecting it to be changed by another installation of the same application,
then you could easily run in to problems.

It might be best to have a small home directory, and mount the 'm' partition
on drive 2 as /storage or something like that.  Keeping the actual home
directories separate.



Re: Dual boot with 2 openbsd

2024-07-17 Thread 04-psyche . totter
I don't use RAID1 because the disks have vastly different capacity (one is 4 
times the size of the other).

> On 17 Jul 2024, at 00:34, Benjamin Stürz  
> wrote:
> 
> On 7/16/24 10:57 PM, 04-psyche.tot...@icloud.com wrote:
>> Hi all!
>> I want to setup a dual boot system, with 2 OpenBSD system, and I wanted to 
>> run it past you guys, to see if the idea makes sense (and make sure I 
>> implement it correctly).
>> It is for a system that I will not be able to access physically easily.
>> So I bought 2 drives.
>> My idea is:
>> - Install OpenBSD on the 2 drives
>> + drive1 : partition a to k for the OS
>> + drive 2: partition a to k for the OS and partition m for data
>> - In UEFI, set up boot priority drive1, then drive2
>> - In the OS of drive1, mount only partition m of drive2
>> - As long as drive1 does not fail, I enjoy the OS on drive1 and I still make 
>> use of drive2
>> - If drive1 fails, the UEFI will automatically boot on drive2, and I can 
>> still enjoy the usage of the system, without having needed to access it 
>> physically.
>> Does this idea make sense?
>> If yes, any tip on how to do it? In particular, when I install OpenBSD on 
>> drive2, is it better to run the openBSD installer by having booted on 
>> drive2, or can I just run it from OpenBSD_drive1 and select drive 2 as 
>> destination for the new OS?
>> Thanks!
>> Jake
> 
> Why don't you just use RAID 1?



Re: Dual boot with 2 openbsd

2024-07-16 Thread Benjamin Stürz

On 7/16/24 10:57 PM, 04-psyche.tot...@icloud.com wrote:

Hi all!

I want to setup a dual boot system, with 2 OpenBSD system, and I wanted to run 
it past you guys, to see if the idea makes sense (and make sure I implement it 
correctly).

It is for a system that I will not be able to access physically easily.

So I bought 2 drives.

My idea is:

- Install OpenBSD on the 2 drives
+ drive1 : partition a to k for the OS
+ drive 2: partition a to k for the OS and partition m for data
- In UEFI, set up boot priority drive1, then drive2
- In the OS of drive1, mount only partition m of drive2

- As long as drive1 does not fail, I enjoy the OS on drive1 and I still make 
use of drive2
- If drive1 fails, the UEFI will automatically boot on drive2, and I can still 
enjoy the usage of the system, without having needed to access it physically.


Does this idea make sense?
If yes, any tip on how to do it? In particular, when I install OpenBSD on 
drive2, is it better to run the openBSD installer by having booted on drive2, 
or can I just run it from OpenBSD_drive1 and select drive 2 as destination for 
the new OS?

Thanks!
Jake


Why don't you just use RAID 1?



Dual boot with 2 openbsd

2024-07-16 Thread 04-psyche . totter
Hi all!

I want to setup a dual boot system, with 2 OpenBSD system, and I wanted to run 
it past you guys, to see if the idea makes sense (and make sure I implement it 
correctly).

It is for a system that I will not be able to access physically easily.

So I bought 2 drives.

My idea is:

- Install OpenBSD on the 2 drives
+ drive1 : partition a to k for the OS
+ drive 2: partition a to k for the OS and partition m for data
- In UEFI, set up boot priority drive1, then drive2
- In the OS of drive1, mount only partition m of drive2

- As long as drive1 does not fail, I enjoy the OS on drive1 and I still make 
use of drive2
- If drive1 fails, the UEFI will automatically boot on drive2, and I can still 
enjoy the usage of the system, without having needed to access it physically.


Does this idea make sense?
If yes, any tip on how to do it? In particular, when I install OpenBSD on 
drive2, is it better to run the openBSD installer by having booted on drive2, 
or can I just run it from OpenBSD_drive1 and select drive 2 as destination for 
the new OS?

Thanks!
Jake


Re: Mouse profile and behavior changed to wtf after Xenocara compiling

2024-07-16 Thread chohag
I think there is a fundamental misunderstanding here.

Anon Loli writes:
> Hello list, after I compiled ...

Once you have crossed this Rubicon you are a developer and On Your Own.

Not that OpenBSD was ever going to hold anyone's hand.

Use the source, Luke.

> Does this belong in @tech?

No.

Matthew



  1   2   3   4   5   6   7   8   9   10   >