-
rustyaxe
My shell script wont work on freebsd :( i guess it has too much bashism.. (read -a M<<<"$(echo 'scale=62;obase=36;2469958312622/2821109907455'|BC_LINE_LENGTH=0 bc -l|cut -c 2-)";L=${#M[@]};for i in ${M[@]:0:$L};do printf %x "$(($i+55))";done)|xxd -r -p;echo
-
rustyaxe
(it uses math to prove VIOLENCE really is the answer sometimes)
-
yuripv
rustyaxe: does it do 'rm -rf /' when decoded?
-
rustyaxe
No
-
rustyaxe
it shows VIOLENCE several times
-
rustyaxe
i suppose i could do one that does that but it'd require another subshell and significant maths
-
rustyaxe
-
VimDiesel
Title: 2469958312622/2821109907455 to base 36 - Wolfram|Alpha
-
rustyaxe
click more digits some times, it repeats forever.. math is fun :)
-
RhodiumToad
the <<< is a bashism
-
RhodiumToad
xxd I think is a linuxism, it's definitely not a standard utility
-
RhodiumToad
the ${#M[@]} is a bashism (or kshism)
-
RhodiumToad
the rest looks like standard shell
-
rustyaxe
hmm it seems xxd isn't so common :( that's troublesome
-
RhodiumToad
what's it do?
-
rustyaxe
its somehow related to vim; in this case it converts the result from hex to .. something. It's been a minute since i wrote that
-
rustyaxe
the way bc formats its output is... broken, so i used that to fix it
-
RhodiumToad
looks like xxd converts to or from a hex dump
-
rustyaxe
56494f4c454e434556494f4c454e434556494f4c454e434556494f4c454e434556494f4c454e4345
-
rustyaxe
Ya from hex
-
rustyaxe
If one makes a script with enough CPU threads, they could find more of those. I just remember finding that one years ago when wolframalpha was young
-
Gondwana
Learn what an Alabama Hot Pocket is by reading this spellbinding story of the steamy hot meeting between Mexico City Mayor Claudia Sheinbaum and Campeche Gobernor Layda Sansores. Edify yourself on Mexican Politics and Alabama Hot Pockets today!
justpaste.it/Sheinbaum_Alabama_Hot_Pocket
-
VimDiesel
Title: Claudia Sheinbaum, Layda Sansores, and the Alabama Hot Pockets - JustPaste.it
-
rustyaxe
I was really bored and figured out that 2469958312622/2821109907455 when taken out enough places (it repeats infinitely) and turned to base 36 gives the desired result
-
rustyaxe
This seems like spams
-
rustyaxe
I'll poke at it some more and avoid the <<< and xxd.
-
rustyaxe
is there an equal to ${#[@]} in sh?
-
RhodiumToad
nope. there are no arrays in standard shell
-
RhodiumToad
however, you can usually use the positional parameters as a workaround
-
rustyaxe
i mostly did it this way to obscure a bit what is going on, of course. So even one even a little familiar can see its using bc to do a calculation... and.. things with it lol
-
RhodiumToad
consider:
-
RhodiumToad
set -- $(echo ...);for c do printf ...;done
-
rustyaxe
set -- $(echo 'scale=62;obase=36;2469958312622/2821109907455'|BC_LINE_LENGTH=0 bc -l|cut -c 2-);for c do printf %x "$(($c+55))"; done
-
rustyaxe
56494f4c454e434556494f4c454e434556494f4c454e-sh: arithmetic expression: expecting EOF: "1\+55"
-
rustyaxe
Close! im sure i can figure out a way to avoid xxd there, its just hex to ascii after all
-
RhodiumToad
BC_LINE_LENGTH isn't being respected (it's not a standard option)
-
RhodiumToad
looks like newer fbsd releases have a bc that supports that
-
RhodiumToad
hm
-
RhodiumToad
on my system the manpage says BC_LINE_LENGTH works but in fact it doesn't
-
rustyaxe
hmm there's -L but thats not portable
-
rustyaxe
*tries it on bash on linux vm as changed*
-
RhodiumToad
time to dig into the source
-
rustyaxe
still works on bash on linux, closer to working on sh on freebsd. Maybe for another evening ;) its a fun distraction, especially if i can find more words
-
rustyaxe
i found the #s wrote in my notebook from 20+ years ago... and this too -- -72.01,168.57778 in google earth.. zoom out a bit :)
-
RhodiumToad
wtf!
-
RhodiumToad
somewhere, 1 is being subtracted from line_len
-
RhodiumToad
anyway, I found the bug
-
rustyaxe
hmm?
-
RhodiumToad
the bug in bc that makes BC_LINE_LENGTH=0 not work
-
RhodiumToad
at least as of fbsd 13-stable
-
RhodiumToad
looks like it's already fixed upstream
-
RhodiumToad
not fixed yet in -current as of the last time I fetched it
-
rustyaxe
Ah, its mostly a toy anyways, just wanted to improve it to be a bit more portable. Thanks for the tips, it still works in bash, i'll poke at replacing xxd with something portable another evening ;)
-
dch
I have a weird thing where some fonts aren't rendered correctly in firefox
-
dch
hoping somebody has seen this before and knows why
-
dch
-
dch
only a few fonts and sites, it may have been broken for weeks even
-
morpho
are you settings fonts with fontconfig
-
dch
I've tried disabling h/w accel in firefox, and similar settings
-
dch
morpho: probably not, I'm a tmux + defaults kinda person
-
dch
nvidia card
-
morpho
as far as I know, firefox uses fontconfig, its default
-
morpho
that is a very strange error
-
morpho
is this wayland or xorg?
-
parv
There could be a mismatch between the text encoding & lack of suitable font; or, incorrect encoding might been specified. dch, run "firefox >| log.firefox 2>&1" to examine if firefox spits out something. There may be some font-debug option IIRC
-
dch
xorg
-
dch
parv: good idea, I'll try that this arvo
-
morpho
in .config/fontconfig you can declare a 'default' font which will be the fallback for firefox. Noto Sana Mono has pretty good coverage
-
morpho
the best I know of
-
morpho
is this firefox or firefox-esr?
-
yuripv
dch: can you link to any of those sites?
-
dch
yuripv: no, this one is an embedded term inside oracle cloud.
-
dch
it needs a login and stuff to get to it
-
dch
but if I find another one I will ping you, thanks
-
dch
-
VimDiesel
Title: Element
-
dch
also has this problem, but only for the favicon in the browser tab row
-
dch
hmm maybe there's some font cache or something that does this
-
dch
I'll see what I can nuke after restarting
-
trev
what is the preferred way to run google chrome on freebsd (required for work stuff)? i was thinking either a linux VM with bhyve or a jail. i don't want it funking up my main system
-
yuripv
dch: to recreate the cache, try `fc-cache -fv` (-v shows the paths as well)
-
Lovis_IX
trev: you cannot use chromium?
-
trev
Lovis_IX: no, i need to login for the sync (work controlled browser). i am leaning towards VM
-
trev
don't think it's possible with jail
-
Lovis_IX
trev: ok. So bvyve or virtualbox should be some solutions.
-
dch
trev: its possible with a linuxlator jail
-
Lovis_IX
dch: what do you mean with "linuxator jail"? A bvyve jail?
-
dch
-
VimDiesel
Title: GitHub - mrclksr/linux-browser-installer: Script to install Linux browsers under a Linux chroot on FreeBSD
-
dch
freebsd has a partially complete linux ABI called "linuxlator"
-
dch
it can run many linux programs OOTB, with some caveats
-
dch
not all syscalls are emulated or provided
-
dch
but you can play steam games, and browsers, via this
-
dch
anyway trev I'd just use www/ungoogled-chromium from ports directly, and I'm sure you will be fine
-
dch
yuripv: thanks for the fc tip!
-
dch
or just www/chromium, it will do the sync fine, IIRC, it used to in the past.
-
dch
failing that, linuxlator and that will also work
-
dch
-
VimDiesel
Title: Secure Containerized Browser | 𝚟𝚎𝚛𝚖𝚊𝚍𝚎𝚗
-
trev
thanks friends
-
trev
i think they removed the sync from chromium. work needs to "have total control" over the browser -- whatever that means
-
trev
i guess they can nuke it or monitor it, no idea
-
Lovis_IX
thanks dch.
-
Lovis_IX
trev: good luck
-
phryk
Is FreeBSD 14 stable enough to be my daily driver? Asking because I'm doing literally all my work from this machine but my new gpu is only supported in 14.
-
BobSlacker
phryk: what gpu?
-
phryk
rx 6600xt
-
otis
rx6600 looked like an HP INTEGRITY at first sight.
-
meena
phryk: so long as you don't do anything funky with ZFS, you should be good…
-
phryk
i was hoping for the kernel changes needed for newer drm to be backported to 13, but it doesn't look like it.
-
phryk
meena: eh, I don't have zfs on this machine and am deprecating it on the one machine i still have it.
-
meena
phryk: why?
-
meena
(as in: I'm curious, not: HOW DARE YOU?!)
-
phryk
too much pain for zero noticable advantage.
-
trev
what will you use instead? UFS?
-
meena
what else is there? :O
-
phryk
way too many traps, completely different way of managing it compared to literally every other filesystem and i don't think there's really any feature i want that i can't have with ufs… encryption, mirroring, snapshots, etc. are all possible with ufs and you don't have to learn an obtuse new way to manage things…
-
phryk
i mean i used zfs for over a decade and i still stumble onto stupid mounting issues that just shouldn't exist.
-
dch
phryk: you should be fine. also, you are welcome to bug me and ask for help anytime
-
dch
each to their own with zfs, I've had zero problems with it, and run it on everything from laptops to servers. but I use it at work, not as a hobby, so I had time to get familiar with it
-
phryk
dch: that's nice but i kinda assume that if i run into problems, those will mean i won't be able to ask you.^^
-
dch
lol
-
dch
there is that
-
dch
you would have to hunt me down at home
-
dch
throw bricks at my window
-
phryk
i have a rough inkling where that's is. like 1-2h walk.^^
-
dch
slower if you bring many bricks
-
phryk
true.
-
phryk
dch: i've had a good bunch of performance problems with zfs. worst was when i accidentally activated dedup on a machine with 6g ram – slowed down r/w rates to like 200k/s. fixing that was a major hassle (essentially rewrite everything, wouldn't even have worked if i didn't have proper mirroring set up). for another issue, i had help from people here about a dozen times over ~2 years and it just
-
phryk
remained a complete mystery. never had any such issues with ufs.
-
dch
dedupe is the enemy. the #1 feature that should be removed IMHO from zfs
-
dch
and yeah that is brutal to fix
-
dch
I have also added an extra 10TiB as a *stripe* instead of a mirror to an existing drive
-
dch
that was annoying to fix
-
tykling
checkpoints people
-
tykling
they can rescue all these fuckups and more
-
phryk
yeah, but it's not the only weird thing to happen. i still have issues with a couple zfs datasets not being automatically mounted and the like…
-
tykling
they are the best
-
phryk
tykling: you mean snapshots?
-
tykling
no, snapshots are of data, checkpoints are of pool config
-
tykling
so when you fuck up and enable dedup or add a 10tb stripe you can undo it
-
phryk
yeah, never heard of those. were they a thing in 2011 already?^^
-
tykling
zfs is not to blame for admin mistakes, but at least it can help fix them :)
-
phryk
i mean, that's sorta true. but no other fs has all these weird traps. IMO the cli should at the very least warn and do double opt-in for that kinda stuff.
-
debdrup
you've had since 2007 to put zfs on top of a truncate(1)'d file, and learn how to administrate it.
-
debdrup
ufs and every other filesystem has just as many gotchas, they're just different gotchas.
-
dch
phryk: its not obvious initially but almost all z* commands have a `-n` dry-run option first
-
debdrup
only difference is, you're familiar with them.
-
dch
and a `-f (fuckit)` option for when you want to YOLO your data
-
debdrup
it's the same stupid argument as "i like pf because i used that first"
-
phryk
debdrup: i literally have no idea about ufs gotchas and apparently never ran into them.
-
dch
debdrup: pf has an objectively better config format than $OTHER firewalls, and an active maintainer ... there is that
-
phryk
i used zfs on my first or second freebsd install in 2011, so i really don't think the argument that i only like ufs more because i used it first has any validity.
-
debdrup
dch: it's got a better config format for you, since you used it first
-
debdrup
i'm way more familiar with ipfw, since i used that first - so to me, ipfw is better
-
dch
debdrup: but ipfw requires numbered rules. that's like 1985 config style
-
debdrup
numbered rules are an advantage
-
dch
anyway your point is valid, we know what we know, and thats confirmation bias
-
meena
FORTRAN CALLED AND WANTS ITS CONFIG FILE BACK
-
meena
etc…
-
dch
until you want to insert a rule between 999 and 1000
-
» dch hugs meena
-
dch
theres some cool stuff like dummynet that IIRC is only available with ipfw
-
» meena just remembered that FORTRAN doens't do that, that was old BASIC
-
dch
the feature set is different
-
debdrup
dch: you've got 2^16 rules - spread them out a bit more.
-
phryk
i only ever used pf and i think it's… well not awful per se, but definitely not great.^^
-
dch
as a refuge from iptables on linux, I heartily disagree.
-
dch
there are lots of things I'd like pf to do better
-
dch
my #1 issue with UFS is no on-disk/in-block checksums
-
dch
and that will never be fixed.
-
meena
dch: that reminds me, have you seen that pf bug:
bugs.freebsd.org/bugzilla/show_bug.cgi?id=268717 ?
-
VimDiesel
Title: 268717 – [pf] [ipnat] rdr rules don't work for traffic originating at localhost
-
otis
and imho, SU+J are not as "rugged" as zfs transaction groups
-
dch
I switched from MacOS to FreeBSD because of bitrot that went unnoticed for several years, and backups got cycled out, and I lost a bunch of very early photos
-
debdrup
phryk: silent data corruption, lost+found folders, the need to fsck things occationally, static inodes, no snapshot when doing soft updates + journaling, no ability to detect bugs in device drivers (while they're unlikely, they're not impossible), can't deal with phantom reads/writes, can't handle dma parity errors, and don't even konw about misdirected reads and writes, and probably a whole host of
-
debdrup
other things
-
debdrup
those are issues with traditional filesystems like ufs
-
phryk
debdrup: on the zfs side you have a filesystem that's extremely sensitive to fragmentation, introduces it a lot and doesn't offer any tool to defragment. that killed my performance more than once.
-
dch
anyway phryk you should totally try current. if you were using zfs then you could use boot environments and switch easily between current & release as you like. This is not so easy with ufs, but its very straightforward with zfs.
-
dch
pros and cons
-
» otis waves at dch
-
dch
my added-stripe-not-mirror admin fail was before zpool checkpoint existed sadly
-
» dch waves back
-
phryk
the root pool on my homeserver has… 60% fragmentation. and zfs people keep telling me that it's a negligible issue @_@
-
dch
time for me to pay attention, /etc/inetd.confg is not a thing
-
debdrup
phryk: then there's things like fragmented storage (meaning you have to split stuff across different disks - unless you're using graid, which has its own problems if you're doing raid5-equivalent stuff because of write holes), and that there's simply too many limits on the expandability
-
dch
phryk: fragmentation is absolutely a problem over time. depending on pool layout it can be easy to fix
-
phryk
debdrup: i use gmirror.
-
debdrup
phryk: zfs used to have a problem with free space fragmentation (which isn't the kind of fragmentation you're talking about), but it's much less of an issue now than it used to be, and if you free up space it stops being a problem.
-
dch
(zfs send stuff | zfs recv stuff) will clean it up, but obv you need to unmount/remount
-
debdrup
phryk: good for you, but that doesn't address the issues with raid5 write holes; the equivalent level in raidz doesn't have write holes.
-
debdrup
but this whole "ufs has no problems" is just utter nonsense.
-
phryk
then use zfs. i'm not here to evangelise you, lol.
-
phryk
imma get me some food
-
debdrup
they're designed to address wholly different things; ufs was designed in the very early 80s to have somewhere to put data on. zfs was designed because storage subsystems _lie_
-
dubiousness
I thought the whole 'last word in filesystems' thing was the main drive.
-
dubiousness
i.e. coupling what we think of as a block device and filesystem into one, glorious, whole
-
trev
i never backup anything. what is the right FS for me?
-
trev
can't lose data if you don't have it
-
meena
👍
-
trev
i did recently watch a ZFS noobie video from EuroBSD. seemed kind of neat, but i would never use any of the features unless i have to replace a drive
-
parv
Robert C's comment in
bugs.freebsd.org/bugzilla/show_bug.cgi?id=263377 -- why notify wireless@ as "igb" driver looks to be for RJ45-kind?
-
VimDiesel
Title: 263377 – [NEW PORT] net/intel-igb-kmod: out-of-tree driver for igb(4) from Intel-provided source
-
meena
can somebody help me delete this messed up route:
gist.github.com/340135858b657931b2b4db878222ab21
-
VimDiesel
Title: gist:340135858b657931b2b4db878222ab21 · GitHub
-
meena
this route was added with `route add -net 192.168.11.0 -interface lo0 192.168.11.1` but the result is rather surprising.
-
meena
no, wait
-
meena
`route add -net 192.168.11.0/24 -interface lo0 192.168.11.1`
-
meena
route -v del -net 192.168.11.0 -netmask 192.168.11.1
-
meena
i need to test this on CURRENT
-
meena
the "mask" reported by route makes no sense
-
meena
okay, i can add the route in parts: `route -v add 192.168.11.0/24 -iface lo0` followed by `route -v change 192.168.11.0/24 192.168.11.1` but trying to combine that completely shits the bed
-
meena
i am utterly confused
-
meena
people who want to become maintainers for iocage, please apply:
iocage/iocage #1289#issuecomment-1532945748
-
VimDiesel
Title: Last Accepted Pull Reqest was Oct 2021 · Issue #1289 · iocage/iocage · GitHub
-
VimDiesel
1289 – errno breaks in thread-safe c++ compiles
bugs.freebsd.org/bugzilla/show_bug.cgi?id=1289
-
debdrup
dubiousness: ZFS combines logical volume management and filesystems into one, and what makes it the last word in filesystems is that it was written with the assumption that all hardware-based storage subsystems lie, which up until that point wasn't something anyone had considered (and I'm not sure anyone's taken it as seriously as Ahrens and Bonwick did).
-
» V_PauAmma_V . o O ( Should VimDiesel respond to its own text? )
-
debdrup
I don't know, I have it on ignore.
-
V_PauAmma_V
I don't, and it does, and that can be confusing (briefly for me, unsure whether or how long for others).
-
RoyalYork_
Is there any benefit in running ZFS with a single drive?
-
RoyalYork_
Or do you need multiple drives to really see its magic?
-
debdrup
RoyalYork_: there's a few downsides to running it on a single drive, and no real benefit.
-
V_PauAmma_V
Peace of mind and future-proofing for me. If I ever need more than the storage I have on my laptop, I'll sacrifice the CD/DVD, replace it with another disk, and stripe.
-
debdrup
You need to enable ditto-blocks pool-wide to be able to recover from UREs on the data (metadata has ditto blocks by default), and that in turn means that every write takes double the amount of time (because it has to write it twice).
-
debdrup
Most people forego that, because you still get informed about the actual data loss of an URE even if you don't have ditto blocks, and it's simply not necessary to have two disks or ditto blocks if you have some other storage that you back up to frequenly enough.
-
meena
-
VimDiesel
Title: Ephemeral Networking for FreeBSD by igalic · Pull Request #2165 · canonical/cloud-init · GitHub
-
meena
I had to use two steps for what Linux can do in one step. plus, we can't do source selection.
-
mns
If I'm reading the python correctly, wouldn't line 25 make more sense this way: if (( gateway ) and (gateway != "0.0.0.0")): ? just so the meaning is more clearer.
-
nimaje
why would you add those ()? well, why would you do if gateway and gateway != "0.0.0.0": instead of just if gateway != "0.0.0.0": ?
-
meena
that's the same style as elsewhere, so that's not the question
-
nimaje
oh, wait, you need to test that gateway is thruthy, I was stupid there
-
meena
So, from what i gather, the main data this is used with is going to be: static routes from DHCP
-
meena
hrm…
-
meena
-
VimDiesel
Title: 271243 – sysutils/tuptime: Fix cron file
-
nimaje
there I also don't see a point in using ()s (in the first version yes, but why in the simplified version?)
-
meena
nimaje: good point
-
jgrafton
RoyalYork_: I run ZFS on my single disk laptops (FBSD & Ubuntu) because block based backups are dead simple and fast with zfs snapshot replication
-
jgrafton
not to mention boot environments
-
RoyalYork_
jgrafton, thanks for the insight.
-
RoyalYork_
I had installed zfs originally without understanding what it actually was
-
Lovis_IX
RoyalYork_: take a little time to explore it. I really love ZFS, even with a simple disk, like jgrafton
-
debdrup
zfs good status: checks out.
-
xtile
I noticed a small documentation bug, and I guess since I'm already typing this, I'll mention it here before I put it into bugzilla. On
freebsd.org/releases/13.2R/announce there is the following text: "Please note that 13.1 will be supported until three months from the 13.2 release date, which is yet to be scheduled at the time of this writing."
-
VimDiesel
Title: FreeBSD 13.2-RELEASE Announcement | The FreeBSD Project
-
xtile
While 13.2 has definitely been released. :B
-
debdrup
IRC makes for a terrible bug tracker.
-
xtile
true...
-
parv
( Man "proj-data" is huge ... )
-
parv
( ... 676 MB of whatever packgae that is )
-
RhodiumToad
parv: it's a GIS thing
-
RhodiumToad
it gets pulled in as a test dependency of some otherwise trivial package, iirc
-
RhodiumToad
(if you're finding yourself downloading it and you're not doing any GIS stuff, that may be why)
-
parv
RhodiumToad, Thanks. Also possible I might have added when was imagining myself trying GIS (& haven't gotten around that); in any case, "pkg info -r" does not list dependent packages.
-
parv
Ok, removed "proj-data"(for now)
-
RhodiumToad
hm, it used to be a dependency of graphics/proj I think but no longer is (there's a commented out line)
-
parv
I had "proj" installed at one point, as for reasons alluded to earlier. Yeah, that could be it. Thanks RhodiumToad
-
nimaje
I sometimes do pkg autoremove to get rid of old stuff