OpenBSD 6.9 RAID 1C (encrypted raid1) softraid discipline can't boot
OpenBSD 6.9 RAID 1C (encrypted raid1) softraid discipline can't boot OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT 2021 one disk, shell create RAID CRYPTO, install system ok, boot ok two disk, shell create RAID 1, install system ok, boot ok two disk, shell create RAID 1C ok, install system ok, but boot failed in starting boot messages: Using drive 0, partition 3. Loading.. probing: pc0 com0 com1 mem... disk: hd0+ hd1+ >> OpenBSD/amd64 BOOT 3.53 open(sr0a:/etc/boot.conf): can't read disk label boot> cannot open sr0a:/etc/random.seed: can't read disk label booting sr0a:/bsd: open sr0a:/bsd:can't read disk label failed(100). will try /bsd
OpenBSD 6.6 boot fail:init: can't open /dev/console: Device not configured
1. After install OpenBSD 6.6 release or latest snapshot(Build date: 1572723128 - Sat Nov 2 19:32:08 UTC 2019), reboot fail,monitor display ... drm:pid94232:csr Load_ _work_ fn *NOTICE* Failed to Load DMC firmware i915/kbl_ dmc_ ver1 04 ,bin. Disabli ng runt ime power management drm:pid94232:csr- Load_ work_ fn *NOTICE* DMC firmware homepage: ht tps://git. kernel . org/pub/ scn/Linux/k ernel/gi t/f irmware/L inux- f irmware. git/tree/ i915inteldrm0 : 1024x768. 32bpp wsdisplay0 at inteldrm0 mux 1 wskbd1: connecting to wsdi splayb wskbd2: connect ing to wsdi sp Layo wsdisplay: screen 0-5 added (std, ut 100 emulation) init: can't open /dev/console: Device not configured init: can't open /dev/console: Device not configured init: can't open /dev/console: Device not configured init: can't open /dev/console: Device not configured init: can't open /dev/console: Device not configured ... 2. At the end of September and the beginning of October 2019, I forgot the specific time, this problem began to appear in snapshots 3. Same hardware, previous versions of OpenBSD boot ok. OpenBSD 6.5's dmesg -- OpenBSD 6.5 (GENERIC.MP) #5: Thu Aug 29 20:38:30 CEST 2019 r...@syspatch-65-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8359669760 (7972MB) avail mem = 8096673792 (7721MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.1 @ 0xe (104 entries) bios0: vendor Dell Inc. version "1.4.2" date 06/11/2019 bios0: Dell Inc. Precision Tower 3430 acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT SSDT HPET SSDT SSDT UEFI LPIT SSDT SSDT DBGP DBG2 MSDM SLIC SSDT DMAR BGRT ASF! EINJ ERST BERT HEST acpi0: wakeup devices PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz, 2994.89 MHz, 06-9e-0a cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz, 2993.05 MHz, 06-9e-0a cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz, 2993.05 MHz, 06-9e-0a cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz, 2993.05 MHz, 06-9e-0a cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 3, package 0 cpu4 at mainbus0: apid 8 (application
How to restrict ip to access a directory in OpenBSD's httpd
apache support somthing like Order Allow,Deny Allow from all Deny from 1.2.3.4 How to achieve in OpenBSD's httpd? We are using OpenBSD 6.4.
hijack client DNS query to localhost cache in the router
simple router build with OpenBSD Wan a.b.c.d Lan 192.168.0.1/24 Unbound run for DNS cache in 127.0.0.1 we want: no mater a client pc set dns to any address ( 8.8.8.8 or 9.9.9.9 ) all clients' dns query are redirect to the localhost cache in the router Can we achieve using pf.conf? how? test no work with rdr-to or divert-to - pf.conf match out on egress inet from !(egress:network) to any nat-to (egress:0) pass in quick proto udp from any to any port 53 rdr-to 127.0.0.1 port 53 pass -- unbound.conf server: interface: 192.168.0.1 interface: 127.0.0.1 access-control: 192.168.0.0/24 allow access-control: 127.0.0.0/8 allow do-not-query-localhost: no hide-identity: yes hide-version: yes forward-zone: name: "." forward-addr: 1.2.3.4 # IP of the upstream resolver
man 1 dd EXAMPLES improve
line EXAMPLES Write an OpenBSD floppy image to a floppy disk: # dd if=floppy34.fs of=/dev/rfd0c bs=32k add or change to below? - Write an OpenBSD install image to a USB storage device: # dd if=install62.fs of=/dev/rsdNc bs=1m where N is the device number. You can find the correct device number by checking dmesg(8) when inserting the media. -- borrow from INSTALL.amd64
Change Time zones cause ddb in 6.2 snapshot
snapshots/amd64/ Build date: 1506531075 - Wed Sep 27 16:51:15 UTC 2017 how to repeat the problem # config -ef /bsd [...] Enter 'help' for information ukc> timezone -480 timezone = -480, dst = 0 ukc> quit Saving modified kernel. reboot wait boot ... ... ddb>
Re: syscall 5 "cpath" continues with octeon
--- (OpenBSD 5.8-current (GENERIC) #1: Thu Nov 26 15:01:01 CET 2015) Octeon ubnt_e100# version U-Boot 1.1.1 (UBNT Build ID: 4670715-gbd7e2d7) (Build time: May 27 2014 - 11:16:22) 1. same installation problem repeated message syscall 5 "cpath" but we can pass with a trick. dd if=miniroot58.fs of=/dev/ to 16G new usb flash installation process... Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] (direct enter here) disklabel(32382): syscall 5 "cpath" Abort trap Disk: sd0 geometry: 1966/255/63 [31586304 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- *0: 0C 0 1 2 - 2 11 9 [ 64: 32768 ] Win95 FAT32L 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: A6 2 11 10 - 1966 39 57 [ 32832:31553472 ] OpenBSD ... ... loop back to ... Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a]e(this time we input e here) Do nothing but simply input "q" (save and exit)! install smoothly now 2. hint for EdgeRouter USB disk auto boot to OpenBSD, please add this line to INSTALL.octeon. setenv bootcmd 'fatload usb 0 $loadaddr bsd;bootoctlinux rootdev=/dev/sd0' 3. some messages from /var/log/messages a) repeated messages: Jan 5 10:53:06 oct sendsyslog: dropped 11 messages, error 57 Jan 5 10:53:24 oct savecore: /bsd: kvm_read: version misread b) double same lines Jan 5 10:53:05 oct /bsd: Copyright (c) 1995-2015 OpenBSD. All rights reserved. http://www.OpenBSD.org Jan 5 10:53:05 oct /bsd: Copyright (c) 1995-2015 OpenBSD. All rights reserved. http://www.OpenBSD.org -/var/log/messages Jan 5 10:52:11 oct reboot: rebooted by root Jan 5 10:52:12 oct syslogd: exiting on signal 15 Jan 5 10:53:05 oct syslogd: start Jan 5 10:53:05 oct /bsd: Copyright (c) 1982, 1986, 1989, 1991, 1993 Jan 5 10:53:05 oct /bsd: The Regents of the University of California. All rights reserved. Jan 5 10:53:05 oct /bsd: Copyright (c) 1995-2015 OpenBSD. All rights reserved. http://www.OpenBSD.org Jan 5 10:53:05 oct /bsd: Copyright (c) 1995-2015 OpenBSD. All rights reserved. http://www.OpenBSD.org Jan 5 10:53:05 oct /bsd: OpenBSD 5.8-current (GENERIC) #1: Thu Nov 26 15:01:01 CET 2015 Jan 5 10:53:05 oct /bsd: jas...@erl-2.jasper.la:/usr/src/sys/arch/octeon/compile/GENERIC Jan 5 10:53:05 oct /bsd: real mem = 247463936 (236MB) Jan 5 10:53:05 oct /bsd: avail mem = 245170176 (233MB) Jan 5 10:53:05 oct /bsd: warning: no entropy supplied by boot loader Jan 5 10:53:05 oct /bsd: mainbus0 at root Jan 5 10:53:05 oct /bsd: cpu0 at mainbus0: Cavium OCTEON CPU rev 0.1 500 MHz, Software FP emulation Jan 5 10:53:05 oct /bsd: cpu0: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way Jan 5 10:53:05 oct /bsd: clock0 at mainbus0: int 5 Jan 5 10:53:05 oct /bsd: iobus0 at mainbus0 Jan 5 10:53:05 oct /bsd: dwctwo0 at iobus0 base 0x118006800 irq 56 Jan 5 10:53:05 oct /bsd: usb0 at dwctwo0: USB revision 2.0 Jan 5 10:53:05 oct /bsd: uhub0 at usb0 "Octeon DWC2 root hub" rev 2.00/1.00 addr 1 Jan 5 10:53:05 oct /bsd: octrng0 at iobus0 base 0x14000 irq 0 Jan 5 10:53:05 oct /bsd: cn30xxgmx0 at iobus0 base 0x118000800 irq 48 Jan 5 10:53:05 oct /bsd: cnmac0 at cn30xxgmx0: RGMII, address 44:d9:e7:9b:87:e7 Jan 5 10:53:05 oct /bsd: atphy0 at cnmac0 phy 7: F1 10/100/1000 PHY, rev. 2 Jan 5 10:53:05 oct /bsd: cnmac1 at cn30xxgmx0: RGMII, address 44:d9:e7:9b:87:e8 Jan 5 10:53:05 oct /bsd: atphy1 at cnmac1 phy 6: F1 10/100/1000 PHY, rev. 2 Jan 5 10:53:05 oct /bsd: cnmac2 at cn30xxgmx0: RGMII, address 44:d9:e7:9b:87:e9 Jan 5 10:53:05 oct /bsd: atphy2 at cnmac2 phy 5: F1 10/100/1000 PHY, rev. 2 Jan 5 10:53:05 oct /bsd: uartbus0 at mainbus0 Jan 5 10:53:05 oct /bsd: com0 at uartbus0 base 0x118000800 irq 34: ns16550, no working fifo Jan 5 10:53:05 oct /bsd: com0: console Jan 5 10:53:05 oct /bsd: com1 at uartbus0 base 0x118000c00 irq 35: ns16550, no working fifo Jan 5 10:53:05 oct /bsd: /dev/ksyms: Symbol table not valid. Jan 5 10:53:05 oct /bsd: umass0 at uhub0 port 1 configuration 1 interface 0 "Generic USB Storage" rev 2.00/2.72 addr 2 Jan 5 10:53:05 oct /bsd: umass0: using SCSI over Bulk-Only Jan 5 10:53:05 oct /bsd: scsibus0 at umass0: 2 targets, initiator 0 Jan 5 10:53:05 oct /bsd: sd0 at scsibus0 targ 1 lun 0:SCSI0 0/direct removable serial.05e307360272 Jan 5 10:53:05 oct /bsd: sd0: 15423MB, 512 bytes/sector, 31586304 sectors Jan 5 10:53:05 oct /bsd: vscsi0 at root Jan 5 10:53:05 oct /bsd: scsibus1 at vscsi0: 256 targets Jan 5 10:53:05 oct /bsd: softraid0 at root Jan 5 10:53:05 oct /bsd: scsibus2 at
fdisk fuction in bsd.rd
http://www.openbsd.org/faq/faq4.html#Morefdisk uh-oh! What's our offset? Simple -- the offset of the previous partition plus the size of the partition, in this case, 63+10490382 = 10490445. offset: [0] 10490445 size: [0] * fdisk:*1 in this situation, default offset = 0 ?? may this fuction change to auto caculate the default to 10490445 ? just like offset: [10490445]
Re: loongson:automatic loading of OpenBSD:YES to 8G ssd No for 500Gdisk
PMON vers PMON: PMON2000 2.1 (Bonito) #14: Tue May 18 10:33:47 CST 2010 RE: Does the system boot if you press `enter' when the system is apparently hung with the splash screen still displayed? NO! Press Enter ,nothing happened 1)when power up the notebook, system will hung in the splash screen (Press Tab to recover | Press Del to setup) now hit Del, can not enter PMON prompt(nothing happend) 2)if power up the notebook and Press Del immediately, monitor will show BEV in SR set to zero. PMON now boot /dev/fs/ext2@wd0/boot/boot ok What is the PMON version reported by ``vers'' at the PMON prompt? Does the system boot if you press `enter' when the system is apparently hung with the splash screen still displayed? Miod . ---
www problem in undeadly.org
http://undeadly.org/ in section OpenBSD Errata month is incorrect! they said 2013-13-07 001 RELIABILITY A crash can happen on pflow(4) interface destruction. 2013-13-07 002 SECURITY A memory corruption vulnerability exists in the post-authentication sshd process when an AES-GCM cipher (aes128-...@openssh.com or aes256-...@openssh.com) is selected during kex exchange. Review the gcmrekey advisory for a mitigation. 2013-13-11 003 RELIABILITY An unprivileged user may hang the system. 2013-13-21 004 SECURITY A problem exists in nginx(8) which might allow an attacker to bypass security restrictions in certain configurations by using a specially crafted request. This issue was assigned CVE-2013-4547.
Re: loongson:automatic loading of OpenBSD:YES to 8G ssd No for 500G disk
Sorry, 163.com mail server always eat some lines , so resend email from qq.com and add # disklabel wd0 Few people using loongson notebook? Recently one Chinese organization sale this notebook about 45 $, they dump about 1,000 notebooks in 2 months. http://www.loongsonclub.cn/tg/ Original email # disklabel wd0 http://ftp.openbsd.org/pub/OpenBSD/5.4/loongson/INSTALL.loongson --- To overcome this annoyance, simply change the `moresz' environment variable to a large value (30 or larger will do): PMON set moresz 30 The bootloader will attempt to load the kernel file set in the `bsd' environment variable. Should this fail, it will wait for user commands. The value of `bsd' should be a path within the OpenBSD root filesystem on the disk, such as: PMON set bsd /bsd If you have removed the Linux installation or if you do not want to use the boot menu, you may simply disable it in the environment, and set the `al' variable to point to the bootloader path: PMON set ShowBootMenu no PMON set al /dev/fs/ext2@wd0/boot/boot automatic loading of OpenBSD binaries is ok. 2. change the disk to Seagate 500g disk, install 5.4 release with same settings. 1)when power up the notebook, system will hung in the splash screen (Press Tab to recover | Press Del to setup) now hit Del, can not enter PMON prompt(nothing happend) 2)if power up the notebook and Press Del immediately, monitor will show BEV in SR set to zero. PMON now boot /dev/fs/ext2@wd0/boot/boot ok --dmesg- [ using 476376 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2013 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 5.4 (GENERIC) #29: Tue Jul 30 22:12:34 MDT 2013 dera...@loongson.openbsd.org:/usr/src/sys/arch/loongson/compile/GENERIC real mem = 1073741824 (1024MB) avail mem = 1058979840 (1009MB) mainbus0 at root: Lemote Yeeloong cpu0 at mainbus0: STC Loongson2F CPU 796 MHz, STC Loongson2F FPU cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way bonito0 at mainbus0: memory and PCI-X controller, rev 1 pci0 at bonito0 bus 0 rl0 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 5, address 00:23:8b:b5:35:9e rlphy0 at rl0 phy 0: RTL internal PHY smfb0 at pci0 dev 8 function 0 Silicon Motion LynxEM+ rev 0xb0 wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation) ohci0 at pci0 dev 9 function 0 NEC USB rev 0x44: irq 7, version 1.0 ehci0 at pci0 dev 9 function 1 NEC USB rev 0x05: irq 7 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1 glxpcib0 at pci0 dev 14 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio, i2c isa0 at glxpcib0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 mcclock0 at isa0 port 0x70/2: mc146818 or compatible ykbec0 at isa0 port 0x381/3 gpio1 at glxpcib0: 32 pins iic at glxpcib0 not configured glxclk0 at glxpcib0: clock, prof pciide0 at pci0 dev 14 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: ST9500325AS wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) auglx0 at pci0 dev 14 function 3 AMD CS5536 Audio rev 0x01: isa irq 9, CS5536 AC97 ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0) audio0 at auglx0 ohci1 at pci0 dev 14 function 4 AMD CS5536 USB rev 0x02: isa irq 11, version 1.0, legacy support ehci1 at pci0 dev 14 function 5 AMD CS5536 USB rev 0x02: isa irq 11 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 AMD EHCI root hub rev 2.00/1.00 addr 1 usb2 at ohci0: USB revision 1.0 uhub2 at usb2 NEC OHCI root hub rev 1.00/1.00 addr 1 usb3 at ohci1: USB revision 1.0 uhub3 at usb3 AMD OHCI root hub rev 1.00/1.00 addr 1 apm0 at mainbus0 umass0 at uhub1 port 1 configuration 1 interface 0 Generic USB2.0-CRW rev 2.00/58.87 addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: Generic-, Multi-Card, 1.00 SCSI0 0/direct removable serial.0bda015811417340 urtw0 at uhub1 port 4 Realtek RTL8187B rev 2.00/2.00 addr 3 urtw0: RTL8187B rev E, address 00:17:c4:5a:19:d7 uhidev0 at uhub3 port 3 configuration 1 interface 0 Dell Dell USB Keyboard rev 1.10/3.01 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets pmon bootpath: /dev/disk/wd0 boot device: wd0 root on wd0a (12e4475847814fad.a) swap on wd0b
usb modem support fax in OpenBSD?
want to setup hylafax in OpenBSD please suggest some usb modem support fax in OpenBSD, thanks.
hotplug-diskmount does not support ntfs auto mount?
hotplug-diskmount does not support ntfs auto mount? but mount_ntfs can do it btw , 1. when hotplug-diskmount does not support any file system, the flash disk led light is blinking for ever except unplug it. 2. readme.OpenBSD not sync with man Example man 8 hotplug-diskmount says - EXAMPLES Create directory set which will be used for storing mount points: /usr/local/libexec/hotplug-diskmount init Sample attach script: #!/bin/sh DEVCLASS=$1 DEVNAME=$2 case $DEVCLASS in 2) /usr/local/libexec/hotplug-diskmount attach $DEVNAME ;; esac - /usr/local/share/doc/pkg-readmes/hotplug-diskmount-0.8 said -- #!/bin/sh DEVCLASS=${1} DEVNAME=${2} LOGIN=joeuser case ${DEVCLASS} in 2) /usr/local/libexec/hotplug-diskmount attach -u ${LOGIN} -m 700 ${DEVNAME} ;; esac dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
Re: pure_ftpd other option(style) not work
today test pure-ftpd again in a fress install pf.conf is default, not touch anything in system pure_ftpd other option(style) not work! login as: root root@10.0.0.163's password: Last login: Tue Sep 24 17:42:39 2013 from 10.0.0.88 OpenBSD 5.4-current (GENERIC.MP) #61: Mon Sep 23 15:44:45 MDT 2013 Welcome to OpenBSD: The proactively secure Unix-like operating system. Please use the sendbug(1) utility to report bugs in the system. Before reporting a bug, please try to reproduce it with the latest version of the code. With bug reports, please try to ensure that enough information to reproduce the problem is enclosed, and if a known fix for it exists, include that as well. # cd /root # vi .profile # . /root/.profile # pkg_add pure-ftpd Ambiguous: choose package for pure-ftpd a 0: None 1: pure-ftpd-1.0.36p2 2: pure-ftpd-1.0.36p2-ldap 3: pure-ftpd-1.0.36p2-ldap-virtual_chroot 4: pure-ftpd-1.0.36p2-mysql 5: pure-ftpd-1.0.36p2-mysql-virtual_chroot 6: pure-ftpd-1.0.36p2-postgresql 7: pure-ftpd-1.0.36p2-postgresql-virtual_chroot 8: pure-ftpd-1.0.36p2-virtual_chroot Your choice: 8 pure-ftpd-1.0.36p2-virtual_...:libiconv-1.14p0: ok pure-ftpd-1.0.36p2-virtual_chroot: ok The following new rcscripts were installed: /etc/rc.d/pure_ftpd See rc.d(8) for details. Just found a interesting thing /etc/rc.d/pure_ftpd is in bin group but all other scripts in rc.d in wheel group ? # ls -l /etc/rc.d/pure_ftpd -r-xr-xr-x 1 root bin 228 Sep 20 22:36 pure_ftpd # /etc/rc.d/pure_ftpd start pure_ftpd(ok) # ps -auwx | grep ftpd root 30359 0.0 0.0 788 1292 ?? Ss 9:31AM0:00.00 pure-ftpd: -pu re-ftpd (SERVER) (pure-ftpd) root 23216 0.0 0.0 448 904 p0 S+ 9:31AM0:00.00 grep ftpd # ftp localhost Trying 127.0.0.1... Connected to localhost. 220-- Welcome to Pure-FTPd [privsep] [TLS] -- 220-You are user number 1 of 50 allowed. 220-Local time is now 09:32. Server port: 21. 220-IPv6 connections are also welcome on this server. 220 You will be disconnected after 15 minutes of inactivity. Name (localhost:root): ^C# # vi /etc/rc.d/pure_ftpd# # /etc/rc.d/pure_ftpd stop pure_ftpd(ok) # ps -auwx | grep ftpd root 15167 0.0 0.0 244 252 p0 R+/1 9:33AM0:00.00 grep ftpd # /etc/rc.d/pure_ftpd start pure_ftpd(ok) # ps -auwx | grep ftpd root 11999 0.0 0.0 716 980 ?? Ss 9:33AM0:00.00 /usr/local/sbin/pure-ftpd -o -A -B -H -u1000 root 21498 0.0 0.0 252 224 p0 R+/1 9:33AM0:00.00 grep ftpd # ftp localhost Trying 127.0.0.1... ftp: connect to address 127.0.0.1: Connection refused Trying ::1... ftp: connect: Connection refused ftp exit # sysctl kern.version kern.version=OpenBSD 5.4-current (GENERIC.MP) #61: Mon Sep 23 15:44:45 MDT 2013 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP # pkg_info athn-firmware-1.1p0 firmware binary images for athn(4) driver libiconv-1.14p0 character set conversion library pure-ftpd-1.0.36p2-virtual_chroot small, easy to set up, fast and very secure FTP server radeondrm-firmware-20130808 firmware binary images for radeondrm(4) driver # cat /etc/pf.conf # $OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $ # # See pf.conf(5) for syntax and examples. # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1 # in /etc/sysctl.conf if packets are to be forwarded between interfaces. # increase default state limit from 10'000 states on busy systems #set limit states 10 set skip on lo # filter rules and anchor for ftp-proxy(8) #anchor ftp-proxy/* #pass in quick inet proto tcp to port ftp divert-to 127.0.0.1 port 8021 # anchor for relayd(8) #anchor relayd/* block # block stateless traffic pass# establish keep-state # rules for spamd(8) #table spamd-white persist #table nospamd persist file /etc/mail/nospamd #pass in on egress proto tcp from any to any port smtp \ #rdr-to 127.0.0.1 port spamd #pass in on egress proto tcp from nospamd to any port smtp #pass in log on egress proto tcp from spamd-white to any port smtp #pass out log on egress proto tcp to any port smtp #block in quick from urpf-failed to any # use with care # By default, do not permit remote connections to X11 block in on ! lo0 proto tcp to port 6000:6010 # cat /etc/rc.d/pure_ftpd #!/bin/sh # # $OpenBSD: pure_ftpd.rc,v 1.1 2011/04/25 09:26:47 sthen Exp $ daemon=/usr/local/sbin/pure-ftpd daemon_flags=-o -A -B -H -u1000 . /etc/rc.d/rc.subr pexp=pure-ftpd: -pure-ftpd \(SERVER\) rc_reload=NO rc_cmd $1 # fstat USER CMD PID FD MOUNTINUM MODE R/WSZ|DV root fstat 22374 text /usr 181962 -r-xr-xr-x r24440 root fstat 22374 wd / 103968 drwxr-xr-x r 1536 root fstat 223740 / 78522 crw--w rwttyp0 root
pure-uploadscript for ffmpeg to auto convert files
just install pure-ftpd and ffmpeg when convert *.avi to *.mp4 without reencoding in normal shell, the command is # ffmpeg -i inputname.avi -strict -2 -vcodec copy inputname.mp4 now with pure-uploadscript , need Automatically run ffmpeg after a successful *.avi upload , converting to *.mp4 the ouput file name should be the same as input file name except extension name. so how to wright this script ? ###not finish Example!!! #! /bin/sh /usr/local/bin/ffmpeg -i $1 -strict -2 -vcodec copy ? ###not finish Example!!!
pure_ftpd other option(style) not work
in current snapshots install pure_ftpd default /etc/rc.d/pure_ftpd is --- #!/bin/sh # # $OpenBSD: pure_ftpd.rc,v 1.1 2011/04/25 09:26:47 sthen Exp $ daemon=/usr/local/sbin/pure-ftpd daemon_flags=-A -B -H -u1000 . /etc/rc.d/rc.subr pexp=pure-ftpd: -pure-ftpd \(SERVER\) rc_reload=NO rc_cmd $1 -- # /etc/rc.d/pure_ftpd start # ps -auwx | grep ftpd root 8530 0.0 0.0 852 1264 ?? Is10:44AM0:00.00 pure-ftpd: -pure-ftpd (SERVER) (pure-ftpd) now user login work if add other flags like -o, for example , change /etc/rc.d/pure_ftpd -daemon_flags=-A -B -H -u1000 +daemon_flags=-o -A -B -H -u1000 the daemon will start but nobody can login! # pkill ftpd # /etc/rc.d/pure_ftpd start pure_ftpd(ok) # ps -auwx | grep ftpd root 15587 0.0 0.0 676 964 ?? Is10:48AM0:00.00 /usr/local/sbin/pure-ftpd -o -A -B -H -u1000 # ftp localhost Trying 127.0.0.1... ftp: connect to address 127.0.0.1: Connection refused Trying ::1... ftp: connect: Connection refused ftp BTW, start pure-ftpd without rc.d script not work too # pkill ftpd # /usr/local/sbin/pure-ftpd -A -B -H -u1000 -o # ftp localhost Trying 127.0.0.1... ftp: connect to address 127.0.0.1: Connection refused Trying ::1... ftp: connect: Connection refused ftp # sysctl kern.version kern.version=OpenBSD 5.4-current (GENERIC) #55: Tue Sep 17 08:29:11 MDT 2013 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC # pkg_info | grep pure pure-ftpd-1.0.36p2-virtual_chroot small, easy to set up, fast and very secure FTP server
current snapshot can not install drupal7 with sqlite3 any more.
because php's version is php 5.4 , installing error sample; Warning: Illegal string offset 'field' in UpdateQuery_sqlite-removeFieldsInCondition() (line 75 of in previous php 5.3, drupal 7 with sqlite3 works.
Re: user can not shutdown PC in xfce
-- Original -- From: Tomas Bodzartomas.bod...@gmail.com; On Tue, Aug 27, 2013 at 2:34 PM, Fung fungm...@qq.com wrote: 1. root login xfce can shutdown the pc smoothly using mouse. 2. other user in xfce can not shutdown the pc, why? # visudo ... %wheel ALL=(ALL) SETENV: ALL share ALL=NOPASSWD: /usr/local/lib/xfce4/session/xfsm-shutdown-helper ... # id share uid=1000(share) gid=1000(share) groups=1000(share), 0(wheel) # sysctl kern.version kern.version=OpenBSD 5.4-current (GENERIC.MP) #48: Sat Aug 24 20:31:41 MDT 2013 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP # cat /usr/local/share/doc/pkg-readmes/xfce-4.10p0 said Logging out and shutting down the computer == If your installation supports complete shutdown, clicking on the logout button on panel will permit you to either logout, rebooting or halt the computer, provided you have the needed sudo credentials. If you don't want to have to enter your password, simply add this line to the /etc/sudoers file using visudo: $your_username ALL=NOPASSWD: /usr/local/lib/xfce4/session/xfsm-shutdown-helper == are you in operator group? ;-) $ ls -l /sbin/shutdown -r-sr-x--- 1 root operator 222416 Aug 20 00:46 /sbin/shutdown $ . hi, tomas, Shutdown in xfce not work with operator group . BTW, from terminal , user share can halt -p/ shutdown the system.
user can not shutdown PC in xfce
1. root login xfce can shutdown the pc smoothly using mouse. 2. other user in xfce can not shutdown the pc, why? # visudo ... %wheel ALL=(ALL) SETENV: ALL share ALL=NOPASSWD: /usr/local/lib/xfce4/session/xfsm-shutdown-helper ... # id share uid=1000(share) gid=1000(share) groups=1000(share), 0(wheel) # sysctl kern.version kern.version=OpenBSD 5.4-current (GENERIC.MP) #48: Sat Aug 24 20:31:41 MDT 2013 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP # cat /usr/local/share/doc/pkg-readmes/xfce-4.10p0 said Logging out and shutting down the computer == If your installation supports complete shutdown, clicking on the logout button on panel will permit you to either logout, rebooting or halt the computer, provided you have the needed sudo credentials. If you don't want to have to enter your password, simply add this line to the /etc/sudoers file using visudo: $your_username ALL=NOPASSWD: /usr/local/lib/xfce4/session/xfsm-shutdown-helper ==
use sndiod remote microphone
have read http://www.openbsd.org/faq/faq13.html#audioserver now two OpenBSD pc A B A add sndiod_flags=-L- to /etc/rc.conf.local, plug in a microphone. so B how to set and use the remote mic? what i want: 1. B can hear the sound from A's mic (live broadcast). 2. What program in B should I use?