Re: [PATCH] [cwm] config option to run all apps maximized

2024-04-22 Thread prx
Great, looks like something to completely replace dwm. Thanks

Le 22 avril 2024 16:04:19 GMT+02:00, Slava Voronzoff 
 a écrit :
>Hello, list!
>
>I wrote little patch that add option "maximizeall" to cwmrc (default
>is no) so new windows created maximized.



Re: Upgrade 7.5 /usr full

2024-04-09 Thread prx
Check if you have /usr/ports or /usr/src.

Le 9 avril 2024 15:16:17 GMT+02:00, Ben Jahmine  a écrit :
>Dear all.
>
>I just did my unattended upgrade to 7.5. I previously checked the
>available disk space in /usr, as suggested by the upgrade guide. My /usr
>size is 2 GB, as created by the installer. As this is above 1.1 GB I
>started the unattended upgrade using sysupgrade.
>
>The upgrade failed during the extraction of the sets, but managed to
>boot into 7.5. Now /usr ist at 105% capacity due to df.
>
>I assume, this is not supposed to happen? Is this a issue specific to my
>setup? Or should /usr simply have more space?
>
>Looking forward for some help.
>
>Cheers
>
>Ben
>



Re: Bash instead of ksh

2024-04-01 Thread prx
Run "chsh"

Le 1 avril 2024 18:24:06 GMT+02:00, Karel Lucas  a écrit :
>Hi all,
>
>Instead of ksh I want to use bash as a general shell. But how can I set it up 
>that way? Bash is already installed.
>



Re: Dokuwiki

2023-08-23 Thread prx
See also https://www.dokuwiki.org/install:openbsd

Le 23 août 2023 19:16:27 GMT+02:00, latin...@vcn.bc.ca a écrit :
>>
>>> Am 23.08.2023 um 00:45 schrieb latin...@vcn.bc.ca:
>>>
>>> Hello
>>>
>>> I have installed dokuwiki on OBSD 7.3, but i can not run install.php
>>> from
>>> my Browser.
>>>
>>> php 8.1 is running.
>>>
>>> Permissions after installation:
>>>
>>> ls -la /var/www/dokuwiki/
>>> total 240
>>> drwxr-xr-x   8 root  daemon512 Aug 22 22:20 .
>>> drwxr-xr-x  13 root  daemon512 Aug 22 09:32 ..
>>> -rw-r--r--   1 root  daemon   1688 Aug 22 22:20 .htaccess
>>> -rw-r--r--   1 root  bin  1688 Sep  3  2022 .htaccess.dist
>>> -rw-r--r--   1 root  bin 18092 Sep  3  2022 COPYING
>>> -rw-r--r--   1 root  bin   308 Sep  3  2022 README
>>> -rw-r--r--   1 root  bin   918 Sep  3  2022 SECURITY.md
>>> -rw-r--r--   1 root  bin19 Sep  3  2022 VERSION
>>> drwxr-xr-x   2 root  daemon512 Aug 22 22:20 bin
>>> -rw-r--r--   1 root  bin  1356 Sep  3  2022 composer.json
>>> -rw-r--r--   1 root  bin 22553 Sep  3  2022 composer.lock
>>> drwxr-xr-x   2 www   daemon512 Aug 22 22:20 conf
>>> drwxr-xr-x  13 www   daemon512 Aug 22 22:20 data
>>> -rw-r--r--   1 root  bin  3644 Sep  3  2022 doku.php
>>> -rw-r--r--   1 root  bin 20010 Sep  3  2022 feed.php
>>> drwxr-xr-x  22 root  daemon   1536 Aug 22 22:20 inc
>>> -rw-r--r--   1 root  bin  2537 Sep  3  2022 index.php
>>> -rwxr-xr-x   1 root  bin 20741 Sep  3  2022 install.php
>>> drwxr-xr-x   8 root  daemon512 Aug 22 22:20 lib
>>> drwxr-xr-x  11 root  daemon512 Aug 22 22:20 vendor
>>>
>>> Browser message:
>>>
>>> DokuWiki Setup Error
>>>
>>> The logdir ('log') at ./data/log is not found, isn't accessible or
>>> writable. You should check your config and permission settings. Or maybe
>>> you want to run the installer?
>>>
>>>
>>> What could be wrong please?
>>
>> For DokuWiki to be able to run the install.php script the web browser (or
>> more precisely PHP as running from the web browser) needs to have certain
>> permissions.
>>
>> Generally the web browser (and PHP) will run as user www. So in order for
>> the ./data/log directory to be used permissions need to allow the creation
>> files and directories therein. The default package install currently does
>> this however:
>>  2 drwxr-xr-x   2 root  daemon512 Jul 26 00:52 log/
>>
>> Just chown www ./data/log and it should work.
>>
>> See also: https://www.dokuwiki.org/install:permissions
>>
>> HTH
>> Mike
>>
>
>I found the error, it is not OpenBSD, the first page after installation is
>in English, but if i change language to es, the link does not go to the
>wiki; it goes to the information web page.
>
>Thanks.
>



Re: Block network access completely for certain programs

2023-07-04 Thread prx
You may use a different rdomain?

Le 4 juillet 2023 15:08:35 GMT+02:00, r...@danwin1210.de a écrit :
>How do I block the network access completely for a certain program with a
>blacklist or whitelist, whitelist prefered, with OpenBSD's pf(4)? My pdf
>reader, music player, video player, vim and much more shouldnt have access
>to networking at all. I remember it being possible with the Windows
>firewall program to choose a certain program to be completely
>networking-less. Is this possible with OpenBSD too? I couldnt find
>anything in the man pages or in the FAQ regarding this issue.
>



Re: Lightweight Web browser

2022-12-26 Thread prx
> Can someone recommend a lightweight Browser that support javascript?
> In which I can use gmail?

require webkitgtk40 port to build:

=> https://github.com/mini-rose/rose rose
=> https://surf.suckless.org/ surf

Sad gmail REQUIRES javascript to log in though...



Re: A minimal browser in base

2022-09-13 Thread prx
For what it's worth, I keep a downloadable copy of the FAQ : 

=> https://si3t.ch/pub/openbsd-faq/
=> https://si3t.ch/pub/openbsd-faq.tgz

html is dumped to txt to read with any pager.
One can keep it on a disk if necessary.

Regards.



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