Re: USB Printer Prebloms

2020-03-04 Thread
Dear Ducan,

I just set up a Brother HL-5450DN Series on OpenBSD 6.6 amd64.

> 1. ulpt must be disabled:
> # config -ef /bsd
> ukc> disable ulpt
> ukc> quit

I studied tutorials on-line and previous discussions on @misc. I found
out that for 6.6 amd64, if I disabled ulpt(4), I would not get the
printer to work. On the contrary, I was able to get the printer to work
by using ulpt(4).

For other bits I followed previous tutorials and discussions, that I
used footmatic-rip and so on.

Yours sincerely,
Xianwen




Re: setxkbmap cannot completely set compose key

2020-02-21 Thread
Dear Nils Ola, Ingo, and other OpenBSD users,

Tusen takk!

>> > I forgot to report maybe an important piece of information. I use scim
>> > to type in Chinese. I use the default xdm. Here is my .xsession:
>> > 
>> > export LC_CTYPE=en_US.UTF-8
>> > 
>> > export XMODIFIERS=@im=SCIM
>> > export GTK_IM_MODULE="scim"
>> > export QT_IM_MODULE="scim"
>> > scim -d
>> > 
>> > setxkbmap -layout us -variant dvp -option compose:ralt
>> > 
>> > exec dbus-launch /usr/X11R6/bin/fvwm
>> > 
>> > I was going to ask my questions one by one so that I will not flood
>> > the email list with all my questions. But the scim question is the
>> > following.
>> > 
>> > Quite the opposite of my compose key problem, I am not able to
>> > activate scim (by ctrl + space) on normal GUI programs (firefox,
>> > libreoffice, xpdf, keepassxc, emacs-gtk etc).
>> > 
>> > But but but, I am able to activate scim on xterm and type Chinese there.

I have not yet tried to recompile xterm.

I played around with my .xsession file. I found out that if I do not run
scim -d
, I will be able to type Norwegian accents on xterm. The settings of
XMODIFIERS, GTK_IM_MODULE, or QT_IM_MODULE did not impact this.

This means that the culprit is **scim**.

Could other **scim** users of OpenBSD share your experiences? Could you
use **scim** without a problem?

Yours sincerely,
Xianwen



Re: setxkbmap cannot completely set compose key

2020-02-19 Thread
Dear Ingo,

Danke!

On 2/19/20, Ingo Schwarze  wrote:
> Just to make sure it worked, could you please show the output of:
>
>$ setxkbmap -query

The output is:

rules:  base
model:  pc105
layout: us
variant:dvp
options:compose:ralt

> What exactly do you mean by "not able to use"?
> If, while xterm is in focus, you press and relese the compose key,
> then press and release the first key, then press and release the
> second key, then press and release some latin letter key, what
> exactly happens after each step?

To type for example ø, I press and release the compose key, then press
and release the / key, and then press and release the o key. I get
/o
on xterm, but ø on firefox.

> Guessing blindly, the problem might be that while firefox finds a font
> to display the character, xterm does not.  Or that you have changed
> your xterm configuration in some way that disables UTF-8 (it is on
> by default).  Can you please retry in xterm with a different character
> that can be displayed in xterm out of the box, say U+00E5 LATIN
> SMALL LETTER A WITH RING ABOVE?  What happens if you type and release
> ralt, then a, then a, then x?

xterm can display å too, when I copies it using shift+insert from
firefox or other places.

xterm can display ø when I copies it using shift+insert from firefox
or other places.

> If none of the above lets you solve your problem yet, what does the
> following command say:
>
>   $ xterm -report-xres
>
> In an xterm started that way, does the compose key work?
> Both with the character you want and with U+00E5 A RING?

Ugh. xterm says:

xterm: bad command line option "-report-xres"

I forgot to report maybe an important piece of information. I use scim
to type in Chinese. I use the default xdm. Here is my .xsession:

export LC_CTYPE=en_US.UTF-8

export XMODIFIERS=@im=SCIM
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"
scim -d

setxkbmap -layout us -variant dvp -option compose:ralt

exec dbus-launch /usr/X11R6/bin/fvwm

I was going to ask my questions one by one so that I will not flood
the email list with all my questions. But the scim question is the
following.

Quite the opposite of my compose key problem, I am not able to
activate scim (by ctrl + space) on normal GUI programs (firefox,
libreoffice, xpdf, keepassxc, emacs-gtk etc).

But but but, I am able to activate scim on xterm and type Chinese there.

