00:35:34 need support: following this tutorial : https://jrgsystems.com/posts/2022-08-20-how-i-configure-bluetooth-headphones-on-freebsd-13-1/ 00:35:35 Title: JRG Systems - How I Configure Bluetooth Headphones on FreeBSD 13.1 00:36:12 this line : virtual_oss -T /dev/sndstat -S -a o,-4 -C 2 -c 2 -r 44100 -b 16 -s 1024 -R /dev/dsp0 -P /dev/bluetooth/WI-C200 -d dsp -t vdsp.ctl 00:36:33 return :virtual_oss: Could not open DSP device '/dev/dsp0': Operation not supported 00:40:22 sysctl hw.snd.default_unit=1 00:43:27 chapter 7 multimedia 00:46:04 joshbsd: you need to figure out what hw you have 00:46:48 intel all the way 00:48:38 <- never had intel :P 00:48:48 or maybe in the 90's 00:48:49 hehe 00:49:18 what can i say... I know 00:50:17 right now I have a threadripper :P 00:50:39 thanks for the reference in the handbook i'll check it 01:01:10 Realtek 01:01:14 not intel 01:02:21 is that it : RTS5249 PCI Express Card Reader 01:09:18 8 Series/C220 Series Chipset High Definition Audio Controller 01:09:32 ? 01:10:42 vendor = 'Intel Corporation' device = '8 Series/C220 Series Chipset High Definition Audio Controller' class = multimedia subclass = HDA 01:24:46 hdacc0: at cad 0 on hdac0 01:24:47 hdaa0: at nid 1 on hdacc0 01:24:47 pcm0: at nid 4 on hdaa0 01:24:47 pcm1: at nid 6 on hdaa0 01:24:47 pcm2: at nid 7 on hdaa0 01:24:49 hdacc1: at cad 0 on hdac1 01:24:51 hdaa1: at nid 1 on hdacc1 01:26:21 pcm3: at nid 20,21 and 26 on hdaa1 01:26:36 joshbsd: pastebin please (https://bsd.to) 01:26:37 Title: dpaste 01:27:02 k 01:28:34 is the number 1 fort hdaa1? or should it be 3 for pcm3 01:28:49 ? 01:36:33 3 it is and the the hw is realtek 01:40:41 Is there a filesystem that supports permissions and ownership (i.e. not FAT or exFAT) that folks recommend for portable drives? 02:38:14 any that is supported by the operating systems you need to use the device on 13:05:04 ghoti, I would guess that after FAT, ext2 is probably the most portable filesystem, and it supports unix perms. 13:05:51 Also, ext3 & ext4 can both me mounted as ext2, just without journaling, and other bells & whistles. 13:06:14 s/me/be 13:18:03 does this http://www.wonkity.com/~wblock/docs/html/ssd.html still need to be done for partitioning a freebsd ssd? Or normal installer should take care of it. 13:18:04 Title: Using a Solid State Drive with FreeBSD 13:26:48 Hi, I have seen that I can create tun0 interface with ifconfig, but now I want to configure it to act as a point to point tunnel, in Linux you do: "ip tunnel add tun0 mode ipip remote local " 13:26:54 what would you do in FreeBSD? Thanks 13:31:37 I guess TUN devices are not a big thing 14:27:00 is it ok to simply copy over my /usr /var directories which were in a single ufs freebsd partition over to their respective usr var folders on a new ssd, that are setup as filesystems? 14:27:26 tried to use dump but can't since /usr /var on the original drive aren't file systems 14:34:02 dump is giving: unknown file system 16:12:50 How come when I am following the all mighty handbook my commands do not work. When I log onto libera and before asking the question all of a sudden the command works? 16:25:11 adonis, probably not a good idea, since there's symlinks, hardlinks, etc. 16:26:21 CrtxReavr: yea I figured.. I had to do some fenagling but I managed to do a dump / restore -interactive to restore the folders 16:26:57 https://www.dan.me.uk/blog/2009/06/03/full-system-backups-using-dumprestore-in-freebsd/ 16:26:59 Title: Full System Backups using dump/restore in FreeBSD | Dan's Blog 16:30:23 interestingly I'm getting warnings like warning: cannot create hardlink ./usr/share/openssl/man/man3/o2i_SCT.3.gz -> ./usr/share/openssl/man/man3/i2o_SCT.3.gz: File exists 16:31:04 It's a warning. . . not an error. 16:31:18 I know, just wondering why they are showing 16:32:13 Look at the 'restore -u' option. 16:33:21 cool. Also, I interactively told restore to add usr, but I don't want the usr directory to show up in the target, I want the contents of usr to show. What did I do wrong? 16:34:13 I've used dump/restore only a handful of times over the years. 16:34:21 Google & manpages are your friend. 16:34:30 :) 16:34:33 I do see the -h option 16:34:46 I'll play with it a bit. 17:09:59 CrtxReavr: seems like there's no way to tell restore to ignore that top level folder and extract the contents, I'm doing a restore but then moving usr/* to . hopefully that’s ok 17:12:31 adonis, dump/restore is a volume level utility. 17:14:26 Well: https://bpa.st/KLSA 17:14:27 Title: View paste KLSA 17:14:40 dump is a filesystem (volume) utilty. 17:15:00 Restore can do filesystems or file level stuff. 17:15:38 So the real prob is that my original partition is a single ufs partition that contained /var /usr / for example. But my new disk has those as different partitions. 17:15:45 So if your desired source is a sub-directory of a filewsystem, then you need to find a different tool. 17:17:27 dump can't be done on the original disk /var /usr because those are all one partition. So I don't see what else to do but simply restore(8) those folders from the dump on to the /var /usr / file systems on the new disk. 17:17:31 Looks like you need to dig into cp(1). 17:17:57 still think restore(8) extraction should be better than that though. 17:21:11 CrtxReavr: thanks for the response, re filesystems. If I only plan to use this with FreeBSD, would UFS be "as good as" ext2? Or are there reasons not to use it on a portable drive or an SSD? 17:23:18 ghoti: UFS and ZFS would be better supported. IME the ext* support isn't all that great. 17:23:59 UFS2 is a great choice - very mature, also surprisingly portable. 17:24:14 ZFS has a lot of bells & whistles. 17:29:10 adonis: when copying unknown stuff like /usr and /var be careful of special files, as CrtxReavr said -- perhaps `pax -rwpe` would help. But filesystem flags could still get in your way. espescially in /var. That said, don't forget rsync. 17:30:18 I use ZFS for everyhing I can, but .. mobile drives? 17:32:14 Oh yeah. . . rsync is a great tool for local stuff too. 17:34:53 rsync is not available in single user mode for me 17:35:17 It is a port/package, yes. 17:35:24 :) 17:42:15 adonis: if it not available because /usr/local is not mounted, and it is mentioned in /etc/fstab, perhaps you can just `mount -a`. 18:04:57 Is there a way to get the ID of jail from inside the jail? sysctl-s don't have that info. 18:07:03 You could write a script in jail.conf of the host machine that writes this info to a file after startup. Not sure if it is there be default 18:08:12 dh, I think that would count as leakage. What do you need it for? 18:10:46 For jail to identify itself for outside systems .. but on a second thought, jail ID is not unique enough anyway 18:11:10 Give the jail a hostname and use that ? 18:11:11 But how would it be leakage? 18:11:14 What are you trying to do? 18:13:47 Jails with the same hostname are created and destroyed several times, but a script running inside the jail would need to register itself to outside system as a different system than the one before it that had the same hostname 18:14:02 But like I said - jail ID is not foolproof enough for that 18:14:16 Do they need unique names each time? 18:14:25 Could they just get a hostname from DHCP? 18:14:33 Or regeister it in DNS perhaps? 18:15:44 Too difficult, there's bunch of constraints I'm not going into right now. But generating large random number outside the jail and writing it into the file inside the jail is a good enough solution, thanks for the hint Erhard 18:16:06 OK. Glad it helped 18:17:15 For better random numbers use something like openssl to generate them (vs. rand(3) ) 18:17:37 If it is critical 18:17:49 I did find this: 18:17:52 https://lists.freebsd.org/pipermail/freebsd-net/2004-February/003027.html 18:17:53 Title: register DNS entry with dhclient 18:18:03 Never actually registered in DNS myself. I always turn that off 18:18:23 But the ability of the host to write to files in the vm is pretty cool. 18:18:34 *vm == jail in this case 18:19:03 Beware of race conditions. Probbaly best to write the file before the jail starts rather than after 18:19:47 But still the leakage .. I know that I'm in jail by looking at sysctl-s, what would jail ID leak? Only actually useful value would be jail ID 1 - then I would know I'm in the first jail created after system reboot. All other values would indicate that either 1) I'm not the first 2) there may be other jails 3) this may still be the only jail that has been stopped and re-created? 18:19:47 And make sure (using perms) somebody cannot make a link to the file you are writing from within the vm such that you overwrite some other file. 18:20:41 What are you worried about leaking? I don't follow 18:20:49 21:08 < ghoti> dh, I think that would count as leakage. What do you need it for? 18:21:12 Can non-root users do anything with the jail ID ? 18:21:32 I mean, I am all in favor of limiting the info as much as possible, but not sure if that is super valuable info 18:22:04 The jail ID is only meaningful in the conext of the host 18:22:10 context even 18:22:17 Not from within the jails 18:22:26 True 18:22:52 IIRC there are ways to do IPC between jails. But that would open up more security issues. 18:23:10 Though might be safer than files depending on how you use them. 18:24:07 In my case, security is not a concern, everything that's running inside the jails is controlled by me anyway 18:24:37 Oh wait, I don't even need to generate random number outside the jail, I may as well do it inside - even better 18:24:51 Oh, then files seems like the simplest method if you can do basic scripting 18:39:08 ls 18:39:23 . .. 18:39:43 sorry folks, wrong window ^^ 19:21:34 @jetchisel --- at least it wasn't your sudo password :) 19:34:04 hi, I am trying to configure PF, I would like to block everything except ports 22 and another one for example 10000. Which would be the config file? https://bpa.st/EWPA 19:34:05 Title: View paste EWPA 19:37:36 block on $external_if 19:38:07 pass in quick on $external_if proto tcp from any to ($external_if) port { 22, 10000 } keep state 19:38:20 pass out on $external_if keep state 19:38:36 where external_if is the name of external interface 19:38:46 you'd want to also allow icmp as a whole 19:40:12 do I have to define $external_if? 19:41:49 https://bpa.st/6CYQ 19:41:50 Title: View paste 6CYQ 19:42:08 how do I enable ICMP 19:42:27 ? 19:42:55 pass in quick on $external_if inet proto icmp from any to any 19:43:04 just after the first block rule 19:43:57 Snaffu: Nope, sudo does not exist on this side! ^^ 19:46:29 this one gives error: pass in quick on $external_if proto tcp from any to ($external_if) port $tcp_pass keep state 19:47:14 why icmp as a whole? you only need a few things from it (more than just echo/echo reply, but not much more) - https://www.cymru.com/Documents/icmp-messages.html 19:47:15 Title: ICMP Packet Filtering v1.2 19:49:26 nacelle, chill on the OMGTEHICMPPAKETZ nonsense. 21:09:57 when I enable PF I can not ping the local IP of a tun0 interface despite I ahve pass in quick on tun0 inet proto icmp from any to any 21:10:10 I do have all that right after block all 21:54:55 how do I forward all traffic arriving at a given IP in a host to a GW 21:54:56 ? 21:54:58 (PF) 21:56:04 maybe it is just routing 22:01:14 how do I add an IP alias with ifconfig 22:01:15 ? 22:06:56 Something like: 22:07:00 ifconfig ix0 192.168.2.70/24 alias 22:07:59 where ix0 is of course your interface 22:14:09 ifconfig em0 alias x.x.x.x netmask y.y.y.y 22:14:12 thanks 22:14:28 That works too 22:16:18 hrm. my snmp counter returned a negative (uint32 rollover). can i correct that in a shell script assuming it only rolled once? 22:18:12 How does a uint become negative? Something must be misinterpretting it. 22:24:00 ... count the amount of collected rollovers 22:24:03 (ew) 22:25:57 lol 22:26:10 unsigned indeed :) 22:31:30 Erhard: its actually returned by snmpwalk 22:32:01 i'm pretty sure it only overflowed once, and was just trying to use the number in a shell script 22:32:10 i can't fix the snmpd returning the abnormally large value 22:32:38 wonder if its really a uint64 22:32:54 i don't think i can override the MIB. 22:33:21 basically, i'm querying hrStorageTable from a host with terabyte sized filesystems, which returns the # of 4k blocks used/total 22:34:05 I mean it is possible on the basis of a single rollover to determine mathmatically the real number 22:34:07 part of my concern was overflowing in my shell script too 22:34:16 beh think I would use perl to do it 22:34:24 that may be wiser 22:34:53 it will be INT_MAX_SIZE+flip(negative overflow value * 2) 22:34:56 its like ($x - 2^31) + 2^31 22:35:31 er i may have that backward 22:35:33 yeah should not take much hackery to get there 22:35:35 I'm subscribed to a number of FreeBSD mailing lists, and I'd like to change my address. Is there a way to make the change across the board, all at once, or do I have to do it to each list, one by one? 22:35:43 ghoti: one by one 22:35:52 Dang. I miss mailman. 22:35:56 Thanks. 22:35:59 unless you find an admin willing to sed regexp ;] 22:36:02 ghoti, one by one I had that pain recently, and for whatever reason -hackers will not accept my unsub request and keeps annoying me ;p 22:45:26 daemon, I'd email postmaster@. 22:45:52 For help unsubscribing, I mean. 22:50:31 Demosthenex: is it net-snmp or bsnmp? 22:52:22 I have installed FreeBSD on a couple of SSDs in a ZFS mirror for zroot. I have since added other SSDs in the box, and the FreeBSD installer did not use IDs for the SSDs when it did the installation, but used device names in fstab for swap (i.e. /dev/ada0p2). This doesn't work as the device names has changed. How do I locate the disk ID? Not UUID, but the ID. 22:54:19 Is it the ident in "geom list"? 22:55:00 morning 22:55:02 And if so, how do I use that in fstab? 22:58:23 hrm, looking at the HOST-RESOURCES-MIB it's "SYNTAX Integer32 (0..2147483647)", not uint32 23:02:27 morfn 23:23:00 koobs: you seen the freebsd-hackers@ email about python3? 23:24:57 meena: is it the one thats been going a while? 23:25:12 if so i havent been through it (but have seen it) 23:25:30 https://lists.freebsd.org/archives/freebsd-hackers/2022-October/001572.html 23:25:31 Title: proper python3 interpreter invocation 23:25:34 it's fresh 23:25:44 scrary first line 23:25:58 have you participated? 23:26:09 nope, I'm busy programming in python3 23:26:15 the broad answer to that thread is 'PEP394' 23:26:30 ive seen cederom on irc too no? 23:26:33 and arguing with ports developers that we should be following PEP-394 23:26:39 we should be 23:26:43 but the issue is nuanced 23:26:44 I thought about responding that I only have /usr/local/bin/python3.9 without really doing anything otherwise. 23:26:57 because theres multiple considerations and factors involved 23:27:16 koobs: i know, it's complicated 23:27:20 so 23:27:24 if anyones involved in that thread 23:27:46 re: "Hey! The issue is nuanced, lets have a chat about it on IRC and get to the bottom of whats possible' 23:28:01 irc: notification added for cederom 23:28:04 if i see them ill ping 23:28:15 https://wiki.freebsd.org/Python/ 23:28:16 Title: Python - FreeBSD Wiki 23:28:21 we're pretty obvious about how to get in touch with the team 23:29:31 i might write a /PEP-394 one day. 23:30:26 that page definitely needs a refresh 23:30:46 So no one is going to say that right now today in 13.1 that "#!/usr/bin/env python3.9" is needed? As it seems to be to me? 23:31:06 its not, you can (as a user) pkg install python3 to get the convenience symlink 23:31:17 if its a ports relevent question, thats not the correct answer 23:32:01 there was a discussion about this exact thing in #freebsd-python a few days ago 23:32:20 Okay. Then the answer is "#!/usr/bin/env python3" with python3 installed? 23:33:26 That has the advantage of being portable between FreeBSD and Debian/Devuan/Ubuntu/Mint/Trisquel anyway. 23:33:53 rwp meena https://bsd.to/Bja3/raw there you go 23:33:54 Title: Bja3 23:34:04 rwp: its more than that, its what pep394 says 23:34:24 the only pep394 thing we *dont* do is 'auto' include python3/python symlinks when installing a pythonXY 23:34:30 and thats the thing theres nuance and reasons for 23:34:49 checkout pastebin above 23:34:51 for all the gore 23:35:27 its really not that gory. 23:37:17 koobs: oh no… that's jrm poking at python because of me… 23:37:20 It is longer than a 30-second read. I am reading through it now. 23:37:50 meena: thats fine, jrm is sorted 23:38:16 i should sort myself, too… either into bed, or into the shower… 23:38:21 rwp: its really a 2 minute read that wraps the tldr; python3 is for end users, we provide those convenience ports, python/python3 in ports, hides many QA issues 23:38:27 which break user expectations of what points to where 23:38:31 thats really iy 23:41:28 I read all of that as detailed as I could. I'm not really a python person but I think there is not yet a satisfactory answer. 23:49:28 rwp: then the comms arent as clear as they can be, so feel free to ask questions so we can clarify