00:00:08 ketas, Yes, I see that in the man page, but being 3:00 here, I must rush to bed! 00:00:22 See ya all tomorrow! 00:01:29 hmm did it have reload too 00:01:37 :) 00:02:36 Sat Jul 6 03:02:36 EEST 2024 00:02:37 eh 00:02:43 right 00:03:13 it's suddenly night! 00:52:45 people 13:22:42 If I know the MAC address of a device with a dynamic IP, how do I use `arping` to see if it's on the network? 13:51:40 so as a quick and easy backup for my zmirror, I can't yet afford a more robust version, but I got a spare 1TB SSD... my zmirror is HDD, but I only have 2.5" mounting left, no more room for 3.5". so I will use the SSD as a backup for snapshots. However I got two questions. If I remember correctly, snapshots are not encrypted (even if you got zfs encryption enabled), however if I geli the SSD then I 13:51:42 should have no issues with this right? and secondly... say there was a complete failure... the filesystem is gone... I had to completely reinstall... can you recover from snapshots or would you need a complete backup of all the data (say a tarball)? 14:28:25 . 15:07:46 polarian: so you want to create a snapshot on your encrypted pool and then zfs send|recv it to a backup pool then whether or not the data on the backup pool is encrypted should depend on whether or not you created that one as an encrypted pool 15:08:53 my question was, say if you reinitalised the zpool as for example both disks were lost... can you zfs recv the old snapshots and fully rebuild... or would you need a complete backup? 15:08:57 say a tarball of all the data 15:13:56 so you have the pools "zmirror" and "backup" and send|recv a snapshot from "zmirror" to "backup" and then loose "zmirror"? then all the data is on "backup", the snapshot itself is just a reference to a root node of a dataset at some point in time, with send|recv you send all data referenced by that snapshot and recreate the dataset on the target pool 15:52:33 Hello, ketas and rwp. I have finally managed to connect my laptop to wifi, but I spent a lot of time bumping my head until I learned this bug was to blame: . The Wiki says it affect only machines with >4GB RAM, but it is present of mine, with 4GB. I wanted to fix that information, but cannot seem to register. Is a Wiki for personnel only? 15:57:13 ...Is there a GUI-based network manager for FreeBSD, accessible to non tech-savvy persons? 15:57:47 you have to request an account via email https://wiki.freebsd.org/Wiki/About#How_To_Create_an_Account (probably as an anti-bot messure) 16:04:11 Thank you. 16:27:08 I have just installed networkmgr (), and start it from the GUI terminal. The documentation, however, claims it should start automatically at login via XDG autostart, and indeed I have networkmgr.desktop under /usr/local/etc/xdg/autostart , but no autostart occurs. Can help me debug it? 16:37:47 why would it need to autostart? 16:38:12 for wifi i've used, hmm what was it 16:39:04 and i'm not surprised if wifi had actual driver or hw issue 16:39:04 ketas, it's the GUI mangaer sitting in the tray. It should autostart to let the user activate/decacitve/connect the various networks. 16:39:36 ketas, my RTW880 has acknowledged issued, yes -- see the referenced bug. 16:40:23 when the xfce laptop still worked hmm what was that thing i uses~d 16:40:29 was simpler 16:40:59 i guess you mean something that actively manages it? 16:41:21 ketas, consider this question as a kind request to assist me in debuggin why XDF autostart won't start my manager. 16:41:39 ketas, yes, with a graphical interface. 16:43:45 https://opal.com/src/wifimgr/ worked at that time and was only option back then 16:43:55 unsure about autostart 16:44:18 under what, too :p 16:44:27 networkmgr () works as well, only it needs some additional setup to autostart. 16:45:11 ketas, if you have Xfce, you will probably have /usr/local/etc/xdg/autostart with some .desktop files. 16:45:26 my laptop hardwarely broke so i don't currently have my fbsd xfce4 machine anymore 16:45:32 :/ 16:46:13 Ah, I see. I hope you didn't lose important data. 16:47:13 one hdd also broke, elsewhere, there i lost things 16:47:32 but not there 16:47:54 I lack the discipline to backup my stuff. 16:48:27 oh i have backups, they are offsite too 16:48:41 just they have to be recent 16:48:53 ant-x: well, you have to debug whatever handles that xdg autostart stuff for you 16:49:16 nimaje, Yep. I looked into /var/log/messages, and saw nothing mentioning xdg 16:49:41 i think autostart has always worked for me 16:49:58 x logs elsewhere 16:50:09 Oh.. 16:50:10 at least back then it did :) 16:50:22 I think it still does. 16:50:51 ant-x: well, what do you use for your graphical sessions? what does it about that xdg autostart stuff? 16:51:13 nimaje, I use Xfce and lightdm, if that's what you are asking. 16:51:39 I read that Xfce supports XDG. 18:27:46 ant-x, I had some people recommend wifimgr to me but I have not tried it. 18:44:05 I'm wondering why stat(1) apparently ignores the time format I specified with the `-t` option. Here's an example: http://paste.debian.net/plainh/25bd3e8f 18:51:08 msiism, The -t format was specified and overrode it. 18:51:53 msiism, No, I guess I don't know. I'll play with it. 18:59:04 When msiism returns maybe say to try "stat -f '%Sm' -t '%Y-%m-%d' hello" there. 18:59:55 I haven't played with FreeBSD stat(1) much before and now that I have I find it weird. 19:00:09 msiism, Maybe try this: stat -f '%Sm' -t '%Y-%m-%d' hello 19:03:48 I think I might even be able to explain the behavior now. But I can't rationalize it. 19:05:01 Weird… 19:05:31 I expected it to need Unix time to generate formatted time output… 19:08:26 Same on NetBSD, by the way. 19:21:37 So the way I understand it stat(1) uses the format as for what to print. Formats like %m are modification time as a number. Formats %Sm is modification time as a string, which uses the -t timefmt to comvert to a string. %m has no specifier so it defaults to %Dm or Decimal number output. 19:22:15 When printing as %m (aka %Dm) it's not a string so the timefmt is not consulted. AIUI. 19:23:05 Interesting. 19:24:17 With that in mind it means that stat -f '%Sa %Sm %Sc' -t %Y-%m-%d . will print all three of atime, mtime, ctime, each of which use the timefmt %Y-%m-%d. Or "2024-06-26 2024-07-06 2024-07-06" from that example. 19:25:22 The -t sets the string time format for all conversions of time to a string. And the -f fmt sets the fields that will be printed, some of which might be strings of time values. 19:26:01 I am still absorbing the ramifications of this design decision. I think I understand it now. But I can't say I like it. 19:26:34 Yeah, I just assumed that formatting sort of implies giving the formatting routine a "raw" value to work with. 19:27:00 I remember it being like that in uhh… Tcl, for example. 19:30:38 Alternatively, I could use Bash's `printf` it allows for converting Unix time into other formats. Pretty neat. 19:48:31 You will know I am a pedant when I mention that printf is not a bash-ism but is a standard utility. Bash implements it as a builtin for performance reasons. But every shell has it, or falls back to the external utility /usr/bin/printf which also implements it. 19:49:20 "man 1 printf" says "The printf command is expected to be compatible with the IEEE Std 1003.2 ("POSIX.2") specification." and also "The printf command appeared in 4.3BSD-Reno." 19:49:39 * rwp did warn you first! :-) 19:51:17 No problem. I have the POSIX documentation opened up in a browser tab just in case. 19:51:29 which IEEE Std 1003.2 ("POSIX.2") specification printf command directive allows for converting Unix time into other formats? 19:51:41 No, that's the point. 19:51:59 Bash's builtin allows for that. 19:53:41 I am still missing how this is somehow something that bash is doing that is more than required by a shell. Something that we would hold bash as doing that is worth nothing. Because so far I think we should note the exact same thing about sh, ksh, mksh, zsh, and probably all of the rest too. 19:54:08 *hold bash as doign that is worth noting. 19:54:34 It seems like we could replace s/bash/sh/ and have the same statements exactly true too. 19:54:44 I just haven't checked other shell's printf implementation. 19:55:19 Okay. So my takeaway is that the main thing bash has in this case is marketing. Gotcha. 19:55:45 Well, it hasn't been marketed very well then, I guess. 19:55:55 I'll disclose that I do use bash as my main command line shell. I always use it because I prefer the command line editing of it. 19:57:18 I just couldn't see attributing something special about printf to bash as that just seemed like talking about a feature of a slanted roof being that it is self-draining. Well of course a slanted roof is self-draining! How could it be otherwise? 19:58:33 Well, I mean, saying that Bash's printf can do something that POSIX printf can't isn't a statement about other shell's printf implementation, is it? 19:59:11 Now we are converging! What feature is included in bash's printf that is not included elsewhere? I missed that somewhere along the way. 20:01:12 Bash's printf can take Unix time as an argument and convert it into a format you specify. Other shells might provide this as well. I just haven't cheked. 20:04:00 Okay. I begin to understand. Let me apologize because I thought we were talking about printf when I misunderstood that you were talking about bash's %(fmt)T feature, which I had not previously known about. 20:04:17 Example: bash: printf "%(%F %T)T\n" $(date +%s) => 2024-07-06 14:03:41 20:04:23 Okay. That's nifty. 20:04:47 Indeed. 20:04:53 In FreeBSD we would normally do this: date -r $(date +%s) "+%F %T" 20:04:54 2024-07-06 14:04:42 20:05:36 With GNU date: date -d @$(date +%s) "+%F %T" => 2024-07-06 14:05:25 20:07:04 Yeah, unfortunately, `date` options differ quite a lot between different Unix-y toolkits. 20:07:52 It's unfortunate that everyone has been including calculation translations in the date program rather than in a separate utility. A separate dedicated utility would make a lot more sense to me. 20:08:48 The portability problem one that I wish were converged is sed -i which is different in the most trivial and most annoying way. I wish that one were converged more than any other I have hit so far. 20:09:32 And I really feel FreeBSD failed on that one since perl's -i was the first implementer and subsequently all others did it the same way. Except for BSD sed which is different. Sigh. 20:10:20 I just never use sed -i. :) 20:10:53 The good thing about some shell's scope creep is that it makes for a bit of a compatibility layer. 20:11:16 There is that. That is true. 20:11:44 Which is one of the advantages forever of perl, then python, ruby, lua, and so on. 20:13:13 I mostly only ever write portable shell. Because... heterogeneous collection of everything all different. A maze of twisty little passages all the same. 20:13:36 The thing about other languages I've tried to use for what I do in Bash (or sometimes POSIX sh) is that they can't keep up with the immediate access to the surrounding system a Unix shell provides. 20:14:12 The shell is the best command and control language. 20:14:53 About portable shell: I mostly write Bash, taking advantage of what it has to offer because Bash itself is very portable and available on every system I use. 20:16:20 Most of the more prominent shells are, I guess. 20:16:28 That is a valid example. In contrast much of my shell is for provisioning systems. Bootstrapping them up. Which happens before bash could be installed. Or happens while bash might be broken while base is being upgraded. 20:16:48 I see. 20:17:49 My shell is bash. And once I made a mistake in order upgrading a system. And rebooted to the new system before upgrading bash to the new base. After reboot I found that I had absolutely no way to log into the system anymore as bash core dumped immediately due to the changed shared libraries that it required. (Not a bash problem.) 20:18:40 Since I have Boot Environments I simply rebooted to the previous one and used it to repair the new one. Then rebooted again. All good with little muss and only a little fuss. 20:19:04 A nice exercise for sure. :) 20:20:05 I am a huge fan of the shell though and before I step away from the keyboard I will cite this story which perhaps you already have seen and read. Enjoyable either way: http://www.leancrew.com/all-this/2011/12/more-shell-less-egg/ 20:21:02 An epic story of McIlroy versus Knuth. 20:23:33 Interesting. I'm pretty sure I haven't read that yet. Thanks for the tip. 20:53:39 can i ask what the motivation was for making rm -P have no effect? 21:01:41 its in the next sentence of the man page 21:30:09 why not make it do the same thing it did in 4.4BSD-Lite2 - isn't that a *better* form of backwards compatibility? 22:02:35 For date/time math check out my `shellsupport` tool. Allows you to do math on seconds and get it in and out of common formats. https://www.cons.org/cracauer/shellsupport.html 22:06:04 * msiism has a look. 22:08:04 hussein1, The rm -P feature was feature creep at the time which makes no sense whatsoever to do now with current file systems. Things just don't work the way they did back then and so overwriting a file three times to prevent it from being recovered does not make sense now. 22:09:04 Removing that feature creep is a good thing. Tools should do one thing and do that one thing well. If you want to overwrite the file before deleting them then you should do that useless action explicitly before rm'ing the file. 22:12:58 cracauer, I am looking at shellsupport now. (Well, probably tomorrow.) I don't see it as an available port? :-( 22:27:25 0/away 22:27:32 Ugh. Oops. 22:46:09 rwp: have been too lazy to make a port because I thought that there must be similar capabilities in existing ports. But never found it. 22:46:58 date/time arithmetic is always the stepchild. 22:52:56 Is there an easy way to start FreeBSD witout Xfce? When I am working on some configuration and reboot frequently, the DE and WM get in the way. 23:13:36 cracauer, shellsupport compiled trivially easy here without warnings. Not having a port truly is not a problem for it. :-) 23:15:05 Yeah, and it only has that one binary, nothing else to install. 23:21:28 ant-x, Is the rc.conf xfce enable variable xfce_enable? sysrc xfce_enable=NO 23:27:05 rwp, Mine has onl lightdm_enable, and if I set it to "NO", DE still starts. Shall I add that variable? 23:29:05 What funny thing I have had to write to control my laptom brightness via sensible increments: .