So I have actually been typing æ, ø, å in firefox and copy back to
xterm and typing Chinese using scim on xterm and copy back to firefox
/ libreoffice for like more than half a year I had this problem on
OpenBSD 6.5 too (I was using OpenBSD like 10 years ago for some time
and also in between in the past ten years. I went back, last year, to
OpenBSD... Was using NetBSD even longer time ago and started using
unix-like system around 2001 or 2002). But I did not have this
type of scim / compose key problems on Debian, NixOS, Arch Linux, or
Void Linux, which are the Linux distributions that I used in the
recent years.

Good morning, by the way!

Yours sincerely,
Xianwen



setxkbmap cannot completely set compose key

2020-02-19 Thread
Dear OpenBSD users,

I run OpenBSD 6.6 amd64. The window manager is fvwm with stock configuration.

I am not able to completely set compose key by

$ setxkbmap -layout us -variant dvp -option compose:ralt

What I meant by *not completely* is that I am able to use _right alt_
as the compose key on for example Firefox. However, on xterm, I am not
able to use the compose key.

Any hint?

Yours sincerely,
Xianwen



Re: Slow performance when using mu(4e)

2020-02-17 Thread
Dear fellow China bro,

>>> Recently I tried to use mu4e on OpenBSD.  However the indexing
>>> performance is dreadly slow compared to my Linux box.  There was also an

I noticed very different performance of mu4e on OpenBSD and on Linux too.

> more likely caused by the limited memory on my Loongson box (1GB), which

You may be right there. I never checked memory usage.

But 20 messages per second is slow, I think.

My Linux machine had 4 GB RAM and mu4e was still very slow on
OpenBSD. My solution was to use an SSD drive. The speed of mu4e on an
OpenBSD with SSD drive is roughly the same as a Linux with mechanical
hard drive.

So for me it was either pay to use SSD on OpenBSD or use Linux and a
cheaper hard drive.

Yours sincerely,
Xianwen




Re: Unable to kill a python process

2020-02-13 Thread
Dear Ingo,

On 2/13/20, Ingo Schwarze  wrote:
> (Unless you pierce its heart with a woodden stick.  Sorry, now i was
>$ kill -CONT 39747

Thank you for showing me the wooden stick! It worked!

Yours sincerely,
Xianwen



Re: Unable to kill a python process

2020-02-13 Thread
Dear Maurice,

> you could try kill -1 8926

Thank you. I just tried it. It did not kill the process.

Yours sincerely,
Xianwen



Unable to kill a python process

2020-02-13 Thread
Dear OpenBSD users,

I am not able to kill a python process.

$ pgrep python

showed a PID of 8926

However, I am not able to kill the process.

$ kill -9 8926

# kill -9 8926

Running as root did not help.

How can I kill this process?

Yours sincerely,
Xianwen



Re: Softdep and noatime

2019-11-30 Thread
Dear Mr. Rola,

> I wonder what other will say about this, but I mount everything as
> noatime, since more than a decade, spinning or not. I assume this may

Do you mount swap as noatime too, I'm curious?

Yours sincerely,
Xianwen



Re: Tools for writers

2019-11-05 Thread
Dear Ingo,

> Could I have a copy of the source text file of the presentation and the
> command line(s) that produced the PDF file?

I found it: https://www.openbsd.org/papers/eurobsdcon2018-mandoc.roff

Yours sincerely,
Xianwen



Re: Tools for writers

2019-11-05 Thread
Dear Ingo,

> The following presentation also contains a few related remarks
> on pages 32-34, especially on page 33:
>
> https://www.openbsd.org/papers/bsdcan18-mandoc.pdf

I read through the entire presentation for the sake of seeing what kind
of presentation mdoc could produce. The presentation looked nice.

Could I have a copy of the source text file of the presentation and the
command line(s) that produced the PDF file?

Yours sincerely,
Xianwen



Re: Tools for writers

2019-11-03 Thread
Dear Mr. Péter,

Thank you!

> I installed it via cabal, but you need a little workaround, since a W^X
> allowed partition is required for the build There are some articles
> online which I followed and created a cabal directory in /usr/local
> (which is wxallowed) and mounted it in my $HOME as ‘.cabal’ (as opposed
> to mounting /home as wxallowed).

I may try it later! Great tips!

Yours sincerely,
Xianwen



Re: Tools for writers

2019-11-03 Thread
Right. Thank you very much!


Ingo Schwarze writes:

> Hello,
>
> Xianwen Chen wrote on Sun, Nov 03, 2019 at 04:16:43PM +0100:
>
>> I am interested in giving _groff_ and _gpresent_ a try. I am seasoned
>> LaTeX user. Is there a tutorial that you would recommend to someone like
>> me?
>
> No, i'm not aware of tutorials (but i generally don't use tutorials,
> so maybe i missed them).  But there is good reference documentation:
>
>   https://www.gnu.org/software/groff/manual/html_node/
>
> Gpresent is a macro package specifically for presentation slides.
> The documentation is in the groff_present(7) and presentps(1)
> manual pages in the textproc/gpresent package and in the groff_mm(7)
> manual page in the textproc/groff package.
>
>> Two things that come to my mind that I am concerned with.
>> 
>> First, how does groff manage bibliography and citations?
>
> See the refer(1) utility in the textproc/groff package.
>
>> Second, peer-reviewed journals usually require submissions to be in Word
>> format or in LaTeX. Is there an easy way to convert a groff document to
>> a Word document or LaTeX?
>
> No, and there isn't even a complicated way either.  If your publisher
> requires LaTeX, use LaTeX; it's really that simple...
>
> Yours,
>   Ingo



