Re: Downgrade 6.6 to 6.5

2019-11-04 Thread Raymond, David
Josh,

I don't recall, as it was a while ago.  I had read somewhere that
upgrading the bios solved the problem of a fan running continuously on
the X1 5G.  I was running Arch Linux at the time, but at some point I
intend to put OpenBSD on this laptop.  I'll see what happens.

Dave

On 11/4/19, Josh  wrote:
> Hi Dave,
> was it related to the Sx bios functionalities?
>
> On Sun, Nov 3, 2019 at 11:20 PM Raymond, David 
> wrote:
>>
>> I had the fan problem on an X1 5G running linux, but a bios upgrade solved
>> it.
>>
>> Dave Raymond
>>
>> On 11/3/19, Josh  wrote:
>> > hi,
>> >
>> > I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
>> > to find the reason(s) of the high fan spinning.
>> > Is there a procedure to downgrade to 6.5 or should I just reinstall
>> > from scratch?
>> >
>> > thank you
>> >
>> >
>>
>>
>> --
>> David J. Raymond
>> david.raym...@nmt.edu
>> http://physics.nmt.edu/~raymond
>


-- 
David J. Raymond
david.raym...@nmt.edu
http://physics.nmt.edu/~raymond



Re: Pkg_add completes installurl with bad openbsd version number

2019-11-04 Thread Raf Czlonka
On Mon, Nov 04, 2019 at 08:24:04AM GMT, Bruno Martin wrote:
> Hello,
> 
> I'm running openbsd 6.6 generic.mp#427 amd64
> After the 6.6 upgrade I had troubles with pkg_add -u.
> I did several new upgrades to 6.6, removed all packages and now when I want 
> to pkg_add something, it looks to the 6.4 tree.
> # pkg_add wget
> HTTPS://ftp.fr.openbsd.org/pub/OpenBSD/6.4/packages/amd64/: no such dir
> Can't find wget
> How can I find the 6.6 tree to upgrade my packages?
> 
> Sorry if I don't follow the good way to address the question, but I am on a 
> tablet to write.
> 
> 
>   Bruno
> 

Hi Bruno,

What does:

$ echo $PKG_PATH

return?

Regards,

Raf



Re: Pkg_add completes installurl with bad openbsd version number

2019-11-04 Thread Bruno Martin
Hi Raf

My PKG_PATH is empty.
But actually, by Dsnaping, I fixed the problem.
Regards

 Bruno

> Le 4 nov. 2019 à 16:33, Raf Czlonka  a écrit :
> 
>> On Mon, Nov 04, 2019 at 08:24:04AM GMT, Bruno Martin wrote:
>> Hello,
>> 
>> I'm running openbsd 6.6 generic.mp#427 amd64
>> After the 6.6 upgrade I had troubles with pkg_add -u.
>> I did several new upgrades to 6.6, removed all packages and now when I want 
>> to pkg_add something, it looks to the 6.4 tree.
>> # pkg_add wget
>> HTTPS://ftp.fr.openbsd.org/pub/OpenBSD/6.4/packages/amd64/: no such dir
>> Can't find wget
>> How can I find the 6.6 tree to upgrade my packages?
>> 
>> Sorry if I don't follow the good way to address the question, but I am on a 
>> tablet to write.
>> 
>> 
>>  Bruno
>> 
> 
> Hi Bruno,
> 
> What does:
> 
>$ echo $PKG_PATH
> 
> return?
> 
> Regards,
> 
> Raf



Re: Tools for writers

2019-11-04 Thread Steve Litt
On Mon, 4 Nov 2019 09:07:13 +
Yon  wrote:

> On Mon, Nov 04, 2019 at 02:27:38AM -0500, Steve Litt wrote:
> > I'm not sure, but I think if you write with a certain subset of
> > TeX, it would be fairly easy to write a program to convert it to
> > XHTML5, from which you can pretty easily create ePubs. Plain TeX as
> > made by Knuth is indeed simple for all simple things, and doable
> > for more complicated things.  

> I do not think it's easy to define a subset of TeX and stick
> to it.  I've used pandoc in the past to convert reasonably
> semantic LaTeX files to EPUB, and sticking to the right
> subset without accidentally using non supported commands was
> difficult at the time.  Careful review of the produced EPUB
> was needed.  Quite a nightmare.  Thankfully, all of this
> ended the day I wasn't able anymore to compile pandoc and
> its hundred or so dependencies for OpenBSD :-)

