Start the kernel under a debugger

2024-10-19 Thread Christian Schulte
Hi @misc, could someone point me to some documentation on how to do the following: Set a breakpoint on e.g. main() in sys/kern/init_main.c or even earlier in locore.S and start the kernel under a debugger to be able to step through the early initialization stages. Searching the web yields quite so

MFA on OpenBSD

2024-10-19 Thread Lars Bonnesen
Any official way of using for instance Google Authenticator for authenticating on OpenBSD/OpenVPN I guess that you can use https://github.com/google/google-authenticator-libpam.git but I would like to rely on OpenBSD only. Regards, Lars.

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Antoine Jacoutot
On 2024-10-19 16:34, Mike Fischer wrote: Perfect! That was it. Many thanks!!! Mike PS. Where did I miss this in the documentation? man rc.subr Am 19.10.2024 um 16:26 schrieb Antoine Jacoutot : • Created the following script and made it executable: # cat /etc/rc.d/radicale3

Re: MFA on OpenBSD

2024-10-19 Thread hahahahacker2009
Vào Th 7, 19 thg 10, 2024 vào lúc 21:07 Lars Bonnesen đã viết: > > Any official way of using for instance Google Authenticator for > authenticating on OpenBSD/OpenVPN > > I guess that you can use > https://github.com/google/google-authenticator-libpam.git but I would like to > rely on OpenBSD

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Mike Fischer
> Am 19.10.2024 um 16:59 schrieb Antoine Jacoutot : > > On 2024-10-19 16:34, Mike Fischer wrote: >> Perfect! That was it. Many thanks!!! >> Mike >> PS. Where did I miss this in the documentation? > > man rc.subr Right! Thanks. For some reason I missed this manpage completely :-( > -- > Anto

Re: Emacs in console: Meta key problem

2024-10-19 Thread Irek Szcześniak
Thank you again, Charles, for letting me know how to configure Emacs so that it recognizes the Meta shortcut keys (e.g., M-x, M-f) sent by the console, which by default encodes them with the eight bit. However, I ran into the problem of using Emacs inside tmux under the console. I thought it

Re: Start the kernel under a debugger

2024-10-19 Thread Mike Larkin
On Sat, Oct 19, 2024 at 11:43:01AM +0200, Christian Schulte wrote: > Hi @misc, > > could someone point me to some documentation on how to do the following: > Set a breakpoint on e.g. main() in sys/kern/init_main.c or even earlier > in locore.S and start the kernel under a debugger to be able to ste

System upgrade just resinstalled old system

2024-10-19 Thread Peter Fraser
I ran sysupgrade and was supprised to still be on the same version of OpenBad. The /var/log/messages shows: Oct 19 11:00:01 gateway syslogd[88983]: restart Oct 19 14:15:12 gateway sysupgrade: installed new /bsd.upgrade. Old kernel version: OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024

rc.d(8) script for non-daemon?

2024-10-19 Thread Mike Fischer
Hi! I’m trying to build an rc.d(8) script for a service that does not daemonize on OpenBSD 7.6 stable amd64. (Actually the service is a Python script, Radicale 3.3.0 to be precise.) Currently everything works but I’m getting a timeout from rcctl start. See section Questions below. Background

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Dan
Hello Mike, without investigating much I noticed these two lines: No home directory /nonexistent! Logging in with home = "/". that could be related to the user home and the kind of stalling maybe *permissive* error (?). I believe to have done something like this compiling an old version of p

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Dan
In my case the file I had, I have in handy was an init.d script and not and rc.d ones. Maybe original or arranged by myself to run smoothly, I do not remember anything clearly, the *produced manufact* was running fine under that OpenBSD version and I attach it for your convenience (AS-IS). Howe

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Mike Fischer
> Am 19.10.2024 um 15:46 schrieb Dan : > > > Hello Mike, > > without investigating much I noticed these two lines: > > No home directory /nonexistent! > Logging in with home = "/". As I wrote, I set up the _radicale user the same way as the port radicale-2.1.12p7 does. That includes a home

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Antoine Jacoutot
On Sat, Oct 19, 2024 at 02:43:01PM +0200, Mike Fischer wrote: > Hi! > > I’m trying to build an rc.d(8) script for a service that does not daemonize > on OpenBSD 7.6 stable amd64. (Actually the service is a Python script, > Radicale 3.3.0 to be precise.) > > Currently everything works but I’m ge

Re: rc.d(8) script for non-daemon?

2024-10-19 Thread Mike Fischer
Perfect! That was it. Many thanks!!! Mike PS. Where did I miss this in the documentation? > Am 19.10.2024 um 16:26 schrieb Antoine Jacoutot : > >> • Created the following script and made it executable: >> # cat /etc/rc.d/radicale3 >>

Re: Emacs in console: Meta key problem

2024-10-19 Thread charles
Hi Irek, Excellent -- this is the best and most elegant solution. Thanks for your careful and persistent research on this, and for sharing your results. With best regards, Charles On 10/19/24 6:55 AM, Irek Szcześniak wrote: Thank you again, Charles, for letting me know how to configure Emacs

This will compile ffmpeg again on a 7.5 vanilla system

2024-10-19 Thread Bermuda T. Cyrus
There seems to be a circular dependency in the graphics/ffmpeg/Makefile port. Here is an updated Makefile. How did you test/build this? > COMMENT=audio/video converter and streamer V= 4.4.5 DISTNAME= ffmpeg-${V} EPOCH= 1 CATEGORIES= graphics multimedi