-
ccx
rtprio: I figured it out, lsblk prints out one option and /dev/ufs/mylabel worked
-
ccx
I think glabel would produce /dev/label/mylabel instead
-
ccx
weirdly it didn't print diskid for this device though
-
rtprio
i don't have any /dev/ufs/
-
rtprio
i also have /dev/diskid/disk-vgb12345r
-
concrete_houses
ungoogled-chromium taking like 1000G virt memory normal?
-
llua
sounds like a browser
-
spine-o-saurus
hay anyone know if the wayland stuff works on alpha14? I'm stuck onthis part
postimg.cc/yDkcnqTy
-
VimDiesel
Title: capture05 1516 — Postimages
-
parv
Too much is going in that image😵
-
parv
But don't mind me as I cannot help wit Wayland issues
-
nerozero
Hello guys, question about scripts
-
nerozero
say I have a long running task, and infinite while loop
-
nerozero
if I press ctrl+c to abort, it will hit the long running task and terminate it, but how to stop the general infinite loop ?
-
nerozero
is there a way in CSH to catch previously pressed ctrl+c
-
parv
In bourne-like shell, there is "trap"; perhaps csh has similar?
-
parv
One would be catching the keyboard-interrupt signal
-
nerozero
didn't found that in csh ( the thing that is run sh )
-
nerozero
parv, thanks for reply
-
nerozero
just run process background and waiting for pid now
-
nerozero
i guess its a kinda solution but ...
-
parv
nerozero, What code do you have?
-
meena
parv: csh is very limited wrt scripting.
-
parv
meena, (I try my best to stay away) nerozero is the one in need of help.
-
meena
nerozero: i love csh for interactive use, but it's no use for scripting
-
nerozero
collecting ping statistics for certain amount of time and then stripping packet loss stats then building
-
nerozero
parv, the csh is enough to do the most things I need, its fast and posix like
-
parv
I care not for csh. Interactive or otherwise
-
nerozero
going to fancy shamcy shells will prevent running things on the "stock" platforms
-
nerozero
i'm kind of a posix oriented person :)
-
meena
if you want posix, you want ksh, or sh. but definitely not csh.
-
nerozero
meena, csh is a "stock" sh implementation in bsd,
-
meena
no. csh is a stock csh implementation.
-
nerozero
my idea is to make a script which will run on a fresh installed system or even on a life cd
-
meena
and sh should be fine for that, especially if you need singal trapping. Or, like, functions.
-
nerozero
run /bin/sh on a bsd
-
nerozero
which shell it will be ?
-
nerozero
echo $SHELL -> csh
-
meena
@_@
-
meena
what's wrong with your system?
-
mason
nerozero: That should never be the case.
-
nerozero
on a live usb stick? from bsd?
-
mason
Root's shell is csh, but that's not /bin/sh
-
nerozero
could you please run now /bin/sh
-
meena
to be fair, when i invoke it, it says $SHELL is /usr/local/bin/fish
-
meena
so, I wouldn't trust $SHELL.
-
meena
mason: since 14 (at least), root's shell is /bin/sh
-
nerozero
maybe i'm wrong, but this is for ages bsd sh was a csh
-
nerozero
now @13.2
-
nerozero
what is your environment value of $SHELL when you run /bin/sh ?
-
nerozero
anyway ...
-
meena
this is ridiculous: env -i SHELL=/bin/sh sudo -H -iu meena /bin/sh
-
meena
$ echo $SHELL
-
meena
fish
-
nerozero
LOL
-
meena
anyway. ignore the SHELL variable. Focus on what's important.
-
nerozero
sooo ... I guess this comes from user profile and set whule logging in
-
meena
no idea where it's coming from, honestly
-
meena
but it seems to work when i login as root, who has /bin/sh as shell.
-
meena
sh really needs a -l option, for run a login shell
-
nerozero
anyway I took to much time ... :) thank you for replies
-
mason
nerozero: Yeah, confirmed, it's as we're saying.
-
nerozero
thank you
-
mason
-
» mason needs to clean his laptop.
-
nerozero
mason, your word is pretty much enough
-
nerozero
but thank you for testing that
-
meena
y'all can also try to run something csh like in sh, or vice versa to see. The two shells have different syntax.
-
nerozero
need to review my knowledge in this context
-
mason
Oh, I didn't show $SHELL.
-
nerozero
:)
-
meena
csh is a shell *for* POSIX, not defined by POSIX.
-
nerozero
anyway all my scripts had #!/bin/sh - so ....
-
mason
The $SHELL variable doesn't change, but it's distinctly one or the other. Example with syntax emerging presently.
-
nerozero
I had only a nameing issue in my mind, will modify that, :)
-
mason
nerozero: Here, this is more definitive:
0x0.st/HLTb.jpg
-
nerozero
OH BLESS YOU !!!! !
-
nerozero
Now I know the issues of my errors with redirecting stderr !
-
nerozero
THANK YOU !!!!!!!!!!!!!!!1
-
nerozero
That was an overkill !
-
mason
Nah, if it was useful I'm glad.
-
nerozero
It was very useful!
-
mason
Incidentally, that's the only reason why I don't use csh - I've got sh syntax embedded in my brain, and I have to stop and think how to do things in csh too actively.
-
mason
I actually use bash as a user shell because it lets me mix vi-mode and emacs-mode interactions seamlessly, but I *never* use bashisms, just pure sh.
-
mason
(Sometimes I use a variant of ksh, also.)
-
parv
mason, re: c?sh, 🤝🏽
-
» meena uses fish because she can't type and fish tells her when she's wrong
-
mason
I've thought about zsh, but it doesn't interweave vi and emacs mode stuff the way bash (or, readline) does.
-
nerozero
meena, r u girl ?
-
meena
nerozero: i'm 39 years old. I'm def not a girl.
-
nerozero
:)
-
nerozero
fish - she... ok
-
nerozero
zsh is very slow and laggy
-
nerozero
I prefer fish too
-
nerozero
just for things like: cd /u/l/e/namedb ...
-
nerozero
and awesome context support withoutdoing modification
-
meena
now lets see if i can get back into hacking on virtio, or at least its documentation
-
nerozero
me fighting with ISP...
-
Demosthenex
hrm, i'm trying to get factorio headless server (for linux) running in a freebsd jail with linux compat enabled. i'm seeing missing libs.
dpaste.org/qQSX2/raw
-
Demosthenex
any ideas? i'd really prefer to keep a freebsd jail rather than setup an ubuntu jail
-
pstef
that seems like an issue with that particular Linux distro copy, which distro is that?
-
Demosthenex
i do have linux_base-c7-7.9.2009_1 installed
-
Demosthenex
its a linux binary, in a freebsd jail with linux binary compatability enabled
-
pstef
I'm running stable/13 with Ubuntu 22 in a jail
-
Demosthenex
yes, i'd just prefer not to make a debian or ubuntu jail
-
pstef
linux_base-c7-7.9.2009_1 is probably centos, can't help with that
-
mason
Demosthenex: Hm, I recall that Factorio stopped working on EL7 because it wanted (arbitrary) a newer glibc.
-
mason
Demosthenex: They had no need for it, so it was arbitrary breakage for lots of players.
-
mason
I imagine you'll have to move to something else as your Linux base for that jail.
-
Demosthenex
yeah, i'm pretty sure i can get it working if i make a debian jail
-
mason
antranigv has a nice guide for setting up Devuan in a jail.
-
Demosthenex
just trying to stay native ;]
-
mason
People report Debian working, but it must have been with systemd, as Debian with sysvinit glitches on debootstrap install.
-
Demosthenex
*puke*
-
Demosthenex
on my last homeserver, i ran devuan
-
Demosthenex
and i had to doctor up the glibc
-
Demosthenex
but that was due to devuan being old i thought
-
Demosthenex
i'm hoping a thin debian or ubuntu jail won't be too bad :P
-
Demosthenex
-
VimDiesel
Title: Running a Factorio server in a linux jail, on FreeBSD | Yet Another SysAdmin Website
-
Demosthenex
though i'll let bastille do all the work of setting up a linux jail
-
Demosthenex
meh, i'll setup a ubuntu focal jail i guess
-
VVD
When is it necessary to use net/intel-*-kmod instead of the corresponding driver in the base?
-
mason
Demosthenex: There's a new Devuan released yesterday fwiw.
-
mason
based on Debian bookworm, so quite new
-
Demosthenex
mason: yeah, it seems bastille only supports a few linux distros and versions.
-
markmcb
wait, what? you can run linux in a freebsd jail?
-
yuripv
no, you can run linux binaries in there
-
markmcb
ah, ok
-
otis
as freebsd kernel can do good share of linux kernel functionality and emulate its binary interface
-
Demosthenex
markmcb: basically with the linux binary compat, you install a linux distro in the jail's chroot env, but the kernel environment is all freebsd.
-
Demosthenex
in my case, that means i get more linux libraries than are included in the default compatability layer
-
Demosthenex
by adding a whole OS to run in compat mode :P
-
CmdLnKid
pffft
-
CmdLnKid
overkill
-
Demosthenex
CmdLnKid: yeah, well i posted the libs i'm missing, i can't seem to find a better way. =]
-
CmdLnKid
compile and install them in some prefix, add them into a lib path ?
-
CmdLnKid
not saying there is anything wrong with what you are doing but looking at the minimal point
-
Demosthenex
yeah, me too. but glibc even?
-
CmdLnKid
why not ?
-
Demosthenex
-
Demosthenex
hrm, i mean maybe i can do a debootstrap inside my freebsd jail to add some libs
-
CmdLnKid
mount_unionfs may come in handy if you don't want to polute what you already have unless you have snapshots on zfs
-
CmdLnKid
-
VimDiesel
Title: mount_unionfs
-
concrete_houses
would 3 usb disk 4 5 6 t in zfs be faster than each one ufs jounalled soft updates?
-
concrete_houses
would zfs stack the speed?
-
CmdLnKid
context ?
-
concrete_houses
my desktop has 256g ssd and 3 external spindisk usb drive 4 5 6 t
-
concrete_houses
right nwo I run the 3 disk each ufs jounal soft update
-
concrete_houses
if I put them in zfs in 1 pool
-
concrete_houses
would things speed up?
-
concrete_houses
network is slower than any 1 disk
-
CmdLnKid
you are only limited by your bus speeds at that point
-
concrete_houses
I do run bittorrent with stuff on all 3
-
concrete_houses
ah bus speed! ok I can't change that
-
CmdLnKid
exactly
-
concrete_houses
seems network would be slower than any 1 disk anyow so maybe im good
-
concrete_houses
ah 1 more question
-
CmdLnKid
you may be capable of getting peak performance at two usb sticks but when you add three... boom
-
concrete_houses
chrome crashed and is now white screen when started....
-
concrete_houses
ungoogled-chrome
-
concrete_houses
anyone know whats that all abot?
-
concrete_houses
ungoogled-chromium
-
concrete_houses
to be exact
-
CmdLnKid
dunno. move your . directory out of the way to keep your settings and you can copy history, cookies etc... back into a newly created one
-
CmdLnKid
.chrome-foo -> .chrome-foo.orig
-
concrete_houses
hmmm ok
-
CrtxReavr
Anyone heard of RGnets?
-
CrtxReavr
Or their RXG appliance product?
-
SamuelMarks
hi
-
SamuelMarks
I'm going to port the `bc` from either OpenBSD or FreeBSD.
-
V_PauAmma_V
Port it to...
-
V_PauAmma_V
?
-
mason
Rust!
-
RhodiumToad
freebsd has two bc implementations last I looked
-
SamuelMarks
-
VimDiesel
Title: gavin/bc: An implementation of Unix dc and POSIX bc with GNU and BSD extensions. Finished, but well-maintained. - bc - Gavin D. Howard Gitea
-
RhodiumToad
that's one of the two
-
RhodiumToad
some version of Gavin's bc is the one in contrib/bc, while the traditional one is in usr.bin/{bc,dc}
-
SamuelMarks
Wait does The Heirloom Project have one?
-
RhodiumToad
(traditional bc is just a frontend to traditional dc)
-
SamuelMarks
mmmm
-
SamuelMarks
Nice, SunOS's is just Makefile.mk bc.1 bc.y lib.b yyval.sed
-
SamuelMarks
dc is just CVS Makefile.mk dc.1 dc.c dc.h version.c
-
yuripv
usr/src/cmd/bc: Makefile bc.y lib.b.data
-
SamuelMarks
Damnnn this will be easy to port
-
RhodiumToad
RELNOTES: Note the deprecation of 32-bit platforms for 15.0.
-
RhodiumToad
hmm
-
RhodiumToad
"In particular, at present there is a fair bit of interest in retaining armv7 support in 15.0 at least." -- also interested in this
-
clemens3
i mean, this 32 bit thing, many ppl still on 8GB memory.. so seems 32 bit seems still somewhat usefull, if you thing about IoT and controllers, 32 should get more consideration, not??
-
clemens3
assuming you have a 4GB machine, tell me one reason why you would't want 32 bit.. only reason is because everybody else is on 64 bit..
-
clemens3
but i can't imagine any other reason
-
clemens3
so if you got this 400 bucks rpi 4 8gb machine, more power to u
-
clemens3
just looking at real world, i have the folling machines: 32gb mem, 8gb, 16, 32, 2.. all64 bit, but why should't i use 32 bit on the 2gb machine?
-
clemens3
and to be honest, i feel the 2gb at times, all the others i don't care
-
clemens3
actually i care the one 32 gb machine, because it is the build machine, but i don't even know which is the other 32 gb machine
-
clemens3
<offtopic/>
-
rtprio
what sort of consideration are you looking for?
-
RhodiumToad
a lot of programs use almost twice as much memory on 64bit as on 32bit, so the fact that you _can_ run 64bit on smaller memory systems doesn't necessarily make it useful
-
rtprio
i suppose the size of the word is twice as big on 64bit eh
-
rtprio
(does anyone use jail/epair and bhyve vm's on the same bridges?)
-
RhodiumToad
for pointers, yes
-
rtprio
mason: one question about your JailsEpair article, is why do i need to give the bridge an ip address?
-
mason
rtprio: In my case, it's because that's also my host IP.
-
mason
So, my host communicates through the same bridge.
-
RhodiumToad
it's also possible to have the host's ip on the host's physical interface instead, but I've had weird failures and errors when doing that.
-
rtprio
that strikes me as unusual, but i can't put my finger on it
-
RhodiumToad
having the host's ip on the bridge has worked better for me.
-
mason
I need to go through all my pages and freshen them up.
-
rtprio
yeah, that bug you referenced is closed, i noticed
-
rtprio
perhaps if the reply hits the bridge, it doesn't make it back into the host side of the epair
-
rtprio
or the host gobbles them up, i'm a bit confused
-
rtprio
( i have my bhyve bridge attached to lagg0.1, and it's worked mostly fine up to this point)
-
RhodiumToad
why is my buildworld still running after 3hr
-
mason
RhodiumToad: rust in base now? :P
-
meena
mason: soon™
-
mason
Soon™
-
» RhodiumToad wonders if it's a bad or a good sign when the commit message is longer than the entire patch including context
-
meena
RhodiumToad: i think it's a good sign of an engineer, and a terrible sign of what they've been thru
-
RhodiumToad
the actual change is one line of code, one line of manpage
-
RhodiumToad
-
VimDiesel
271817 – sed: range change with N results in no output
bugs.freebsd.org/bugzilla/show_bug.cgi?id=271817
-
meena
oh that thing
-
» meena shudders
-
RhodiumToad
buildworld+buildkernel completed after almost exactly 4hr