I can imagine that LaTeX subsets would be a nightmare. So would HTML
subsets. But TeX is simple enough that avoiding a few esoteric things
won't be difficult. 

> 
> Maybe there are better TeX to EPUB tools now - I haven't
> tried combining tex4ht with calibre for a long time, for
> example.  Using a presentational format like dvi as
> intermediate representation is a sign that TeX is unsuitable
> as a common source, but it may work well enough
> nevertheless.

Ah, yes, I've never heard of a way to convert dvi to HTML. I was
referring to writing a fairly simple conversion program that takes TeX
and converts it directly to HTML, style for style, word for word. And
this is where the subset comes in: 

\mymacro{The quick sly fox jumped over the lazy brown dog.}

In the preceding, there's a rule that the closing brace must be on the
same line. This makes the parsing program much simpler. And for:

\beginMyMacro 
One reason so many folks like OpenBSD is that it's solid. It works and
keeps working, without the little bugs and crashes of other
distributions and operating systems. And of course there's the security
angle, which is OpenBSD's forte.
\endMyMacro

In the preceding paragraph, \beginMyMacro and \endMyMacro occur on
their own line. Once again, a lot easier to parse.

It's not absolutely necessary to make these restrictions, but not
making them makes the conversion program harder to code.

> 
> Otherwise, if both LaTeX and EPUB outputs are needed, and
> fine-grained control of the produced EPUB is wanted, using a
> well-defined intermediate markup language seems the safest
> way to go.  Oddly enough for me, markdown still appears to
> be the most common choice.  

Ex-Actly. I use Asciidoctor for the same purpose for the same reason.

> I would have thought that its
> caracteristics - semantically poor, with irregular and
> no-warnings “every text file accepted” permissive kind of
> syntax - would have made it unsuitable for maintaining long
> works.

I haven't actually used Markdown for this, but I researched it plenty
before settling on Asciidoctor. I think for a simple book with simple
formatting, Markdown would work beautifully. If you needed a
bibliography or if you needed to declare and use your own styles,
Markdown might prove insufficient.

SteveT

Steve Litt
November 2019 featured book: Manager's Guide to Technical
Troubleshooting Second edition
http://www.troubleshooters.com/mgr



Re: Redraw of terminal change in 6.6?

2019-11-04 Thread Mischa



> On 2 Nov 2019, at 15:19, Hiltjo Posthuma  wrote:
> 
> On Sat, Nov 02, 2019 at 08:32:50AM +0100, Mischa wrote:
>> Hi All,
>> 
>> Not sure if this is on my side, setting, or if something has changed with 
>> tmux or top redrawing of the terminal.
>> I am using tmux, over mosh, on one of my jump hosts to connect to other 
>> hosts. In some of the windows I have a remote top -C running.
>> When I am attaching the tmux session on a smaller display, for example my 
>> phone, the output of top is fine.
>> 
>> However when I connect back with a larger display the output of top is 
>> completely garbled. It does recover line by line when processes jump to a 
>> different “rank”.
>> 
>> Below are two screenshots with roughly 5 minutes between them.
>> Anything I can test? Change? Do?
>> 
>> Thanx!!
>> 
>> Mischa
>> 
> 
> Hi,
> 
> Same issue here since upgrading from 6.5 to 6.6.
> 
> I don't use mosh, but connect via SSH to a remote machine and attaching to 
> tmux
> running irssi.  It is attached to a shared session. The first attached
> resolution/window size is bigger.
> 
> Maybe it is fixed already:
> https://cvsweb.openbsd.org/src/usr.bin/tmux/server-client.c
> rev 1.296

Thanx! Will check it out.

Mischa



Re: Tools for writers

2019-11-04 Thread Ian Darwin
On Mon, Nov 04, 2019 at 02:06:35AM -0500, Steve Litt wrote:
> 
> I know what you mean and you're right to a degree, but I'm currently
> writing a couple of books with AsciiDoctor edited in Vim. And I use
> VimOutliner for outlining. I'll try to remember and let you know when I
> actually finish one of the books.

