-
ketas
wow dma is easy, echo ALIASES /root/etc/aliases > /etc/dma/dma.conf; echo '*:' user987⊙hdt > /root/etc/aliases
-
ketas
problem solved
-
heston76
Progress
-
ketas
indeed (c) teal'c
-
ketas
also maybe i need to make mail server tutorial
-
ketas
except i don't like the writings
-
kerneldove
ketas i don't get how your jails are filtered by pf running on host's bridge. i can use pf to block all traffic on host bridge, but jails happily send/receive unrestricted. they're vnet, but sounds like yours are too wtf
-
kerneldove
anyone have any ideas why?
-
kerneldove
i'm on 14.4 fwiw but can't imagine that matters
-
ketas
what
-
kerneldove
?
-
ketas
i mean jails use normal networking interfaces
-
ketas
so can be filtered
-
kerneldove
ya and?
-
bdrewery
ketas: sysctl -d net.link.bridge | grep pfil
-
bdrewery
kerneldove: meant to highlight you on this
-
kerneldove
k sec
-
bdrewery
these sysctls control pf on the bridge
-
kerneldove
i'musing defaults
-
kerneldove
ketas you change yours?
-
bdrewery
bridging did change a bit in 15.0
-
ketas
unsure why this even comes into play
-
kerneldove
what does the "il" mean in pfil?
-
ketas
traffic comes in
-
ketas
in that point i can filter
-
kerneldove
ya well i've been p clear so not sure why you're so unsure and confused
-
bdrewery
kerneldove: pfil is packet filter, which isn't strictly pf. It includes ipfw.
-
kerneldove
ahhh
-
ketas
so why does bridge matter?
-
kerneldove
tyvm
-
kerneldove
bdrewery happen to have a rundown of how bridge changed in 15?
-
skered
Does a bridge still reset all interfaces as you add/remove VMs?
-
mason
Oof, seeing lpr going away is a bit of a shock.
-
kerneldove
what's lpr?
-
mason
kerneldove: printing
-
kerneldove
how will ppl print? i never print from fbsd so dunno bout it
-
mason
kerneldove: CUPS, lprng, etc. lpr is simply the traditional line printer daemon.
-
kerneldove
dang, end of an era
-
skered
It would be shame if printing just went away.
-
mason
I think I'll try 15.1 on a laptop, for kicks.
-
kerneldove
15.2 out soon no?
-
elivoncoder
.1 just dropped
-
mason
argh, it used to be easy to get to the releng pages
-
kerneldove
oh .1
-
mason
-
kerneldove
wow 14.6?
-
mason
kerneldove: Yeah, you tend not to get stranded quickly with FreeBSD.
-
wavefunction
:-/ Upgrade instructions for 15.1 missing. I wanna be part of the cool kids
-
robert12
cool kids run CURRENT.
-
tm512
I split the difference and just run STABLE
-
tm512
more of a consistent rolling release and it's not quite as exciting as CURRENT
-
robert12
Same here. I run STABLE in production. And CURRENT only for a specific type of development.
-
MelanieUrsidino
bweeoop
-
tm512
for a server I'd probably just stick with RELEASE, but I like being a bit closer to the bleeding edge on my daily driver systems like this laptop
-
kerneldove
i only upgrade majors when .2 lands
-
tm512
I was kinda forced over to 15 in order to get newer DRM drivers. I wasn't rushing to leave 14-STABLE
-
tm512
ended up upgrading my laptop's wifi card to an AX200 around the time I was upgrading though and that might've pushed me to 15 if the GPU stuff hadn't. I remember seeing that 14 was still behind on iwlwifi patches, and it's already not great on 15/16
-
tm512
I suppose AX200 on iwlwifi on 15/16 is more stable than my old AC 9260 on iwm on 14 though
-
cullum_
iwlwifi has been good for me on 15.1-RELEASE. been running the RCs. there is a bug on suspend and resume that is fixed in 15/stable
-
cullum_
but, i have a good enough workaround for 15.1-RELEASE for now. I just wrote an rc.d service to bring wlan0 down/up on suspend/resume
-
tm512
that issue is finally fixed? it's still an issue on this STABLE build from a couple weeks ago
-
kerneldove
really great to see fbsd taking laptops seriously now
-
cullum
-
kerneldove
important for us to be able to run fbsd on every computer not just server
-
cullum
appears to have been fixed on may 27
-
cullum
I just spent a ton of time getting 15.1 working well on my thinkpad x1, i wrote up everything here:
sacredheartsc.com/blog/freebsd-15-on-a-laptop
-
cullum
Im using kde + wayland + iwlwifi
-
kerneldove
nice!
-
robert12
Did you enable X11 compat in wayland?
-
cullum
Not exactly the smoothest experience to get working, but still, the improvements are crazy from just a few years ago
-
cullum
robert12: i'm not sure. I didnt do anything to explicitly enable it...and i dont see any x11 clients in my session. pure wayland afaik
-
robert12
Cool. It's suppose to be a lot more secure if you do that.
-
cullum
I had to build the emacs port with native wayland support
-
tm512
I guess I need to double check because I'm on stable/15-n283794-7fa638d6f7cf and it seemed like the suspend/resume bug was still occurring
-
rwp
mason, lpr is going away? :-( Though on a desktop it is almost impossible to not have cups installed since everything depends upon cups and pulls it in. And cups shadows lpr. lpr is more solid and reliable. But then cups shadows it.
-
cullum
yeah, definitely hit up that bug report if you are still seeing that issue on latest 15/stable builds
-
tm512
though to be fair I was in the habit of always just running netif restart wlan0 every time I'd wake from suspend
-
tm512
hard to remember if I checked whether it was connecting all on its own after resume
-
cullum
tm512: if you look at the bottom of the post i linked, there is an rc.d service for suspend and resume that does exactly that :-)
-
tm512
when I was on CURRENT, I had the stop/start stuff in my rc.suspend/rc.resume, but when I went back to 15, I never got around to re-adding it
-
tm512
I'll check resume right now
-
tm512
(might end up timing out, I dunno)
-
tm512
oh, I guess it is fixed?
-
cullum
sweet!
-
tm512
the last couple weeks I might've not been giving the driver enough time to reassociate with the AP before assuming the driver was borked and needed netif restart
-
tm512
weird, so the other day, I could not bootstrap gammastep's configure script stuff, but now it's working. I'm not sure what changed
-
tm512
I guess sidestepping ports/pkg and building manually is the way to go for stuff like this where I don't like FreeBSD's default build flags
-
kerneldove
i want to append a line to a file only if the file doesn't already contain the line. is `grep -qF -- "$LINE" "$FILE" || echo "$LINE" | sudo tee -a "$FILE" > /dev/null` 100% right?
-
rtprio
well, it's 100% worse than real config management
-
MelanieUrsidino
?!
-
kerneldove
not what i asked
-
kerneldove
and what do you use, ansible?
-
kerneldove
rtprio
-
rtprio
puppet
-
kerneldove
ok and what does it do under the hood to make sure a file has a line in it only once?
-
rtprio
file_
-
rtprio
uh, it has a fuck ton of ruby
-
kerneldove
k and that's somehow better than running a command line?
-
rtprio
your hack looks like it could work, some of the time
-
Ozymandias42
kerneldove, why not just `echo <newline> $(cat file) | sort | uniq | tee file` ? seems more robust
-
kerneldove
Ozymandias42 how's it more robust?
-
Ozymandias42
honestly haven't really thought that far but this doesn't branch. It's idempotent
-
kerneldove
ya that is pretty nice
-
kerneldove
well it modifies change time unnecessarily
-
Ozymandias42
hmm. true
-
robert12
puppet is ruby but ppl write it like perl :))
-
nimaje
kerneldove: if you stay with shell, you should switch to an if there
-
kerneldove
would kinda prefer a command that doesn't need shell if possible?
-
kerneldove
does ``grep -qF -- "foo" /path/to/file || echo "foo" | sudo tee -a /path/to/file > /dev/null`` require shell?
-
nimaje
yes for the pipe, redirect and the or (poor mans if)
-
kerneldove
dang, ok mind showing me how you'd rewrite it to be better?
-
nimaje
if grep -qF -- "foo" /path/to/file; then echo "foo" | sudo tee -a /path/to/file > /dev/null; fi
-
kerneldove
mind if i ask why that's better?
-
nimaje
because that better communicates the intend and isn't problematic to extend to more complex use cases
-
kerneldove
is it portable/standard sh?
-
nimaje
yes of course
-
kerneldove
ok that's awesome tyvm
-
Ozymandias42
"poor mans if" lol. even in scripts I often do [[ cond ]] && codeA || codeB just more readable sometimes.
-
Ozymandias42
especially if stretched over multiple lines
-
Ozymandias42
also even that shorthand is trivial to extent. just: codeA => { codeA ; ... codeN ; }
-
nimaje
and you always add a comment about how you made sure that codeA produces a succesful exit code, so that codeB doesn't get run if codeA run?
-
Ozymandias42
correct me if I'm wrong but that shouldn't happen, right? codeB being run is dependent on the exit code of cond not codeA
-
Ozymandias42
..oh yeah. I see. I am wrong. I always treated that construct as ternary operator but it isn't. it just (badly) emulates the behaviour of one
-
Ozymandias42
thanks! I've been using this for years but never consideres those kinds of side-effects
-
nimaje
hence "poor mans if"
-
kerneldove
nimaje what do you think of > /dev/null vs >/dev/null like i see ppl use sometimes
-
nimaje
the later just skips some optional whitespace, I use both depending on my mood
-
kerneldove
ok tyvm, really helps to have an expert look over stuff i'm new to
-
kerneldove
nimaje just tested your code and it doesn't actually work. it keeps appending the text
-
nimaje
oh, yeah, I forgot the ! to invert the condition of the if
-
kerneldove
where at? i haven't done that syntax before
-
nimaje
if ! grep …
-
kerneldove
yep there we go!
-
kerneldove
tyvm
-
yourfate
back from 15.1 ;D
-
yourfate
so, should I convert go pkgbase? :D
-
kerneldove
ya pkgbase is the future
-
wildeboskat
Hey so 15.1 was supposed to bring the KDE option in the installer (it was postponed to 15.1)
-
wildeboskat
Is that still coming?
-
kerneldove
is vuxml going to be deprecated? thought i read something about that a bit ago
-
sbr
fun trying a 15.0 -> 15.1 upgrade via pkgbase... lets see if it comes back from reboot
-
kerneldove
wow, big moment
-
kerneldove
5+ years in the making
-
wildeboskat
Hmm I'll wait for 16 with pkgbase
-
Guest437
forgot to reconnect to chat but that worked great
-
kerneldove
what did
-
kerneldove
are you sbr?
-
sbr
yes, pkgbase update
-
kerneldove
that's really great news
-
kerneldove
so you're on 15.1 now?
-
yourfate
did you use the pkgbaseify?
-
sbr
yea, FreeBSD fiend 15.1-RELEASE FreeBSD 15.1-RELEASE releng/15.1-n283562-96841ea08dcf GENERIC amd64 amd64
-
sbr
and yes, I originally convereted with pkgbaseify
-
kerneldove
nice
-
kerneldove
run into any issues?
-
yourfate
I think I'll take a snapshot, then run pkgbasify
-
sbr
not yet ;-)
-
sbr
I'll wait a few hours and poke thing before I do my prod machine
-
sbr
kerneldove: I did pkgbaseify previously on a 14.x machine and was fine, and most recently from a fresh 15.0 install. But I assume milage will vary depending on complexity of setup
-
kerneldove
ya i'm just excited about pkgbase being finally here
-
kerneldove
like i said, 5+ years
-
sbr
heh, woops, forgot I ran a script to restart all my jails in the background
-
yourfate
time to destory old boot envs
-
sbr
ah, not surpsing but I had to pkg update -f, for pkg upgrade to pickup 15.1 pkgs, now updating pkgs
-
sbr
surprising*
-
yourfate
am now on pkgbase :D
-
kerneldove
nice!
-
kerneldove
any hiccups
-
kerneldove
?
-
yourfate
nothing
-
yourfate
I created a full snapshot of the disk before (vserver), then ran the pkgbasify script
-
kerneldove
awesome
-
sbr
last piece, updated jails. doas bastille bootstrap --pkgbase 15.1-RELEASE;oas bastille upgrade -a dev-db 15.1-RELEASE
-
sbr
then one of my fav bastille commands, doas bastille pkg ALL upgrade -y
-
sbr
~20 jails now running 15.1
-
sbr
ok, I wrote this up, will try and do this more often.
tuhat.net/o/8by3/p/freebsd-15-1
-
sbr
And yea, tuhat.net runs on freebsd, obvi
-
rtprio
nice writeup sbr
-
mason
rwp: Yeah, it was in the release notes.
-
scoobybejesus
14 hours late to the stargate reference, but I feel compelled to give ketas the thumbs up
-
rwp
I am on the way to BSDCAN! And so have not had a chance to read the release notes yet. Bummer that it is being removed in the middle of a release cycle in a point release though. However as I said it is almost impossible to actually use due to cups being forced in ahead of it instead.
-
wildeboskat
Does pkgbase also have a replacement for freebsd-update IDS?
-
skered
pkg?
-
skered
pkg-check rather.
-
ketas
scoobybejesus: indeed
-
wildeboskat
Ah thanks
-
rtprio
i had a pkgbase question, with the repo "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}", how do i bump minor once to move from _0 to _1?
-
rtprio
pkg -o VERSION_MINOR=1 upgrade doesn't seem to to do it
-
skered
-
skered
I get the feeling that wiki is old info?
-
rtprio
i feel like once it's on 15.1, then it goes back to the exact same file; feels awkward
-
mfisher
my pkgbase upgrade from 15.0 to 15.1 went super smoothly with the
freebsd.org/releases/15.1R/upgrading docs
-
mfisher
really appreciate everyone's hard work on this
-
rtprio
pkg -oABI=FreeBSD:15:$(uname -p) -oOSVERSION=1501000
-
rtprio
there it is
-
rtprio
i guess with _latest i could avoid this
-
mason
So, someone replied to the announce list post. Is freebsd-update not able to jump to 15.1??
-
mason
...for systems not installed with basepkg of course...?
-
s2r
Inside a jail I can't use pkg, everytime I try pkg update the process says "Waiting for another process to update repository FreeBSD-ports" but there are no other processes updating.
-
mason
s2r: There's probably a correct answer, but I'll chroot into a jail sometimes from outside to do update-related things that the jail won't allow in its own context.
-
s2r
mason, Ok, I will try updating it from the outer realms.
-
mason
s2r: In that particular case, I wonder if something left an errant lock in place.
-
rwp
mason, I think that person probably has a pkgbase updated system and then tried to use freebsd-update on it. It's a one-way trip. If you use pkgbase then you must continue upgrades using pkgbase. I think.
-
ridcully
mason: i updated from 14.3 to 14.4 to 15.1 with freebsd-update just fine. i was somewhat confused, that announce@ is open to mere mortals though
-
mason
Thank you both.
-
mason
And ridcully - yeah, I was surprised by that too. That said, I bet it's closed now. :P
-
voy4g3r2
ohhh passthrough features in bhyve(8)
-
s2r
mason, I tried removing every .lock and sqlite cache.
-
mason
s2r: Could be a kernel advisory lock without a physical presence. I'm not sure how pkg does its locking.
-
mason
Might not go away until the jail comes down, or if you're very unlucky, until you reboot the host.
-
MelanieUrsidino
fnarr
-
s2r
mason I restarted the jail many times already and every time the same lock error.
-
spork_css
s2r: this:
forum.opnsense.org/index.php?topic=42054.0 and this:
freebsd/pkg 69e28e7a0 might have some info on the lock issue - the first suggests that some bugginess results in a lock sticking around after a dns failure, the second has a command to clear an entry in sqlite that tells pkg something is still in progress
-
beowuff
And... both hosts and all my jails are on 15.1. All the programmers and testers rock. Everyone in here rocks. We salute you!
-
s2r
spork_css thanks I will read them.
-
spork_css
also just curious if "ls -la /var/db/pkg/repos/*/lock" returns anything...
-
Remilia
hmm 15.1 kind of broke my 'build kernel packages without building world' script with flua suddenly not being found and I tracked it down to Makefile.inc1 not having /usr/libexec in PATH when create-packages-kernel calls create-kernel-packages, and now I wonder how I can run-time hot-patch this without editing the file itself
-
JurassCZ
Hi, does anybody uses that native sh shell? Just curious, it's really spartan software. It even doesn't save command history properly. No sure if I should instead install bash and use sudo or doas instead of login as root into that ancient Bourne shell.
-
pmc
I personally use zsh - I figure if I'm already installing ports for other purposes I might as well also grab a shell
-
JurassCZ
pmc: do you use sudo then?
-
pmc
yup
-
pmc
that or doas, depending on my mood when I'm setting up the system
-
pmc
personally I'll only skip those if I'm trying to set up a system without ports, which is usually just a learning exercise to learn more about the base system :)
-
JurassCZ
I was thinking that i will try to stay with native software, but it looks more and more impossible. There ae some great commands like gpart, but this sh shell is really a bit too much.
-
scoobybejesus
I am perfectly happy with bin/sh
-
Mahiro
JurassCZ: sh does support history
-
Mahiro
JurassCZ: HISTFILE File used for persistent history storage. If unset ~/.sh_history will be used. If set but empty or HISTSIZE is set to 0 the shell will not load and save the history. — sh(1)
-
Mahiro
it used not to but that was quite a while ago
-
rtprio
JurassCZ: it's a perfectly fine shell, but if you do a lot of shell or are used to fish/bash/zsh just use them
-
FatalFUUU
pkgs.org says vikunja is in the official repo, but cannot install/search it - am I missing something? (v15)
-
Mahiro
I think I may have solved my package build issue by adding make bootstrap-tools to the process
-
FatalFUUU
Ive solved my problem, its in latest and not quarterly and pkgs.org doesn't show the difference
-
FatalFUUU
very recently added, since it was in 14 wasnt originally concerned. a new process learned anyway
-
voy4g3r2
is there anyway to determine BEFORE a restart.. of an upgraded kernel that .. a module will not work?
-
voy4g3r2
everytime i upgrade i always seem to have to MANUALLY login to a machine to ensure net/realtek-re-kmod198 works
-
Mahiro
bhyve?
-
Mahiro
oh
-
Mahiro
then probably not
-
Mahiro
voy4g3r2: are you restarting with the new kmod version installed?
-
voy4g3r2
the freebsd-update is saying, it MAY not work and to rebuild
-
voy4g3r2
but then i am in the chicken and egg issue.. which means i get to drag the machine, from remote location, and plug keyboard/monitor to fix
-
Mahiro
bhyve
-
Mahiro
create a VM with the new kernel version, build the kmod port there
-
» Mahiro simply builds everything in a Hyper-V VM that the actual hosts fetch everything from afterwards in package form
-
Mahiro
the VM has a generic kernel and no modules being loaded
-
Mahiro
(because the hv NIC driver is there already)
-
ant-x
Hello, all. I plumb forgot the core FreeBSD tool (installed by default) that can show the current traffic (in MB/sec) across any or all interfaces. Can you please name it?
-
Mahiro
ant-x: `systat -ifstat`?
-
elivoncoder
does wpa3 work for anyone
-
ant-x
Mahiro, that's it. Thanks. I wonder where I heard of it the first time, because I was not able to find it.
-
ant-x
elivoncoder, I have no such executable.
-
MelanieUrsidino
ant-x, It's not an executable, it's a protocol for wireless network encryption
-
JurassCZ
Mahiro: It does support history, however it;s kind of buggy, often it's not stored properly and i really depend on that functionality
-
Mahiro
JurassCZ: pkg install dash or something
-
ant-x
Oh :-) . Beg pardon. I have WiFi-enabled machine with FreeBSD at hand, but I vagualy remember I have only used wpa2.
-
ant-x
JurassCZ, sh is a complete Bourne shell. dash is not made for humans!
-
ant-x
^ And nor is dash native to FreeBSD.
-
ant-x
JurassCZ, don't tell me you are not using FreeBSD's vi, nvi2.
-
JurassCZ
Mahiro: Can't be used as Root. If I will use dash, I will have to use also sudo and never use root
-
wavefunction
hah. I've figured out how to use nvi, but I prefer vim :D
-
Mahiro
you're not supposed to use your system as root
-
Mahiro
wavefunction: this reminds me that we need vim-classic as the default vim :\
-
Mahiro
JurassCZ: like seriously, do not log in as root, only use su/sudo/doas when required, and do not set NOPASSWD
-
ant-x
Mahiro, vim classic, or evi .
-
ant-x
Mahiro, doas has problems: I have too replcate my environment for root too feel comfortable, e.g.: I use The Traditional Vi (
ex-vi.sourceforge.net) as main editor, with an hierarchical system of startup scripts in my home.
-
ant-x
-1s/too/to/g
-
kona
JurassCZ: there's really no reason not to use a shell you like. install one from pkgs and use it for yourself.
-
ant-x
Over in #vi, there are some real vi masters!
-
kona
and it's good hygiene, generally, to use sudo or doas instead of spending a lot of time in a root shell.
-
ant-x
What if one want to be feel unique and BSD-ish?
-
kona
AND
-
kona
ant-x (I count that as a "shell you like")
-
Mahiro
ant-x: then you `chsh -s /usr/bin/tcsh`
-
» Mahiro hides
-
kona
if you need to be root, there's nothing stopping you from invoking, e.g. tcsh -l or bash --login or fish --login once you have su'd to root.
-
ant-x
kona, no, I mean my .profile and .shrc &c.
-
ant-x
Is it not bad hygiene to do ``doas sh'' ?
-
kona
well. for zsh you can put all that zsh stuff in your zshrc
-
Mahiro
was it 12 when root shell was changed to sh?
-
kona
and keep the .profile and .shrc to the lowest common denominator
-
ant-x
doas will use the environment of the target user, not of the user that invoked doas .
-
ant-x
Mahiro, what was it before sh ?
-
Mahiro
csh of course
-
kona
doas will but all the shell niceties you have in whatever your user shell are substituted first before doas is even run.
-
ant-x
Ah! Not Bourne-compatible?
-
voy4g3r2
Mahiro: The kmod is already installed and on 15.0 and when i did freebsd-upgrade -r 15.0-RELEASE it informed me these MAY not work
-
voy4g3r2
so i am basically trying to get AHEAD of it before a restart.. because if they won't work.. then i gotta move the machine :()
-
Mahiro
voy4g3r2: and this is why you need a VM to build it for the new kernel if it is not available from repos
-
ant-x
kona, I lose my vi mode, set by ``set -o vi'' in my .shrc .
-
voy4g3r2
hrm.. so even though the port is installed now.. it will NOT work.. with an upgrade
-
kona
ant-x: is that a bourne shell feature?
-
ant-x
^ Unless I do that in root's shrc, too some way or other (symlinking &c).
-
Mahiro
as poudriere does not recommend using jails newer than host
-
ant-x
kona, a POSIX shell feature, available in FreeBSD's sh .
-
ant-x
(as well as in bash)
-
Mahiro
voy4g3r2: kernel modules are linked against a given kernel; kernel ABI is not guaranteed to be stable
-
kona
ok well. idk why you would lose your vi mode then if you are issuing doas commands from your user shell.
-
kona
but i probably misunderstand what you are trying to say
-
voy4g3r2
yup.. so i guess once i do the restart i gotta manually install, thanks
-
voy4g3r2
i may hold off for a little
-
Mahiro
kona: sudo sh will run sh with your current environment including $HOME; doas will $HOME=user-you-are-switching-to
-
Mahiro
doas sh will not use your existing rc file
-
Mahiro
you will need a duplicate in that target user's home
-
kona
i think i can count on one finger the number of times i have needed root to do something in my $HOME
-
Mahiro
it is not about doing something in $HOME
-
ant-x
kona, using vi mode all thorough while on the shell.]
-
Mahiro
it is about sh loading $HOME/.shrc
-
ant-x
Mahiro, yes, I think sudo is differnt from doas in that way.
-
Mahiro
'it depends'
-
ant-x
-
Mahiro
at least on my system sudo zsh definitely loads target user's .zshrc
-
kona
i think i can also count on one finger the number of times i have wanted to have root use my .shrc for anything, at least after i understood why having root have a mostly pristine environment is a Good Idea.
-
ant-x
Mahiro, yes, indeed.
-
kona
but. ok.
-
kona
so, use sudo.
-
kona
OR
-
Mahiro
sudo vs doas holy wars
-
ant-x
kona, e.g. I want to edit a file as root. I issue: `e /usr/local/etc/torrc` , where e is my script lanching my self-compiled vi .
-
kona
i guess, if you must, su to root and then invoke the shell you want, after copying your rc files to root's home dir.
-
» Mahiro uses doas mostly for weird scrips
-
Mahiro
scripts*
-
ant-x
Mahiro, why not sudo for weird scripts?
-
kona
ant: put your self compiled vi in /usr/local/bin and your 'e' script as well.
-
kona
or maybe a site-local directory
-
kona
and put that in your paths (or in the system default paths)
-
Mahiro
better yet, make a local port
-
Mahiro
build with poudriere!
-
ant-x
kona, I will also need to provide my ~/ex and .shrc.
-
ant-x
Oh! Building it as-is was hard enought (for me).
-
kona
ln -s will do that, if you absolutely need them automatically sync'd
-
ant-x
Indeed.
-
Mahiro
sometimes you just have to respect religion
-
ant-x
But linking root's stuff from a user's stuff is ... the wrong direction of dependency.
-
rtprio
everyone is on about the poudriere kool-aid
-
kona
then put it in /usr/local/etc and have users (including root) that need it, link to it there
-
ant-x
I have also modified The Traditional vi to not use sbrk(2) for memory management!
-
ant-x
kona, right: I keep that possibility in mind.
-
kona
but remember it's.... "your" exrc. so maybe putting it in a sitewide share isn't quite right, either.
-
rtprio
i'm not following what problem you're trying to solve
-
kona
like, if five other users have an account on the machine, maybe they don't need access to your exrc.
-
ant-x
kona, I agree, but that script is not secret, anyway.
-
ant-x
rtprio, invoking doas with the source user's environment.
-
rtprio
doesn't doas have some sort of keepenv/setenv
-
ant-x
DOAS.CONF(5)/keepenv might help -- will test.
-
ant-x
^ also considered dangerous.
-
ant-x
But I'll ingnore the warning.
-
rtprio
why does he need his environment in his root shell? it's the root shell
-
kona
they want traditional ex/vi (heirloom ex/vi) with their shrc and exrc everywhere they need to edit stuff.
-
ant-x
rtprio, e.g. to use my editing setup, with my $EDITOR=e, referring to my wrapper around my self-compiled vi editor.
-
rtprio
ok, aside from why does it need to be wrapped
-
ant-x
It is no where near impossible. There are many options to try.
-
rtprio
just checkout a copy of your dotfiles into your root shell
-
rtprio
but why are you lingering in root shell enough to need your dotfiles
-
ant-x
rtprio, there may reasons to have a wrapper around vi. One of them -- to use extention-specfific configuratin of the editor.
-
ant-x
rtprio, re: checkout my dotfiles -- right, it is yet another solution.
-
ant-x
rtprio, I am just editing files no accessible from my normal user.
-
ant-x
Not lingering, no.
-
ant-x
Not to mention that sudo solves it automatically and effortlessly :-)
-
rtprio
i guess this is just not a problem i've ever had using my normal day to day editors and sudo or doas
-
ant-x
Sounds plausible.
-
Mahiro
I usually copy the configuration file, make another backup copy, edit locally, then install(1) over to the old location
-
ant-x
Thanks to all for your advice!
-
Mahiro
because paranoia
-
rtprio
Mahiro: it's not paranoia if the filesystem is actually after you
-
ant-x
Mahiro, that's too much of monkey business unless the file is very securyt-critical!
-
ant-x
Hmmm, and I could automate the three-stage-operation with a shell script :-)
-
Mahiro
rtprio: look, every time I have a long, long build running and need to hibernate my PC I am like, can I just do that? what if hibernating corrupts my build?
-
ant-x
1) doas cp 2) doas chown 3) e #edit locally 4) doas install 5) rm #local copy
-
Mahiro
so I have a lot of paranoia/anxiety
-
rtprio
oh, i gave up shutting down my pc long ago
-
Mahiro
ant-x: you forgot backing up persimmons and uid/gid
-
ant-x
paranxiety
-
rtprio
you realize you editor makes a copy, right?
-
ant-x
Will add them in the next commit :-)
-
Mahiro
you would really want those persimmons
-
ant-x
If you are parsimonous.
-
Mahiro
rtprio: electricity costs and also noise
-
ant-x
rtprio, Editor makes a copy? In the FS? No. Do you mean ex-preserve ?
-
ant-x
I must go to bed now, to dream about my new imagined smooth and steramlined edit-as-root-via-doas workflow.
-
ant-x
Good bye to all.
-
rtprio
i don't know what ex-preserve is
-
hernan604
hi, im trying to upgrade from 15.0 to 15.1 and i need to do the bootloader step. but im not finding the ??bootloader location?? here is my output
termbin.com/x708
-
hernan604
-
hernan604
suggestions ?
-
rtprio
it's one of the ones matching \efi\freebsd\loader.efi
-
hernan604
riight
-
rtprio
that's the longest efi list i've ever seen
-
hernan604
lol
-
hernan604
yeah i dont know why it has so many crap there
-
rtprio
if you reinstall / change OS, that usually needs to be cleaned up by hand
-
elivoncoder
remake that partition
-
elivoncoder
during install
-
voy4g3r2
Mahiro: Your VM option, for the upgrade question i had and hte network card, you would recommend making a bhyve of 15.1 and have the module compiled on that and MOVE it to the host? i am a little slow :)
-
kona
-
kona
doesn't really explain it much, there's a paper though that does. it's an ancient vi/ex feature
-
rtprio
i was born after 1975, i don't use ex
-
MelanieUrsidino
I think I used ex once
-
MelanieUrsidino
I've used ed more than I've used ex
-
kona
if you used vi in the 80s or 90s, exrecover and expreserve were features of vi as well.
-
kona
mostly because vi was a feature of ex
-
mason
Hrm, the 15.1 install media fails to thrive on my T420. Doesn't configure the network, doesn't see disks after it fails to use the network and restarts, which isn't surprising. A bit disappointing.
-
luser
mason: 14.3 installer does the same.
-
luser
I retract above. I used 15.0 in my last install.
-
luser
And the 15.0 installer had the same behaviour as described by mason