00:08:55 basically i'm looking for the correct way to copy (recursively) the contents of a dir into a new dir that doesn't exist yet. is it cp -R src/ dest ? 00:20:09 i'm reading that the most correct way is cp -R src/. dest 00:32:15 kerneldove, Love to love rsync as it is the swiss army knife of file copying. rsync -av src/ dst/ Put the trailing slash on both the src and dst directories! Very important. 00:33:13 That will make those two directories the same. If you want dst/src to be the result then rsync -av src/ dst/src/ and Bob's your uncle as the British say. 00:34:44 f451, The first time you benefit from having a Boot Environment then you fall in love with having Root on ZFS. Boot Environments ROCK! 00:35:10 i'm asking about cp not rsync ai slop 00:37:23 kerneldove, You think I am an AI? But I usually pass the Turing test! I even have a t-shirt with "I am not a robot" on it. (I do actually.) 00:37:47 no, rsync has become that 00:37:57 ya i know you've been in here forever 00:38:40 I know the author has started to vibe code but there is no evidence that the tool itself has been made bad yet. 00:40:43 ya cool i'm asking about cp 00:41:48 No. He has not started to vibe code. You should understand what 'vibe coding' is first. 00:41:54 For cp you might want to use cp -av src/ dst/ too. Basically the same rules apply. 00:42:32 'vibe coding' implies you have no understanding or care for what code is produced, you dont review it, you do everything through a prompt, im sure thats not the case with rsync. 00:42:53 I am sure that is not the case with rsync. Agreed. And I still like and use rsync. 00:43:45 cool so what's with cp -Rp src/. dest  <-- the . after / 00:43:49 A lot of people object (also without thinking too much) about the license and are embracing OpenBSD's OpenRsync rewrite using the BSD license only because of the license change. I am sad about this because it is a lot of wasted effort and both are free software licenses. 00:44:44 If you don't say . then . is assumed. So src/ and src/. are equivalent. Same thing. The dot is explicit. Without the dot it is implicit. 00:45:01 I agree. For me, license forks are usually questionable. Altho I get that GPL is hard to buy into. 00:45:03 In the case of a symlink then things around symlinks can be somewhat subtle. 00:45:36 I don't see any cases where someone should fear the GPL. But that's a conversation for another time. 00:45:45 :) 00:46:12 In the case of a symlink foo -> bar then if you cp foo you copy the symlink. But if you copy foo/ or foo/. then you push through the symlink and copy the directory it is pointing at, in this case bar. 00:46:52 Putting the trailing foo/ forces it to be considered a directory, pushes through symlinks if it is a symlink. 00:47:07 In the case of a destination it avoids ambiguity. 00:47:26 rwp ya but -P is implied with -R 00:48:11 If dst does not exist then it is assumed to be inside the parent directory. Then src is put into the parent directory and the name is changed to dst. But if the directory already exists then it puts src into the dst directory. Putting a trailing slash on it avoids that ambiguity. 00:49:02 The -P applies to files that cp is listing and copying as part of the recursive copy. The symlink issue I describe are for program option-arguments. 00:51:22 trailing slash on "it" (the source or destination?) 00:52:31 my original question: basically i'm looking for the correct way to copy (recursively) the contents of a dir into a new dir that doesn't exist yet. is it cp -R src/ dest ? best i've found so far is cp -R src/. dest 00:52:41 Applies to both source and destination directories. Both are directories. Applies to directories. 00:53:48 ya but that's not what i asked about 00:53:52 If you don't know if dest exists, then if dest exists (and I am sure that at some point it might) then it will copy src into dest/src. 00:55:02 I think there are four cases in the logical truth table. Work through each of those four test cases and prove to yourself what happens in each of the cases. Then you will know for certain what happens in each of the cases. And then do it again with symlinks in play. 00:55:30 ok so coming back to original goal, what's the correct way to recursively copy contents of a dir into another dir that may or may not exist, creating it if it doesn't exist? 00:55:30 Not ghosting you but I must do something in real life. Later! 00:55:35 np cya 01:13:33 seems jails don't have /home by default? 01:26:15 kerneldove: that depends on how they were created 01:26:34 ? 01:26:53 but every jail needs to have /home created for it to have it no? 01:28:16 why would it? 01:28:57 what 01:29:13 "depends on how they were created" go on 01:29:34 just expanding base for a new jail doesn't seem to have a /home dir 01:30:46 so `mkdir /home` if you have a user that needs it 01:30:52 but it's merely convention to have it all 01:31:16 wow all that in response to "seems jails don't have /home by default?" when you coulda just said "yes" 01:31:24 weird waste of your own time 01:45:41 so i set up this jail to accept ssh connections, i try to ssh in, says pty allocation request failed on channel 0? 01:48:26 ah looks like devfs 02:03:21 lol 02:05:36 sup 02:17:19 is there something I need to change in my kernel config to boot zfs okay? I know GENERIC has zfs support, but it's acting quite the opposite. https://github.com/supaplextor/tech-bucket/blob/main/FreeBSD-15/mountroot.md 02:17:53 ok ya devfs fixed it, can ssh into jail now 02:18:21 supaplex did you use the gui installer and pick auto zfs? 02:18:44 stock generic kernel has zfs support built in 02:19:02 right, so include should pick that up. 02:19:02 you need some stuff in /boot/ loader and /etc/ for zfs, but the installer does all that 02:19:25 I don't recall how I installed. it's been about 6 months 02:34:55 supaplex: are you named after the famous DOS game? 02:38:47 hodapp: yup 02:38:53 :D 02:40:03 hodapp: I think I got to about level 30ish and could not finish the game, but plenty of good memories around that game. 02:40:21 I forget what levels I made it to 02:40:28 my siblings and I all played it 02:46:10 okay, so I built a kernel around GENERIC config (no changes), and after build and install and boot, I get the same error 45. FreeBSD 15. 03:10:47 supaplex: is your disk formatted as zfs? 05:48:27 is it always good to run zfs with the sysctl vfs.zfs.vdev.min_auto_ashift=12? 05:57:15 i could answer but i don't want to waste my time 05:57:49 not petty at all 05:59:51 i don't think you'd need ashift 12 if you have a real drive with 4k sectors 06:05:29 i thought ashift 12 was explicitly for modern drives 4k sectors? 07:41:29 it doesn't really hurt when the sectors are smaller, at most a bit of space lost and pretty sure only acient drives have smaller sectors, "modern" is relative and 512e is just 4k sectors, but the drive firmware lies to you and then rewrites the 4k sector to change the 512 sector you have given it 07:43:51 so to be safe and consistent, why not always set vfs.zfs.vdev.min_auto_ashift=12 when using zfs? 08:07:52 yeah, just set it, like the installer automatically does 08:09:26 if you already have 4k sectors (and the drive firmware doen't lie) then zfs will use an ashift value of 12, as that is what the drive needs the min in min_auto_ashift means that it won't go lower even if the drive sector size would allow for it and I'm not sure about it being changeable after creating the pool, so it is for 512e drives, to avoid the performance hit from using those fake 512 08:09:28 sectors and afaik also to have your pools future proof in case you start with real 512 drives, but add 4k drives later 10:24:30 nimaje: it's definitely not changable. ashft is set at pool creation time 10:25:12 to 'change' it you'd need to destroy the pool and recreate it 13:49:29 freezmi: No, after akamai took over they send me every 2 months abuse tickets claiming my server is hacked 13:50:50 talked about that here before.. I think I was really hacked using old mediawiki script.. I removed access to it, my site is nearly 100% static now 13:53:12 used many antivirus for scan.. 0 malware, they now claim my server is been used for spam and brute force 13:53:59 also no one hacked via ssh 13:54:19 wait 13:55:00 let chck 13:55:13 'I can't detect anything' is hardly a proof of 'it's not happening'. a misconfigured MTA has been historically one of the top culprits behind spam, and that has nothing to do with 'malware' or 'viruses' 13:57:05 no no I think I find it 13:57:22 squid proxy 13:58:46 I was testing squid proxy few years ago on my host.. just wanted an USA ip, but then I lifted it there 14:00:31 heh. so you let the world proxy web traffic through your system, and you're surprised that it was used in malicious manner? 14:00:55 forget it.. when I was checking for services now found it running.. I think there is some bots grapes those open proxy anonymous proxies and list for public.. this why https://spys.one/en/ have some nice fresh ones 14:02:41 also linode last 6 months have problems from those bots they took down nearly 50% of their data centers in last nov 14:05:40 ai bots is real problem now days :( I don't know how they guessed the url.. 14:09:58 but weird they found the new ip after I changed it.. I didn't connect it to my domain 14:13:44 nesta: yes 14:15:15 my thoughts is real https://www.ip2proxy.com/139.162.205.21 ... Fraud Score : 80 :O 14:16:19 2TB of data monthly was passing through it 14:16:57 good that I haven't been jailed 14:27:59 https://www.ditatompel.com/proxy/asn/63949 my thoughts about akamai linode having problem with ai bots is also real.. my ip is listed there 14:30:06 well, a ipv4 is only 32bit, scanning all ipv4 doesn't take that long 14:31:22 s/hacked/cracked/ from earlier, fwiw 14:32:29 beware guys form those bots.. and I know I am stupid, but this bots is getting better day after day of finding private services even if it have login they could break it.. like in and italian private email service I know 14:32:45 *an 14:33:56 many hosts now is suffering from them 14:34:40 mosaid: This might be better fodder for #freebsd-social since it's not really about FreeBSD at all. 14:36:13 Ok, I will no more talk about it.. just warned 14:41:14 mosaid: just change the provider if akamai still sends you unsubstantiated abuse tickets 14:41:29 no it's real ones 14:41:42 but they suffer form bots attacks 14:41:58 all hosts suffer from it 14:42:04 you mean AI web scrapers? 14:42:38 yeah.. but evil ones searches for exploits and private services.. open ports 14:43:53 maybe it's time to follow a FreeBSD hardening guide :) 14:44:03 ceck last Nov.. cloudflare down, linode data centers in asia down, azure DDOSed, etc.. 14:45:10 Still better to talk about this in #freebsd-social. 14:45:34 wait ah wrong tab heh 14:45:40 sorry 15:21:02 i'm curious: what do you use to monitor processes, used memory and other things- top, btop, htop or another tool ? 15:21:27 htop 15:21:31 top 15:22:05 systat 15:22:21 zpool iostat 15:23:55 htop is god-king of terminal monitors. it can show anything if you just configure it so 15:24:33 it can even show ZFS ARC statistics 15:24:34 btop's pretty good, too 15:25:22 yeah but especially in virt setup nothing beats htop. 15:25:22 guest-cpu%, stolen cpu time (in guests for time stolen by other guests) 15:25:22 pressure stall information (PSI) 15:25:51 haven't seen any other tool that can show these 15:33:01 thank you, all 17:24:01 Can someone help me with the process of updating the version of a port? net-mgmt/yaf is at version 2.13.0 from Feb 2023 and I would like to update it to current 2.19.3, it builds fine from source but I would like to update the port 17:47:15 ke5c2fin: update DISTVERSION and reset PORTREVISION then update distinfo via make makesum and try to build the updated port, when you got it to build in poudriere then open a problem report on bugs.freebsd.org 18:32:41 nimaje: thank you, I will try this. So far I have been using portmaster, can this be done via portmaster as well or should I familiarize myself with poudriere? 18:53:12 for proper build isolation you should build with poudriere before creating a PR, but to get it working first I recommend make build directly in the ports tree, so that you only have to catch forgetten dependencies and problems with packaging via poudriere 19:07:06 Thank you, I will give this a shot. 23:50:25 Should I have sa.ko in /boot/kernel/... ? Here's my kernel config: https://github.com/supaplextor/tech-bucket/blob/main/FreeBSD-15/mountroot.md#built