Re: Tools for writers

2019-11-03 Thread
Dear Mr. Schwarze,

> That said, the obvious answer for the OP is of course the
> "textproc/groff" port (disclosure: which i maintain).  The roff(7)
> language and the troff programm is what people in the UNIX world
> always used for writing books and journal articles, and it is very
> much alive even after the roff language celebrated its 55th birthday
> this year.  I'm in the habit of using it to prepare slides for
> conference talks (with textproc/gpresent), for example, and i'm not
> the only only one.

I am interested in giving _groff_ and _gpresent_ a try. I am seasoned
LaTeX user. Is there a tutorial that you would recommend to someone like
me?

Two things that come to my mind that I am concerned with.

First, how does groff manage bibliography and citations?

Second, peer-reviewed journals usually require submissions to be in Word
format or in LaTeX. Is there an easy way to convert a groff document to
a Word document or LaTeX?

Yours sincerely,
Xianwen



Re: Tools for writers

2019-11-03 Thread
Dear Mr. Chantreux,

> i realized i haven't try on BSD as my desktop remains a linux for the
> moment. sorry i lost the focus because of this very appealing thread.

My substitute for _pandoc_ is the _org-mode_ of emacs, which is for some
people also good for outlining etc.

But I miss _pandoc_.

Yours sincerely,
Xianwen



Re: Skype alternatives for OpenBSD

2019-11-03 Thread
Dear Mr. Drews,

> The woman offering the class uses Skype so I am probably going to have to use 
> Windows. I have a laptop with >

Skype usually runs well on Linux.

It may run on FreeBSD too, although I have never looked into that.

One trick that I use is to run Skype on my Android phone.

Yours sincerely,
Xianwen



Re: Tools for writers

2019-11-03 Thread
Dear Marc,

> I wasn't talking about mandoc but pandoc (https://pandoc.org/): you
> write most of the things just using markdown format and add latex
> instructions whenever you want. this way, you keep simple things simple
> but you keep the power of latex under the wood.

Does _pandoc_ work on OpenBSD now?

Yours sincerely,
Xianwen



Re: Suspend on Dell Inspiron 6000

2019-11-01 Thread
Hi,

>> > On Thu, Oct 31, 2019 at 01:41:55PM -0400, Patrick Coppock wrote:
>> > > 
>> > > Specifically, the suspend works; however, when I attempt to wake the
>> > > device, the laptop seems to respond and attempt to wake, but the
>> > > display never turns on, and I cannot SSH into the machine. Below are
>> > > the dmesg and relevant syslog entries.

I have a ThinkPad R52 that is still running 6.5 i386. I confirm that
this laptop has the same problem that it may not wake up from
suspension. I get this problem perhaps once every four days.

Yours sincerely,
Xianwen



Re: opensmtpd: sendmail: command failed: 421 4.3.0: Temporary Error

2019-10-17 Thread
Hi again,

Mystery solved. According to /var/log/maillog, it was because the
system only had 3% storage left.

Yours sincerely,
Xianwen

