X11 forwarding

Origin link 2023-4-2

 I tried to ssh to linux server (Archlinux) from wsl2 and run X-windows application on wsls. Here comes summary

At beginning, I always fail since I use "ssh -X linux-server" but actually I should use "ssh -Y linux-server". -X is untrust X11 forwarding and  -Y is trust X11 forwarding. untrust X11 forwarding need X server support and I guess wsl2 doesn't support it. See detail on link1, link2 .

You could just igore following error message when you "ssh linux server"
"debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Remote: No xauth program; cannot forward X11."

rtorrent/clash/ipfs/ipv6-dhcp

Origin link 2023-4-1

Regular expression

Origin link 2022-7-3

"$" are different in basic regular expression and extend regular expression, see https://stackoverflow.com/questions/38114132/why-does-dollar-not-match-literal-dollar-when-extended-regex-ere-option-is-use.


https://www.gnu.org/software/findutils/manual/html_node/find_html/posix_002degrep-regular-expression-syntax.html#posix_002degrep-regular-expression-syntax

Stack

Origin link 2022-5-14

Windows

Origin link 2022-3-13

Texlive

Origin link 2022-2-19

 if ($opts{"usermode"}) {
    $packagelogfile ||= "$::maintree/web2c/tlmgr.log";
  } else {
    $packagelogfile ||= "$texmfsysvar/web2c/tlmgr.log";
  }

SSH

Origin link 2022-1-29

 

configuration on server side

on the /etc/ssh/sshd_config

access server

put public key into server side ~/.ssh/authorized_keys and then use private key on your computer to access remote server.

SSH2_MSG_KEX_ECDH_REPLY

if encounter "SSH2_MSG_KEX_ECDH_REPLY" issue, try 

opensmtpd

Origin link 2022-1-25

 Installation

Basic concept

mailbox

dovecot decide where to store email. it is /var/mail/user for mbox according to mail.local

dkim

dkim use private/public key to sign email. private key used to sign email and public key in DNS record to verify private key.
selector is name, you could choose what you want.
see smtpd.conf regardin how to use opensmtpd-filter-dkimsign to sign dkim. dkimproxy couls also be used but no formal/AUR package in Archlinux.

MAIL FROM and FROM

MAIL FROM is in envolope and mapping to Return-Path. "senders <users>" in smtp.config listen command is used to mapping user to email address, or example hongy19 -> hongy19@hongy19.net.
FROM is not in envelope and included into data. SMTP protocol doesn't care it. Mutt could change it. "masquerade" on smtp.config use to change it, for example hongy19 -> hongy19@hongy19.net

action and match

"When mail arrives, each “RCPT TO:” command generates a mail envelope. If an envelope matches any of a pre-designated set of criteria (using the match directive), the message is accepted for delivery. A copy of the message, as well as its associated envelopes, is saved in the mail queue and later dispatched according to an associated set of actions (using the action directive). If an envelope does not match any options, it is rejected. The match rules are evaluated sequentially, with the first match winning." according to smtpd.conf
For out-email (relay in action), need to relay only authorization email (through match auth), otherwise spam email will forwarded.

Checking queue


New vultr system

Origin link 2022-1-21

 Archlinux install

SSH

certbox

Nginx

Dovecot

opensmtpd

Archlinuxcn




2019 Summary

Origin link 2020-4-4


家庭

问题依旧和2018类似。由于平时加班比较多,陪老婆和孩子的时间太少。另外即使周末,和孩子的互动还是不如她妈妈。但今年和妈妈的沟通要比2018年好。
2019年下半年开始中断了记账。这个主要是由于实在没有时间一笔笔的记录。如果能把记账网站做成一个APP,我相信记账的频率会好很多。

工作

2019年主要准备了一系列的system guideline,包括技术,流程和日常工作。希望这些guideline/checklist能对系统长期的工作产生积极影响。另外今年工作的最大变化是PDU radio reorg,这个会对2020的工作产生巨大的影响。
希望自己能静下心来,好好想想过去几年的工作得失和应该努力的方向。

学习和读书

2019年通过微信读书看了不少关于历史,数学,物理,生物的书籍。希望自己以后能多看一些关于大脑科学,数学(特别是数理逻辑),经济和物理的书籍。
还是没有读完Peace and War。

Haskell

这一年在Haskell上基本没有做太多的事情。希望2020年能多写一些关于Haskell的code

Math
哥德尔艾舍尔巴赫——集异璧之大成已经读完了一大半,希望自己能在2020春节后读完这本书。

Computer 

Category theory for programmer还是没有读完。对于lamba Calculus 的研究还是没有开始。
2019年通过Opensmtpd的升级和spam事件,对smtp协议有了更深的了解。
2019年删除了百度, 163的账号,现在只剩下QQ的账号还没有删除

old page page 2 new page