02:51:11 Linux and BSD are apples and oranges. One is a kernel, and nothing else. The other parts are developed elsewhere, and with no single standard. BSD is a complete operating system under one roof. And I'd argue that systemd has made Linux far less UNIX-y. At least in my eyes. 03:00:23 i see these comments often. does anyone use only the base system? seems like with linux or freebsd, you're going to need 3rd party software. or am i missing something? 03:03:03 I think you're approaching it from a different perspective, I don't mean we don't need third party software, I mean that the development model is different. Linux distributes its responsibilities among others, then a "distro" picks up the kernel, and mixes different parts of software from different players. 03:04:50 thanks, and i get that. i guess i don't understand why it's so emphasized. is it purely philosophy, or is there a tangible benefit i get as a user? 03:08:01 The benefit you get is FreeBSD xD 03:08:14 lol, fair enough 03:10:07 i really feel like FreeBSD should tweak how it markets itself. the coolest stuff i've found that sets it apart from linux isn't mentioned so much, which i find odd. 03:10:53 Obscurity has its benefits too. 03:12:18 nah, it should tout the good stuff. for example, i have a server with 6 luks encrypted disks and systemd boot. a near identical geli + zfs freebsd system boots like a full minute faster. ... so many small items like this that together make it an interesting alternative. 03:17:11 If you look around you'll finding people promoting FreeBSD (eg on Twitter), and I think people look past it. Or somehow don't see it. I don't think boasting about being better than the other guy brings much but bad blood. 03:17:58 it's not boasting. it's highlighting actual advantages. 03:18:17 linux smokes freebsd in several things, and that's fine. don't have to win 'em all. 03:18:38 but highlighting the wins help people fighting those same battles 03:18:54 then they can choose 03:19:11 That's already the case. The choice is there. 03:20:26 what's a front page +1 link that highlights a solid reason to choose freebsd? 03:20:44 "Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices." 03:20:51 that's the closest thing, and it's so fuzzy 03:21:22 Look at Void: https://voidlinux.org/ 03:21:23 Title: Enter the void 03:21:28 Much smaller project 03:21:38 Right on the front page, 6 highlights 03:22:40 i wouldn't say any are boasting. they're just true things that might help me make a decision to use it. 03:25:00 I see it differently. I think FreeBSD does a good job at explaining what it is (eg https://www.freebsd.org/about/) and how to use it (https://www.freebsd.org/handbook/). I know Void has a handbook, but it's almost empty. And doesn't teach you all about Linux. 03:25:48 The about page is like buzzword 101 03:26:18 "advanced networking" "uses memory efficiently" etc 03:26:30 too fuzzy to be useful 03:29:56 "runs a huge number of applications ... over 33,000". nixos has over 80K. it just makes it feel out of touch to me. anyway, don't get me wrong, i think freebsd is cool. i don't the the website does it justice. 03:31:55 one exception, i love that the security notices and errata notices are on the front page. it highlights a feature: security matters. 03:33:40 And there's "pkg audit" too. I don't recall xbps having that. 03:38:57 agreed, thats a good highlight, so many more 07:46:10 hi there 07:46:26 is there a way to make ifconfig output more readable ? 07:47:16 4 interface listing > 2 pages ... 99% useless information 07:55:11 nerozero: what info are you looking for 07:56:17 (the first answer to this is: the output is this way, because it has always been that way. changing it, but default, would break a lot of people's scripts) 07:57:02 yes I do understand, this is ok to me to have this outout 07:57:22 what output do you need? 07:57:51 but when machine has > 2 interfaces, some bridges, some tap, ... the output becomes completely unreadable without less 07:58:03 i didn't understand meaning of goups 07:58:26 is there a way to list only all physical interfaces ? 07:58:32 only bridges, ... etc 07:59:03 is it possible to output table only interfaces which has assigned IPs 08:01:26 ifconfig -g bridge 08:01:35 should list all the bridges 08:02:22 it's annoying that physical interfaces are marked by their lack of a group - on FreeBSD 08:02:42 on OpenBSD they do 08:03:32 meena, -g will output only interface names 08:03:37 nerozero: https://github.com/canonical/cloud-init/blob/main/cloudinit/distros/parsers/ifconfig.py 08:03:38 Title: cloud-init/cloudinit/distros/parsers/ifconfig.py at main · canonical/cloud-init · GitHub 08:03:39 nothing else 08:04:09 I wrote a whole ass parser for this shit 08:04:18 WOOOW :D 08:04:21 epic ! 08:04:24 WELL DONE ! 08:04:48 will take a look, thanks 08:06:21 I wonder if I should have spent my energy on adding libxo to ifconfig 08:07:04 but, i feel like it's gonna be easier once melafarino@ is done with the netlink refactor which cleans the code to real nice 08:07:53 u did a huge job! 08:07:55 thanks 08:11:26 melafarino, lol 08:11:44 nerozero: you can also take a look at the ifconfig(8) man page. it really gives some good options for formatting output 08:13:03 I have tried some, but that doesn't give the output expected .. I guess I need to spend more time understanding that 13:59:24 test 14:00:27 complete 14:01:01 thanks - was intended for a single server. Oh well, live and learn. 15:35:13 meena: i have no idea what that does, but nice work! lol 15:43:34 is there a standard (base) utility that will write a date-timestamp before each line of a file 15:44:52 Sed and date 15:45:13 Possibly cut as well 15:45:22 cpet: sed is a powerful turing complete language. is there anything less powerfull? ;) 15:45:51 Awk date 15:45:53 if its scriptable i usually use DATESTAMP="$(date "+%Y%m%d.log.%H")" 15:46:05 And possibly cut as well 15:46:06 or something similiar 15:46:49 as "now" when the line is output or what does that mean for a "line of a file"? 15:47:49 cpet: awk is a powerful turing complete language… 15:48:11 Oh for ducks sake Google it 15:48:29 i am. I also asked just in case someone knows better than my skills 15:49:10 maybe logger is doing what you want - i assume, this is to enrich logging 15:49:14 $nobody knows your skills 15:50:14 If you have to ask her you have no skills 15:50:56 \o/ 15:52:08 there's ts from moreultils… which is written in Perl… 15:52:15 ridcully: good point, lemme check 15:52:34 cpet: my skills vary wi(l)dely 15:53:22 Could care less about your skills 15:54:44 kinda rude 15:54:46 *couldn't. insult with proper grammar please ;) 15:55:49 Grammar Nazis are evil 15:55:57 jawoll 15:56:17 Egg rolls ? 15:57:17 anyway. logger has -s which sends the output also to stderr, but it *always* logs to syslog. And it also doesn't log the time/date. That's syslog's job 15:57:19 cpet, don't seem to be yourself today as if its influenced a wrong side of the bed wakeup 15:57:56 Thank you 15:58:29 could be anything. don't really care, but every time i see this behavior i see a +q happening. including myself 15:58:42 so, yeah, after all, sed/awk might be the best way to go about it, no matter how much i don't like it 15:59:04 just take that as a friendly *ya good* dude! 16:03:10 * meena wonders if she should install neovim into this jail 16:03:38 you just made me look up neovim 16:03:50 +1 for neovim, i use it everywhere 16:04:25 editing a 50 line shell script without syntax highlighting makes me think of the good old times of being woken up in the middle of the night by a broken Java App and editing XML in vi on Solaris 16:04:27 must be talking about https://github.com/neovim/neovim 16:04:28 Title: GitHub - neovim/neovim: Vim-fork focused on extensibility and usability 16:04:30 $EDITOR is my favorite. 16:04:42 same! 16:05:20 FCEDIT="$(which vim ||which vi)"; export FCEDIT 16:05:20 VISUAL="${FCEDIT:-vi}"; export VISUAL 16:05:21 EDITOR="${VISUAL:-vi}"; export EDITOR 16:05:29 Woosh. 16:05:52 didn't intend for that to be 3 lines ;) 16:06:04 what's FCEDIT? 16:06:13 another shell va 16:06:15 r 16:06:49 i lost its meaning.. i ref it as "fucking command edit" 16:18:28 meena: FCEDIT is for the sh built-in 'fc' command, for editing previously entered commands. 16:32:55 I dislike that the moretutils ts name conflicts with the task scheduler ts name. Sigh. 16:33:21 meena, Try something like: ...command here... | while IFS= read -r line; do printf "%s: %s\n" "$(date "+%F %T")" "$line"; done 16:34:19 Adjust the +%F %T format to whatever is preferred. I like that format for me. 16:59:13 rwp: is that doing post-processing, or am I just imagining that? 16:59:30 (this is a giant log file) 17:12:14 I was responding to this: ":43 is there a standard (base) utility that will write a date-timestamp before each line of a file" 17:13:43 You mentioned the perl moreutils ts program. Which operates exactly the same way. So I suggested the shell one-liner as an alternative that does not require anything but /bin/sh to work. 17:15:22 If you need to post process a large log file I don't know how one would know what timestamp to put in the front of each line if the time were not saved there originally. 17:28:26 rwp: no, i thought your method was post processing! 17:32:41 I thought that the loop would buffer 18:02:27 Has anyone ever run into the issue where `php82-pecl-gnupg` fails to import files that both `gpg --import` *and* a custom gpgme-using test program import just fine? 18:02:34 (gpgme being what the PHP extension uses internally) 18:45:34 meena, It's line buffered because it reads one line at a time. That's a good impedance match to text log files. 19:24:46 rwp: aye, thanks 19:35:14 I am trying to install enligthenment in freebsd - I wonder if I still need xorg or I can do it with wayland - if yes - is any pointer for it 19:41:28 acu: https://www.enlightenment.org/about-wayland not quite done yet 19:41:29 Title: Wayland 21:04:57 Enlightenment is the only DE that ever really made me consider using a DE. 21:13:00 meena: thanks - so I need to install xorg.... 21:14:01 debdrup: yes - I installed Enlightenment in Debian 12 - it works - but some prerequisites where there that were fullfilled ----once I installed gnome.... ---- my intention was to install only enlightenment 21:22:14 s/win 22 21:23:10 Hey, you're in #lisp too? 21:43:57 How is enlightenment? I think I only tired E16 like 15 years ago, man I had forgotten about it. 21:45:24 it didn't provide any enlightenment to me 21:45:49 pity 21:52:31 so.. we can't just download and install enlightenment is what you're saying 22:08:10 Is it possible to delete a logged-in user in FreeBSD? As part of a packer build, I have this as the shutdown command: ""echo 'vagrant' | su -m root -c '/usr/sbin/rmuser -y vagrant; /sbin/shutdown -p now'" I see on stdout that it's removing the user vagrant, but it doesn't actually delete the user. /home/vagrant is empty, and the password is locked, but the user still exists. Is there a way to delete an active/logged-in user? 22:09:51 "still exists" in what sense? 22:11:08 I think he means that the user is still logged in. What you can do is delete the user, then kill processes owned by said (former) user. 22:11:46 rmuser is supposed to do the process killing thing 22:12:46 Anyway, as for my php-gnupg issue. I've narrowed it down to "PHP CLI works, PHP-FPM does not". But can't quite figure out what *exactly* is the issue, so far. 22:12:58 Is there just not enough time between the rmuser, and subsequent kill signals, for processes to die before the shutdown? 22:14:17 RhodiumToad: Sorry, user is still in /etc/passwd. master.passwd shows the account locked, so that's good, but still an entry in /etc/passwd. 22:14:33 pedahzur: what was the output from rmuser? 22:15:23 RhodiumToad: Sorry, closed the terminal, but it was something like "Removing user vagrant" or some such. No error output. Give me minute to run the build again, and I can tell you. Hold on. 22:15:34 add -v to the rmuser command 22:15:34 What's the purpose for echo'ing "vagrant" into the pipeline? rmuser has the name on the command line and does not need it, right? shutdown does not need it. 22:17:33 As a debug thing, not suggesting to do it all of the time, I would put a sleep 30 (long time) in between the rmuser and the shutdown and if the problem goes away then would know it was a race condition problem. 22:18:17 if i don't have any specific build options i want to change, is there any reason to compile packages from source vs. just using pkg? i assume no 22:19:50 markmcb, Right. The pkg binary was built from source on the FreeBSD build system and is "just as good" as one you built identically yourself. 22:20:16 thanks rwp 22:20:23 However you may have some strategy overall which includes compiling your own version of things. 22:20:30 rwp: echo'ing the password into sudo. 22:21:02 pedahzur: you mean su? that does not accept passwords on stdin 22:21:11 (nor does sudo) 22:22:37 markmcb, Traditionally (as far as this newcomer can tell) FreeBSD people compiled everything from source. The binary pkgs are new and save a lot of compile resources across the planet. But people who previously compiled from source continue to do so. Meanwhile... That does burn a lot of cpu time for everyone to compile everything. And if we don't need any customizations then the binary pkgs are more convenient. 22:23:28 rwp: thanks, that was my assumption. just wanted to make sure i wasn't missing anything :) 22:23:51 markmcb, It also allows newcomers to start easy with binary pkgs. Because they are so convenient. Get familiar with the system. Then later as they do have customizations it is a gentler transition to compiling from source because we are already familiar with how things work by then. 22:25:57 pedahzur, Unless you are already root then su will ask for a password interactively on /dev/tty so the echo into it won't work. If you want that set up sudo for NOPASSWD for this particular action. 22:28:35 Weird...because it seems to work. I'll dig in more. rmuser gives me this: 22:28:40 ==> qemu.vm: Gracefully halting virtual machine... 22:28:42 qemu.vm: Removing crontab for (vagrant):. 22:28:43 qemu.vm: Removing at(1) jobs owned by (vagrant): 0 removed. 22:28:45 qemu.vm: Removing IPC mechanisms. 22:28:46 qemu.vm: Terminating all processes owned by (vagrant): 22:28:50 Sorry for the splat. 22:29:02 Maybe it's already sudo'ing behind the scenes... 22:33:48 so i have a jail template i installed with bsdinstall. i just did a freebsd-update -b on it, and it says it stopped and started sshd. Does that make sense? It's not an active jail. And the rc.conf file doesn't have sshd enabled. 22:35:10 pedahzur, The ordering there seems odd. First we see that it is halting the virtual machine. I assume that is from the shutdown. Then after that we see it removing the crontab, at jobs, IPC, and processes. That seems to be out of order. Probably asynchronous action. 22:35:49 I would debug by putting a long sleep time between the rmuser and the shutdown to ensure that rmuser can complete and if that works then it means the rmuser is not operating synchronously but is completing work in the background and that is the actual problem if that is the case. 22:36:38 rwp: Sorry, that is packer saying it's sending the shutdown command (which in my case has the rmuser before it). I shouldn't have included that line. 22:37:20 ok, so setup samba in a jail. i think i should setup per user zfs filesystems with quotas, that likely means allowing zfs into the jail. worth the effort? 22:41:25 Sam a in a jail? 22:42:18 markmcb, I would "ps aux | grep -v grep | grep /usr/sbin/sshd" and see how many sshd processes you have running and if it is the expected number. 22:42:55 markmcb, And then the rest of your question depends so much upon your jail configuration that "it all depends". But probably okay once the details were discovered. 22:43:27 there are two. i would only expect sshd running on the top-level host 22:43:55 If there are two then could the second one be in the jail? (Or a different jail?) I think it is actually running. And hence the message you saw. 22:44:28 If you stop the jail does that second sshd go away? I would think that it would. I am sure that when you dig into everything the details discovered will make it all make sense in the end. 22:45:09 Demosthenex, I don't use samba so am unqualified to speak but if you are using zfs isn't the jail already on zfs? So "allowing zfs into the jail" seems like a strange question in that case to me. 22:45:34 zfs has special support for jails 22:45:51 yeah, i'll dig around. i just wouldn't expect that message at all when updating with -b on a template (i.e., not defined anywhere as a jail) 22:47:31 (specifically, if allow.mount is set in a jail, a privileged user in the jail can mount (only) filesystems that have jail support) 22:47:47 zfs is so useful that I of course would recommend using it. But if you don't like zfs then it will appear invasive like kudzu vines that get into everything. 22:48:13 it's not quite that bad. I build without it, and rarely run into issues 22:49:18 rwp: well, bastille gives the jail it's own zfs filesystem, yes. but i'm thinking i may want per user storage quotas 22:49:30 It also depends upon if you need quotas and all of that. If I were setting this up for a school then I would definitely use zfs and quotas. If for a small office of a couple of people then no I would not. 22:49:58 today my devuan (at least it's systemd free) samba server has zfs per user with quotas ;] 22:50:24 If you are already using zfs with quotas then you are already familiar with it and I think you should continue doing it. 22:53:00 it's just the jail interaction i have to study up on 22:53:10 if i can adminster sub-filesystems inside the jail only, that's perfect 22:54:22 Assign a dataset to the jail. Allow the jail to create sub-datasets in the jail if that is desired. Seems perfect! "Bob's your uncle!" as they say. 23:02:01 so looking into that, it restarted my top-level host sshd. is that expected?, i.e., if i did bsdinstall jail /my/jail/template, and then later did freebsd-update -b /my/jail/template fetch install 23:02:36 hrm, sounds like if i assign a dataset to the jail, i can't mount it on the main host 23:02:47 that'd suck because i'm doing all jail backups from the main host 23:03:06 so maybe i made the datasets from the host, and just let the jail use them 23:04:53 markmcb, I would not expect it to restart the top level sshd and so that does sound strange to me. 23:05:25 Demosthenex, Huh? The host gets to see into the jail. At least that's the way mine are set up. 23:05:53 Or are you making raw volumes or something other than datasets? 23:25:53 rwp: no, the docs say you can't mount a dataset from a jail, on the host. 23:26:05 because the jail admin could set the mountpoint to something bad ;] 23:31:57 Demosthenex, Hmm... Well... No one told me that and I just listed a jail dataset on the host with ls no problem! 23:32:33 I am not any kind of an expert on jails however. Just muddling through myself when it comes to jails. 23:49:29 rwp: did you use zfs jail to assign it to the jail, and set the jailed attribute to allow the jail to manage it? 23:50:16 No. I created a zfs dataset and configured the jail to use it in /etc/jail.conf and started the jail. 23:52:31 yeah, that's just mounted on the host. 23:52:45 if you give the jail control, you have to unmount it on the host, according to the docs 23:52:58 but... i think it makes sense to me to have the host admin the zfs datasets anyway