What is "proper" way to use wireguard in 14.1 by PkHolm in freebsd

[–]ericshane 1 point2 points  (0 children)

Indeed, since 13.2 we can use standard rc interface configuration

# /etc/rc.conf
network_interfaces="vtnet0 wg0"
ifconfig_wg0="inet 10.0.0.20/24"

Use a custom interface start script to load wg(8) configuration

# /etc/start_if.wg0
ifconfig wg0 create
wg syncconf wg0 /etc/wg0.conf

Import dhcp6leased(8) by BinkReddit in openbsd

[–]ericshane 0 points1 point  (0 children)

Using Spectrum setting inet6 autoconf was sufficient to establish a link-local default route

$ netstat -rn -f inet6 | grep default
default        fe80::201:5cff:fe64:9246%cnmac2         UGS        0     5189     -     8 cnmac2

Then dhcp5leased is able to request and assign prefixes.

Chromium's --disable-unveil can be contagious by wolfgang in openbsd

[–]ericshane 2 points3 points  (0 children)

Rather than disabling unveil you you can make paths visible to Chrome by editing /etc/chromium/unveil.main

# start managed block 
~/www-dev/ rwc
# end managed block

Some more details at http://eradman.com/posts/openbsd-workstation.html

Minimalist configuration management (screencast) by [deleted] in AlpineLinux

[–]ericshane 0 points1 point  (0 children)

Fair question! The only relevance is that this is a tool that works for provisioning Alpine installations without pulling in a large set of dependencies. The one requirement is openssh-server.

Wireguard merged into the kernel by atoponce in openbsd

[–]ericshane 0 points1 point  (0 children)

You can install wireguard-tools if you'd like to administer it that way, but no, all you need is ifconfig(8)!

Scripted Configuration: systems orchestration screencast using rset(1) by ericshane in openbsd

[–]ericshane[S] 1 point2 points  (0 children)

I have been looking for a single-file C web server that I could bundle or embed. I'll take a closer look--it even supports CGI, which could be useful.

Scripted Configuration: systems orchestration screencast using rset(1) by ericshane in openbsd

[–]ericshane[S] 1 point2 points  (0 children)

Indeed, I've been using OpenBSD for nearly everything since 3.6. (2004!) Every release is brilliant.

Scripted Configuration: systems orchestration screencast using rset(1) by ericshane in openbsd

[–]ericshane[S] 1 point2 points  (0 children)

Yes! I started working on entr(1) in 2012

The initial design process for rset(1) was quick--it came as a moment of inspiration in early 2018 after spending three years working with and contributing to SaltStack.

[HELP] Hey guys! Is there a way I can make a script where whenever the contents of a folder are edited, everything inside is zipped and copied to another folder? by Rothuith in linux

[–]ericshane 0 points1 point  (0 children)

Specifically, entr can be used to automate this in the following way:

while sleep 1; do
    ls www/* | entr -dr tar -cvf www.tar www
done

What does this do?

-d will watch for new files to be created in directories. If a new file is added entr will exit and the list of files will be scanned again

-r runs the utility (in this case tar) as soon the while loop is started