clover and nvme
hi all . nvme on pci express adapter sometimes cannot boot OS . but i can boot windows 10 on this nvme by using clover . i use archlinux . 1) download CloverISO-5070.tar.lzma tar xvf CloverISO-5070.tar.lzma --lzma modprobe fuse fuseiso ./Clover-v2.5k-5070-X64.iso /mnt ls /mnt EFI Library usr 2) mkdir /home/foge/clover--- cp -aR /mnt/* /home/foge/clover--- cd /home/foge/clover--- # ls EFI Library usr 3)# cd EFI/CLOVER/drivers/ #cp off/NvmExpressDxe.efi UEFI/ 4)/dev/sdb is USB memory mkfs.vfat /dev/sdb1 mount /dev/sdb1 /mb1 cp -aR /home/foge/clover---/* /mb1 umount /mb1 5)this USB memory can boot nvme on pci express (windows10). i did not try OpenBSD , but i hope this USB memory may be boot OpenBSD . -- from tuyosi takesima
Re: ThinkPad T14 AMD
Hi all I have an amd T495 . If the T14 is the 10th gen , mine is the 9th gen. Other than the cpu the differences the remaining hw should be similar. V6.7 installed without issue on the T495 and the normal things worked out the box . Syspatch and firmware applied. Suspend on lid close, audio, and the function buttons. Bluetooth not supported. The finger print scanner was detected on the USB bus but not tested. Wifi was pegged at G speeds. Slow but ok. Perhaps Current would bring some goodies. Battery sucks on this laptop though. APM reported about 5.5hrs . Linux gives me 5-7 and win10 A few more. I think the S variants although slimmer have a slightly larger battery. This is my 1st personal think pad and other than poor inbuilt battery capacity the T series lives up to its famed build quality. Keyboard is nice too. I require Citrix and ms teams so unfortunately I’m running Linux on it . -sub On Mon, Aug 24, 2020 at 8:38 am, Tom Smyth wrote: > IT is hard not to like the T Series Build quality ... > I have a laptop on my desk here that is working away after multiple > falls... the ethernet port is bent on the main board (main board is > bent... still works 1G FDX... > awesome... > > On Sun, 23 Aug 2020 at 23:38, Rupert Gallagher wrote: > >> T14 AMD turned out to be the very best ThinkPad ever produced, as far as >> performance is concerned. The R5 cpu is faster than Intel's i7-10, and the >> R7 is faster than the i9, both on single core and multi core benchmarks. >> The T14 has a dual heat pipe, and its WAN slot can be used as a disk bay. >> >> The quality of the chassis is that of the T series. >> >> Original Message >> On Aug 23, 2020, 21:24, flint pyrite < flintnpyr...@gmail.com> wrote: >> I had an A485 everything worked except wifi, which I replaced with USB >> wifi stick. The laptop, however, turned out ot be a lemon. It is in >> repair depot as we speak. On of the cpu cores went bad, keys kept >> popping off and the synaptics mouse pad would not click and drag. Just >> so you know Lenov support is hideous. It has taken over a one (1) >> year and still counting to resolve these issues . >> WHat are the specs of the T14? Never heard of it. >> On Sun, Aug 23, 2020 at 1:06 PM Rupert Gallagher >> wrote: >> > >> > Anybody managed to boot obsd on the T14? I tried, and it does not even >> start. By comparison, Debian chokes on a missing network driver, and Fedora >> just works. >> > > -- > Kindest regards, > Tom Smyth.
Re: ThinkPad T14 AMD
On Mon, Aug 24, 2020 at 12:41:21AM +, s...@skolma.com wrote: [...] > I require Citrix and ms teams so unfortunately I’m running Linux on it . I don't know about MS Teams, but I also use Citrix for work and do that with Citrix Workspace chromium plugin: https://chrome.google.com/webstore/detail/citrix-workspace/haiffjcadagjlijoggckpgfnoeiflnem Maybe this can help some reduce their dependency on !OpenBSD...
Re: ThinkPad T14 AMD
T14 AMD turned out to be the very best ThinkPad ever produced, as far as performance is concerned. The R5 cpu is faster than Intel's i7-10, and the R7 is faster than the i9, both on single core and multi core benchmarks. The T14 has a dual heat pipe, and its WAN slot can be used as a disk bay. The quality of the chassis is that of the T series. Original Message On Aug 23, 2020, 21:24, flint pyrite < flintnpyr...@gmail.com> wrote: I had an A485 everything worked except wifi, which I replaced with USB wifi stick. The laptop, however, turned out ot be a lemon. It is in repair depot as we speak. On of the cpu cores went bad, keys kept popping off and the synaptics mouse pad would not click and drag. Just so you know Lenov support is hideous. It has taken over a one (1) year and still counting to resolve these issues . WHat are the specs of the T14? Never heard of it. On Sun, Aug 23, 2020 at 1:06 PM Rupert Gallagher wrote: > > Anybody managed to boot obsd on the T14? I tried, and it does not even start. > By comparison, Debian chokes on a missing network driver, and Fedora just > works.
ThinkPad T14 AMD
Anybody managed to boot obsd on the T14? I tried, and it does not even start. By comparison, Debian chokes on a missing network driver, and Fedora just works.
Re: ThinkPad T14 AMD
IT is hard not to like the T Series Build quality ... I have a laptop on my desk here that is working away after multiple falls... the ethernet port is bent on the main board (main board is bent... still works 1G FDX... awesome... On Sun, 23 Aug 2020 at 23:38, Rupert Gallagher wrote: > T14 AMD turned out to be the very best ThinkPad ever produced, as far as > performance is concerned. The R5 cpu is faster than Intel's i7-10, and the > R7 is faster than the i9, both on single core and multi core benchmarks. > The T14 has a dual heat pipe, and its WAN slot can be used as a disk bay. > > The quality of the chassis is that of the T series. > > Original Message > On Aug 23, 2020, 21:24, flint pyrite < flintnpyr...@gmail.com> wrote: > I had an A485 everything worked except wifi, which I replaced with USB > wifi stick. The laptop, however, turned out ot be a lemon. It is in > repair depot as we speak. On of the cpu cores went bad, keys kept > popping off and the synaptics mouse pad would not click and drag. Just > so you know Lenov support is hideous. It has taken over a one (1) > year and still counting to resolve these issues . > WHat are the specs of the T14? Never heard of it. > On Sun, Aug 23, 2020 at 1:06 PM Rupert Gallagher > wrote: > > > > Anybody managed to boot obsd on the T14? I tried, and it does not even > start. By comparison, Debian chokes on a missing network driver, and Fedora > just works. > -- Kindest regards, Tom Smyth.
Re: Keyboard knocks out while using special keys
On 2020-08-22, Dimitri Karamazov wrote: > I'm using a keyboard with some multimedia keys and sleep, poweroff buttons. > I avoid using those, but accidently hitting any of those keys renders the > keyboard to a freezed state, where only solution is to replug to use it again. > This is the case on both X11 and vt, but the connection is never lost, when I > hit the special keys, it just takes no input. Is there a solution to this? Including a full dmesg would be a good start.
Re: how to figure out reverse package dependency?
On 2020-08-23, mp1...@gmx-topmail.de wrote: > > On 2020-08-23 15:36, Marcus MERIGHI wrote: >> Hello, >> >> j...@jsg.id.au (Jonathan Gray), 2020.08.23 (Sun) 08:58 (CEST): >>> On Sun, Aug 23, 2020 at 08:15:01AM +0200, Matthias wrote: How do I figure out which packages directly or indirectly depend on a specific package? Let's assume that only installed packages shall be considered. For example, if 'glib2' is the package in question, 'cairo', 'gdk-pixbuf', 'shared-mime-info', 'ImageMagick', etc. should be returned as all those depend on 'glib2'. Thank you. >>> >>> This is really a question for ports@ >>> >>> One way would be to install databases/sqlports then run >>> 'show-reverse-deps devel/glib2' >> >> I thought Matthias was just asking for "pkg_info -R". >> ("Show which packages require a given package") >> >> Marcus >> > > Almost. 'pkg_info -R' only returns direct dependents. In case of > 'glib2', for example, 'ImageMagick' would not be found as its closest > dependency (in my case) is of 3rd degree: > > glib2 <- shared-mime-info <- djvulibre <- ImageMagick Not *only* direct dependencies, but also some others (maybe those coming via a library rather than run dependency?). "pkg_info -R glib2" does list xcowsay, which pulls in glib2 via gtk+3.
Re: -current tmux not handling some terminal ID strings
Somebody claiming to be Nicholas Marriott wrote: > Does this fix it? Yes, this fixes it. Thanks, dave > > Index: tty-keys.c > === > RCS file: /cvs/src/usr.bin/tmux/tty-keys.c,v > retrieving revision 1.140 > diff -u -p -r1.140 tty-keys.c > --- tty-keys.c6 Jul 2020 07:27:39 - 1.140 > +++ tty-keys.c23 Aug 2020 20:22:28 - > @@ -1192,7 +1192,10 @@ tty_keys_device_attributes(struct tty *t > if (tty->flags & TTY_HAVEDA) > return (-1); > > - /* First three bytes are always \033[?. */ > + /* > + * First three bytes are always \033[>. Some older Terminal.app > + * versions respond as for DA (\033[?) so accept and ignore that. > + */ > if (buf[0] != '\033') > return (-1); > if (len == 1) > @@ -1201,7 +1204,7 @@ tty_keys_device_attributes(struct tty *t > return (-1); > if (len == 2) > return (1); > - if (buf[2] != '>') > + if (buf[2] != '>' && buf[2] != '?') > return (-1); > if (len == 3) > return (1); > @@ -1218,6 +1221,10 @@ tty_keys_device_attributes(struct tty *t > return (-1); > tmp[i] = '\0'; > *size = 4 + i; > + > + /* Ignore DA response. */ > + if (buf[2] == '?') > + return (0); > > /* Convert all arguments to numbers. */ > cp = tmp; > > -- Dave Vandervies dj3va...@terse.ca Plan your future! Make God laugh!
Re: tmux occasionally crashing on attach
Somebody claiming to be Nicholas Marriott wrote: > Thanks. How about this instead? This also fixes the problem. No comments on style differences, it's not my bikeshed. Thanks, dave > > Index: tty-term.c > === > RCS file: /cvs/src/usr.bin/tmux/tty-term.c,v > retrieving revision 1.82 > diff -u -p -r1.82 tty-term.c > --- tty-term.c5 Jun 2020 09:32:15 - 1.82 > +++ tty-term.c23 Aug 2020 20:14:19 - > @@ -302,6 +302,8 @@ tty_term_strip(const char *s) > ptr++; > if (*ptr == '>') > ptr++; > + if (*ptr == '\0') > + break; > } > > buf[len++] = *ptr; > -- Dave Vandervies dj3va...@terse.ca Plan your future! Make God laugh!
Re: tmux occasionally crashing on attach
Thanks. How about this instead? Index: tty-term.c === RCS file: /cvs/src/usr.bin/tmux/tty-term.c,v retrieving revision 1.82 diff -u -p -r1.82 tty-term.c --- tty-term.c 5 Jun 2020 09:32:15 - 1.82 +++ tty-term.c 23 Aug 2020 20:14:19 - @@ -302,6 +302,8 @@ tty_term_strip(const char *s) ptr++; if (*ptr == '>') ptr++; + if (*ptr == '\0') + break; } buf[len++] = *ptr; On Sat, Aug 22, 2020 at 08:15:01PM -0400, Dave Vandervies wrote: > Since upgrading to 6.7 I've occasionally seen the tmux server crash > when a client connects to a session. > (I can't say for sure that it never happened pre-6.7, since it's > occasional and my usage patterns have drifted over time.) > > Today it annoyed me enough to track it down, and it looks like a > loop index management bug in the terminal escape code handling; > there's a loop that scans through a string and discards some > substrings, and the body of the loop can leave the pointer pointing > at the '\0' byte that terminates the string. When this happens, > the loop control advances the pointer again, past the terminator > byte, so it keeps examining whatever comes next. > > Index: tty-term.c > === > RCS file: /cvs/src/usr.bin/tmux/tty-term.c,v > retrieving revision 1.76 > diff -u -p -r1.76 tty-term.c > --- tty-term.c23 Apr 2020 10:22:53 - 1.76 > +++ tty-term.c23 Aug 2020 00:05:09 - > @@ -295,7 +295,7 @@ tty_term_strip(const char *s) > } > > buf[len++] = *ptr; > - if (len == (sizeof buf) - 1) > + if (len == (sizeof buf) - 1 || *ptr == '\0') > break; > } > buf[len] = '\0'; >
Re: -current tmux not handling some terminal ID strings
Does this fix it? Index: tty-keys.c === RCS file: /cvs/src/usr.bin/tmux/tty-keys.c,v retrieving revision 1.140 diff -u -p -r1.140 tty-keys.c --- tty-keys.c 6 Jul 2020 07:27:39 - 1.140 +++ tty-keys.c 23 Aug 2020 20:22:28 - @@ -1192,7 +1192,10 @@ tty_keys_device_attributes(struct tty *t if (tty->flags & TTY_HAVEDA) return (-1); - /* First three bytes are always \033[?. */ + /* +* First three bytes are always \033[>. Some older Terminal.app +* versions respond as for DA (\033[?) so accept and ignore that. +*/ if (buf[0] != '\033') return (-1); if (len == 1) @@ -1201,7 +1204,7 @@ tty_keys_device_attributes(struct tty *t return (-1); if (len == 2) return (1); - if (buf[2] != '>') + if (buf[2] != '>' && buf[2] != '?') return (-1); if (len == 3) return (1); @@ -1218,6 +1221,10 @@ tty_keys_device_attributes(struct tty *t return (-1); tmp[i] = '\0'; *size = 4 + i; + + /* Ignore DA response. */ + if (buf[2] == '?') + return (0); /* Convert all arguments to numbers. */ cp = tmp; On Sun, Aug 23, 2020 at 12:59:07PM -0400, Dave Vandervies wrote: > In a remote session from an old MacOS terminal (MacOS 10.10.5, I > don't have anything newer to try with), when I start a tmux client, > the terminal sends (apparently in response to a query from tmux) > '[?1;2c', which is treated as input into whatever it connects > to. > On 6.7 I can work around this by running with TERM=vt100, but on > -current that workaround no longer works. > > > dave > > -- > Dave Vandervies > dj3va...@terse.ca > > Plan your future! Make God laugh!
Re: ThinkPad T14 AMD
I had an A485 everything worked except wifi, which I replaced with USB wifi stick. The laptop, however, turned out ot be a lemon. It is in repair depot as we speak. On of the cpu cores went bad, keys kept popping off and the synaptics mouse pad would not click and drag. Just so you know Lenov support is hideous. It has taken over a one (1) year and still counting to resolve these issues . WHat are the specs of the T14? Never heard of it. On Sun, Aug 23, 2020 at 1:06 PM Rupert Gallagher wrote: > > Anybody managed to boot obsd on the T14? I tried, and it does not even start. > By comparison, Debian chokes on a missing network driver, and Fedora just > works.
Re: Keyboard knocks out while using special keys
On Sat, Aug 22, 2020 at 08:01:43PM -, Dimitri Karamazov wrote: > I'm using a keyboard with some multimedia keys and sleep, poweroff buttons. > I avoid using those, but accidently hitting any of those keys renders the > keyboard to a freezed state, where only solution is to replug to use it again. > This is the case on both X11 and vt, but the connection is never lost, when I > hit the special keys, it just takes no input. Is there a solution to this? > If you have a second keyboard, I would suggest attaching both. There is a program that shows which keys are producing what output. I would see what is actually being sent out with those keys. The second keyboard would allow you to hopefully experiment a bit more without having to re-attach the problem keyboard. Did you have problems before with this keyboard? I have a keyboard that frequently fails to attach at boot. unplugging and reattaching it is often necessary after boot, but only sometimes. Good luck, Chris Bennett
-current tmux not handling some terminal ID strings
In a remote session from an old MacOS terminal (MacOS 10.10.5, I don't have anything newer to try with), when I start a tmux client, the terminal sends (apparently in response to a query from tmux) '[?1;2c', which is treated as input into whatever it connects to. On 6.7 I can work around this by running with TERM=vt100, but on -current that workaround no longer works. dave -- Dave Vandervies dj3va...@terse.ca Plan your future! Make God laugh!
Re: how to figure out reverse package dependency?
On 2020-08-23 15:36, Marcus MERIGHI wrote: Hello, j...@jsg.id.au (Jonathan Gray), 2020.08.23 (Sun) 08:58 (CEST): On Sun, Aug 23, 2020 at 08:15:01AM +0200, Matthias wrote: How do I figure out which packages directly or indirectly depend on a specific package? Let's assume that only installed packages shall be considered. For example, if 'glib2' is the package in question, 'cairo', 'gdk-pixbuf', 'shared-mime-info', 'ImageMagick', etc. should be returned as all those depend on 'glib2'. Thank you. This is really a question for ports@ One way would be to install databases/sqlports then run 'show-reverse-deps devel/glib2' I thought Matthias was just asking for "pkg_info -R". ("Show which packages require a given package") Marcus Almost. 'pkg_info -R' only returns direct dependents. In case of 'glib2', for example, 'ImageMagick' would not be found as its closest dependency (in my case) is of 3rd degree: glib2 <- shared-mime-info <- djvulibre <- ImageMagick
Re: how to figure out reverse package dependency?
Hello, j...@jsg.id.au (Jonathan Gray), 2020.08.23 (Sun) 08:58 (CEST): > On Sun, Aug 23, 2020 at 08:15:01AM +0200, Matthias wrote: > > How do I figure out which packages directly or indirectly depend on a > > specific package? Let's assume that only installed packages shall be > > considered. > > > > For example, if 'glib2' is the package in question, 'cairo', > > 'gdk-pixbuf', 'shared-mime-info', 'ImageMagick', etc. should be returned > > as all those depend on 'glib2'. > > > > Thank you. > > This is really a question for ports@ > > One way would be to install databases/sqlports then run > 'show-reverse-deps devel/glib2' I thought Matthias was just asking for "pkg_info -R". ("Show which packages require a given package") Marcus
slow speed on usb3 ffs2
My problem is slow speed on ffs2 partition on usb3. Here is my dmesg: https://pastebin.com/MWJVcTNs I don't know what additional info required, so ask.
slow speed on ffs2 usb3
My problem is slow speed on ffs2 partition on usb3. Here is my dmesg: https://pastebin.com/MWJVcTNs I don't know what additional info required, so ask.
Keyboard knocks out while using special keys
I'm using a keyboard with some multimedia keys and sleep, poweroff buttons. I avoid using those, but accidently hitting any of those keys renders the keyboard to a freezed state, where only solution is to replug to use it again. This is the case on both X11 and vt, but the connection is never lost, when I hit the special keys, it just takes no input. Is there a solution to this?
Fwd: No WAF detected - Solved
Hi, The following template has previously worked as far as WAF detection is concerned. However accessors keep updating their tools, this configuration is no longer effective. Anyone using relayd as WAF? What sort of configuration options do you have? Kind regards, Kihaguru. --- # $OpenBSD: relayd.conf,v 1.5 2018/05/06 20:56:55 benno Exp $ # # Relay and protocol # http protocol httpp { pass request quick method "GET" block } relay httpr { # Listen on localhost, accept diverted connections from pf(4) listen on 127.0.0.1 port 8080 protocol httpp # Forward to the original target host forward to destination } http protocol httpsp { match request header append "X-Forwarded-For" value "$REMOTE_ADDR" match request header append "X-Forwarded-By" \ value "$SERVER_ADDR:$SERVER_PORT" match response header remove "Server" pass request quick url file "/etc/mydomain-url.txt" pass request quick path file "/etc/mydomain-path.txt" pass request quick method "GET" block tls keypair mydomain.com } relay httpsr { # Listen on localhost, accept diverted connections from pf(4) listen on 127.0.0.1 port 8443 tls protocol httpsp # Forward to the original target host forward with tls to destination } -- Forwarded message - From: Kihaguru Gathura Date: Fri, Dec 27, 2019 at 10:40 PM Subject: Re: No WAF detected - Solved To: Kihaguru Gathura , misc Hi, WAF is detected when certain methods are filtered in relayd. Thanks, Kihaguru. On Monday, December 9, 2019, Kihaguru Gathura wrote: > > > Hi, > A message form assessors and further tests below. > > > > > I have configured relayd to serve a single url that accepts no parameters. This url is blocked by relayd with error 403 Forbidden if anything is appended to its end. > I would expect WAF detection in such a test case but this has not happened. > what other means are malicious payloads being delivered in this case? > > Thanks and regards, > Kihaguru > > > > > # $OpenBSD: relayd.conf,v 1.5 2018/05/06 20:56:55 benno Exp $ > # > # Relay and protocol > # > http protocol httpp { > return error > match response header remove "Server" > > pass > block quick path "/cgi-bin/index.cgi" value "*command=*" > pass quick path "/net/index.html" value "" > block > } > > relay httpr { > # Listen on localhost, accept diverted connections from pf(4) > listen on 127.0.0.1 port 8080 > protocol httpp > > # Forward to the original target host > forward to destination > } > > http protocol httpsp { > return error > match response header remove "Server" > > pass > block quick path "/cgi-bin/index.cgi" value "*command=*" > pass quick path "/net/index.html" value "" > block > > tls keypair example.net > } > > relay httpsr { > # Listen on localhost, accept diverted connections from pf(4) > listen on 127.0.0.1 port 8443 tls > protocol httpsp > > # Forward to the original target host > forward with tls to destination > } > --- > > On Thu, Dec 5, 2019 at 2:11 PM Stuart Henderson wrote: >> >> On 2019/12/05 00:17, Kihaguru Gathura wrote: >> > >> > >> > >> > On Wed, Dec 4, 2019 at 11:58 PM Kihaguru Gathura wrote: >> > >> > >> > >> > >> Which is a better way to implement a WAF on OpenBSD using the base utilities? >> > > >> > > relayd configured in certain ways might be considered as a WAF. >> > >> > >> > All methods and all other security headers and path filters are coded in the web >> > application which had always been detected as a custom WAF until two weeks ago. >> > >> > I have now included relayd and a re-test passes all other requirements but does not detect >> > a WAF (please find sample configurations and test report below). >> > >> > Any hint highly appreciated >> >> I think you will need to talk to your assessors and ask what they're looking for. >> >