On 10/18/19, Xianwen Chen (陈贤文)  wrote:
> Hi,
>
> I was able to sendmail correctly until a couple of hours ago.
>
> In the past couple of hours, I was installing and setting up mu4e.
>
> mu / mu4e is set to read directly ~/Maildir.
>
> I did not change any setting in /etc but did manually edit /etc/passwd.
>
> Here is the setting of /etc/mail/smtpd.conf:
>
> table aliases file:/etc/mail/aliases
>
> # To accept external mail, replace with: listen on all
> #
> listen on lo0
>
> #action "local" mbox alias 
> action "local" maildir alias 
> action "relay" relay
>
> # Uncomment the following to accept external mail for domain "example.org"
> #
> # match from any for domain "example.org" action "local"
> match for local action "local"
> match for any action "relay"
>
> --
>
> Here is the ownership and privileges of folders within ~/Maildir:
>
>> ls -alh /home/c/Maildir/
> total 124
> drwx--  10 c  c   512B Oct 18 02:35 .
> drwxr-xr-x  16 c  c   1.0K Oct 18 02:25 ..
> drwx--   5 c  c   512B Oct 10 13:48 .Trash
> drwxr-xr-x   5 c  c   512B Oct 17 23:59 archive
> drwx--   2 c  c   2.5K Oct 18 02:31 cur
> -rw---   1 c  c   4.5K Oct 18 02:35 dovecot-uidlist
> -rw---   1 c  c 8B Oct 10 13:43 dovecot-uidvalidity
> -r--r--r--   1 c  c 0B Oct 10 13:43 dovecot-uidvalidity.5d9f1970
> -rw---   1 c  c   1.8K Oct 18 02:19 dovecot.index
> -rw---   1 c  c   8.7K Oct 18 02:35 dovecot.index.cache
> -rw---   1 c  c  13.3K Oct 18 02:35 dovecot.index.log
> -rw---   1 c  c  1008B Oct 10 13:48 dovecot.list.index.log
> -rw---   1 c  c24B Oct 10 13:43 dovecot.mailbox.log
> drwxr-xr-x   5 c  c   512B Oct 17 23:28 drafts
> drwx--   2 c  c   1.5K Oct 18 02:35 new
> drwxr-xr-x   5 c  c   512B Oct 17 23:28 sent
> -rw---   1 c  c11B Oct 10 13:43 subscriptions
> drwx--   2 c  c   512B Oct 18 02:35 tmp
>
> ---
>
> Does someone have an idea what may went wrong?
>
> Yours sincerely,
> Xianwen
>



opensmtpd: sendmail: command failed: 421 4.3.0: Temporary Error

2019-10-17 Thread
Hi,

I was able to sendmail correctly until a couple of hours ago.

In the past couple of hours, I was installing and setting up mu4e.

mu / mu4e is set to read directly ~/Maildir.

I did not change any setting in /etc but did manually edit /etc/passwd.

Here is the setting of /etc/mail/smtpd.conf:

table aliases file:/etc/mail/aliases

# To accept external mail, replace with: listen on all
#
listen on lo0

#action "local" mbox alias 
action "local" maildir alias 
action "relay" relay

# Uncomment the following to accept external mail for domain "example.org"
#
# match from any for domain "example.org" action "local"
match for local action "local"
match for any action "relay"

--

Here is the ownership and privileges of folders within ~/Maildir:

> ls -alh /home/c/Maildir/
total 124
drwx--  10 c  c   512B Oct 18 02:35 .
drwxr-xr-x  16 c  c   1.0K Oct 18 02:25 ..
drwx--   5 c  c   512B Oct 10 13:48 .Trash
drwxr-xr-x   5 c  c   512B Oct 17 23:59 archive
drwx--   2 c  c   2.5K Oct 18 02:31 cur
-rw---   1 c  c   4.5K Oct 18 02:35 dovecot-uidlist
-rw---   1 c  c 8B Oct 10 13:43 dovecot-uidvalidity
-r--r--r--   1 c  c 0B Oct 10 13:43 dovecot-uidvalidity.5d9f1970
-rw---   1 c  c   1.8K Oct 18 02:19 dovecot.index
-rw---   1 c  c   8.7K Oct 18 02:35 dovecot.index.cache
-rw---   1 c  c  13.3K Oct 18 02:35 dovecot.index.log
-rw---   1 c  c  1008B Oct 10 13:48 dovecot.list.index.log
-rw---   1 c  c24B Oct 10 13:43 dovecot.mailbox.log
drwxr-xr-x   5 c  c   512B Oct 17 23:28 drafts
drwx--   2 c  c   1.5K Oct 18 02:35 new
drwxr-xr-x   5 c  c   512B Oct 17 23:28 sent
-rw---   1 c  c11B Oct 10 13:43 subscriptions
drwx--   2 c  c   512B Oct 18 02:35 tmp

---

Does someone have an idea what may went wrong?

Yours sincerely,
Xianwen