Re: forum software recommend?

2021-11-11 Thread prx
* Paul Wisehart  le [10-11-2021 07:58:08 -0500]:
> 
> Hi!,
> 
> Does anyone recommend a forum software that works well with OpenBSD/httpd?
> 
> I installed phpBB, and it seems fine, but I figured I'd ask here before
> forging ahead.
> 
> Thanks!,
> --
> Paul Wisehart
> 

Hi,
I tried MyBB and it works well.
However, I prefer FUDforum, much simpler and easier to administer IMHO.

Regards.



Re: relayd to match http request according to path and change headers

2021-04-05 Thread prx
* Stephane Guedon  le [04-04-2021 23:59:23 
+0200]:
> Le dimanche 4 avril 2021 11:31:27 CEST, vous avez écrit :
> > Just a idea, have you tried the keyword request ?
> > 
> > Something like
> > 
> > match request path "/static/*" forward to 
> > 
> > Regards,
> > 
> > Christoph
> > 
> 
> Actually, it's not at the forward stage that I have a problem, sorry if 
> I explained wrongly.
> 
> That part works perfect :
> "match request path "/static/*" forward to "
> 
> I am trying to match a request based on the "static" path and set its 
> reponse headers.
> 
> This is the part where I want to improve things:
>  
> match request path "/static/*" response header set "Access-Control-
> Allow-Headers" value "Range"
> 
> And those, I always get syntax errors.

I guess that's because you mix "request" and "response".
You can tag the request if you want : 

```
match request path "/static/*" tag STATIC
match response tagged "STATIC" header set "Access-Control-Allow-Headers" value 
"Range"
```



Re: how to mount phone?

2020-07-14 Thread prx
simple-mtpfs works fine for me : 
 https://www.romanzolotarev.com/openbsd/mtp.html


Le 14 juillet 2020 17:11:04 GMT+02:00, Peter Nicolai Mathias Hansteen 
 a écrit :
>
>
>> 13. jul. 2020 kl. 23:39 skrev Justin Muir :
>> 
>> Hi,
>> 
>> Just wishing to mount my phone to access photos.
>> 
>> Here's the output from dmesg:
>> 
>> ugen0 at uhub0 port 3 "Alcatel U50? Alcatel U50?" rev 2.00/3.10 addr
>2
>> 
>> Any ideas on how this might be mounted??
>
>
>I believe I have at some point managed to mount a phone as storage, but
>not recently.
>
>What usually works better is to install an sftp client (I use AndFTP in
>sftp mode) on the phone and use that to transfer the pictures to your
>machine.
>
>All the best,
>
>—
>Peter N. M. Hansteen, member of the first RFC 1149 implementation team
>http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
>"Remember to set the evil bit on all malicious network traffic"
>delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: Openbsd 6.6 httpd custom 404 page

2020-05-26 Thread prx
No, it's not.
But that would be nice, at least to suggest a link to à search page for a lost 
user. For now, you have to modify sources and compile again.



Le 26 mai 2020 17:34:11 GMT+02:00, Riccardo Giuntoli  a écrit 
:
>Hello there dear OpenBSD fellows.
>
>I would like to change default 404 page in httpd(8), and I've seen in
>this
>list that in past versions is hardcoded into the C sources.
>
>Now it's possible in httpd.conf(5) ?
>
>Very nice regards,
>
>RG.



Re: Contributing to spamd

2020-04-03 Thread prx
Indeed !
Good luck, and thank you ! 

Le 3 avril 2020 18:49:56 GMT+02:00, Aisha Tammy  a écrit :
>Oh that is really good to hear :)
>Thanks a lot phessler!
>
>Here is to hoping it can be included in the next release.
>
>Thanks a lot again,
>Aisha
>
>On 4/3/20 12:28 PM, Denis Fondras wrote:
>> On Fri, Apr 03, 2020 at 08:54:22AM -0400, Aisha Tammy wrote:
>>> Hi devs and all,
>>>   I have been using spamd for quite a while and have been loving it.
>>> I've seen that spamd currently only supports ipv4 and have been
>>> wondering if it was possible to extend it to ipv6. I know that
>workforce
>>> is always limited so I wanted to know if there is anyway to
>contribute
>>> help towards this :)
>>> I admit I'm not the most knowledgeable about ipv6 so I was wondering
>if
>>> there is any small place to start to contribute to spamd and build
>up
>>> from there.
>>> Hoping for some positive response.
>>>
>>> Thanks a lot for your work and hope you are safe,
>>> Aisha
>>>
>> 
>> phessler@ did almost all the work. There are still one issue so it
>did not get
>> in.
>> 



Re: Web documentation available offline by default?

2020-02-28 Thread prx
I made this : 
https://ybad.name/Logiciel-libre/OpenBSD/FAQ-offline.html

Le 28 février 2020 12:27:30 GMT+01:00, Ottavio Caruso 
 a écrit :
>On Fri, 28 Feb 2020 at 06:24, Ingo Schwarze  wrote:
>>
>> Hi Frank,
>>
>> Frank Beuth wrote on Fri, Feb 28, 2020 at 04:22:27AM +:
>>
>> > Is the web documentation (FAQ etc) included in the base system by
>> > default anywhere,
>>
>> No it isn't.
>>
>[...]
>>
>> We don't want to lose the valued contributions of those developers
>> who actually spend all the work maintaining the FAQ or make their
>> work any harder than it is now.
>
>Warning: beginner here.
>
>What about having good old plain text obsd-faq.txt
> mirrored in
>base system?
>
>Or maybe it's there but I could't find it:
>
>oc@OpenBSD:~$ find /usr/share/ -iname *faq.txt*
>oc@OpenBSD:~$



Re: Downgrade 6.6 to 6.5

2019-11-03 Thread prx
Hi,
no and yes, I fear.

Le November 3, 2019 2:41:33 PM UTC, Josh  a écrit :
>hi,
>
>I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
>to find the reason(s) of the high fan spinning.
>Is there a procedure to downgrade to 6.5 or should I just reinstall
>from scratch?
>
>thank you

-- 
Envoyé de mon appareil Android avec Courriel Librem Mail. Veuillez excuser ma 
brièveté.


Re: Tools for writers

2019-11-02 Thread prx
> What tools do people find useful for writing on OpenBSD? By writing I mean 
> long form such as novels and technical books, including plot and character 
> development, outlining, and formatting for publishing (not all the same 
> application necessarily)
> 
Hi,
Not sure for plot and characters.
I would recommend txt2tags [1], txtproc/txt2tags in ports.
There is also a more up-to-date version written in python3 (2], both works
fine.
It can convert txt2tags syntax in different formats, such as html or tex
(useful to get nice PDF).
The most interesting imho are : 

- ``postproc`` and ``preproc`` instruction. Sort of ``#define`` in C or
``\newcommand`` in LaTeX. Very useful.
- ``include``. Also available in LaTeX.

Have a look at [3] for an example. 
One might do markdown + sed + Makefile for the same result.

Using txt2tags, I wrote a ≈350 pages book in PDF [4] and maintain it for
a little more than two years now, very happy with txt2tags.

If txt2tags is not enough, then LaTeX is great, but requires to learn a
lot more to use it correctly.

Regards.

[1]: https://txt2tags.org/
[2]: https://github.com/jendrikseipp/txt2tags
[3]: 
https://framagit.org/prx/auto-hebergement-openbsd/blob/master/src/auto-hebergement-openbsd.t2t
[4]: https://ybad.name/ah/
-- 
prx



Re: rspamd stop rc script doesn't work in OpenBSD 6.6

2019-10-30 Thread prx
* List  le [29-10-2019 21:44:43 +0100]:
> On Sun, 27 Oct 2019 21:29:41 -0700
> Jordan Geoghegan  wrote:
> 
> > On 2019-10-27 17:29, Chris Narkiewicz wrote:
> > > Rspamd stop rc script doesn't work in OpenBSD 6.6.
> > >
> > > 1. Fresh OpenBSD 6.6 installation
> > > 2. pkg_add rspamd
> > > 3. rcctl start rspamd
> > >
> > > Works.
> > >
> > > 4. rcctl stop rspamd timeouts
> > >
> > > Looking at rspamd logs, it looks like it doesn not work
> > > well with SIGTERM. It waits for workers.
> > >
> > > Currently I work around it by adding custom rc_stop():
> > >
> > > rc_stop() {
> > >     pkill -KILL -T "${daemon_rtable}" -xf "${pexp}"
> > >     pkill -KILL -u _rspamd
> > > }
> > >
> > >
> > > Anybody can confirm if this is a problem?
> > >  
> > 

Confirm, I had this issue too and must kill rspamd manually.
-- 
prx



Re: What is you motivational to use OpenBSD

2019-08-28 Thread prx
see : https://why-openbsd.rocks/fact/



cwm bindings enabled after reload

2019-05-26 Thread prx
Hi,
I have the following lines in ~/.cwmrc : 

bind-key M-ampersandgroup-only-1
bind-key M-eacute   group-only-2
bind-key M-quotedbl group-only-3
bind-key M-apostrophe   group-only-4
bind-key M-parenleftgroup-only-5
bind-key M-minusgroup-only-6
bind-key M-egrave   group-only-7
bind-key M-underscore   group-only-8
bind-key M-ccedilla group-only-9
bind-key M-agrave   group-toggle-all

bind-key MS-ampersandwindow-movetogroup-1
bind-key MS-eacute   window-movetogroup-2
bind-key MS-quotedbl window-movetogroup-3
bind-key MS-apostrophe   window-movetogroup-4
bind-key MS-parenleftwindow-movetogroup-5
bind-key MS-minuswindow-movetogroup-6
bind-key MS-egrave   window-movetogroup-7
bind-key MS-underscore   window-movetogroup-8
bind-key MS-ccedilla window-movetogroup-9

Yes, it's for an azerty keyboard.

It turns out that there bindings don't work properly until I reload cwm
with MSC-r.

I can't see any error when launching cwm with -v option.

Any advice how to understand and solve this ?

-- 
prx