I've used AsciiDoc and AsciiDoctor for two large O'Reilly Cookbooks which I
proof locally in PDF. Their publishing sofware puts it through some arcane
toolchain which formats to their house style , and generateds PDF, EPub,
HTML, etc.  But all the editing work is done, like Steve's, in vi and
asciidoctor.

I've also used adoc for magazine articles where the publisher "needs" the file
in MS-Word format. For that I use pandoc (on another box) to convert adoc into
docx.



support new

2019-11-04 Thread ibrahim topbasi
0
C Turkey
P Ankara
T Cankaya
Z 06510
O Rakort Information Technologies & ibrahim TOPBASI
I Rakort Information Technologies
A 2139. Street 2/11
M ibrahimtopb...@mail.com
U http://www.rakort.com
B +90-532-633-17-92
X
N More than 5 years, OpenBSD setup/installation/remote administration.
Network engineering, software development. Also experienced with
Solaris and Linux. We specialize in providing open source solutions
for businesses using OpenBSD and Linux. CCNP, RHCE certifications,
VPNs, firewalls, wireless, DNS, squidGuard, mail - even training with
OpenBSD. We have more then 5 years experience with the OpenBSD
platform and are able to deliver 24/7 solutions with necessary SLA's.



random packet drops with syncookies/synproxy

2019-11-04 Thread Markus Wernig
Hi all

After being hit by some synflood waves recently I enabled syncookies on
our OBSD 6.6 i386 CARP fw pair:

set syncookies always

This stopped the state table from filling up. But after some hours pf
started (randomly?) dropping legitimate connection attempts, both on
external->internal (dst-natted) and on internal->internal (not natted)
connections (TCP only, afaict).

Looking at pflog and the rule number that blocked the packet, it seems
that the preceding "pass quick" rules matching the packets were ignored.

The packets that were dropped were the ACK ones, so the SYN-SYNACK seems
to have taken place. The client then usually retransmitted the ACK,
which kept being dropped for ca. 15-20 seconds, after which time it was
suddenly accepted and the connection established. Many times also only
the first ACK was dropped, and the first retransmit was accepted.

So I disabled syncookies and set the relevant ~5 external->internal
rules to synproxy state.

With that, the same behaviour happened within a few minutes.

During that time pfctl -vsi showed the "synproxy" counter increasing by
multiple thousands per second (sic), while the state table entries
remained stable around 500 (their normal value).

So I disabled the synproxy state again, but reloading the rules with
pfctl was not enough, I had to reboot both boxes to stop them from
dropping legitimate connections. With both syncookies and synproxy
disabled, the problem does not occur.

Is anybody aware of anything that could trigger this behaviour? Or have
any hint where I could look further? I have all the log files if more
info is needed.

thx /markus

(btw. the behaviour was the same on 6.5)



Doubt about sed command into OpenBSD / Dúvida sobre o comando sed no OpenBSD

2019-11-04 Thread Paulo Cesar Martins
In English
Good morning, I'm having some difficulties with the SED command in OpenBSD when 
trying to insert a new line of text into a file from a regular expression 
(regex) when found.
I have tried to use all equivalent commands with Linux and GNU and have been 
unsuccessful. I'm using OpenBSD 6.5 and 6.6

In the example below I can only succeed in replacing a text, this expression is 
working!
However, I would like to know how should I insert a new line of text below the 
expression "clientenike" without changing this line ???

cd /etc/squid
sed -i 's/clientenike/nikevoce.com.br/' /etc/squid/liberados
squid -k reco

May someone help me?

/


In Portuguese - BR
Bom dia, estou enfrentando algumas dificuldades com o comando SED ao tentar 
inserir uma nova linha de texto em um arquivo a partir de uma expressão regular 
(regex) quando encontrada.
Já tentei utilizar todos os comandos equivalentes com Linux e GNU e não obtive 
sucesso. Estou utilizando o OpenBSD 6.5 e 6.6

No exemplo abaixo consigo obter sucesso apenas para substituição de um texto, 
esta expressão está funcionando!
Entretanto, gostaria de saber como devo fazer para inserir uma nova linha de 
texto abaixo da expressão "clientenike" sem alterar esta linha???

