Re: Autocompletion with pass in ksh

2018-05-27 Thread Thomas L.
On Fri, 25 May 2018 08:36:44 +0200
Niels Kobschaetzki  wrote:
> I got a reply on twitter from Roman Zolltarif who wrote a blog post
> about it :)
> https://www.romanzolotarev.com/pass.html#Completions%20in%20Korn%20shell

This seems to be a custom pass implementation.
Anyway, you can get autocompletion for pass (mostly) with

IFS='
'
set -A complete_pass init ls find show grep insert edit generate rm mv cp git 
help version $(cd ~/.password-store; find * -name '*.gpg' | sed -ne 
's/^\(.*\)\.gpg$/\1/p')
IFS=' '

Kind regards

Thomas



Re: Strange behavior when I try to use lladdr

2020-05-22 Thread Thomas L.
On Fri, 22 May 2020 13:12:15 +0300
Денис Давыдов  wrote:

> P.S. offtopic: I turn to the developers: I tearfully ask you to add
> python to the base installation. This would allow the configuration
> to be rolled automatically using Ansible right after install an OS.
> It would simplify the task of configuring OpenBSD on remote hosts.

I solved this by having a task
- name: install python3
  raw: pkg_add python3
at the beginning (raw doesn't need python on the target maschine).

Kind regards,

Thomas



pkg_add: how to specify both flavor and branch

2020-01-25 Thread Thomas L.
Hello,

`pkg_add gnupg` is ambiguous since there is both
gnupg-1.4.23p3-card-ldap, gnupg-1.4.23p3 and gnupg-2.2.12p0, but neither
`pkg_add gnupg%2.2`, `pkg_add gnupg--%2.2` nor `pkg_add gnupg%2.2--`
work. So how do i specify the exact package in this case?
(I know that `pkg_add gnupg-2.2.12p0` works, but I rather not specify
the version down to the patch level in my deploy script.)

Kind regards,

Thomas



Re: pkg_add: how to specify both flavor and branch

2020-01-26 Thread Thomas L.
On Sun, 26 Jan 2020 10:54:25 - (UTC)
Stuart Henderson  wrote:
> You need to know the name of the directory in ports to use this
> notation. Formats vary. Here you would use "pkg_add gnupg--%gnupg2".
>
> If you don't have a ports tree installed and need to find the path,
> install the package interactively and look for the "@comment pkgpath"
> line in /var/db/pkg/$packagename/+CONTENTS, take the last element of
> the directory name.

Thanks, this is the info I was missing. :)



Re: video shows green box on -current

2021-03-16 Thread Thomas L.
On Wed, 17 Mar 2021 00:05:24 +0100
Pau  wrote:
> Any idea?

https://www.openbsd.org/faq/current.html#r20201229 by any chance?

> thanks,
>
> Pau

Kind regards,

Thomas



Re: Ignore some USB devices

2024-02-19 Thread Thomas L.
On Mon, 19 Feb 2024 19:43:14 +0100
Kirill A. Korinsky  wrote:
> I do have two USB audio device:
>
>   ~ $ usbdevs  -v
>   Controller /dev/usb0:
>   ...
>   addr 07: 043e:9a66 LG Electronics Inc., LG UltraFine Display Audio
>high speed, self powered, config 1, rev 0.03
>driver: uaudio0
>   ...
>   addr 13: 041e:3130 Creative, Creative BT-W5
>full speed, self powered, config 1, rev 10.00, iSerial
> D97E0B7F86B95AC32000 driver: uhidev10
>driver: uhidev11
>driver: uaudio1
>   ~ $
>
> both of them is managed by uaudio. How can I dissable the first one,
> without disabling the second one?

you can select which audio device is used with -f/-F flags to sndiod
(details in man-page) in /etc/rc.conf.local. maybe that helps?



Re: sftp server empty password login

2024-03-27 Thread Thomas L.
On Tue, 26 Mar 2024 10:28:11 +0100
Sylvain Saboua  wrote:
> Match User media
>  ForceCommand internal-sftp -d /home/media
>  ChrootDirectory /home/media
>  PasswordAuthentication yes
>  AuthenticationMethods none
>  PermitEmptyPasswords yes

you probably also want DisableForwarding there. otherwise everyone can use
your machine as a proxy. this happened to me with a similar setup to allow
anonymous git cloning. some spammer figured it out and used my server as a
relay. don't be me ... ;)



crontab and /usr/local/{,s}bin

2023-02-14 Thread Thomas L.
hi,

what is the reason that /usr/local/{,s}bin is not in PATH in crontab?
this seems to be the case on all unix-like systems and it regularly
bites people. sometimes someone says it's for security w/o being
able to tell what is being prevented by this. or is it just some
historic default noone bothered to change?

kind regards,

thomas



Re: tcpdump rotating issue with newsyslog

2022-04-10 Thread Thomas L.
On Sun, 10 Apr 2022 17:00:25 -0400
Nick Holland  wrote:
> On 4/10/22 9:39 AM, Yogendra Kumar Chaudhary wrote:
> > I am running the following command in the OpenBSD 6.2.

You should really upgrade. That version no longer gets security patches
for several years.

> So, I'm thinking you probably want a 'b' and a SIGHUP sent to tcpdump.
> You can validate my second point by disabling the compression, I
> suspect you will see your .0 file continue to grow in size, until it
> becomes .1, etc.

What Nick suspects is likely true, but tcpdump will just quit on
SIGHUP. You could restart the capture instead. Capturing network traffic
for days might use a lot of disk space though.

Kind regards,

Thomas



Re: installing packages mentioned as dependency in ports package

2024-06-21 Thread Thomas L.
On Fri, 21 Jun 2024 20:16:57 +0530
Sandeep Gupta  wrote:
> My query is how to install build dependency of a package listed in
> ports?

i have FETCH_PACKAGES=-Dsnap in my /etc/mk.conf so that for all dependencies
pkg_add -Dsnap is tried first (see bsd.port.mk(5) for details). you can also
pass that as argument to make(1).



Re: avrdude can't find usbasp

2024-08-14 Thread Thomas L.
On Wed, 14 Aug 2024 01:47:05 +0300
kodcode  wrote:
> Doesn't work for me.
> Have you tried your solution (with an usbasp)?

the additional group is only applied after you relogin.

$ doas usermod -G dialer tom
$ id
uid=1000(tom) gid=1000(tom) groups=1000(tom), 0(wheel), 735(_wireshark)
$ id tom
uid=1000(tom) gid=1000(tom) groups=1000(tom), 0(wheel), 117(dialer), 
735(_wireshark)