-
kenrap
Boom, done. Thanks for the advice
-
uuidNuniq
what do you use for a user to run as root? sudo doas or something else?
-
[Reinhilde]
I've juggled both, which isn't something you're supposed to do as it becomes more difficult to ensure you keep policy between the two synced
-
uuidNuniq
well, plain su?
-
rdr
ubuntu complicates it by making sudo the only way to get root, it's technically more secure but just makes your password the root password
-
rwp
It's just a default in Ubuntu. If you set a password for root then "su -" works to jump to root okay no problem.
-
rdr
yeah it's discouraged though
-
rdr
i like the simplicity of simple su
-
rwp
And sshd by default is configured not to allow root logins with "PermitRootLogin no" or "PermitRootLogin prohibit-password" but again can be changed if desired.
-
uuidNuniq
ok, i'll just use su.
-
rwp
Plain "su" or plain as in not "su -"? I say always use "su -" in order to load the root environment. Otherwise it all depends upon your user environment, and the OS, as to what environment is set.
-
uuidNuniq
yes, `su -l` always.
-
rwp
Whew! Good! :-)
-
uuidNuniq
i like the tips i see when i ssh into a user or su -l user
-
rwp
Noting that "su -" and "su -l" are the same. They added -l for those who felt uneasy about the old style "su -".
-
rdr
I don't trust users with root access
-
rdr
they could be engaged in hacking!
-
rwp
You can run "fortune freebsd-tips" at any time and see those tips. Good stuff in there!
-
uuidNuniq
same, i don't have sudo installed on my linux box.
-
rwp
But rdr... Aren't *you* also a user? At least on your own box? :-)
-
rdr
yeah but i only have me on my box so i can't abuse anyone's privacy
-
rdr
absolute power corrupts absolutely
-
rwp
Power corrupts! And ABSOLUTE POWER... Is kind'a nice. :-)
-
uuidNuniq
just installed freebsd on QEMU on macbook M1 yesterday, it's up 10h. first try. i already liked it. a little bit unconfortable about csh though. but it has default settings of history-search which is nice.
-
rwp
csh is in base and so a default root shell to keep everything booting and able to log in with only components from base.
-
uuidNuniq
i am just tired of inconsistence of Linux distro after being a Linux user for 15+ years.
-
rwp
But you are free to install other shells. I always install bash and I use bash as my own personal command line shell. But never for scripting! bash is a slow pig at scripts. #!/bin/sh FTW! Standard is better than better.
-
rwp
A more traditional shell for the Unix user might be ksh. But zsh is also popular.
-
[Reinhilde]
i'm pretty sure zsh can be shipped in base only by removing one piece of code
-
[Reinhilde]
which is not crucia
-
[Reinhilde]
l
-
rwp
But none of those are in the base. So it is not recommended to set any of those as the root shell. Or after a major OS upgrade those ports might not run and you might not be able to log in as root. Ask me how I know! :-)
-
[Reinhilde]
but it never will be (which is probably a good thing)
-
[Reinhilde]
rwp, core memory unlocked!
-
uuidNuniq
i am gonna keep csh and learn it instead. i am already very familar with bash though. i like what's default on a new system. less third party more lightweight
-
rdr
i use zsh i like it
-
rdr
it's fancy
-
rwp
I locked myself out by setting the root shell to bash and upgrading from 12 to 13. But was able to save it easily with Boot Environments. Booted back to the previous, logged in, fixed the passwd entry for the system, rebooted. All good! Woot!
-
rdr
nice
-
rwp
Then of course upgraded all of the ports and then all of those were okay.
-
rdr
so apparently windows was using my efi partition on my linux drive
-
rdr
so when i wiped that drive for freebsd it wiped all my boot stuff
-
rwp
I know I could have booted rescue media like the install ISO but with Boot Environments there those worked much nicer.
-
uuidNuniq
rwp: isn't pkg install good enough?
-
rdr
is multiple efi partitions really discouraged or something?
-
rwp
That's one of the problems with UEFI IMNHO that all of the OSes share one ESP.
-
uuidNuniq
rwp: is the boot environment auto added to the boot menu? or do you have to configure something
-
rwp
uuidNuniq, I was using the binary pkgs which are precompiled ports but the shared libraries in base had been changed out from under all of those /usr/local/bin/* executables causing them to fail to run.
-
rwp
Boot Environments are automatically added to the boot menu. You can boot any of them by manually selecting one.
-
rwp
You can see your current boot environments with "bectl list" (and noting that bectl is in base and beadm is the original version in ports, basically the same)
-
uuidNuniq
nice. how often does libc breaks /usr/local/bin/* ?
-
uuidNuniq
what if you also upgrade third party pkgs along with system upgrade?
-
rwp
It was not unexpected breakage. It was expected changes. But I tripped over my own shoelaces! Major upgrades change out shared libraries. Meaning that all pkgs need to be re-installed at major upgrade points.
-
rwp
During a point release cycle such as 13.0 to 13.1 to 13.2 all of the pkgs are compiled using the oldest supported point release. So simple upgrades are usually okay.
-
rwp
But at major OS releases everything is reset to the new .0 version in base. And all pkgs need to be re-installed.
-
uuidNuniq
i am not clear, you mean from like 13 to 14, i have to reinstall pkgs listed by `pkg info`?
-
rwp
If 3rd party compiled executables, or your own locally compiled executables, depend upon a shared library in base that has been upgraded then those will also need to be recompiled.
-
rwp
uuidNuniq, Yes. Use "pkg upgrade -f" which will force re-install all automatically. Very simple.
-
uuidNuniq
ah, thanks for the tip
-
rwp
If, and I say if, pkg itself becomes broken by the shared libraries being swapped out from under it then there is a special pkg-static shipped which is statically linked which can be used to bootstrap pkg itself.
-
rwp
"pkg-static upgrade -f pkg" would force bootstrap itself using static libraries. That's if it is needed. It's not usually.
-
uuidNuniq
i'll install that in case of things went mad.
-
rwp
You will install pkg? Doesn't everyone? :-)
-
uuidNuniq
ohh it is already installed
-
uuidNuniq
i mean pkg-static. i thought it was a separate package
-
rwp
There is a /usr/sbin/pkg which is nothing but a bootstrap tool to bootstrap install /usr/local/sbin/pkg in order to get things going.
-
rwp
And pkg-static is part of pkg.
-
rwp
rdr, Regarding UEFI one of the things I miss about Legacy BIOS booting is that everything about booting was on disk. One could just pick up a disk and move it and boot.
-
uuidNuniq
i have /usr/local/sbin/pkg-static.pkgsave as well
-
rwp
But with UEFI half is on disk in the ESP partition and half is in CMOS RAM with the efi vars. Those efi vars need to be set with efibootmgr in order to boot.
-
uuidNuniq
rwp: with UEFI you can do --removable?
-
rwp
So picking up a disk and moving it and trying to boot now with UEFI no longer Just Works but now on my systems at least I have to boot rescue media and then run efibootmgr to set the vars to enable the disk to boot.
-
uuidNuniq
there is a standard place that UEFI firmware searches for . which is ESP/EFI/BOOT/BOOTX64.efi
-
rwp
I have heard about people who set their disks to be removable media. I have not done that myself yet. Sounds attractive.
-
uuidNuniq
i always do --removable e.g. with grub-install
-
uuidNuniq
but it will replace any BOOTX64.efi other bootloader created.
-
rwp
Is that the "fallback" boot? I have one system that refuses to boot anything but the fallback and have installed rEFIng there in order to allow it to boot sanely.
-
uuidNuniq
but why do we need multi bootloader? use a good one that boots all OSes is fine.
-
rwp
But mostly I never dual boot anymore. It's always booted to the wrong system. So now I just boot one main OS and then run the other in a virtual machine if needed.
-
rwp
uuidNuniq, The reason is BUGGY UEFI firmware. I have an HP workstation that clears the efi vars at boot time. So I can set things once and boot but it fails on the second boot.
-
uuidNuniq
rwp: ESP/EFI/BOOT/BOOTX64.efi works for buggy and sane firmware.
-
uuidNuniq
any firmware will search for that...
-
rwp
-
VimDiesel
Title: GrubEFIReinstall - Debian Wiki
-
uuidNuniq
i think you can just cp your whatever .efi to that location, it will boot.
-
concrete_houses
/dev/da1p2 on /a (ufs, local, soft-updates, journaled soft-updates) is there any danger of soft updates journalled?
-
concrete_houses
my current machien has more ram 8g
-
concrete_houses
should I move to zfs?
-
uuidNuniq
rwp: for example. on my vm freebsd: md5sum /boot/efi/efi/freebsd/loader.efi /boot/efi/efi/boot/bootaa64.efi
-
uuidNuniq
they are identical.
-
rwp
concrete_houses, I am not knowledgeable about UFS, sorry, so cannot advise. But of course I do advise *everyone* to use zfs because it is quite nice.
-
uuidNuniq
it's in a macbook m1 QEMU
-
uuidNuniq
anyway the standard search path for UEFI is efi/boot/bootaa64.efi or efi/boot/bootx64.efi
-
rwp
uuidNuniq, I think you are using the fallback system, which is perfectly fine when booting a single OS. But I think systems that have those problems cannot multi-boot different operating systems. Not easily. That's the reason for refing.
-
» rwp must run... bbiab
-
uuidNuniq
this way, you don't need to add boot entries to the UEFI firmware. just select to boot from the disk ... it will find bootx64.efi or bootaa64.efi
-
uuidNuniq
rwp: for multiboot, try to boot other OSes from THAT bootloader (which efi/boot/bootx64.efi finds)...
-
uuidNuniq
if you're doing grub, then use grub to boot everything. if you are doing refind... same
-
kenrap
I wish there was a way to specify a list of "fallback" shells for any user.
-
uuidNuniq
kenrap: you mean /etc/shells?
-
kenrap
That's a
-
rdr
make a little script that tries to load bash and falls back on a default shell if it exits incorrectly
-
kenrap
list of acceptable shells for any user
-
uuidNuniq
kenrap: just put a `if command -v bash ; then exec bash ; elif .... `
-
uuidNuniq
but how could it trigger? i mean, if the shell specified in /etc/password for the user does not exists... the user basically can't login
-
kenrap
that's what I'm trying to ponder about
-
uuidNuniq
so, what do you mean fallback
-
uuidNuniq
the code is easy to write, just a bunch of if elif ... , the trigger is the hard part
-
uuidNuniq
but sh is always there, right?
-
rdr
you could set your default shell to the script
-
uuidNuniq
so, i would set the user to use /bin/sh in /etc/password. and in user's $HOME/.cshrc, write that if elif
-
uuidNuniq
using exec
-
kenrap
Let's say since I use zsh for root and for whatever reason I uninstalled it from local and tried to login as root again. So in this list of shells assoociated to root, it will then fallback to prior shell before zsh and load that for root without not being able to log in again. If that shell doesn't exist, then fallback on the next.
-
uuidNuniq
kenrap: set csh for root, and in ~/.cshrc : if ( $?zsh ) then exec zsh endif
-
uuidNuniq
if ( $?zsh ) then exec zsh ; else if ( $?bash ) then exec bash ; endif
-
kenrap
I'll play around this idea and thanks
-
uuidNuniq
ohh don't use $?, it test a varable set or not set
-
uuidNuniq
i am new to csh, but i think there is like a command -v or something
-
uuidNuniq
maybe if ( which zsh )
-
uuidNuniq
if ( { which zsh } ) exec zsh -l
-
uuidNuniq
lol, all my bash/posix sh experience are obsolete in csh...
-
uuidNuniq
-
VimDiesel
Title: linux - How to write If-else statement in one line in csh? - Stack Overflow
-
uuidNuniq
looks like you can't write oneliner with csh...
-
mason
uuidNuniq: You don't need to use csh for scripting ever.,
-
mason
kenrap: For fallback, for root anyway which should be the only account for which this matters, it's tradition to set up toor.
-
uuidNuniq
also >/dev/null does not work.
-
uuidNuniq
mason: i think i may need to install bash and use bash instead
-
mason
uuidNuniq: Or just write scripts against /bin/sh.
-
kenrap
mason: oh, very interesting, good to know
-
mason
But yeah, I use bash.
-
mason
I set root to bash, and toor to /bin/sh
-
uuidNuniq
what is toor?
-
kenrap
-
VimDiesel
Title: toor (Unix) - Wikipedia
-
mason
uuidNuniq: reverse of root - typically a back-up account in case root has issues
-
kenrap
It feels good when I discover more "hidden gems" like this in FreeBSD
-
mason
Enjoy it while it lasts. Folks want to get rid of it.
-
kenrap
...ah, I see
-
mason
You can always add it in again, but that's not entirely the same.
-
uuidNuniq
i am on bash now. all my bash config are ported there.
-
uuidNuniq
is there a replacement of the command `tac` on freebsd?
-
kenrap
I can imagine the OpenBSD devs ripping toor out of their OS ages ago.
-
uuidNuniq
i use tac and awk to make history file uniq
-
mason
You might also like the ksh variants. I only use bash over them because of how easily it integrates emacs mode keystrokes inside vi insert mode.
-
kenrap
I think mksh is pretty close to bash in terms of features.
-
mason
or oksh, but neither does emacs keys inside vi insert mode
-
kenrap
Gotcha
-
mason
at least last time I looked - if this has changed I'll hop right over
-
uuidNuniq
toor is already with /bin/sh
-
grahamperrin
kenrap: thanks, I got that from earlier chat. Do you have a Reddit account? If not, can you post the hint somewhere as a point of reference?
-
kenrap
Apparently mksh has an "Emacs mode" and the devs have been steadily implementing more features for it over many releases
-
uuidNuniq
so, if csh is not suitable for scripting, why does freebsd have csh around
-
mason
-
VimDiesel
Title: Fiddler on the roof - Tradition ( with subtitles ) - Invidious
-
grahamperrin
meena: I guess that online manual pages for CURRENT will be refreshed when we reach pre-release (pre-alpha) or alpha
-
kenrap
I guess I will to create a reddit account, I had a few in the past but deleted them eventually.
-
uuidNuniq
mason: the explains
-
uuidNuniq
*that
-
mason
pretty much :)
-
uuidNuniq
i got to set a password for toor
-
mason
that and the shell and you should be good
-
grahamperrin
What's wrong with my use of fwget(8)? <
pastebin.com/raw/tzyRUwjL>
-
grahamperrin
Maybe I don't have the subsystem. It's a circa 2012 notebook.
-
mason
grahamperrin: Also, try -nv in case it's doing funny argument parsing.
-
uuidNuniq
tail -r can be tac replacement. good
-
uuidNuniq
if [ $(uname) = FreeBSD ]; then _rev="tail -r" ; else _rev=tac ; fi
-
concrete_houses
is this ungoogled chrome slower?
-
TommyC
concrete_houses: chromium?
-
mason
yes
-
concrete_houses
yeah update removed chrome and I had to install ungoogled-chromium
-
grahamperrin
-
VimDiesel
Title: ⚙ D40565 Remove toor backup account
-
uuidNuniq
how can i run man against /dev/stdin
-
uuidNuniq
curl some_manual | man /dev/stdin
-
uuidNuniq
does not work. however, curl -O .. and man ./some_manul works
-
kenrap
grahamperrin: I left my comment in the amdgpu post
-
uuidNuniq
mason: DAI DAI DAI DAI DUM
-
-
VimDiesel
Title: k3nrap comments on AMDGPU fails to boot
-
kenrap
grahamperrin: I don't know why it's removed either. When I logged out I noticed that but when I log in my comment remains.
-
kenrap
I assumed it was some automated subreddit thing you configured as admin to prevent spammers
-
kenrap
Woah, I was somehow given a free Reddit Premium access and an award for my comment. I feel all warm and fuzzy all of sudden
-
grahamperrin
Not configured by me, but maybe it's automated when a newcomer's first post includes a link.
-
kenrap
Gotcha
-
grahamperrin
This automation occurs silently, unfortunately (for me as a mod)
-
kenrap
grahamperrin: thank you for the reward btw, I just found out by looking through my email.
-
RhodiumToad
is the big reddit fight still going on?
-
kenrap
The whole blackout thing?
-
RhodiumToad
looks like it is
-
kenrap
Honestly, I find that type of protest both a waste of time and hurtful towards users of those blacked out subreddits that need to reference helpful info for solving their problems
-
kenrap
It's pretty much a "cut off one's nose to spite one's face"
-
RhodiumToad
nah. it's a valid response to corporate bullshittery
-
kenrap
I wholeheartly disagree. Reddit can do whatever they want. If people don't like what they are doing, they should explore alternatives.
-
RhodiumToad
whatever, this channel probably isn't the place for that
-
kenrap
Understood. Sorry for the offtopic-ness.
-
spork_css
Speaking of off-topic, this month's FreeBSD Journal is pretty amazing, with a ton of history from a bunch of FreeBSD old-timers (
freebsdfoundation.org/wp-content/up…325213a554aba948ae00a2e4bba06.2.pdf)
-
uskerine_
hi, I am struggling to mount an ext4 usb flash partiton
-
uskerine_
What I am supposed to do?
-
parv
Depends on what errors you get; how you are trying to mount the partition; etc? Probably need "ext4" support from some package.
-
RhodiumToad
best bet is the fuse extfs package
-
RhodiumToad
fusefs-ext2 is the name, but it supports ext2,3,4
-
RhodiumToad
you can try mounting it readonly using the base system ext2fs, but that's not guaranteed to work
-
RhodiumToad
base system ext2fs doesn't support journalling, I think, which is likely to be a problem
-
meena
what am i missing in this bectl call:
-
meena
meena@vault13 ~> sudo -H bectl jail -o host=inherit -o ip4=inherit -o ip6=inherit -o allow.chflags=1 -o allow.mount=1 -o allow.mount.devfs=1 -o devfs_ruleset=4 PkgBase
-
meena
# pkg update -r FreeBSD-base
-
meena
pkg: Cannot open dev/null
-
RhodiumToad
forgot to mount /dev in the jail?
-
meena
RhodiumToad: i thought devfs_ruleset=4 would do that?
-
meena
nope, mount.devfs=1 does that…
-
» meena fixes her docs
-
meena
Starting jails: cannot start jail "builder":
-
meena
jail: builder: unknown parameter: vnet
-
meena
wat
-
meena
this is 13-STABLE, btw
-
meena
this is coming directly from the jail command.
-
meena
-
VimDiesel
Title: gist:4c1d7417a83dfa796b7e105b006c4347 · GitHub
-
meena
oh weird…
-
meena
i don't see options VIMAGE in kern.conftxt …
-
meena
good grief, how have i not noticed that GENERIC-MMCCAM doesn't include options VIMAGE yet?
-
telmich
good day
-
telmich
I yesterday upgrade a box with opnsense, now running 13.1-RELEASE-p7
-
telmich
Since then some pf rules seem not to match anymore that used to match
-
telmich
I have a rule "pass in quick inet from any to 10.200.32.0/24 flags S/SA keep state" that does not match a packet going towards 10.200.32.239, the packet is blocked by the default "block drop in log inet all" rule
-
telmich
has anyone else seeing something similar happening (recently)?
-
mquin
x39
-
meena
telmich: do you have logging enabled?
-
telmich
meena: yes
-
telmich
it says it's caught by the default block rule
-
meena
telmich: so something has been restructured that's changed priorities.
-
telmich
meena: exactly, but it doesn't make sense as there is no quick in the default block
-
meena
telmich: what does the config look like when you ask pfctl to print it?
-
telmich
meena: it's quite a long list as it is generated by opnsense, but essentially:
-
telmich
- default blocks at the beginning
-
telmich
- lots of exceptions/passes
-
telmich
- pass quick inet from any to 10.200.32.0/24 flags S/SA keep state at the bottom
-
telmich
what I can see in the log is that the "block drop in log inet all" is matched for packets that are destined within 10.200.32.0/24
-
telmich
even if I widen the rule to "pass in log quick inet from any to 10.0.0.0/8 flags S/SA keep state", in case I am stupid and mismatch the network, it still does not match
-
telmich
found it
-
telmich
I removed the state S/SA requirement, even though state was SA
-
telmich
And now it passes through
-
telmich
"pass in log quick inet from any to 10.0.0.0/8 no state"
-
telmich
it's strange, as even with state tracking this should work
-
meena
what's S/SA vs SA?
-
meena
telmich: ^
-
telmich
meena: it's referring to syn/syn ack bit set
-
mason
uuidNuniq: Sorry I dropped off last night. My ISP went away. I could get packets several hops in but then some router other other in their infrastructure was dead.
-
uuidNuniq
mason: that was very sad
-
uuidNuniq
i watched the whole movie... because of that "tradition"
-
mason
uuidNuniq: Oh, good. Not time wasted. It's one of my favourites.
-
uuidNuniq
mount /dev/vtbd1p1 /mnt/ : mount: /dev/vtbd1p1: Read-only file system
-
uuidNuniq
mount -o autoro /dev/vtbd1p1 /mnt/ : mount: /dev/vtbd1p1: No such file or directory
-
uuidNuniq
i am not so confortable with these commands. my first try was always error
-
uuidNuniq
if this is in Linux, it will just mount, no complains
-
uuidNuniq
i miss commands like : lsblk, sfdisk , ss ...
-
mason
uuidNuniq: Yeah, there are some conveniences missing. The one that I have to remember is to specify the -t type
-
mason
uuidNuniq: Try with an explicit -t and see if maybe it's happier.
-
uuidNuniq
mount_cd9660 /dev/iso9660/13_2_RELEASE_AARCH64_BO /mnt/
-
uuidNuniq
this works
-
uuidNuniq
i don't know what this is :
0x0.st/H13s.txt
-
uuidNuniq
it looks like the cdrom
-
uuidNuniq
from gpart show:
0x0.st/H13z.txt
-
uuidNuniq
-
VimDiesel
Title: scripts/lsblk.sh at master · vermaden/scripts · GitHub
-
debdrup
FreeBSD is not Linux.
-
uuidNuniq
du -a -c -h -d0 ./
-
debdrup
The partition you're showing is what's known as an EFI System Partition; it's a FAT12/FAT16/FAT32 used by UEFI implementations to boot.
-
uuidNuniq
-a and -d can't be used together?
-
debdrup
Seems like it.
-
mason
uuidNuniq: Interesting. I was thinking of something a bit simpler. But look at "geom part list".
-
mason
uuidNuniq: Interesting thing, I noticed that even for things with GPT labels, not everything shows up in 'glabel list' or 'geom label list'
-
uuidNuniq
debdrup: but which efi? the ISO?
-
debdrup
glabel is for GEOM labels
-
debdrup
GEOM labels aren't partitions
-
uuidNuniq
mason: geom part list outputs the same thing as gpart list
-
mason
uuidNuniq: I mostly want to do a quick look-up tool where you say 'glookup foo' and it'll spit back just the entities that have foo as provider, consumer, or label.
-
mason
uuidNuniq: yes
-
mason
debdrup: The interesting thing is I never set explicit geom labels, ever. I set GPT labels. And some of my GPT labels show up in 'geom label list' and some do not.
-
mason
debdrup: They all show up in 'geom part list'.
-
debdrup
uuidNuniq: the ISO uses a hybrid CD-9660/USB boot schema that makes it act as either a CD/DVD or a disk (typically, BIOS implementations expect you to define whether a USB drive is either a CD/DVD or a harddisk, but with the hybriad approach, that isn't necessary).
-
debdrup
mason: which 'all'?
-
mason
debdrup: Example:
bpa.st/RIU3G So, this was done the same way I do all my GPT labels, but in this case, da5/da5p1 is missing from 'glabel list'
-
VimDiesel
Title: View paste RIU3G
-
uuidNuniq
debdrup: i see 3 "disks", so vtbd1 is basically the same as iso9660/13_2_RELEASE_AARCH64_BO in this case
-
debdrup
mason: I can't keep track of things when you elid everything
-
debdrup
uuidNuniq: yes, the iso images will show up as both the actual partition and the hybrid image; what exactly is the problem you're facing?
-
mason
debdrup: That's the relevant bit from 'geom part list' - and that label doesn't appear anywhere in 'geom label list'.
-
debdrup
mason: only things with a GEOM label can appear in `geom label list`, whereas things with a GPT label can appear in `geom part list`
-
mason
debdrup: Right! So why do most of my things evidently have a GEOM label? That's puzzling since I never explicitly assign them.
-
mason
If they're inferred, why aren't they ALL inferred?
-
debdrup
mason: most of your things don't appear to have GEOM labels if they're not appearing in `geom label list`
-
uuidNuniq
finally : mount_msdosfs -o ro /dev/vtbd1p1 /mnt
-
mason
-
VimDiesel
Title: View paste AHCUW
-
mason
I've never once set an explicit geom label.
-
uuidNuniq
so the issue is , the mount command on freebsd lack of auto detect filesystem type
-
mason
uuidNuniq: Yes. You can also say mount -t foo if you prefer that form.,
-
uuidNuniq
mason: but i don't know what the filesystem is called on freebsd. i tried fat fat32 vfat efi ...
-
uuidNuniq
but it is actually msdosfs...
-
mason
uuidNuniq: msdosfs
-
mason
yes
-
uuidNuniq
gparted list shows it's type is efi
-
mason
uuidNuniq: mount<tabtab> will show some common ones
-
uuidNuniq
ok. is there a command to know the filesystem type before mount? or else i don't know what to feed to -t
-
mason
uuidNuniq: I'm not sure where there's an authorative (or queryable) list of mount types currently supported.
-
mason
uuidNuniq: file(1) perhaps?
-
mason
uuidNuniq: In practise I don't see enough different types for it to be an issue.
-
mason
Mm, not file(1). Unsure.
-
uuidNuniq
file says : /dev/vtbd1p1: character special (0/72)
-
mason
Yeah, sorry, that was my just being hopeful.
-
mason
uuidNuniq: My advice, don't let this kind of thing throw you off. It's minor in the grand scheme of things.
-
mason
I'm too prone to let minor annoyances redirect me, and it's not as useful as it might be.
-
uuidNuniq
mason: thanks, i agree.
-
debdrup
mason: wrong property
-
debdrup
label != name
-
lesta
file -sL
-
uuidNuniq
lesta: cool, thanks
-
lesta
welcome
-
debdrup
mason: I dunno what you've done to your install, I only have a single label and that's from the swap zvol.
-
uuidNuniq
file -sL is a very good command.
-
mason
debdrup: Beats me. This is just my experience of what the system is giving me.
-
mason
Anyway, the upshot is that everything shows up in geom part list, and I'm going to whip up a little tool to ease mapping.
-
uuidNuniq
i am goona read through the handbook. looks like lots of commands and things are totally different in here
-
debdrup
uuidNuniq: see what I said earlier. ;)
-
mason
uuidNuniq: Random note, if you've grown accustomed to 'watch', realize that it's something else in FreeBSD, and what you'll want is the 'cmdwatch' port.
-
uuidNuniq
there is a util-linux package, i did pkg install. and then it has wipefs blkid findfs... but they all print empty stuff...
-
uuidNuniq
debdrup: yeah, i thought based on my Linux (cli only) and macOS (mostly GUI) it's gonna be easy for me to play with Freebsd but i was wrong
-
mason
uuidNuniq: It will be. Just takes some time to learn the dialect.
-
uuidNuniq
mason: watch is another command here : snoop on another tty line
-
mason
uuidNuniq: I had the same jump when I moved from NetBSD to Debian years ago, and a similar jump picking up what's different about FreeBSD some years after that.
-
debdrup
uuidNuniq: it's pretty much agreed-upon that the more flavours of Unix-likes you're intimately familiar with, the better the sysadmin you are.
-
uuidNuniq
mason: i was hopping distro a lot, and settled on Debian. all my servers are debian right now. but i found that debian is really complicated inside. so many wrappers with complex code, stuff like debconf, dpkg-reconfigure, they are perl + sh combined... and it's too complex when i read the code... so i decided to give FreeBSD a try
-
debdrup
There's also something called the "UNIX Rosetta Stone" which you might look for, to help you move from one Unix-like to another.
-
markmcb
uuidNuniq: this is exactly what led me to FreeBSD
-
debdrup
It hasn't been updated since The Event, so there are things that might require you to be familiar with how things used to be - but it's still quite handy for everything else.
-
markmcb
Debian is great for stability, but don't ever look under the hood, lol
-
mason
uuidNuniq: Yeah. There's a ton of infrastructure in Debian. FreeBSD is certainly more straightforward. That said, I run both as they're both worth using and strong in different ways. Shifting more towards FreeBSD of late.
-
mason
bbiab
-
debdrup
Debian is ~70 million lines of code (of which ~24 million is the Linux kernel itself); FreeBSD comes in at a svelte 14 million lines of code.
-
markmcb
I find FreeBSD strikes a nice balance of up-to-date ports and a stable base. Debian gets a bit stale with its long release cycle.
-
debdrup
For comparison, Windows and macOS are estimated to be north of 100 million.
-
markmcb
I've attempted several times, but nothing ever beats macOS on the desktop for me. FreeBSD for servers.
-
uuidNuniq
debdrup: i liked the stability of Debian too and mutil arch support, but it is now mixed with the Debian way and the systemd way... network configuration for example ... and cron vs timer, and they have init scripts along with systemd services ... however, i wrote a sh script to bootstrap debian (400 lines of posix sh code ), it takes 2mins to install, and everything is setup inside my script.
-
markmcb
uuidNuniq: have you ever tried Void? It's like BSD and Linux had a child. :)
-
uuidNuniq
markmcb: i use only macOS for desktop.
-
kenrap
I like the fact that FreeBSD even has a seperation of base and local. Linux doesn't have. If I want to "clean out" my package installations without breaking the system, then not a problem.
-
uuidNuniq
markmcb: yes, i also wrote a void bootstrap script using xbps-static. it is simpler but what i worried about is that they don't have enough devs, some packages are not up to date due to that.
-
markmcb
uuidNuniq: i agree. i was a long time user, but lxc (fairly critical IMHO) went like 4 months with a blocking bug on btrfs due to lack of maintainer. i had to ditch it.
-
uuidNuniq
and Void devs don't (have time to) deal with bugs and PR/Mrs
-
uuidNuniq
MRs
-
uuidNuniq
and others i liked once are Alpine (lack of devs), Arch (pretty good, but only x86_64) Gentoo (good, but not for lowend hardware)
-
markmcb
in the realm of *nix desktops, i always found Arch to be the best experience. up-to-date and no junk. plus wayland+gnome is so good on a hidpi laptop. i know X gets a lot of love here, but i feel it's daylight and dark from an experience standpoin.
-
meena
does most Software even work on wayland without Xorg compat?
-
markmcb
I've never had issues
-
rj1
i intentionally don't install xwayland and everything i use works great
-
rj1
wayland is very good and adoption is high
-
uuidNuniq
markmcb: yes, arch is very good for daily use except critital servers. i was a long time Arch user.
-
markmcb
uuidNuniq: funny you say that. after void failed me, i attempted arch as my server OS because I like it on laptops ... bad idea. lol. so i found myself choosing between Debian and FreeBSD. I'm still in the honeymoon period, but I think I'm in love with FreeBSD :)
-
mason
uuidNuniq: FWIW, nothing forces you to use systemd with Debian:
github.com/ChibaPet/install-debian-zfs-sysvinit
-
VimDiesel
Title: GitHub - ChibaPet/install-debian-zfs-sysvinit: Install Debian on ZFS, with sysvinit, optionally encrypted.
-
uuidNuniq
Arch is ok for not important servers, i used arch as a VPS OS for some years, never breaks, it is a pity they don't include aarch64 (it is another project , only one maintainer.). i fall in love with FreeBSD when the installation menu shows up, and the whole installation is fantastic simple and clean.
-
mason
FWIW, as we drift afield, #freebsd-social exists. I'm there and happy to carry on there.
-
uuidNuniq
mason: i use btrfs on Linux because it is supported natively. i will never go back to sysvinit.
-
debdrup
uuidNuniq: I used Debian for all of a week back in 2000, then got frustrated with the lack of documentation. Since then I've just used FreeBSD.
-
uuidNuniq
debdrup: speaking of documentations... yes, that's a sad story, debian's apt dpkg docs are confusing. Arch wiki is the best.
-
uuidNuniq
i think this is a bug, the du command , -a can't be used with -d
-
debdrup
I can't spot why it shouldn't work, so it probably is a bug, yeah.
bugs.freebsd.org is the place where reports go :)
-
VimDiesel
Title: FreeBSD Bugzilla Main Page
-
Ltning
Are there any PCIe-SSD devices that are well-supported in FreeBSD? I need ZIL devices for a 4-6-way NVMe pool, but it's silly if they're slower than the pool devices. :)
-
debdrup
Ltning: PCIe SSDs can either work via da(4) (as a SATA device, which I assume you don't want), as an NVMe disk via nvd(4) or nda(4), with the latter being preferred because it supports the CAM I/O scheduler
-
debdrup
Ltning: also, you might wanna make note of
openzfs/zfs #14520
-
VimDiesel
Title: Implement shared log pool for ZFS by pcd1193182 · Pull Request #14520 · openzfs/zfs · GitHub
-
kenrap
Hasn't nvd(4) been dropped in favor of nda(4) only in 14-CURRENT though?
-
debdrup
I'm not sure I'm comfortable recommending any specific device, but a log device generally doesn't need to be big, it just needs to have MASSIVE write tolerances - so datacenter NVMe SSDs are generally preferred, since they can always be overprovisioned.
-
debdrup
kenrap: well, that switch is pretty recent, but yes
-
Ltning
Yea we're using Intel Optane for ZIL on our current database servers
-
debdrup
I suspected as much.
-
Ltning
Those have insane IOPS and high write tolerances. Also they fail in a predictable fashion.
-
concrete_houses
ublock origin not available for ungoogled-chromium :(
-
debdrup
Given Intel just killed Optane, it seemed like a bit too much of a coincidence.
-
Ltning
But those are not faster (by any meaningful degree) than the NVMe SSDs we're looking at, and yes Intel just killed off their most interesting SSD product.
-
debdrup
Ltning: for what it's worth, the team at Intel went to work with SK Hynix; this is what caused me to buy a Solidigm P44 for my laptop.
-
kenrap
concrete_houses: you need to install "chromium web store" extension first
-
debdrup
err, new workstation*
-
Ltning
Our ZIL is like 4GB mirrored per pool (and yes I'm watching that PR closely).
-
concrete_houses
kenra: from the extension or using pkg
-
kenrap
the former
-
Ltning
But my understanding is it's not much point having a ZIL that is slower than the data disks - unless you have very high read load
-
kenrap
concrete_houses: go to its github repo and follow the instructions in the README.md
-
debdrup
Ltning: it's not a ZIL, though. It's a Separate Intent Log
-
Ltning
SLOG devices. Sorry.
-
debdrup
the ZIL is still on the actual pool devices, the log device just exists to speed up synchronous writes.
-
debdrup
If you have an NVMe pool, having a log device won't help you.
-
Ltning
That depends on the size (in device count) and usage of the pool.
-
debdrup
Do you have actual numbers showing that it makes a difference?
-
Ltning
We're maxing out 14 SATA SSDs now, so even when switching to nvme we'll have pretty high per-device load
-
debdrup
SATA SSDs are still painfully slow.
-
Ltning
Sure, but we go from 14 to 4 devices in the pool.
-
Ltning
And no, I don't have numbers because this isn't tested yet. I just want to know what kind of devices I might want to consider IFF it turns out to be useful/needed.
-
debdrup
Not only is the interface limited to ~550MBps due to having to send 10 bits for every 8 bits transferred over the SATA connection, but SATA NCQ is limited to 1 queue of only 32 items. NVMe has 64k queues of 64k items.
-
Ltning
If nothing else they reduce the write counts on the main SSDs
-
debdrup
The point is, you don't have an NVME pool.
-
debdrup
So yes, you still get the benefit from a couple of NVMe log devices.
-
Ltning
You're forgetting the batched writes. We have constant writes to the SLOG devices, and flushing every 10s. Since we run 128k block sizes (for compression), but mysql I/O is in 16kb blocks, the SLOG devices save us from a lot of the write amplification.
-
Ltning
I don't know if that is going to be an issue with new NVMe SSDs.
-
Ltning
Whenever we need to turn off the SLOG devices now, latency goes up, busy rate on the main SSDs goes way up, and bytes written (in the smart data) accelerates a lot.
-
Ltning
(Happened a couple years ago when our first-gen optanes suddenly stopped working - they both failed a couple hours apart, after ~2 years :D )
-
concrete_houses
firefox here I come
-
concrete_houses
memory leaks and all
-
concrete_houses
no firefox is so sluggish agggkgkgk
-
concrete_houses
github crap ok
-
kenrap
🤷
-
concrete_houses
I beleive sql db are sscam
-
concrete_houses
ever read henry baker on files being faster?
-
concrete_houses
werc.cat-v.org + varnish+ha-proxy
-
kenrap
brb, going to do the CURRENT upgrade-rebooting dance.
-
uuidNuniq
concrete_houses: use Safari
-
uuidNuniq
the best browser
-
concrete_houses
LOL
-
concrete_houses
I wish chuck moore would do a web browser in FORTH :) might work in 1/10,000th the code
-
concrete_houses
I am using ungoogled-chromeium
-
CmdLnKid
ignition source located !!! now slapping with a large amount of trout juice
-
concrete_houses
still feels way more zippy that firefox
-
parv
CmdLnKid, "trout juice" lol
-
concrete_houses
is that a zoomer diss?
-
concrete_houses
IM too old to understand
-
concrete_houses
maybe a military phrase?
-
» CmdLnKid slaps concrete_houses with a large trout
-
Ltning
What is this ungoogled thing?
-
CmdLnKid
ltning, plenty of things im sure that don't involve the goog
-
Ltning
concrete_houses mentioned "ungoogled-chromium"
-
parv
Ltning, I take that to mean removal of various tracking, ad showing, & privacy busting code removal
-
Ltning
Whoa, it's actually in ports. *jexec poudriere.child*
-
parv
Ltning, If that is actually so, do not know the extent
-
concrete_houses
latest pkg upgrade removed charome
-
Ltning
parv: which part?
-
concrete_houses
and you have to use ungoogled-chromium
-
concrete_houses
its probably for my own good but now no ublock origin and screenshot plugin until i goto github on a safari to install something
-
parv
Ltning, What do you mean?
-
Ltning
parv: "..do not know the extent"
-
parv
Ltning, Do not know the extent of (as wrote earlier) of "removal[/proper replacement] of various tracking, ad showing, & privacy busting code removal"
-
Ltning
Ah I see. Sorry, I'm dense.
-
parv
-
VimDiesel
Title: GitHub - ungoogled-software/ungoogled-chromium: Google Chromium, sans integration with Google
-
Ltning
Yep, I am not only dense, but also lazy. I did locate it. Now figuring out why I broke my poudriere.
-
Ltning
Wonder if LTO is safe .. :D
-
debdrup
Once again to the rescue: `top -m io`
-
grahamperrin
kenrap: are you thinking of these commits? <
freebsd/freebsd-src bdc81ee>,
-
VimDiesel
Title: nvme: Switch to nda by default · freebsd/freebsd-src@bdc81ee · GitHub
-
grahamperrin
-
VimDiesel
Title: nvd/nda: Add release notes info. · freebsd/freebsd-src@6a8d407 · GitHub
-
kenrap
grahamperrin: yep
-
meena
Ltning: re LTO: depends on the project. sometimes, the speedup isn't worth it. MongDB took 9 hours to link, so LTO was disabled
-
meena
-
VimDiesel
Title: 271919 – databases/mongodb50: ld.lld takes over 10h to complete on arm64 on 32-core machine
-
CCFL_Man
so i have a single device pool with a failed drive that I don't care about the data. i can't remove the device from the pool because there are no other devices in the pool. is my only option is to remove the pool?
-
debdrup
kenrap: I'm curious, do you know about src/tools/build/beinstall.sh ?
-
VVD
CCFL_Man, zpool destory?
-
debdrup
You'll also want zpool-labelclear(8)
-
VVD
zpool destroy
-
kenrap
debdrup: I don't unfortunately.
-
debdrup
kenrap: if you use zfs, it can create boot environments and install the new base system into it using chroot, which you can then boot to temporarily using bectl (it does this by default)
-
kenrap
Oh, awesome!
-
debdrup
if it fails to boot, you can use the loader to switch back to the old boot environment
-
debdrup
it makes running -CURRENT exceptionally easy :3
-
kenrap
Sweet! \o/
-
debdrup
-
VimDiesel
Title: MetaMode - FreeBSD Wiki
-
derzahl
is this channel for all arch's or is there a dedicated one for arm64?
-
derzahl
im trying to find out if there are any semi-recent arm64 laptops that are known to mostly work with freebsd but haven't had much luck
-
mason
TIL FreeBSD has the new procmail:
freshports.org/mail/procmail-bgrb
-
VimDiesel
Title: FreshPorts -- mail/procmail-bgrb: BuGlessRB fork of the procmail local mail delivery agent
-
kenrap
debdrup: I'm all configured with metamode. Thanks again for sharing about those two methods.
-
kenrap
I was planning on learning to use bectl with CURRENT upgrades. So coincidentally, beinstall.sh conveniently fills in that idea for me.
-
debdrup
derzahl: #freebsd-mips on EFnet is probably a better place to ask
-
la_mettrie
#bsdmips
-
la_mettrie
...though that's developers' channel and the question is rather a user level thing
-
mason
#freebsd-xorg on EFnet might have opinions, and that's end-user friendly.
-
derzahl
ok thanks
-
CCFL_Man
VVD: thanks
-
CCFL_Man
debdrup: why labelclear?
-
CCFL_Man
prevents data from being restored?
-
CCFL_Man
and also, why would I want "IT mode" firmware on an HBA?
-
mason
CCFL_Man: IT mode is the "let the system manage it" mode, as compared with hardware RAID.
-
mason
CCFL_Man: You generally want to let the system manage the attached devices directly.
-
CCFL_Man
mason: understood. otherwise, the HBA would?
-
mason
CCFL_Man: That's generally the idea, yeah - if not in IT mode, the computer can't actually see the underlying drives as they are.
-
mason
I could be confused, but this is how I understand it.
-
CCFL_Man
mason: understood. that makes sense. i'll have to flash my HBA with IT mode firmware
-
CrtxReavr
Anyone recognize this number?: 1688768316000000000
-
mason
CrtxReavr: DDG thinks it's a FedEx tracking number.
-
CrtxReavr
DDG?
-
CrtxReavr
echo $(( $(date +%s) * 1000000000 ))
-
CrtxReavr
It's nanoseconds past the epoch.
-
mason
DuckDuckGo
-
CrtxReavr
I want to like DuckDuckGo, I really do. . .
-
CrtxReavr
I just don't find their search results very good.
-
spork_css
re: DDG - when I was searching for some stuff while reading about Unix/FreeBSD history, I realized Google is more awful than I realized. I hit some of the same stuff on Bing (which apparently is where DDG pulls from) and had way more info.
-
spork_css
DDG's main annoyance for me is that dumb infinite scroll crap - I really, really prefer pagination.
-
V_PauAmma_V
DDG had an option for disabling infinite scroll, or had one last I checked.