cd /etc/squid
sed -i 's/clientenike/nikevoce.com.br/' /etc/squid/liberados
squid -k reco

Poderiam por gentileza me ajudar?


Atenciosamente,

Paulo César Martins
MBA - CCAI - ITE - MCP - MCTS
email: paulo.mart...@outlook.com
(12) 98826-1621 - TIM



Re: Doubt about sed command into OpenBSD / Dúvida sobre o comando sed no OpenBSD

2019-11-04 Thread Delan Azabani
At 12:44, Paulo Cesar Martins  wrote:
> May someone help me?

You can use the “a” command:

sed '/clientenike/a\
nikevoce.com.br
' /etc/squid/liberados

The newline before the closing quote doesn’t seem to be required by
POSIX, but OpenBSD sed(1) won’t do what you want without it [0].

Note that the syntax sed -i   to edit  in place
without a backup will work on OpenBSD and GNU sed(1), but needs to be
tweaked for FreeBSD and some versions of macOS [1][2], in case you
ever need to do the same thing on those platforms.

[0] https://unix.stackexchange.com/q/390845
[1] https://unix.stackexchange.com/a/131940
[2] https://stackoverflow.com/a/4247319



Error in chflags man page

2019-11-04 Thread Jonathan Drews
I am posting this to misc as I am not sure if sending a bug reportthrough
GMX mail will be parsed. To: b...@openbsd.org
Subject: Small error in chflags man page
From: Jonathan
Cc: cleetus
Reply-To: easyfashioncloth...@gmx.com>Synopsis:  chflags man page has an
error
>Category:  Documentation
>Environment:
System  : OpenBSD 6.6
Details : OpenBSD 6.6 (GENERIC.MP) #1: Sun Oct 27 16:19:23 MDT 2019
 clee...@leo.cats.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
The man page for chflags says to prepend "no" to one of the 
flags. To unset the nodump flag you would then do:
$chlags nonodump file.txt
However this does not work. 
>How-To-Repeat:
leo$ ls -lohd mp3/
drwxr-xr-x  15 cleetus  cleetus  uchg,nodump  512B May  6 14:33 mp3/
leo$ chflags -R nonodump mp3/
chflags: invalid flag: nonodump
leo$ chflags -R dump mp3/
leo$ ls -lohd mp3/
drwxr-xr-x  15 cleetus  cleetus  uchg  512B May  6 14:33 mp3/
leo$>Fix:
The man page should say: Putting the letters no before a flag name causes
the flag to
be turned off except in the case of the nodump flag. To turn
off nodump, use dump. Do not use nonodump.
EXAMPLE:
chflags dump somefile.txt


Re: Skype alternatives for OpenBSD

2019-11-04 Thread Frank Beuth

On Sun, Nov 03, 2019 at 11:12:48AM +, Andrew Luke Nesbit wrote:

On 03/11/2019 10:55, Frank Beuth wrote:

Not sure about the original poster but I would be interested in
any end-to-end encrypted video/audio/chat programs that are
available.


Have a look at Tox.  It might work out for you on a technical level.


Are Tox and/or Matrix available on OpenBSD? I only see a FreeBSD version
of Tox, while 'matrix' is a fairly generic name so hard to say.



Re: Skype alternatives for OpenBSD

2019-11-04 Thread Stuart Longland
On 5/11/19 2:19 pm, Frank Beuth wrote:
> On Sun, Nov 03, 2019 at 11:12:48AM +, Andrew Luke Nesbit wrote:
>> On 03/11/2019 10:55, Frank Beuth wrote:
>>> Not sure about the original poster but I would be interested in
>>> any end-to-end encrypted video/audio/chat programs that are
>>> available.
>>
>> Have a look at Tox.  It might work out for you on a technical level.
> 
> Are Tox and/or Matrix available on OpenBSD? I only see a FreeBSD version
> of Tox,

http://openports.se/search.php?stype=description=Tox

> while 'matrix' is a fairly generic name so hard to say.

Searching "matrix instant messenger" took me to their site, and a short
amount of browsing took me to https://matrix.org/clients

None of those showed up in the OpenPorts listings, but you might be able
to compile at least one of them.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



OpenBSD 6.6 boot fail:init: can't open /dev/console: Device not configured

2019-11-04 Thread Fung
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 

