-
rwp
meena, I was hoping you would like it. When I first read that I knew I had to try it.
-
rwp
If the file system can be reduced in size to fit into a ramdisk then the procedure all worked very well.
-
rwp
While I was playing with it I actually ended up screwing up a ZFS file system. So I went through it again to flip it back to UFS. And then again to do ZFS right the next iteration.
-
meena
rwp: I'm down to 3.4 G, so I'll need to temporarily balloon my RAM.
-
meena
i don't think I'll be able to get it much smaller than that
-
meena
I do believe that it'll be smaller on ZFS, thanks to compression ;)
-
rwp
I was just doing it for the exercise so I started with a pristine bare minimum install. Which would fit into ram no problem.
-
rwp
In the blog posting the author copied everything of interest off to another system temporarily to make things small enough.
-
meena
aye
-
rwp
It is a risk. If the system crashes while everything is in RAM then poof! It's all gone in an instant.
-
rwp
So it's good if the only thing on the system is the system itself and no data of note otherwise.
-
cpet
rwp: diskless systems do that
-
meena
-
VimDiesel
Title: 269211 – misc/unicode-emoji - Update to 15.0
-
meena
we were at 5.0
-
rwp
cpet, Diskless systems?
-
cpet
What is that ?
-
rwp
cpet, You said: ":32 <cpet> rwp: diskless systems do that". Do what?
-
yuripv
that!
-
rwp
This sounds more and more like the Meatloaf song by Steinman. I'll do anything for love but I won't do *that*.
-
yuripv
:)
-
yuripv
you won't, but diskless systems do
-
cpet
And the response makes no sense so I’ll continue to say what’s that
-
Dimonax
Does the freebsd API offer any non-root alternatives to the mlock() syscall?
-
parv
What should I be looking for in order to update a "tar"d compressed file (via "xz" or "zstd") created from $HOME, to be stored on exFAT filesystem?
-
parv
Or, a "rsync" of some sort to update the compressed stream
-
rtprio
you're looking for something more complicated than `cp myarchive.tar.xz /mnt/` ?
-
parv
Yes,
-
parv
s/,//
-
rtprio
even rsync will see that the new file is not the same length and recopy the whole file
-
rtprio
i'm not sure what you're trying to solve by not just copying the whole file
-
cpet
who has v6 enabled working like a champ?
-
daemon
zidrav could make you a patch to copy over and apply instead
-
meena
I think tarsnap works similarly, but I'm not sure
-
thorre
Which is the default version of Python in 13.1 RELEASE?
-
thorre
Is it version 3.9?
-
thorre
I run pre-build packages on my machine and see that most of the pre-built packages are of version 3.9. I'll stick to that version if you do not educate me otherwise :-)
-
meena
thorre: I think so. you can check by looking at the dependency of
freshports.org/lang/python3
-
VimDiesel
Title: FreshPorts -- lang/python3: Meta-port for the Python interpreter 3.x
-
thorre
Thank you meena
-
thorre
Hmmm, version 3.3 is being referred. I will do some more reading up on this. Thank you for the pointer to freshports.
-
meena
thorre: no. Runtime dependencies:
-
meena
python3.9 : lang/python39
-
thorre
meena: Thank you for the interpretation, got a bit confusing there for a short while.
-
meena
the version is lang/python3 has almost no meaning
-
meena
s/is/of/
-
last1
can I change a file's access / modification time if I have the desired timestamp in epoch format ?
-
last1
or it must be full date, year, day, etc
-
meena
-
VimDiesel
Title: FreeBSD Manual Pages
-
meena
-
VimDiesel
Title: touch(1)
-
meena
(almost)
-
last1
saw it, was hoping for timestamp :)
-
last1
ok, but I'm trying as they explain there, like so: touch -d file1 2022-11-18T15:50:24 and it says: touch: out of range or illegal time specification: YYYY-MM-DDThh:mm:SS[.frac][tz]
-
last1
maybe the datetime has to follow -d
-
meena
that would make sense, yes
-
meena
last1: look at the SYNOPSIS
-
user062b
Hi
-
meena
the only option that accepts a file is -r
-
user062b
is there a way to build a vm image on linux?
-
meena
user062b: yes. our source tree builds on FreeBSD, Linux, and MacOS.
-
meena
last1: you can also use date -j -f to convert from whatever format you have into whatever format touch expects. Or, you could just use touch -r to copy access times from another file
-
meena
user062b: I think our build runs in GitHub actions (Linux) and on CirrusCI (FreeBSD)
-
user062b
meena:do you mean through "make vm-release" (after building kernel and world)?
-
meena
yes
-
meena
-
VimDiesel
Title: freebsd-src/cross-bootstrap-tools.yml at main · freebsd/freebsd-src · GitHub
-
user062b
thanks, my main use case is to tryout changes in the kernel, but i haven't a way of changing the kernel on an existing image on a non freebsd host, are there other ways except building the image every time?
-
meena
user062b: I use PkgBase.live to install all the kernels
-
meena
I build every kernel that makes sense for a given architecture, and generally use GENERIC-MMCCAM.
-
user062b
meena: thanks a lot
-
meena
user062b: you're welcome!
-
meena
can't miss an opportunity to spread propaganda about PkgBase
-
Grabunhold_
i'm trying to write an rc script for a daemon. i've defaulted ${name}_user to my service user, but as soon as the rc script switches to the service user, daemon (i'm using it to start my service) is unable to create a pidfile because the service can't write to /var/run
-
Grabunhold_
i could of course create something like /var/run/foobar and chown it to my user
-
Grabunhold_
but i'm wondering if there is a standard solution for my problem that i'm missing?
-
Grabunhold_
hm, maybe using daemon's "-u user" facility
-
Grabunhold_
but that would require setting the user in .. ${name}_user2 or something so that rc doesn't eat my username variable?
-
meena
Grabunhold_: i would stick to ${name}_user, and create a /var/run/foobar as pre-start. or you can create it in the port
-
meena
-
ngortheone
-
VimDiesel
Title: seatd.in · ports
-
ngortheone
you can simply use command_args to pass any number of arguments to daemon
-
ngortheone
if I understand your problem correctly..
-
Grabunhold_
meena: looks like a really good template! where can I find docs for these %%PREFIX%% variables?
-
Grabunhold_
ngortheone: thanks for the template, but my problem was about the name of the ${name}_user variable (or the permissions problem with the pidfile, however you want to look at it...)
-
hubertm
"System scripts should be installed from src/libexec/rc/rc.d through the Makefile found there."
-
hubertm
but what if i don't have such a directory in my system
-
hubertm
other directories named rc.d don't contain Makefile
-
gasbsd
There's a Makefile in /usr/src/libexec/rc/rc.d/ wouldn't be that file ?
-
meena
Grabunhold_: those should be automatically replaced by the ports system
-
hubertm
gasbsd: my /usr/src is empty, maybe i need to install a source pkg of some sort
-
meena
Grabunhold_: variables not automatically replaced after in SUB_LIST and PLIST_SUB:
codeberg.org/FreeBSD/freebsd-ports/…main/net-im/gotosocial/Makefile#L25
-
VimDiesel
Title: freebsd-ports/Makefile at main - freebsd-ports - Codeberg.org
-
gasbsd
hubertm: what's you freebsd version ?
-
hubertm
13.1-RELEASE-p3, userland p5
-
gasbsd
hubertm: try cloning the source to /usr/src, git clone --branch releng/13.1
git.FreeBSD.org/src.git /usr/src
-
VimDiesel
Title: src - FreeBSD source tree
-
meena
hubertm: what exactly are you trying to achieve?
-
hubertm
meena: trying to add an rc.d script to be run during the boot
-
meena
hubertm: which one?
-
hubertm
meena: my own script which mounts an external hard drive
-
meena
you don't need to install that from source. you can just place it in /etc/rc.d
-
V_PauAmma_V
Why not edit /etc/fstab for that instead?
-
meena
or add a devd script?
-
hubertm
meena: but something should be done in addition to placing it there?
-
meena
hubertm: rc scripts usually need to be enabled
-
hubertm
V_PauAmma_V: AFAIK fstab has no option to disable file system check if there's something dubious. it can take 20 minutes for booting in that case no matter if i want to use that drive or not
-
meena
-
VimDiesel
Title: fstab(5)
-
Grabunhold_
meena: thanks, i figured they might be Makefile variables by now (i've never written a makefile). at the moment i'm just trying to write the initscript, but i do plan to upstream it eventually, so that will come in handy :)
-
meena
-
meena
background_fsck
-
VimDiesel
Title: rc.conf(5)
-
V_PauAmma_V
Isn't background the default?
-
daemon
yea
-
daemon
it pairs with journaling normally so it does not need to do the heavy foreground style check
-
Grabunhold_
in the meantime, daemon seems to have some kind of problem with the word "run"...
-
Grabunhold_
this works: daemon -S -T footest /usr/local/bin/ergo --version # prints the version to syslog
-
Grabunhold_
with this, "run" never seems to make it to ergo: daemon -S -T footest /usr/local/bin/ergo run --config /foo/bar.yaml
-
Grabunhold_
this has the same problem: daemon -S -T footest -- /usr/local/bin/ergo run --config bla
-
Grabunhold_
other arguments without dashes seem to work too, it's just "run" that seems to get eaten
-
meena
I wonder if it's daemon, or rc.subr
-
meena
Grabunhold_: can you post your rc script as it is now?
-
rtprio
heh, i wrote one for ergo before but i didn't bother with chroot
-
meena
what is ergo?
-
Grabunhold_
meena: yeah, gimme a sek, just came back to the computer again
-
Grabunhold_
ergo is an irc server, fittingly
-
Grabunhold_
rtprio: i'm not going to chroot either
-
rtprio
i don't know why there's not a script in the port
-
Grabunhold_
-
VimDiesel
Title: #!/bin/sh# PROVIDE: ergo# REQUIRE: DAEMON# KEYWORD: shutdown## Add - Pastebin.com
-
Grabunhold_
rtprio: well, somebody has to write it. so I might as well learn how to do it :)
-
Grabunhold_
when starting that script, ergp prints it's help text into the syslog
-
meena
"Bleeding-edge IRCv3 support suitable for use as an IRCv3 reference implementation." nice
-
meena
"High customizability via a rehashable (i.e., reloadable at runtime) YAML config." no. NO! NO!!
-
rtprio
i'll pull mine out in a minute
-
rtprio
meena: yaml engineering, it's all the rage these days
-
meena
the worst Website,
noyaml.com making the best argument
-
VimDiesel
Title: 🚨🚨 That's a lot of YAML 🚨🚨
-
rtprio
-
VimDiesel
Title: dpaste/WJvc (Plain Text)
-
meena
rtprio: what is ${ergo_command}
-
rtprio
daemon, in this case
-
rtprio
it's at the bottom, line 42
-
meena
that's mildly confusing.
-
rtprio
yes, but i haven't looked at it since i wrot it
-
rtprio
but it works
-
Grabunhold_
rtprio: thanks! but i'd still like to understand what's wrong with my config
-
Grabunhold_
looks like it should work?
-
Grabunhold_
if i substitute "run --config (path)" with any other command, ergo seems to get invoked correctly
-
rtprio
if you get a weird egrep i might add a pidfile
-
meena
Grabunhold_: you can run the rc script with set +x
-
Grabunhold_
oooooh it seems like it was all my fault, just a second...
-
Grabunhold_
yeah
-
Grabunhold_
it's --conf instead of --config
-
Grabunhold_
meeeh!
-
rtprio
👍
-
rtprio
i don't remember any other ircd config files being much better than yaml
-
meena
rtprio: YAML is a reckless format. With m4 you know you're holding a straight razor. but YAML claims to be human friendly
-
meena
Grabunhold_: do status / start and restart work?
-
Grabunhold_
meena: can't test, my yaml config is borked and doesn't parse :D
-
Grabunhold_
gotta fix that first
-
meena
write it in json.
-
rtprio
of course
-
meena
json, while being awful itself, is a complete subset of YAML
-
Grabunhold_
iirc ergo uses features that are not in the json subset of yaml, the config is fairly complex
-
Grabunhold_
... i'm configuring the whole thing with ansible, so it's not like this is my first yaml ride haha. i'll eventually dump the config straight from an ansible dictionary i guess
-
Grabunhold_
by the way, while i'm not exactly new to FreeBSD, i'm significantly expanding the scope of things i do with it. just got started with jails (the irc server is a jail, too) and so far it's great
-
Grabunhold_
there was a learning curve of course, but i finally feel like the jails setup is gonna work for years to come. coming from docker and LXD containers on linux i really like how "boring" and "done" things seem to be
-
» meena needs to switch her jails from being configured by Puppet to just being (re)built by buildah and (re)deployed with podman
-
Grabunhold_
meena: hmm, puppet being somewhat like ansible in scope - what's put you off of configuring your jails from puppet? that's exactly what i do at the moment
-
vkarlsen
Buildah? Is that something I should look into?
-
Grabunhold_
with ansible, of course
-
mason
I've almost got LXC wrangled and boring. subuid assignments are still nettlesome.
-
vkarlsen
meena has a tendency of casually mentioning something I've never heard about but absolutely need to have
-
Grabunhold_
i really liked LXD, but canonical started to only support it via snap as of late and i really, really don't like snaps. other linux distros didn't seem to be willing to support LXD.
-
Grabunhold_
at work i'm moving to docker, my private infra is finally moving to FreeBSD completely (been a long time user for my fileservers already, <3 ZFS)
-
mason
Oh, LXD. I misread what you wrote. Not so much interest in LXD here.
-
Grabunhold_
yeah, it's somewhat of an evolution of LXC i guess?
-
mason
A framework around it.
-
Grabunhold_
i'm not even sure if lxd uses lxc as a backend any more? but that's getting offtopic i guess...
-
Grabunhold_
the point was that i'm really happy that jails exist as an alternative :)
-
mason
Jails are in most ways simpler, although there's something to be said for distinct UID ranges in unprivileged containers.
-
cpet
Until the server goes down and all jails go down with it
-
meena
mason: Linux containers seem more complex, because they use the same facility (cgroups) for all kinds compartmentalisations
-
meena
on FreeBSD, network virtualisation is done thru VIMAGE.
-
mason
I wonder what it'd take to have an include directive for jail configs. I'd like to have that.
-
meena
one thing we're missing, and which Solaris and Linux do have is process isolation independent of containerisation
-
Grabunhold_
solaris crossbow would be great to see in FreeBSD, too
-
mason
meena: How about mac(9)?
-
meena
mason: nope, that won't give you what Linux cgroups and contracts give you. mac(9) should be able to act on that facility
-
AllanJude
I've looked at the idea of a 'null' jail, basically a jail that didn't restrict most things, just created an arbitrary group of the processes inside it
-
AllanJude
as well as having a separate "namespace" for PIDs inside jails, as well as uid namespacing etc
-
meena
AllanJude: aaaaand?
-
AllanJude
if someone has a good commercial use case for it, could totally build it
-
meena
-
VimDiesel
Title: jrc: Principles - HedgeDoc
-
mason
-
VimDiesel
Title: Chapter 17. Mandatory Access Control | FreeBSD Documentation Portal
-
AllanJude
I've also been a big proponent of UCL
-
AllanJude
i even started replacing newsyslog.conf etc with UCL, but ran out of steam
-
meena
AllanJude: a lot of my vapourware is inspired by your ideas
-
Grabunhold_
meena: after fixing my config, I can happily report that status and start / restart work with my ergo script :)
-
Grabunhold_
reload works, too!
-
Grabunhold_
:)
-
meena
Grabunhold_: yay!
-
Grabunhold_
big thank for everybodies time and patience!
-
meena
Grabunhold_: I'm looking forward to your ports submission.
-
meena
and if you need help with that, we're here all week. (and also in #bsdports on EFNet)
-
Grabunhold_
meena: will probably take a while, i've never done that and i'm in the middle of porting my private irc server from linux / irc unrealircd / a different machine, plus i'm in the middle of moving myself... but it's definitely on my todolist!
-
Grabunhold_
i'll also try and contribute the script directly to ergo itself, they're collecting init script examples in their repo
-
meena
Grabunhold_: i did fuck all during / after my move.
-
meena
took months to settle.
-
Schamschula
Speaking of init scripts: I've been using an old style init script for weewx (weather station to web, etc., written in Python) that came in the package. Unfortunately, it doesn't start at boot, but works nicely when manually called as a service.
-
Schamschula
I've tried to update it according to the FreeBSD docs, but I haven't gotten it to work at all.
-
Schamschula
-
VimDiesel
Title: weewx/weewx.freebsd at master · weewx/weewx · GitHub
-
Schamschula
Well, what do you know. They've updated it. Ill give that a try!
-
rtprio
unusual place to put a daemon, but looks like it should work
-
Grabunhold_
meena: i'm also overhauling almost all of my IT infrastructure at the same time :D
-
Schamschula
Seems like it works. I needed to adjust a part or two.
-
meena
rwp: i thought for a second I hosed a VM
-
meena
rwp: but, i only uh, did kinda hose it
-
parv
Why do I get "$daily_news_expire_enable is set but /etc/news.expire doesn't exist" in "daily run output" email? /etc/periodic.conf.local :
termbin.com/3rz7
-
parv
There is no "news" in /etc/rc.conf if that matters
-
parv
If not for inane messages about things I had not touched, enabled, I would have created/set up /etc/periodic.conf.local often
-
parv
Oh, and at the end of said email is: /etc/daily.local: No such file