A reminder on X

I know I’ll need this again, so I am making a post out of it.  If you are running a DragonFly system through NVMM using the excellent site instructions, and you want X apps to display on a local Windows workstation, you need to:

  1. Install VcXsrv (or your X server of choice) on Windows and start it up.
  2. Install xauth and xterm on the DragonFly host.
  3. On the DragonFly host, set these three options in /etc/ssh/sshd_config.  They are already there but commented out with different arguments.
    X11Forwarding yes
    X11DisplayOffset 0
    X11UseLocalhost yes
  4. Reload sshd: ‘service sshd reload’.
  5. ‘Enable X11 Forwarding’ under Connection -> SSH -> X11 in the puTTY setup dialog.

Connect to the DragonFly host with puTTY, type ‘xterm’, and a terminal window should appear on your Windows desktop within a few seconds.  This could be turned into a shortcut with puTTY to avoid having redundant terminals, but I’m not writing that out yet.


How to mess up mail delivery

Here’s something I just learned: If you are running dma(8), /etc/dma.conf will contain MAILNAME.   If your email server is somewhere else, but you set MAILNAME as your domain – dma will deliver locally.

I had /etc/dma.conf set with MAILNAME shiningsilence.com – so dma kept delivering overnight periodic results to root, which was aliased to justin@shiningsilence.com in /etc/mail/aliases and so it was delivered to ‘justin’ locally on the machine.

Changing MAILNAME to www.shiningsilence.com – the host you are reading right now – fixed the problem.  Now, whether this was an automatically set config or something I misconfigured some years ago… I can’t tell.

In Other BSDs for 2020/12/19

Working on less traditional BSD links here.