Re: Pkg_add completes installurl with bad openbsd version number

2019-11-04 Thread Raf Czlonka
On Mon, Nov 04, 2019 at 05:16:35PM GMT, Bruno Martin wrote:
> Hi Raf
> 
> My PKG_PATH is empty.
> But actually, by Dsnaping, I fixed the problem.
> Regards
> 
>  Bruno
> 

Hi Bruno,

Are you absolutely sure it is empty? pkg_add(1) is getting the wrong
URL from somewhere, and the usual suspects are: TRUSTED_PKG_PATH,
the aforementioned PKG_PATH, and installurl(5). Is the latter in order?

Check your user's, and root's env(1) for PKG_PATH again, please.

Well, if, like you said, you have upgraded to OpenBSD 6.6, and then
used:

# pkg_add -Dsnap -u

Then you didn't actually *fix* the problem, but potentially introduced
a new one ;^)

Regards,

Raf



Re: Tools for writers

2019-11-04 Thread Steve Litt
Texlive is great if you're certain your output will be now and forever
only in PDF format. If you can even conceive of it being ePub or some
other lineflow reading format, Texlive and all the TeX/LaTeX
tools dead-end you.

SteveT

Steve Litt
November 2019 featured book: Manager's Guide to Technical
Troubleshooting Second edition
http://www.troubleshooters.com/mgr




On Sat, 2 Nov 2019 09:35:42 -0700
Justin Noor  wrote:

> Mr. Hansteen what are your thoughts on Texlive?
> 
> On Sat, Nov 2, 2019 at 9:16 AM Peter Nicolai Mathias Hansteen <
> pe...@bsdly.net> wrote:  
> 
> >
> >  
> > > 2. nov. 2019 kl. 16:00 skrev Oliver Leaver-Smith
> > > :
> > >
> > > What tools do people find useful for writing on OpenBSD? By
> > > writing I  
> > mean long form such as novels and technical books, including plot
> > and character development, outlining, and formatting for publishing
> > (not all the same application necessarily)  
> > >
> > > I have found a number which boast Linux support, but not really
> > > anything  
> > that stands out which supports OpenBSD (aside from the obvious
> > LaTeX et al.)
> >
> > I really can’t speak to plot and character development, but all
> > three editions of The Book of PF were written using OpenOffice and
> > later LibreOffice write on OpenBSD snapshots.
> >
> > Earlier versions of that manuscript were developed using DocBook
> > SGML (editing with emacs), but the publisher (fortunately) did not
> > want any truck with that.
> >
> > For any new projects I would likely look half-heartedly for
> > something markdown based but would probably end up going the
> > LibreOffice route again.
> >
> > —
> > Peter N. M. Hansteen, member of the first RFC 1149 implementation
> > team http://bsdly.blogspot.com/ http://www.bsdly.net/
> > http://www.nuug.no/ "Remember to set the evil bit on all malicious
> > network traffic" delilah spamd[29949]: 85.152.224.147: disconnected
> > after 42673 seconds.
> >
> >
> >
> >
> >  



Re: Tools for writers

2019-11-04 Thread Roderick



On Mon, 4 Nov 2019, Steve Litt wrote:


[...] If you can even conceive of it being ePub or some
other lineflow reading format, Texlive and all the TeX/LaTeX
tools dead-end you.


TeX produces dvi, a well documented and simple page description language.
Then it is transformed to postscript or pdf.

They are by far not dead end.



Pkg_add completes installurl with bad openbsd version number

2019-11-04 Thread Bruno Martin
Hello,

I'm running openbsd 6.6 generic.mp#427 amd64
After the 6.6 upgrade I had troubles with pkg_add -u.
I did several new upgrades to 6.6, removed all packages and now when I want to 
pkg_add something, it looks to the 6.4 tree.
# pkg_add wget
HTTPS://ftp.fr.openbsd.org/pub/OpenBSD/6.4/packages/amd64/: no such dir
Can't find wget
How can I find the 6.6 tree to upgrade my packages?

Sorry if I don't follow the good way to address the question, but I am on a 
tablet to write.


  Bruno




Re: Tools for writers

