00:27:49 based on what i just read here https://wiki.freebsd.org/WiFi/Rtw88#Currently_known_issue 00:28:35 it sounds like i can get my inspiron's wifi card working if i just put a 4GB stick of RAM in it (it currently has 8) 01:39:03 how can I initiate a zfs send/receive, from the receiving machine, also using netcat 01:40:18 can I do something like: nc -l 9999 | zfs receive -F ssd_bkp/mail_home && "ssh host1 zfs send -v zfs/mail_home@mail_home-20241023182500 | nc -w 1800 host2 9999" 01:45:47 why netcat ? 01:49:22 no encryption limitation 01:49:30 guess I could use mbuffer too or some other variant 01:57:31 ZedHedTed: you just limit your config for it. but the rtw88 is buggy on 14.1 01:59:30 FreeBaSeDGirl: seems I misread. we have a different issue. the freebsd servers were not involved. 02:05:58 last1: look for transfer file with netcat.. then test with a file.. and then replace the file with the send/receive 02:16:01 last1 why netcat? If the problem is speed using ssh, you can use arcfour cipher. The transfer will take place quickly. 02:47:15 hello my php-fpm dissapeared and I cannot get it to work anymore not sure why 02:47:21 or what happened? 02:51:27 sixpiece: disapeared how ? 02:56:24 I don't know 02:56:30 it seems like magic 02:56:41 but seriously service php-fpm restart stopped working 02:56:57 it started with all kinds of warnings and then it suddenly dissapeared 02:59:03 sixpiece it was changed. use php_fpm instead 02:59:17 service php_fpm restart 02:59:43 I am getting a lot of warnings 02:59:47 all of a sudden 03:01:21 https://termbin.com/ttig 03:01:52 sixpiece nothing wrong now. Its not a warning 03:02:05 it's not working anything :( 03:02:11 php_fpm was started 03:02:19 https://hydroponique.shop/ 03:02:21 see the status: service php_fpm status 03:02:38 php_fpm is running as pid 64323. 03:03:40 Well, it seems nothing related to PHP FPM, but maybe php version or module. Did you upgrade major php version (eg. php8.1 to php8.2)? 03:04:42 I think so by accident but there was no warning 03:04:45 :( 03:06:14 it just removed it when I added this package but no warning that it would remove it :9 03:06:40 fpdf 03:07:56 If you upgraded major php version, maybe there some plugin incompatibility with this version. Let me see your packages (please termbin): pkg version | grep 'php' 03:09:05 it's not responding 03:09:21 just wait 03:09:31 is there a way to get back 8.1? 03:10:37 Yes, but wait. 03:10:58 The command returned to you something? 03:12:02 You need to calm down, run the command above that I mentioned. 03:12:56 https://pastebin.com/wAyq9NZd 03:15:22 strange. Create a file phpinfo.php with content: 03:15:50 that was the problem it erased php83 and replaced it with php82 now it's working thank you 03:16:36 ober: i don't think i can change the config on a live system 03:17:05 https://videotron.eu/pastebin/?210606fb41e8c789#BuSJhh97aDcYSUxTBacfpxYHypNF26JaXTWrAtnLjUQS 03:19:09 thank you devnull 03:19:31 sixpiece you're welcome, but you have misc php versions installed: mod_php74-7.4.16, mod_php80-8.0.30, php81-libawl-0.64 , etc....Remove unnecessary packages. 03:22:02 And before upgrade major php version, always test your website on development environment (creating a subdomain like dev.hydroponique.shop). Updating in a production environment without testing first is a risk. 03:23:02 But I'm glad that helps. 04:37:38 hi. git 2.47 added support for git-prompt.sh in most shells (including ash-based like in freebsd), while up to 2.46 it only worked in bash and zsh. i was wondering if anyone tried it, and if yes, were there issues? (i wrote the compatibility changes) 04:46:16 the source file is at contrib/completion/git-prompt.sh but distros install it in different places, typically someplace in /usr/share/ or /etc/ 04:46:42 (no idea whether freebsd installs it) 08:57:21 sixpiece: if you're using zfs then you can create a "boot environment" and mount it into a jail, upgrade packages etc, and if it works, then switch it over. 08:57:42 here's a good place to ask about advice if any of that sounds useful / needs more explaining 08:57:48 jails + zfs is the super power 09:11:10 avih: use the plist? %%CONTRIB%%share/git-core/contrib/completion/git-prompt.sh ? (%%CONTRIB%% is the conditional for the CONTRIB option) 09:11:55 dvl: for some reason freshports fails to show plist of devel/git 09:11:59 nimaje: not sure what you're asking. i was asking if anyone tried it out and if there are any comments. 09:12:31 (i know how to use it and where to get it from. i was asking if ither tried it) 09:12:40 others* 09:14:26 your comment about the file location looked like the question where it is on freebsd 09:18:09 last1: https://gist.github.com/dch/3333118#using-mbuffer-for-speed and use the `-c` option on send, to send blocks that are compressed on disk, also compressed over the wire. 09:18:45 last1: mbuffer helps a lot as zfs is bursty on both ends, keeping the pipe full is important 09:20:48 avih: its in `/usr/local/share/git-core/contrib/completion/git-prompt.sh` 09:21:30 dch: oh, thanks. so it's installed together with git? 09:22:18 avih: yup, AFAICT in all flavours (CONTRIB is in OPTIONS_DEFAULT in the port Makefile) 09:22:23 although before git 2.47 it was not usable with the freebsd /bin/sh, but now it should be. previously it only worked with bash or zsh 09:22:24 erm 09:22:44 apart from git@lite 09:22:53 cool. nice. 09:23:02 did you by any chance try it out? 09:23:07 I just use whatever fish shell does by default 09:23:13 so not yet 09:23:48 yeah, it doesn't work with fish AFAIK. it requires posix-ish sh plus support of "local" (which all ash derivatives have, like freebsd /bin/sh) 09:23:55 it already does this stuff https://fishshell.com/docs/current/cmds/fish_git_prompt.html 09:24:48 i see. by the identifiers names, i guess it tried to follow upstream git-prompt.sh to some degree 09:24:55 tries* 09:26:36 (which makes sense, because upstream supports also global or per-repo config values via the bash.* names, although again, now it works with almost all posix-ish shells and not only bash 09:29:03 so the fish git prompt uses the existing config values) 09:47:11 avih: the (pkg-)plist is a file* that lists all files a port will install, so you can look into that if you want to know if some optional file from a project gets packaged and where or if some project gets split into multiple ports you can search each ones plist to figure out which brings the file, freshports can also search plists for you (*well, the final plist is build while building the port, 09:47:13 as for a small number of files, having it in some variables in the makefile is more ergonomic, then having a seperate file; but some ports use that to dynamically building the plist, which makes searching it from just the ports tree impossible) 09:48:23 nimaje: right, thanks. though currently i don't have freebsd installed. i mainly wanted to check if anyone tried it out and get some feedback if possible. 09:49:12 (i guess i could check the packages online as well, though for now it's enough that you confirmed it is installed together with git excepr for the lite package) 09:49:25 except* 09:49:35 so it's a good start! :) 09:57:18 how can i add uefi freebsd to grub for boot 09:57:31 to gpu 09:57:34 sdd 09:58:20 for mbr is menuentry "FreeBSD" { root=(hd1,7) chainloader +1 } 09:58:27 e.g. 1,7 09:58:48 in grub.d/40_custom 09:59:10 this is for non-uefi for mbr sdd/hdd 09:59:31 but for uefi sdd/hdd gpt how 09:59:36 gpu=gpt 09:59:39 i mean 10:07:35 should be like you chainload any other uefi program, the boot loader is simply named loader.efi 10:08:38 then should be menuentry "FreeBSD" { insmod part_gpt insmod fat set root=(hd1,gpt7) chainloader /efi/freebsd/loader.efi } ? 10:08:49 i think 12:21:27 So I ordered a server from Hetzner, also a 16-GB usb stick, burned FreeBSD iso in linux rescue mode, then requested KVM, so far, fine.. However, the problem now is, FreeBSD installation says; 12:21:57 "No interface specified for IPv4 configuration" it seems, FreeBSD does not recognize the NIC interface on that server? :/ Am I wrong? Any clue would be much appreciated. 12:24:09 The mainboard is: ASUS System Product Name/PRIME B760M-A D4, BIOS 9017 02/07/2024 12:26:51 And one more info from rescue mode regarding network: RTL8226B_RTL8221B 2.5Gbps PHY r8169-0-500:00: attached PHY driver (mii_bus:phy_addr=r8169-0-500:00, irq=MAC) 12:26:57 r8169 0000:05:00.0 enp5s0: Link is Up - 1Gbps/Full - flow control rx/tx 12:48:01 tercal: might be you need to find the device name and put that in your rc.conf. 12:50:35 It's Realtek, but bootable FreeBSD (13.x and 14.1 I tried) does not find any NIC. Would simply adding "re0" with a DHCP configuration let's say, in rc.conf, really work? 12:55:00 tercal: if you drop to a shell in the installer, does pciconf -lv show a driver attached? 12:55:15 The re driver supports RealTek RTL8139C+, RTL8169, RTL816xS, RTL811xS, RTL8168, RTL810xE and RTL8111 based Fast Ethernet and Gigabit Ethernet adapters including: 12:55:44 i was pretty sure its supported. 13:00:20 my current server uses re0. i havent installed freebsd as a new install on that particular server since ...2014ish. :) its gone thru a few motherboard changes and I have changed the driver, in rc.conf. . VMs i install are always the virtio driver.. so yeah toss a dhcp config for re0 and fire it up 13:03:12 mrelcee: in case of going fully manual, nothing to load in terms of kernel modules for re0? 13:03:28 is it as simply as adding related lines in rc.conf? some kldload thing? 13:03:50 re should be included in GENERIC kernel, i doubt adding anything to rc.conf could fix this 13:04:13 you could try the net/realtek-re-kmod port, but you'd need to get it onto the server somehow 13:06:01 hetzner doesnt run the freebsd instasller. they dump a generic install onto the boot drive they also rent a lot of different machines... 13:07:44 isnt "No interface specified for IPv4 configuration" a message from bsdinstall? 13:09:22 they barely support BSD. in the past I have needed to boot a linux rescue disk to do any fixes. got pretty creative a few times using a hex editor to unmess a very unfortunate pf config. :) 13:09:37 typo 13:09:50 ivy: Yes within the installer 13:12:30 tercal: so if you have a usb stick, i'd suggest grabbing the realtek-re-kmod package for whatever release you're using, extract it, then copy the new module (i think it's called re_updated.ko) onto the usb stick and try to load it in the installer. might work, might not 13:12:49 by 'load it in the installer' i mean drop to a shell and use kldload 13:13:03 are you connected to it via their IP KVM? 13:13:07 also grab the pciconf -lv output at the same time 13:13:23 and a copy of dmesg wouldn't hurt while you're there 13:19:41 will let you know ivy and mrelcee as soon as I get the KVM access again, yes mrelcee I was connected to it via their IP KVM. I created a iso file containing only the if_re.ko from the package: realtek-re-kmod-1100.00_1.pkg for FreeBSD 14, so I will mount it on the KVM interface as virtual cdrom, and try to mount the iso file within the FreeBSD OS after I install it without networking. But is it possible to mount that iso, and get the .ko module from there 13:19:41 and embed it into the installer, ivy? 13:20:52 i don't know about 'embed it into the installer', i'd just copy the .ko file and kldload it to see if it works, if it does, you may want to put the .pkg on the usb stick or iso as well so you can install it after the installer is finished 13:21:16 i.e. boot installer, load .ko, install, reboot, install the package into the new system 13:21:16 if_re_load="YES" in /boot/loader.conf if its not finding it. 13:21:43 there's also realtek-re-kmod198 package, i'm not sure which is newer off hand 13:23:02 ivy: https://www.freshports.org/net/realtek-re-kmod/ seems 1100.00 is the latest one. 13:24:58 that is the official realtek offering and does support more devices 13:37:12 Okay got the KVM now, starting up 13:40:22 ivy: That's the output of your suggested command 13:40:29 pciconf -lv in the installer shell; https://i.ibb.co/60T1Zrd/ssh.png 13:42:14 did loading the module work? should show up as re0 if so 13:42:40 here it is: https://i.ibb.co/4Ngfr0Y/ssh2.png 13:42:48 "if_re.ko module already loaded or in kernel" 13:43:01 Perhaps it's good now - somehow? I will give it a try. 13:43:21 "ifconfig" reports only lo0, though 13:43:36 tercal: you need to specify the full path to if_re.ko 13:43:45 as the message says it won't load it from the current directory 13:44:01 the current working directory had already if_re.ko? I was in the extracted folder 13:44:11 yes, but you need to specify the full path 13:44:15 e.g. kldload $PWD/if_re.ko 13:44:33 kldload doesn't look in the current directory by default 13:44:40 kldload /tmp/test/if_re.ko reports: 13:44:53 if_re.ko unsupported file type 13:45:09 please check dmesg(8) for more details 13:45:11 that usually means a kernel linker error, is there anything new in dmesg? 13:45:46 Get out and vote, Americans. . . vote early, vote often. 13:45:56 ivy: Here it is https://i.ibb.co/5KX4yrT/dmesg.png 13:46:10 toss if_re_load="YES" in /boot/loader.conf and put: ifconfig_re0="DHCP" in rc.conf. 13:46:37 tercal: hmm. try copying it to /boot/modules/if_re.ko then do 'kldload if_re.ko', that's what the real package does 13:46:40 manually loading it puts it there this time... 13:47:05 it may be you need to load it from loader.conf, but that's going to be difficult in the installer 13:47:07 ivy: read-only file system 13:47:19 that's the shell from USB stick's installer image 13:47:19 maybe it's worth installing the system from the usb stick, then reboot into the new system and install the package there? 13:47:29 yep better 13:47:31 will proceed then 13:47:40 you don't need the network to install as long as you're not using the minimal image 13:48:03 or bootonly or whatever it's called 13:48:17 back to my commentary on hetzner not really being bsd friendly. :). if you can manage it we accept your money! 13:48:27 i don't guarantee this will work btw, it might be even the realtek driver didn't support this card 13:48:37 ivy: my image was FreeBSD-14.1-RELEASE-amd64-memstick.img - proceeding 13:49:58 tercal: i also notice you're using Raptor Lake, be aware the FreeBSD scheduler does not support hybrid architectures currently (as far as i know) so you might want to play with cpusets to get best performance 13:50:51 assuming you can get it working at all, of course :-) 13:56:16 ivy: That's the latest situation when adding if_ko module in /boot/modules and adding appropriate lines in loader.conf and rc.conf, then rebooting the os; 13:56:17 https://i.ibb.co/rZNXtty/if-ko.png 13:57:33 tercal: that's not great, if no one else has an idea you might need to ask on net@ 13:58:19 Good morning! Why does the RPI img use UFS instead of ZFS? Is there an inherent overhead in using ZFS that makes it unsuitable to use on a Pi? 13:59:43 thank you guys anyway 13:59:51 back to Ubuntu on this box 13:59:53 would you really want to run ZFS on a CF/MMC card? (that's what the pre-installed rpi images are intended for) 14:00:19 not to mention would you not rather have the additional free memory for your applications 14:03:09 I'm a freebsd newb and was hoping to get some experience with zfs on a bunch of pi's i had sitting around. 14:03:40 i figured there was a reason for ufs on them instead of zfs and what better way to find that reason than to ask? 14:04:28 I assume you have a fairly reasonable pc, why not just create a virtualbox, bhyve or kvm vm; install freebsd in it and test away to your hearts content 14:05:21 I can. I can also do VM's on my proxmox cluster. I was just trying to find something to do with 12 raspberry pi 4 8gb's. lol 14:05:43 if you do not need them donate them to a local school or college? :) 14:06:07 stdout: if you have a spare SSD, a useful learning exercise would be to install a ZFS-root system on the SSD and use that instead... 14:07:01 you REALLY dont want zfs on a sd card... 14:07:50 lol, ok 14:10:12 why is zfs on a sd card bad practice? does zfs have high IO or something? 14:11:10 it can end up doing more writing than UFS, yes. in high-load situations there's not much difference but small random writes can end up writing more data 14:12:37 it also relies on the disk supporting cache flush command and i would certainly not rely on any mmc card to support that 14:14:12 woulda been so nice if they had managed to include a sata port on pis, going back... 14:15:49 mrelcee, yeah, i would suspect that they didn't because of everything sharing the pci bus. 14:16:42 i just retired my pi4, my microsd managed to survive just over 3 years running pihole on it and later i had tossed a couple small dockers on it.. samsung evos do well.. 14:18:06 I went for a 256G usb pen for mine over the sdcard, its still playing retropi happily in the kitchen 14:18:39 wait mine might be a 5 ... I have not seen it for ages ~whistles~ 14:18:47 lol 14:19:15 5s havent exactly been out ages. i mean a while now.. 14:20:02 time flies eh 14:22:21 I got fed up with raspis not being able to use freebsd-update to do os updates. dont remember if arm became tier 1 for 12 or 13.. i was used to it running debian by that point and it woulda been work. :)\ 14:23:14 last one i had on bsd was my pine64 board 14:23:25 i didn't know that. 14 installed fine and updated to 14.1p6 without any immediate signs of an issue. 14:23:54 used to get a message if you ran fbsd-update that said it was not supported 14:24:32 majopr PITA copying your data off, imaging and installig apps and returning your data 14:24:52 i ended up having them runing very old versions 14:26:02 at that point they had enough power to be a really nice local DNS server 14:26:44 bind9/isc-dhcpd. 14:32:41 then i went slacker and did it all with pihole on a 4. 14:35:13 now ive dumped my ubiquiti router and stuck a proxmox/opnsense box on so ive got freebsd running my network again. little i3 minipc with 2 cores set for the opnsense VM is just above idling handling the traffic with all the features turned on. 14:35:20 now ive dumped my ubiquiti router and stuck a proxmox/opnsense box on so ive got freebsd running my network again. little i3 minipc with 2 cores set for the opnsense VM is just above idling handling the traffic with all the features turned on. 14:35:28 whoop 14:45:02 Am I correctly understanding 271673 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271673) in that once its blockers are resolved FBSD gets python 3.12 and can much more easily port 3.13 and future versions? 15:27:59 tercal: ah, you are Özgür i assume? 15:31:33 ZedHedTed: compat.linuxkpi.skb.mem_limit=1 in /etc/sysctl.conf 15:41:22 This seems to be the easiest way to run a command from a script, in a jail, which has multiple steps: sudo jexec freshports /bin/sh -c "cd /usr/ports && make fetchindex" 15:46:39 I suggest make -C /usr/ports fetchindex instead of sh -c "cd … && …", but that of course only works for commands that have an option to chdir themself 15:53:06 dvl: seems reasonable 15:53:41 now it gets more complex to do this one:cut -d \| -f 2 ${PORTSDIR}/INDEX* | while read d; do cd $d && make -V ALLFILES | tr " " "\n" | grep -v '^$' || : ; done 15:53:58 nimaje: why `make -C` 15:55:07 mrelcee: thanks 15:56:02 dvl: jexec freshports sh - < ivy: I'll try that format, thanks. 15:57:04 you do need to escape $ and \ for that syntax 15:57:45 dvl: ah, no, use <<'EOF' to avoid the need to escape 15:57:52 just checked and freebsd /bin/sh does support that 15:59:09 thanks 15:59:57 I'll try right after my current attemp 16:03:18 * kevans eyeballs <<'EOF' 16:03:49 kevans: i didn't know about it either but it works! 16:08:38 * ivy adds WITNESS to all local kernel configs 16:08:55 every time i boot with a debug kernel i find a new LOR, so i may as well just go all in 16:13:13 tw/20 16:13:18 sorry 16:15:01 dvl: you don't need to spawn a sh to cd (if you only need make there) 16:32:24 background -> I'm attempting to implement this plan: https://bsd.network/web/@piero/113424940736028713 16:34:34 That command pasted above has been running for 35+ minutes so far. 16:51:51 Personally I prefer <<\EOF syntax over <<'EOF' but they are equivalent. 16:52:20 This is documented in the man page: "If the delimiter as specified on the initial line is quoted, then the here-doc-text is treated literally, otherwise the text is subjected to parameter expansion, command substitution, and arithmetic expansion (as described in the section on Word Expansions)." 18:23:12 My current block is:[18:20 r720-02-ingress01 dvl /jails/freshports/usr/ports/distfiles] % find . -type f | head 18:23:12 ./clamav-1.4.0.tar.gz 18:23:32 That leading ./ is the issue. I have a list of distfiles. 18:23:47 I was looking for a way to ask find not to include the ./ 18:28:09 I could use `find *` but that might hit shell expansion limits. 18:40:21 how can i setup wireless networking with bsdconfig in fbsd 14.1 there is no one wifi network in list and nothing found 18:40:39 also there is no ethernet card found 2.5gb 18:40:58 wpa supplicant custom setup not works 18:41:07 with commands and rc.conf 18:41:13 i don't know 18:42:06 i don't know how to setup the wifi i have two wifi adapters and no one wifi network is found 18:45:16 dvl: maybe `find . -type f -execdir echo '{}' \;` 18:46:07 ridcully: Yes, that helps. thanks. 18:47:34 Also just literally removing the first ./ like this: find . | sed 's/\.\///' 18:51:07 brutex: maybe pastebin what you put in rc.conf 18:52:04 ober: i'm doing this on a live system where the filesystem is read-only. i guess i should just bite the bullet and install it first. 18:53:01 lts: That might be better, because -print seems to remove the entire path. 18:59:18 ProTip for troubleshooting SSL/TLS: openssl s_client -connect example.com:443 -showcerts 19:24:55 Hi!, there's a server (a TrueNAS Core) that suddenly started resilvering. All disks are ONLINE without errors. What can be causing this resilvering? 19:25:00 As mentioned this is a TrueNAS Core, based on FreeBSD 13.1 19:26:07 https://termbin.com/kkjt 19:27:34 Might just be a periodic scrub run which is doing its job detecting and silvering as needed. But check /var/log/messages and look for any errors logged there. 19:31:08 rwp: but if scrubbing shouldn't be written in zpool status somewhere? 19:34:24 I look at my notes and see, yes, it should say something similar to "scan: scrub in progress since Sun Jun 4 18:43:22 2023" there. 19:35:05 Then I would definitely look in /var/log/messages and see what is logged there. 19:36:51 rwp: I don't see anything related to zfs there. 19:38:07 zpool status from the command line say anything about scrub? 19:40:39 dvl, martinrame shared https://termbin.com/kkjt 19:42:15 martinrame, Nothing logged? I would have guessed that the raw drive device would have indicated something like "kernel: GEOM_MIRROR: Device swap: provider gpt/sw0K1G42J7B disconnected." (example from here) or something. 19:42:43 Or similar to "kernel: da5: s/n K1G42J7B detached" 19:42:59 there's also "zpool history" 19:43:19 rwp: yes, on oct 31 there was a: GEOM_MIRROR: Device swap0: provoder ada0p1 disconnected. 19:43:31 +1! I had not thought about "zpool history" but that's an excellent log record of events. 19:45:24 and ada0p1 is the one being resilvered 19:45:56 now, why the message "provider ... disconnected", maybe cabling issue? 19:49:32 in zpool history there are many zfs snapshot... and zfs destroy (I have a task to create snapshots once per day and once per hour depending on the dataset and destroy those older than a week). 19:50:11 fetccbhbrdfijlblftkhlhdflhtvvvhrtvvjhulfjnfi 19:50:16 ^ sorry 19:56:57 fetccbhbrdfijgvbkvhctehjrrvvhchittvfvfkgveee 19:59:59 If an auto-snapshot process is in effect such as zfs-auto-snap then snapshots are always being created and destroyed. I believe syncoid+sanoid does this as well. That's all probably normal. 20:03:43 martinrame, It does seem a mystery. I know you are going to let it finish. After it finishes check the zpool history and zpool status and see what the ending information is and please report it back here because I will be curious and will look for it. 20:04:45 rwp: yes, what I'm trying to understand is why it takes so long for resilvering. I started on 2024-10-31 and it only did 34% 20:05:07 martinrame, Hold-up. Has that one resilver been running since Thu Oct 31 22:05:33 2024? What type of drive is it. Is it an SMR drive? If so then this is a pretty typical problem with SMR drives. 20:05:10 rwp: those are 2 12tb drives. 20:05:45 rwp: let me see 20:05:50 Let me just come out and say this. SMR drives are simply incompatible with RAID storage. Okay as single solo standalone drives for archive storage. Not for use in a RAID. 20:06:58 rwp: yes, I know that. I took special attention when buying those, there are Ironwolf Pros (ST14000NE0008) 20:07:07 rwp: I'm re-checking 20:09:30 https://www.seagate.com/products/cmr-smr-list/ says it is CMR so you should be good-to-go there. 20:09:57 Here says IronWolf Pro are not SMR: https://www.seagate.com/la/es/products/cmr-smr-list/ 20:10:09 :-) 20:10:15 hey folks, do jails work on arm7 hardware? 20:10:30 I've got an rpi 2b+ running 14.1-RELEASE 20:11:03 the manual on how to create jail says to download a `base.txz` from an arm64 directory – I'm assuming I have to adapt this for my own machine 20:11:25 however, there doesn't appear to be anything other than SD card images available for armv7 20:11:51 martinrame, Then I don't know why the resilver would be running for 5 days now. I would check the interface speed. Should be 6Gbps, right? smartctl -i will list it, among other commands. 20:12:44 zip, First, I know nothing about running on an RPi but you can create your own base.txz image if you can't find one already made for you. 20:13:15 It would be possible to copy your currently running system and use it to create a jail of it. That would be okay. 20:13:33 zip, alternatively, you could mount the image file and extract the base.txz 20:13:54 ah, neat 20:13:56 That would work too. 20:14:17 I'm not sure the image file would contain a base.txz 20:14:32 A jail needs to have a full operating system file system with programs and libraries and everything. Everything except /boot and the kernel because that is using the hosting system. 20:14:34 rwp: yes SATA 3.3 6.0 Gb/s 20:14:54 ah, so I'd just extract anything that's not boot? 20:14:59 martinrame, Totally unpleasant and unexplained then. No idea! 20:15:11 rwp: hehe, yes I know 20:15:17 zip, Correct. And possibly not /usr/local if it already has /usr/local installed stuff there. 20:15:23 rwp: also SMART results are ok. 20:15:31 ports/pkgs install to /usr/local 20:16:13 In a pure base only install /usr/local is empty. And then when you install ports/pkgs they install there. 20:17:04 If you are using zfs then basically the contents of the zroot/ROOT/default dataset minus /usr/local constitute base. 20:17:17 the SD image is a ufs one, unfortunately 20:17:30 The files on disk won't know the difference either way. 20:17:35 indeedy 20:17:41 I just miss out on the helpful zfs stuff 20:18:10 apparently the rpi can happily boot off a USB stick and will do so by default if it's got a boot directory that only contains `bootcode.bin` 20:18:36 I suspect I'd need a bit more experience here before I attemt to surgically transfer an entire BSD install over to an external usb drive though 20:19:31 What is the architecture? arm64-aarch64 I look and see this: https://download.freebsd.org/snapshots/arm64/aarch64/ISO-IMAGES/14.2/ 20:19:38 arm7 20:19:46 by far the easiest way to install/upgrade jails is using pkgbase, and there are official pkgbase builds for armv7 20:19:55 Images can be mounted as rafe suggested and files extracted from them too. 20:20:20 https://wiki.freebsd.org/PkgBase -- however it's still a bit rough to get the initial setup done so maybe an intermediate/advanced use case 20:20:34 I have not played with pkgbase yet and so know nothing about it. 20:20:36 well, let's do this the raw way so I've done it the hard way once 20:20:48 so, next question: loop mounts – same as linux? 20:21:14 I see https://download.freebsd.org/snapshots/arm/armv7/ISO-IMAGES/14.2/ too 20:21:36 mdconfig? 20:21:59 well, I can't run a 14.2 jail in 14.1 if I've understood the manual correctly 20:22:39 That would be running a 14.2 userland on a 14.1 kernel, which is not advised 20:23:27 The next older one that I see is https://download.freebsd.org/snapshots/arm/armv7/ISO-IMAGES/13.4/ 20:23:53 Since there seems to be no 14.1 images avialable. I have no information other than what I see there. 20:24:53 zip: Regarding loop mounts; if you want to mount an image, look at mdconfig. If you want to mount a dir at another dir, look at nullfs 20:30:38 looks like i can't `-o compress` my way out of this one 20:31:11 time to wait for a machine that was low-power 8 years ago to decompress a 5gb image 20:31:13 to an SD card 20:33:05 say, is there anything in the rulebook that says I gotta copy the base system out of this img or can I just leave that sucker mounted and use it directly 20:33:21 likewise does a jail suffer for containing `/boot` or does it simply not matter 20:33:36 Am I correctly understanding 271673 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271673) in that once its blockers are resolved FBSD gets python 3.12 and can much more easily port 3.13 and future versions? 20:35:07 ... oh, I'd probably have to fstab it, and I'd have to figure out how to make `mdconfig` run before mount to do that 20:36:36 it is odd that there are no armv7 txz sets on download.freebsd.org 20:37:06 I'm gonna race this little operation with the thinkpad 20:38:04 14 seconds to decompress lol 20:42:11 zip, It's somewhat funny but you can create a jail out of your own running root image. "jail -vc path=/ name=foo command=/bin/sh" and then you have a jail running on top of your base OS. 20:42:33 fair enough 20:42:57 well, mount fails, telling me it can't find `/dev/md0` 20:43:05 I'm assuming that's because `/dev/md0` contains two partitions 20:43:19 It actually has advantages. One can "capture" an installed process and run it in a jail trivially. 20:45:51 well, linux apparently gives us `kpartx` to automagically mount all partitions, but it is not doing that 20:45:56 meanwhile the pi has finished decompressing 20:46:31 and `fdisk` on FreeBSD informs me that the start of partition 2 is 104448 20:46:35 so let's try mounting with an offset 20:46:55 never, ever use fdisk on freebsd 20:47:00 the command you're looking for is gpart 20:47:15 fdisk is some legacy junk from the 386BSD days 20:47:23 ah, okay 20:47:29 well, `mdconfig` doesn't know about offsets 20:49:01 If you have done the mdconfig -f imagefile and there are partitions then /dev/md0* should show the md0s* slices of it. 20:49:33 so there are! 20:49:43 well, you certainly don't get that for free with linux 20:49:49 even if the documentation says otherwise. maybe it doesn't like ufs 20:50:31 alright, I assume `md0s2a` is a slice and that's what I should be mounting 20:51:03 md0sa would be the first BSD partition in the second slice on the disk, which is another weird artifact of 386BSD 20:51:08 md0s2a i mean 20:51:31 well, seems like I can only actually mount `md0s2a` anyway 20:51:51 I would assume that `md0s1` is the MSDOS partition 20:51:53 You can also run: for p in /dev/md0*; do fstyp $p; done 20:52:19 oh cool! 20:52:53 is this the rpi sd image? i think that's probably the only place you still see this old partition syntax nowadays, everyone else has moved to uefi 20:53:05 or gpt rather 20:53:05 sure is! 20:53:06 Linux will autodetect most file system types. In FreeBSD you pretty much have to specify them. So for example: mount -v -t msdosfs /dev/da0s1 /mnt 20:53:35 anyway, I've got my root system image 20:53:56 Also "file -s" will identify them too. Mostly. for p in /dev/md0*; do fstyp $p; done 20:54:00 I assume I want to copy everything except `boot` into my template directory 20:54:06 Oops. I meant: for p in /dev/md0*; do file -s $p; done 20:55:03 if you're making a jail, you want to find the sets, which i think (?) are in /usr/bsdinstall or /usr/dist or something like that 20:55:20 oh, /usr/freebsd-dist 20:56:40 not the whole thing? 20:57:30 well... i suppose you could just copy the image but they have some odd changes like adding the 'freebsd' user which you might not want. if the sets are there they should be more pristine 20:57:44 I got a `/usr/libexec/bsdinstall` 20:58:11 but `/usr/libexec` kinda seems like it's for system utilities that you would never run manually like `getty` 20:58:30 wait hang on 20:58:40 yes, if you don't have /usr/freebsd-dist maybe it doesn't include the sets 20:58:41 could I have just run `bsdinstall /usr/local/jails/my-jail` this whole time 20:59:37 oh, nope, couldn't find a MANIFEST 21:00:38 right let's grab rsync so I can copy this shit over without looking at a blank terminal for an hour 21:00:40 if you can scrounge up an rpi4 i promise this is much easier :-D 21:00:55 armv7 is kind of a weird half-supported release 21:03:03 I'm gonna assume I can exclude `/rescue` from my jail base as well 21:03:22 usually, yes, although you can also build tiny jails entirely out of rescue 21:03:27 honestly it kinda seems like you could fuck about and have a minimal jail that only has exactly what the jailed service needs 21:03:35 but if you're not doing that you can exclude rescue 21:03:46 good good I didn't want to fuck aroudn with getting rsync to hardlink it properly instead of copying the same damn thing twenty times 21:04:07 i have a jail here that does nat64 and it's just rescue and a 15-line /etc/rc, works great 21:04:33 possibly I'm putting myself through a lot of unnecessary pain here 21:05:42 maybe I need this 300mb of clang.debug 21:06:00 see, this is why pkgbase is so nice, you can just not install all this junk 21:07:16 I'm still mad that my damn hp elitedesk mini decided to shit the bed earlier in the week 21:07:31 maybe if I give it the time for its caps to lose power it'll start working again 21:07:44 I don't much want to be using an ancient shitty raspberry pi for this 21:11:10 in the end I went with 21:11:14 `sudo rsync --delete-excluded --exclude usr/tests --exclude rescue --exclude boot --exclude usr/lib/debug -Pa /mnt/* 14.1-RELEASE/` 21:11:28 probably could have yeeted a bunch of `.h` files too 21:11:55 you might find the first time you run freebsd-update it puts all of that back... tbh i'm not really sure how it handles that 21:21:41 mm, maybe 21:21:57 makes me wonder what a minimal jail to run `freebsd-update` would look like 21:22:36 I guess a point in the linux column is that it's nice and easy to build a container out of alpine, which is 8mb 21:24:00 oh, I expect I'll need to set a password and delete the freebsd user in this jail 21:24:19 pkgbase isn't quite that small but i think a very basic installation is < 100MB -- of course once you start adding actual applications it gets a bit larger 21:34:12 I bet 21:34:23 I'm certainly doing this the clunky way 21:34:35 and I'm not convinced that the documentation here makes sense 21:36:19 like I'm just making files all over hte place and they don't seem to link up 21:37:41 I can see we're making a base and a skeleton directory 21:38:19 and it kinda sounds to me like the skeleton is runtimey stuff and the base is the common, not-modified-at-runtime stuff 21:38:50 so we symlink all the runtime stuff in base to `/skeleton/etc` and so forth 21:39:22 and then it just doesn't seem to add up in the suggested fstab 21:39:44 oh wait, maybe it does 21:40:09 wait are you doing the "thin jail" stuff? don't do that, it's awful 21:40:26 sure seems like it 21:40:32 just make your jail a complete copy of freebsd, no special tricks 21:40:44 ugh but that's 1.2Gb 21:41:22 well, I suppose I only care after the second jail 21:41:48 and yeah this is clearly too much work to simply spin up a new service 21:42:42 hi, i was wondering if anyone tried git-prompt.sh, which, starting at git 2.47, supports most shells, including freebsd /bin/sh (previously it supported only bash and zsh). i wrote the compatibility fixes, and was wondering where people tried it out and maybe have some feedback. thanks. 21:43:03 zip: once you get zfs this won't matter as you can just enable dedup :-) 21:43:10 s/where/whether/ 21:45:25 i believe it is available in freebsd together with the git packags, except git@lite (thanks to dch for looking it up), at /usr/local/share/git-core/contrib/completion/git-prompt.sh 21:47:03 ivy: aye. well, maybe I'll try moving all this to a USB thumb drive on zfs or something 21:47:07 if the installed version is before git 2.47, then the latest can be fetched from upstream, ans it's a stand-alone script - https://git.kernel.org/pub/scm/git/git.git/plain/contrib/completion/git-prompt.sh 21:47:17 as* 21:48:09 I suppose technically i could use `zfs send/receive` to dupe my laptop to elsewhere and then have a go at bsd on the laptop 21:48:49 actually I've got `/pool/ROOT/void` and `/pool/home` already 21:50:11 I wonder if I could just stick BSD on here next to it 21:51:17 at the very least I imagine that I could put BSD next to it in a way that might require me to juggle bootloaders to go back to linux and no further effort 21:53:39 ugh, spamcop dnsbl is ipv4-only 21:55:13 the wife pinched my spare thumb drive to dump the data off a laptop she was formatting so I guess I have to go get a new one for projects 22:03:18 thank you for the help, by the way! 22:59:20 Hi! Is there any BSD based distro to recover/fix Windows installations? 23:02:17 not sure bsd is the best tool for that 23:02:34 as bsd can barely mount the filesystem 23:08:56 doesn't windows have its own recovery tools? 23:12:23 zip, I think it does however I haven't use them. 23:12:45 I remember long time ago booting some linux distro 23:35:19 There's a number of very handy, Linux-based "utility" distros. 23:36:07 https://pogostick.net/~pnh/ntpasswd/ 23:36:08 i would start with the windows recovery options 23:36:32 https://clonezilla.org/ 23:36:53 https://www.system-rescue.org/