01:28:18 I'm trying to pause the debug output from a command but it doesn't work with |less or |more, any other methods? 01:32:17 pike, It's probably comming out stderr. Did you redirect stderr to stdout before piping to less? 01:36:39 vstemen, thanks for teaching this n00b some magic :) 01:37:39 pike, No problem :-) 01:43:36 looks like I'm gonna have to recompile ffmpeg if I want the best AAC encoder libfdk_aac :( 01:46:46 pike: It happens. Fortunately, it's a port options so that makes it easy. 01:47:15 I already started using pkg's. Easy to switch or should I re-install? 01:48:36 That's fine. No need to do anything different. 01:48:42 Certainly no reason to re-install. 01:49:04 I'm just not sure if there's a package that has that particular option enabled. 01:51:09 I read somewhere that you should not mix pkg and ports? 01:51:15 If you'd like to continue using packages only (which is certainly recommended), it looks like you'll be wanting to hop on the Poudriere train to build your own with custom options. 01:51:51 pike: For the most part, yes. It is not advised. However, I do it constantly. But, I've been doing it for many, many years. 01:52:12 Pretty good at fixing my own issues. 01:52:46 I just can't put up with the 5-day compile time for things like rust and node. So, I shortcut things like that with packages. Otherwise, all ports. 01:53:49 this freebsd install I use to learn how to use freebsd :) 02:03:09 Sounds nice! 02:04:50 pike: What I would recommend first, is getting familiar with ZFS and snapshots. That way, if you make mistakes, you can always roll back and try again. It'll save a lot of time. 02:05:36 great tip :) 02:11:55 SNAPSHOT ALL THE THINGS 07:23:48 ls -D'%s' is there list of format options? 07:24:37 ignore, i missed strftime 10:44:46 Hey guys, ports download packages pretty slow, is there somewhere I could edit to put a closer url and if there is a list of mirrors somewhere? 11:36:37 wokko: where are you ? 11:40:03 european pkg mirrors are fast, up to 60 MB/s 11:44:02 mzar: Australia 11:45:26 <[tj]> european pkg mirrors are fast near to them 11:45:34 <[tj]> 300kbit/s in the uk 11:46:46 If i ctrl c the make and restart, it does go too bad 11:47:10 <[tj]> we are doing dns based mirror selection by default 11:47:14 doesn't* 11:47:16 <[tj]> you could try other mirrors 11:48:19 is there a list of mirrors somewhere? and where to put info 11:49:37 <[tj]> pkg.freebsd.org 11:49:56 cheers 13:26:40 hey ppl, recently I found an interesting problem, I tried to install freebsd on oracle cloud but the problem is that da0 where I put the image (or ISO, I tried both) is read only (not the filesystem, that's clear, but the DISK) 13:41:21 i can't say i've ran into that before 13:41:42 how does it show the filesystm is read only? 13:42:04 a bit offtopic: anyone familiar with drupal? 13:42:17 i can't get my commerce products show up in my commerce store ;/ 13:43:03 no 13:43:10 the filesystem is read only, that's normal 13:43:19 byt it shows the `da0` DISK to be read only 13:43:26 so I can not install on it 13:44:23 da0 is probably the install media? 13:44:29 if not, what is it? 13:45:24 oh, it is da0, huh 13:49:38 yes yes, it is the install media 13:49:40 that's the point 13:50:25 on oracle cloud you do not have another way to install so my try was to do dump and restore to a md dev inside RAM and then install from there 13:50:40 but it denies me access then to write on the "install media" 13:50:53 i installed by dd'ing over the running drive and rebooting, which worked 13:51:08 but i seem to recall someone putting effort into the freebsd iso being available 13:53:56 yes 13:54:16 that was my idea too, but it says the media is read only so it can not write on it 13:54:29 however, I did successfully put the installer there by DD 13:54:35 but DD from Linux ... not FreeBSD 13:54:47 as soon as it boots from FreeBSD everything gets stuck 13:55:43 ok, so pastebin some output 13:56:55 so we can see what's going on 14:09:09 well 14:09:17 there is not much output 14:09:25 instead of "access denied" 14:09:37 being root of course 14:10:36 when I tried to add some new partition onto the disk (which has plenty of space) it said "no space left on device" 14:10:43 and there are no errors 14:11:04 I will try that one more time in a virtualbox to see if it is not a oracle cloud limitation 14:11:50 as far it looks like boot volumes are only writable from linux 14:16:20 I will try with OpenBSD now, to see if that one works 14:19:26 how did you dd onto the device? 14:19:57 wsky: really off topic but if they're published there might be a taxonomy term to get them there 14:45:36 rtprio thanks you got me on a track 14:50:59 i still didn't make it work however 14:52:25 OpenBSD seems to work, I am at the installing process but no fails sofar, I hope it boots 14:52:51 rtprio: I did dd onto the device from Linux (default install) 15:16:21 well, it installed but it does not boot because of lacking UEFI support 15:16:30 even though it is the current one, UEFI shell can not find it 15:16:33 lol 15:21:21 Just a short question... I've read that for booting a GELI-encrypted root pool, the /boot directory needs to be in an unencrypted partition. Though, when I use the bsdinstall utility to create such a system, I can't find any unencrypted partition for /boot. I just get 3 partitions: a 512kb freebsd-boot type partition, a swap partition and the ZFS root partition, which seems to contradict the claim 15:21:23 that I need an unencrypted /boot partition to boot into a geli-encrypted zfs pool. So I'm a little bit confused. :-/ 15:28:19 are you still fucking with this? 15:34:08 andreas303: you can use an encrypted boot partition. you use the -g flag with geli configure 15:34:16 rtprio: With the boot problems, yes, unfortunately. :( Or, actually I decided to try a different approach - using a GELI-encrypted ZFS root dataset instead of a native-zfs-dataset as root. I'm trying to find information about it in the freebsd handbook and in different manual pages. 15:34:24 however, it will require that you type the password at boot in console 15:36:14 not sure about what bsdinstall does though. 15:38:04 jmnbtslsQE: Ah, OK, I had totally missed the "-g" flag. I will try again. Typing the password during every boot is not a problem. I don't reboot very often. 15:38:38 as far as what bsdinstall does, from what your wrote, i guess it puts /boot and everything else into that ZFS root partition, but this is not strictly necessary 15:39:45 oh, it's also might be true that you can't do geli -g with a zpool partition, not sure. you might need to do UFS 15:39:56 (say, just for /boot) 15:40:10 but then you can have your zfs-on-root on a separate partition 15:40:26 jmnbtslsQE: I could "solve" my problem by just using bsdinstall, but I would rather learn how it's done manually. 15:42:01 (1) install gptboot or gptzfsboot into your freebsd-boot partition depending on whether your /boot is on ufs or zfs (2) make a geli partition that has /boot (either ufs or zpool, again not sure if zpool will work) (3) configure your loader that's in that /boot to boot from some other partition as needed (you set the "mountroot" variable, can be a zpool or ufs) 15:42:22 geli partition from (2) has -g 15:42:45 prtition you boot from in (3) probably has geli configure -b, not -g, and you load your keys from the loader in your /boot (2) 15:42:57 (if you want your main partition to be encrypted) 15:43:50 (you probably can see this but the freebsd-boot partition is the small, first bootloader, not your /boot) 15:45:18 you c ould also have an unencrypted partition with a /boot, then a separate encrypted partition with a different /boot, and configure the first loader to load the second one (which will ask for password), but i don't know the details to make this automatic 15:46:05 but, i think these days the loader can do a lot, and now lua is involved somehow so you can also program things, if you want to go down that rabbit hole 15:49:07 jmnbtslsQE: Sounds interesting! I will try again and see if I can get it working. Thx! 15:50:25 OK 16:49:14 hey folks, can someone explain why if i run service restart via ssh it hangs? 16:49:34 for instance, ssh root@freebsdbox /usr/sbin/service httpd restart 16:49:48 using ssh -n and nohup on the command don't help 16:52:35 Generally if you're passing a command like that, you need to wrap the command in ''s 16:53:46 no, so i just found a forum post describing it too 16:53:58 if i add >/dev/null 2>&1 then it runs instantly 16:54:09 so it's only if i allow output to the terminal it hangs 16:54:15 this sounds like a file descriptor issue 16:59:35 What if you skip the ``>/dev/null`` and just add the ``2>&1``? 17:00:01 You should be able to get the command output back to your terminal. 17:05:54 yeah, that's the key. i just updated the forum post 17:06:18 so "ssh root@box service httpd restart" will hang, but if you redirect BOTH stdout and stderr to files it works. 17:06:31 "ssh root@box service httpd restart >/tmp/mylog 2>&1" works 17:06:36 but that's very unusual 17:07:41 hm 17:08:27 the forum post the person was redirecting to null, but you can use a flie 17:08:29 file 17:16:31 That's really an unexpected behavior! (And I have been using ssh for decades.) I must try this and try to recreate that strange behavior. It's so curious... 17:24:43 Demosthenex, I am running freenginx as a binary pkg in a jail and I cannot recreate your reported behavior using it. What httpd web server have you installed? Was it using a binary pkg or source compile? How might I recreate your environment? 17:26:20 I am guessing that the service script associated with your installation is having a problem in some way. Sounds like a bug to me. 17:31:36 which httpd is it? 17:32:33 Hey there. I am currently installing freeBSD for the firt time and I currently experience a little issue. Basically the ISO didn't include the driver for my realtek network card. 17:33:05 I loaded the driver with a firmware blob, but it still won't work. 17:33:18 dorian1229, welcome 17:33:33 is this a wireless NIC? 17:33:58 The installer says that wlan0 failed to inityialize the driver interface when I go through the setup. 17:34:13 Hello :) yes it is wireless 17:34:24 due to licensing and size constraints, the wireless firmware(s) don't ship with the base image. 17:34:42 fwget(8) will try to install them from binary packages 17:34:48 this means you need an internet connection 17:35:12 I al9ready got the driver loaded with kldload and got the binaryblob from elsewhere 17:35:33 rwp: httpd was an example. i was starting zrepl 17:35:36 what does "elsewhere" mean? you want to get the wifi-firmware-*-kmod from ports 17:36:12 OH. it must be zrepl! lighttpd didn't hang when i restarted it 17:36:40 ok, so zrepl is doing something with the tty... sshd and lighttpd dont. 17:36:49 the driver I pulled of the repository called realtek-re-kmod-1100.00.1403000_1.pkg unpacked that and loaded the driver inside manually. the firmware blob I got from the kali linux repository 17:36:50 but shouldn't service be isolating that 17:38:14 the firmware was rtw8852b_fw-1.bin the driver did load and found this firmware the network now also shows up it just has an issue later when it comes to actually connecting 17:39:19 there might be a better way of doing this, but I have never used any bsd before and this is what I came up with 17:39:59 dorian1229, I'd recommend to get the one from freebsd ports. 17:40:16 you mean the firmware or the driver? 17:40:29 because internet is currently not available on the system 17:40:32 yes 17:40:46 transfer it with a USB stick or whatever 17:40:51 I did that 17:41:07 I have both the driver and the firmware on a usb and loaded 17:41:29 https://www.freshports.org/net/wifi-firmware-rtw89-kmod/ 17:41:40 get that package instead 17:42:27 ill look into it thanks for the help 17:44:20 looked at it, the firmware file from kali linux is idential down to the hash 17:44:48 so it seems to be the same blob 17:45:45 which makes sense as this litterally links to kernel.org probably the same source which kali also used 17:46:39 dorian1229: if it's the same firmware it's fine, but installing the package (once you have a working network connection) ensures it'll be automatically updated in future 17:47:00 yeah I will 100% do that, I just want to get past the installer 17:47:32 dorian1229, personally, I would just skip the wifi stuff and deal with it once your system is installed/running. 17:47:39 so you can actually see what's going on. 17:48:21 I was told that wifi was needed to install both by the iso and another guy. Does the bigger iso do installs offline? 17:49:04 Because the one I got doesn't. 17:54:35 rwp: yeah, it's clearly only an issue with zrepl. it sounds like it could do some stuff with file handles (zrepl stdin server option?), and so i have my workaround. 17:54:45 Demosthenex, So the problem wasn't service with httpd but service with zrepl? Okay. But that does seem like a critical detail. 17:55:02 Regardless I still can't guess why redirecting to /dev/null would cause it to work. Because ssh without -t with a command will still be a pipe in the output either way. 17:55:42 For another data point you might try running with ssh -t and without the /dev/null redirection and see if that blocks wedged or not. 17:56:11 Something in that service script is probably writing a prompt or something and waiting for input but that would be stdin not stdout and so it is very confusing. 17:56:57 dorian1229, There is ability to do a wired ethernet installation and then deal with the wifi after having the system installed and running on a wire? That's certainly the easier way if there is. 17:56:58 rwp: yeah, i was summarizing and picked a random service. my bad 17:57:23 but yes, -t works 17:57:58 wild. i do ssh all the time, and i've often needed -n, i've actually never used -t ;] 17:58:19 learned something new, ty. wonder if that'd fix the postgres issue the other gentleman had 17:58:46 however, i'd also expect service to isolate any processes it starts, which is why it confused me so badly 17:58:58 ssh -t forces a pty allocation even if a command has been specified. Normally specifying a command means no pty allocated for a batch mode action. 17:59:47 The service command isolates a lot of things but I imagine there are historical scripts that expect to be able to interact with the admin running it. 17:59:56 yep, so whatever it's starting is making assumptions about the tty status instead of checking. 18:00:17 i'd have thought -n would have disabled the behavior 18:00:17 Or maybe it is simply buggy. 18:00:28 yeah, well zrepl is written in go, so i haven't a clue how to check ;] 18:00:39 ssh -n closes stdin but does nothing with stdout 18:00:55 sure, but stdin closed normally indicates batch mode w/o a terminal 18:01:04 zrepl may be in go-lang but if it has an rc script I imagine that rc script is written in shell. 18:01:11 seems like zrepl always assumes a terminal and doesn't check for batch mode 18:01:25 i saw nothing unusual (to me) in the rc script for it 18:01:33 but no protections either 18:01:48 rwp I cannot make a wired ethernet installation, as the system doesn't have ethernet. the only wired connection I could get to it was usb tethering which was so unstable that it got me nowhere 18:01:49 Then it is probably a problem in zrepl and probably worthwhile to make a PR problem report for it. 18:02:04 yep. thanks for your input. i learned something new ;] 18:03:09 ssh normally passes stdin through it so that "echo ls | ssh me⊙ec /bin/sh" and similar works as expected. But ssh can gobble up input which we need later and so ssh -n avoids that problem case. 18:04:19 "echo ls | { ssh example.com somescript ; ssh example.net sh ;}" will fail because the first ssh goggled up the stdin and the second one misses the input. The first ssh needs a -n to avoid it so the second ssh can read stdin. Just for a contrived example. 18:04:35 dorian1229, Bummer! Well then you must struggle through the wifi setup. :-( 18:05:21 just downloaded the biggest iso that was available over 4 full GB and it seems to install without any internet for now but yeah, in order to procede a bit of trickery will be involved 18:06:15 dorian1229, why not just skipping the wifi step in the installer and dicking around with it after you have a fully installed system? 18:06:26 I'm not saying only that works - that would just be what I'd do. 18:06:29 that is what I am doing 18:06:35 now 18:07:33 and it turns out I could have just gotten the bigger iso 18:07:52 it ships with the wifi stuff... thats's a huge face palm 18:08:05 i had a $20 usb nic for this exact purpose 18:08:28 yeah I should probably get one as well. 18:08:37 thanks to you all for the help though 18:08:48 probably the most active IRC I have ever been in 18:11:23 never forget the highest trough: wireless stuff in consumer electronics is the biggest pain. 18:11:35 s/trough/truth 18:20:29 and it works 18:20:37 great 18:21:03 thanks again for the help couldn't have done it without 18:21:51 we're all happy to help 18:22:04 just in general: be sure to consult the FreeBSD handbook. it's an extremely helpful resource 18:45:07 jbo, I'll see your "wireless stuff" and raise you a printer. 18:46:06 hrr hrr hrr :P 18:46:16 * Alver grins 18:46:35 Why not double your pain, and go for a wireless printer? 18:57:00 CrtxReavr, I haven't yet had the stomache to try to print on freebsd 18:57:08 would be nice to use the office network printer 18:57:49 Is it wireless? 18:57:50 * CrtxReavr ducks. 18:57:59 nope, ethernet 18:59:27 If the printer supports PostScript, it might be as simple as adding an entry to /etc/printcap and enabling lpd. 18:59:53 that's the thing: I know nothing about printers 19:00:01 I wouldn't even know how to check if it deos support postscript 19:00:08 it's an OKI MC873 19:00:15 The printer has a model on it. . . google it. 19:00:47 hmm, they seem to offer Debian and RedHat drivers. not sure if that is a good or a bad sign 19:02:40 PostScript is a generic printer languge. 19:02:51 Driver not needed. 19:03:12 Though. . . application support for it gets spotty. 19:03:12 hence wondering if them offering linux drivers is a bad sign :p 19:03:26 You're probably looking at implementing CUPS and all its fuckery. 19:04:33 Also, I'm quite sure the "Debian and REdHat drivers" are nothing more than the same CUPS printer definition file. 19:07:42 cups is that apple web thing, right? 19:07:48 I remember that from two decades ago on arch 19:07:54 and I remember pain 19:07:57 CUPS = Common Unix Printing System. 19:10:57 they missed their opportunity for naming it Common User Pain System 19:17:55 Okay, their docs suck, but: 19:17:55 { 19:17:55 "@type": "PropertyValue", 19:17:55 "name": "Page description languages", 19:17:55 "value": "Epson FX, IBM ProPrinter, PCL 5c, PCL 6, PDF 1.7, PostScript 3" 19:17:58 }, 19:19:53 (I had to dig that out of the page source - wasn't actually visible in the browser.) 19:20:06 what am I looking at? 19:20:37 The "Page description languages" your printer supports. 19:21:37 Also, that printer lists telnet as a supported management protocol. 19:21:55 It's like it's 1998 again. 19:25:06 will I actually need that? 19:25:16 (the PDL thing, not the telnet thing) 19:28:08 Well, yeah. . . 19:28:29 IP is a network transport. 19:28:56 But to print, you gotta speak a language your printer understands. 19:30:20 so according to your descriptor above, it supports PDF. so I could just push a PDF over ethernet? 19:30:37 surely there's more info such as paper type, double sided printing, color and all that stuff 19:30:53 (as I mentioned, I never even remotely looked into printing) 19:49:53 You'd need a piece of software that essentially allowed you to pipe PDF syntax to the printer. I'm not sure what that would be. 19:50:07 I've piped PostScript via the CLI though. 20:53:21 pdf2ps ? 20:54:23 pdf2ps is in print/ghostscript10