2019-11-04 Thread Anthony Campbell
On 02 Nov 2019, Raymond, David wrote:
> You might try lyx.  This is a front end for latex.  You can write
> without worrying about formatting and come back to that later.  Also,
> when you do the formatting, you don't have to worry about niggling
> details as in word and its clones.  Just declare chapters, sections,
> etc.
> 
> Lyx is an OpenBSD package.
> 

I'm glad someone has mentioned LyX. I've now used it to produce
seven books and find it excellent. But I also agree with those who
have said that producing books is a two-stage process, writing the
text and preparing it as a book.

So I start in vim, which is ideal for cutting, restoring, moving
blocks of text, etc. I then import the result into LyX, but may go
back to vim from time to time when big changes become necessar.

The above is for books that are going to be printed. I only use
libreoffice when I am compelled to provide a book in Word.doc
format, as required by Smashwords. I dislike doing this but LyX
can't produce Word.doc files.

We often read that many good writers like to draft their books in
longhand. I don't do that but starting in vim is my equivalent
method. It gives maximum flexibility and I've used it for so long
that it's become pretty intuitive to me.



-- 
Anthony Campbellhttp://www.acampbell.uk



Re: Tools for writers

2019-11-04 Thread Yon
On Mon, Nov 04, 2019 at 02:27:38AM -0500, Steve Litt wrote:
> I'm not sure, but I think if you write with a certain subset of TeX, it
> would be fairly easy to write a program to convert it to XHTML5, from
> which you can pretty easily create ePubs. Plain TeX as made by Knuth is
> indeed simple for all simple things, and doable for more complicated
> things.
I do not think it's easy to define a subset of TeX and stick
to it.  I've used pandoc in the past to convert reasonably
semantic LaTeX files to EPUB, and sticking to the right
subset without accidentally using non supported commands was
difficult at the time.  Careful review of the produced EPUB
was needed.  Quite a nightmare.  Thankfully, all of this
ended the day I wasn't able anymore to compile pandoc and
its hundred or so dependencies for OpenBSD :-)

Maybe there are better TeX to EPUB tools now - I haven't
tried combining tex4ht with calibre for a long time, for
example.  Using a presentational format like dvi as
intermediate representation is a sign that TeX is unsuitable
as a common source, but it may work well enough
nevertheless.

Otherwise, if both LaTeX and EPUB outputs are needed, and
fine-grained control of the produced EPUB is wanted, using a
well-defined intermediate markup language seems the safest
way to go.  Oddly enough for me, markdown still appears to
be the most common choice.  I would have thought that its
caracteristics - semantically poor, with irregular and
no-warnings “every text file accepted” permissive kind of
syntax - would have made it unsuitable for maintaining long
works.

Yon



Re: Tools for writers

2019-11-04 Thread Anthony Campbell
On 04 Nov 2019, Steve Litt wrote:
> 
> So after writing the whole thing, you're going to go back and insert
> some sorts of codes for backstory paragraphs, emphasis, dialog, and
> various other styles?
> 
> How are you going to get word-wrap right?
> 
> I know it's possible with novels, but it takes some pretty good writing
> skills to do so. And I'll go out on a limb and say it's impossible with
> a technical book.



I don't know what sort of technical book you have in mind, but I've
used my standard two-stage method (vim plus LyX) to produced a
medical acupuncture textbook with illustrations, references,
marginal images and notes. It worked well. I've described my
settings here for anyone interested:
https://www.acampbell.uk/linux/writingabookonlyx.html


-- 
Anthony Campbellhttp://www.acampbell.uk



Re: Downgrade 6.6 to 6.5

2019-11-04 Thread Josh
Hi Dave,
was it related to the Sx bios functionalities?

On Sun, Nov 3, 2019 at 11:20 PM Raymond, David  wrote:
>
> I had the fan problem on an X1 5G running linux, but a bios upgrade solved it.
>
> Dave Raymond
>
> On 11/3/19, Josh  wrote:
> > hi,
> >
> > I've upgraded from 6.5 to 6.6 on my X1 6G and since then, I am unable
> > to find the reason(s) of the high fan spinning.
> > Is there a procedure to downgrade to 6.5 or should I just reinstall
> > from scratch?
> >
> > thank you
> >
> >
>
>
> --
> David J. Raymond
> david.raym...@nmt.edu
> http://physics.nmt.edu/~raymond