Re: AAAA entry for openbsd.org
> If you want to volunteer to host an ipv6 mirror, I think the > licensing already allows that. There are already IPv6-enabled mirrors. The issue is that {ftplist1.,ftplist2.,''}openbsd.org doesn't have IPv6, so it can't fetch a list of them.
Re: How to Get the kernel-specific source or configuration of the distribution without installation
O 24/04/22 ás 10:13, 孙滢 escribiu: Hi, We are studying on the default value of Kernel Configuration items in each Linux mainstream distribution. May I ask if your distribution has the open kernel source website url(eg. git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crackcod/mainline/v5.18-rc3) ? Or directly the url of kernel configuration files (eg. https://github.com/KaOSx/core/blob/master/linux/config)? Or some other public way to get your distribution's kernel-specific configuration files on different kernel versions without installation? Thanks! OpenBSD's kernel configs are under http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/arch/(machine arch)/conf/GENERIC(.MP) and http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/conf/GENERIC(.MP). See also https://man.openbsd.org/config.8.
Re: Server certs expired higher up the chain, imaps and https
O 30/09/21 ás 19:02, Chris Bennett escribiu: > Hi, > > I'm getting that the certs are expired, but https works fine in Firefox, > including when looking at the full chain. > > > openssl s_client -servername mail.strengthcouragewisdom.rocks -connect > mail.strengthcouragewisdom.rocks:imaps > > openssl s_client -servername mail.strengthcouragewisdom.rocks -connect > mail.strengthcouragewisdom.rocks:https > > However are not happy. I force updated my ssl certs, syspatch, pkg_add > -u and rebooted. > > I didn't rebuild dh.pem for dovecot. > > Is this just a DNS propagation issue? > Or should I do something further myself? > > Thanks > Chris Bennett > I just saw a similar thread on freebsd-questions[1], you might have the same problem that they had. [1] https://lists.freebsd.org/pipermail/freebsd-questions/2021-September/294839.html
Re: vi: count occurrences of a substring
O 04/09/21 ás 18:25, ropers escribiu: On 04/09/2021, Parodper wrote: So I wrote :!sed s/abc/abc\/g % | grep -c abc and then went back and pressed after that backslash, i.e. :!sed s/abc/abc\/g % | grep -c abc And it gave me a correct number of abc's for my test text. I feel like the dumbest person in the world asking this, but what EXACTLY do you mean by "and then went back"? Are you using cursor keys? I.e. should I have gotten those to work in vi in xterm and console? Because I haven't. The moment I try to cursor back, I'm back to vi mode and the ex-style command mode line at the bottom is gone. Yeah, moving the cursor back and pressing enter. On the vi subject, since I don't have my OpenBSD machine at hand I was testing this on Debian GNU/Linux with sed --posix, and it has vim instead of vi. Otherwise, if I try to just type :!sed s/abc/abc\/g % | grep -c abc and press enter, I only get the same output I also get out of :!grep -c abc % on its own -- which won't count multiple same-line occurrences. A still confused Ian Now it is my turn to feel dumb. I was so focused on the newline-sed subject that I forgot about that, so I did not put multiple abc's on the same line :). On that subject :! grep -o abc % | wc -l seems to work for me.
Re: vi: count occurrences of a word
O 04/09/21 ás 14:26, ropers escribiu: On 04/09/2021, Parodper wrote: To use newlines with sed I use tr and a char I know does not appear on the text, like '|' or '`'. I just tested :!sed s/abc/abc€/g % | tr '€' '\n' | grep -c abc and it worked fine. That's a neat trick -- IFF you can be *sure* that character won't show up in the text. I also feel it's a workaround, and I don't really understand *why* substituting/inserting newlines is something that seemingly cannot be made to work in OpenBSD sed, or whether the information on the sed(1) man page is really consistent with actual behaviour. Observed oddities: 1. ^V[return] generally yielding CR across the board (on BSD, Linux, etc.) even though the Unix-like end-of-line character is LF, not CR, 2. \n working perfectly fine in some base utilities like tr but not in others like sed, and 3. the sed(1) documentation being seemingly or potentially misleading or at odds with observed program behaviour w/r/t newlines. Is anyone able to make sense of this? Does anyone know if there's a reason or rationale behind the BSD sed implementation when it comes to newlines? Can someone perhaps even say why ^V[return] produces CR instead of LF or if there's even a way to enter \n in a way sed will accept? Thank you, Ian I think I found something. From POSIX (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html): > A line can be split by substituting a into it. The > application shall escape the in the replacement by preceding > it by a . So I wrote :!sed s/abc/abc\/g % | grep -c abc and then went back and pressed after that backslash, i.e. :!sed s/abc/abc\/g % | grep -c abc And it gave me a correct number of abc's for my test text.
Re: vi: count occurrences of a word
O 04/09/21 ás 12:12, ropers escribiu: However, I can't get the newline to work right in OpenBSD's sed. It does work in GNU sed. man sed has this: The escape sequence \n matches a newline character embedded in the pattern space. You can't, however, use a literal newline character in an address or in the substitute command. Now I *thought* \n was NOT considered a literal newline, and that I should thus be able to get this to work, but I'm a little stumped. Googled information suggests that the opposite of what's described in the man page may be true: You CAN use a literal newline, but you can't use \n. But I'm not sure if the googled information is correct and I still haven't figured this one out. In trying to get this to work, I took a FILE that contains a bunch of abc's, sometimes several to a line, sometimes not, and I did this[0]: $ sed s/abc/abc^M/g FILE > DAFTFILE Here ^M *was supposed to be* a literal newline, i.e. I pressed ^V followed by the return key, but readers more alert than me can doubtlessly already see the problem: Apparently ^V[enter] yields a literal carriage return, not a literal newline (^J). That's the case on Linux as well, and I don't know why. One interesting observation, if someone does get this to work, is that this :!sed s/abc/abc\n/g % | grep -c abc is only shorter than this :!cat % | tr '\n' ' ' | awk '{print gsub(/abc/, "")}' if the abc string is short. To use newlines with sed I use tr and a char I know does not appear on the text, like '|' or '`'. I just tested :!sed s/abc/abc€/g % | tr '€' '\n' | grep -c abc and it worked fine.
Re: libsqlite3 errors while attempting to install numerous packages...
O 22/08/21 ás 20:21, Scott Vargovich escribiu: Let me preface what I'm about to say: I'm a long time Linux user, but I'm very much a novice to openbsd. As a Linux user keep in mind that OpenBSD is a complete operating system, so you can get a lot of information by just navigating through https://www.openbsd.org, clicking links and looking around. I know the list says to "do your homework" before posting here, but I don't even know where to begin to do the homework you're suggesting. From the Netiquette section in https://www.openbsd.org/mail.html: * INSTALL.* text files in the installation directories * The FAQ: https://www.openbsd.org/faq/index.html. Check out the «Installing Packages» (https://www.openbsd.org/faq/faq15.html#PkgInstall) * Manpages (available online in https://man.openbsd.org), starting with afterboot(8) * Mailing list archive in https://marc.info/?l=openbsd-misc Here's the error I'm getting while attempting to install qutebrowser and a number of other packages: Can't install libsoup2.72.0 because of libraries library sqlite3.37.12 not found I believe there's some sort of symlinking I need to do to point to the right sqlite3 library, but I have no clue where the link needs to go and what it needs to point to. Please help me figure this out and fix it. Thanks in advance, I did a fresh install on QEMU and qutebrowser installed without problems. Did you do anything weird with the libraries? Also check out the bottom of the «Installing Packages» FAQ page. Here is a relevant quote: > There are several things to check: > > * Your system may be incomplete: you did not install one of the file > sets that contains the required library > * Your system (or packages) may be outdated: you have an older version > of the required library. > Make sure that both the base system and any installed packages are up > to date. > * If you're running -current, base and package snapshots may > be slightly out of sync. Wait for the mirrors to catch up and try > again.
Re: Adding a prompt on the installer before overwriting the partition table
O 28/06/21 ás 16:53, Theo de Raadt escribiu: Parodper wrote: I think there should be a prompt in the installer before overwriting the partition tables. The current behavior is, when selecting the whole disk, to overwrite the partition table directly. Isn't it kind of obvious that selecting the whole disk requires overwriting the partition table? That assumes that people don't make mistakes, like I did. Having the default option be «delete everything **without asking**» seems to me as good place to make mistakes. At least the edit option requires more than just one key press to delete your data The installer has acted this way for more than 20 years. It is well documented. Haven't heard a complaint in a decade. Did you read the installation docs? There have been multiple complains: https://marc.info/?t=14720374222&r=1&w=2 https://marc.info/?t=13311235202&r=1&w=2 https://marc.info/?t=9437909741&r=1&w=2 I decided to start a new thread because those old threads usually end with a «diff please» or centering too much on how the first user wrote the mail. I doubt other major operating system installers ask you again if you are sure you want this hidden but obvious step, so why should our installer? Off the top of my head I couldn't tell you how other OS do it, but the Debian installer puts the template into the partitioning program, and the program asks no matter the option chosen. I would have suggested something like that, but I preferred to start with something more simple. Meanwhile, your change probably breaks including auto and templated installs -- because a newly introduced question which isn't answered will receive \n, and without y\n it fails. That is a good complain. I have no experience with automated installs, so I don't know how they do it. But if the defaults have to be explicit then, instead of changing the fdisk option, I propose changing the default to the «(E)dit» option. On the other hand, if you don't want to change the installer interface in any way there is nothing more to discuss. Furthermore I think the whole concept of installing multiple operating systems on one disk and multiple-booting is increasingly complex to the point of being a waste of time. Multiple partitions are not only used for having multiple operating systems. I usually have a data partition on my machines. Major operating systems don't make it trivial. Depending on your definition of «trivial», yes they do. Why should the smaller systems be held to the standard of making it easy? I am not suggesting that OpenBSD should change the install process for a tablet-based interface. It is a small change for which I have suggested a diff. Sorry to break the news, but as a rule the most fragile configurations of any software are the ones unused by the developers. This is definitely one. None of us use multiboot. True, but this is only tangentially related to multiboot.
Adding a prompt on the installer before overwriting the partition table
I think there should be a prompt in the installer before overwriting the partition tables. The current behavior is, when selecting the whole disk, to overwrite the partition table directly. I am suggesting this because I once by mistake double pressed enter at the «Partitioning Disks» stage, selecting my main drive but also selecting the default partitioning option. I quickly canceled the operation, but it had already deleted my GPT table. I was able to recover it, but it should have asked, like it does on the «(E)dit» option. I would suggest modifying install.md like this (example from the amd64 version): --- install.md2021-06-28 15:07:22.28218 +0200 +++ install.md.ask2021-06-28 15:08:44.776914131 +0200 @@ -71,7 +71,7 @@ case $resp in [wW]*) echo -n "Setting OpenBSD MBR partition to whole $_disk..." -fdisk -iy $_disk >/dev/null +fdisk -i $_disk echo "done." return ;; [gG]*) @@ -81,7 +81,7 @@ fi echo -n "Setting OpenBSD GPT partition to whole $_disk..." -fdisk -iy -g -b 960 $_disk >/dev/null +fdisk -i -g -b 960 $_disk echo "done." return ;; [eE]*)
Maintaining modified binary kernel config
So I've got an old single-core computer that can't boot with radeondrm enabled. I checked and if I disable it from the boot prompt there are no problems, but it doesn't persist between reboots. After checking the man pages I found the config(8) tool, which seemed to solve my problem. Using the example on the man page I did # config -e -o bsd.new /bsd ukc> disable radeondrm ukc> quit # mv bsd.new /bsd But that only lasts for one reboot (I think on some cases not even that). After that the next reboots have the same problem. Any tips to make the changes permanent? Another related question: what is the bsd.booted kernel for? Should I also modify that one?
Re: how to fix a install
O 24/04/21 ás 16:13, Olive Power escribiu > how can i use a install media to fix fstab on my hdd? Did the HDD have a problem? If not, I've heard that testdisk can find BSD disklabels. Give it a try. Then with the root partition mounted just change the drives on /etc/fstab. Check fstab(5). > the mailing list donot send unregistered user replys to who send the > coresponding message i donot get the respond in the inbox or spam Well, yes. If you are not subscribed you won't recieve any message. > and is not the password saved in plain text by mailing list violate > the openbsd secure by default No. Mailing list passwords are only for changing settings, if anyone stole one the most they can do is spam you with digests and confirm messages. > i want to ask why all lgpl ports are licensed as gpl in cvs They should not be. If you find any report it to their maintainer. > gpl like gnome make a lot of packages i no use and bind to google > apple mozilla by default use the gnome account > i wonder why u port install the account package by default donot u > consider privacy OpenBSD is secure *as installed*. After that the user should know what it is doing before installing anything. > i see arm64 port got improved ffs > i think u can improve it this time as ssd use 4k align > not 512 bytes There was already a discussion about this. The consensus seems to be that it does not matter enough to need a change. https://marc.info/?l=openbsd-misc&m=161903660206094&w=2 > and can u publish 6.9 this weekend Probably not, but you can already check out the latest version. > what are u working on > build ports for no people use arch on a improved qemu patch for openbsd The best way to obtain this would be to pay an OpenBSD user. > all other linux and bsd and someday haiku and openillous got hashcat port I'm interested, what is «openillous»?
Re: Changing efi system partition
O 10/04/21 ás 18:45, David Passens escribiu: Hello folks, I recently installed OpenBSD as a dualboot next to a Linux install. However, I didn't pay much attention to partitioning and created a new ESP. This means that my Linux bootloader can't find the OpenBSD bootloader to chainload it. Now I want to fix this situation. If I don't reinstall (which I don' want to), I need to move one bootloader onto the other ESP. Moving the Linux bootloader seems easier, but I'd like to know if I can do the same with the OpenBSD one. I could just try to move the executable but I'm not sure how the bootloader finds the partition to boot from and how sysupgrade finds the bootloader to upgrade it (if it does it at all, the man page didn't mention it). Does anybody know whether it's safe to just move the bootloader to a different partition? If so, can I rename it as well? BOOTX64.efi conflicts with my linux bootloader. I already tried to find out via boot(8) and boot_amd64(8) but they only talk about legacy BIOS. At first glance, man -k efi doesn't point to any useful pages either. I might've overlooked something though, I'm fairly new to OpenBSD. Thanks in advance, David EFI can boot from any FAT partition on the drive. You can put any bootloader you want on that partition (usually it is the first) and EFI will be able to boot from it. Check your mobo documentation, but for me the BIOS menu includes an «Boot from» option, to select the EFI file from which to boot. Not knowing the OpenBSD specifics, it should boot even if you move it. If you have doubts, try to recreate your setup on a virtual machine and try there.
Re: Does Minecraft + Microsoft account on OpenBSD work?
O 04/04/21 ás 16:34, Mark Hesselink escribiu: Hi, Minecraft Java Edition can be easily installed on OpenBSD using the games/minecraft port (see e.g. https://openports.se/games/minecraft). Before I buy the game, which at 17.95 GBP is reasonably priced IMHO, I wanted to ask the OpenBSD community whether anyone has been able to get the Minecraft port to work using a Microsoft account: Since 1 December 2020 one needs a Microsoft account to buy and play Minecraft Java Edition. I have attempted to start the games/minecraft port in demo mode using the instructions posted at https://minecraft.fandom.com/wiki/Demo_mode: Supposedly passing the --demo argument to minecraft.jar should launch the demo. Assuming these instructions are correct, I have not been able to log in to Minecraft using my Microsoft account despite registering the account for a free trial. Would anyone know the magic trick to play Minecraft Java Edition on OpenBSD using a Microsoft account? Cheers, Mark I have an account with the paid game. For me it runs perfectly. However there is a problem: this launcher is outdated. Now there is a new one that runs from a native executable, and the Java one is deprecated. This means that you can't run the newer versions (haven't tried it, but after a bit of searching I can find complains from version 1.14.4). And I can't find what are you saying about that «Demo mode page». It clearly says that for launching the demo you only need to login as an account without the game bought. The «--demo» option is for servers.
USB device getting disabled
Hello, This is a new install. xenodm starts fine, but the USB mouse doesn't work. Looking at the dmesg I can see that some USB ports (I guess the ones connected?) are disabled because of "problems": uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: apic 2 int 21 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 [...] usb1 at uhci0: USB revision 1.0 uhub1 at usb1 configuration 1 interface 0 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "VIA UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "VIA UHCI root hub" rev 1.00/1.00 addr 1 [...] uhub1: device problem, disabling port 2 uhub2: device problem, disabling port 1 uhub2: device problem, disabling port 2 Reading the USB drivers man pages I understood that there were generic drivers that would attach, but I can't get wsmoused to connect to any /dev/u* device. I know the mouse works on other OS (Windows XP) on the same computer. An interesting thing is that I have another wireless PS/2-USB Logitech mouse and that one doesn't work either. Full dmesg: OpenBSD 6.8 (GENERIC) #4: Mon Jan 11 10:34:49 MST 2021 r...@syspatch-68-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC real mem = 1878478848 (1791MB) avail mem = 1827950592 (1743MB) User Kernel Config UKC> disable radeondrm 255 radeondrm* disabled UKC> exit Continuing... random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: date 09/24/03, BIOS32 rev. 0 @ 0xfa0e0, SMBIOS rev. 2.3 @ 0xf0120 (37 entries) bios0: vendor Award Software International, Inc. version "F8" date 09/24/2003 bios0: Gigabyte Technology Co., Ltd. GA-7VT600 acpi0 at bios0: ACPI 1.0 acpi0: sleep states S0 S1 S4 S5 acpi0: tables DSDT FACP APIC acpi0: wakeup devices PCI0(S5) USB0(S3) USB1(S3) USB2(S3) USB6(S3) USB7(S3) USB8(S3) USB9(S3) UAR1(S5) LPT1(S5) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Athlon(tm) XP 2400+ ("AuthenticAMD" 686-class, 256KB L2 cache) 2.01 GHz, 06-08-01 cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,MMXX,3DNOW2,3DNOW mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 267MHz ioapic0 at mainbus0: apid 2 pa 0xfec0, version 3, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpibtn0 at acpi0: PWRB "PNP0A03" at acpi0 not configured acpicmos0 at acpi0 "PNPB006" at acpi0 not configured "PNPB02F" at acpi0 not configured acpicpu0 at acpi0: C1(@1 halt!) bios0: ROM list: 0xc/0xd000 0xd/0x2800 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x80 viaagp0 at pchb0: v3 agp0 at viaagp0: aperture at 0xd000, size 0x1000 ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "ATI Radeon 9200 PRO" rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) "ATI Radeon 9200 PRO Sec" rev 0x01 at pci1 dev 0 function 1 not configured bktr0 at pci0 dev 10 function 0 "Brooktree BT878" rev 0x11: apic 2 int 18 bktr0: AVer Media TV/FM, Philips PAL tuner. "Brooktree BT878 Audio" rev 0x11 at pci0 dev 10 function 1 not configured "AT&T/Lucent LTMODEM" rev 0x02 at pci0 dev 12 function 0 not configured rl0 at pci0 dev 13 function 0 "Realtek 8139" rev 0x10: apic 2 int 17, address 00:27:19:b6:23:33 rlphy0 at rl0 phy 0: RTL internal PHY uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: apic 2 int 21 ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: apic 2 int 21 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 viapm0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00: SMI iic0 at viapm0 spdmem0 at iic0 addr 0x50: 1GB DDR SDRAM non-parity PC3200CL3.0 spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC2700CL2.5 spdmem2 at iic0 addr 0x52: 512MB DDR SDRAM non-parity PC3200CL3.0 pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: wd0: 128-sector PIO, LBA48, 152626MB, 312579695 sectors wd1 at pciide0 channel 0 drive 1: wd1: 16-sector PIO, LBA, 76318MB, 1562