worklog - where the magic begins


Table of Contents


This is where I brainstorm ideas to publish later …


Automate redundant publishing notes to S3 hosting.

use github to commit/store public notes?

Technology no longer just supports the business—it is the business. Learn to rethink how to design, build, and manage your systems.

dd bs=4M if=/path/to/debian-10.0.0-amd64-netinst.iso of=/dev/sdx status=progress oflag=sync

Regolith desktop environment.

Run GUI applications and desktops in docker. Focus on security.

X2Go Clients:
You have 3 clients. Which client should I use?
If in doubt, pick the regular X2Go Client (x2goclient). It is the most widely used and tested.

The regular X2Go Client (x2goclient) is optimized for thin client & single-session usage, but can be used on any desktop/laptop computer.
PyHoca-GUi is optimized for users who want to connect to multiple sessions at once, and already know how to use X2Go. For example, a sysadmin administrating multiple servers.
PyHoca-CLI is launched via command-line args; similar to vncviewer or rdesktop/xfreerdp. It is also suitable for connecting to multiple sessions at once.
Why Am I told to enable X11 forwarding with X2Go? I thought that X2Go uses nx-libs instead of X11 forwarding!

The simple answer is that the OpenSSH server treats the connection differently (in such a way that degrades nx-libs performance) unless X11 forwarding is enabled.


What does "X11UseLocalhost no" do?

I found that I can't ssh (with X11 port forwarding) from my home
FC4/linux box to a bsd machine, run xclients on the bsd machine, and
have them X display back to my home machine without specifying the
"X11UseLocalhost no" option in the /etc/ssh/sshd_config file.

I don't understand what the manpage says about this option. Can
someone please explain?

When doing X forwarding, sshd listens on a TCP socket for connections from
X clients.  Normally, it will accept connections addressed to the loopback
address only (, restricting it to clients on the local host.
X11UseLocalhost no means it will accept connections from anywhere.


Make sure that:

    You've xauth installed on the server (see: xauth info/xauth list).

    On the server your /etc/ssh/sshd_config file have these lines:

    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost no

    On the client side your ~/.ssh/config file have these lines:

    Host *
      ForwardAgent yes
      ForwardX11 yes

    On the client side, you've X server installed (e.g. macOS: XQuartz; Windows: Xming).

Then to do X11 forwarding using SSH, you need to add -X to your ssh command, e.g.

ssh -v -X user@host

then verify that your DISPLAY is not empty by:


If it is, then having verbose parameter for ssh (-v), check for any warnings, e.g.

debug1: No xauth program.
Warning: untrusted X11 forwarding setup failed: xauth key data not generated

In case you've got untrusted X11 as shown above, then try -Y flag instead (if you trust the host):

ssh -v -Y user@host

See: What does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh'ing with -X?

In case you've warning: No xauth data, you may try to generate a new .Xauthority file, e.g.

xauth generate :0 . trusted
xauth list

See: Create/rebuild a new .Xauthority file

If you've got a different warnings than above, follow the further clues.


gnome-remote-desktop - Remote desktop daemon for GNOME using PipeWire python3-pyvirtualdisplay - python wrapper for Xvfb, Xephyr and Xvnc vino - VNC server for GNOME

==> Workflow: data repositories on google-drive and Amazon S3 Git?

cworkspace -> local git repository -> git repository backup on S3 (and gdrive? )

rclone lsd sebapwbgl:/

Investigate Amazon Glacier

Murder in the cloud


AWS Command Line Interface

Installing AWS cli version 2

curl "" -o ""
sudo ./aws/install

aws2 glacier help

What Is Amazon S3 Glacier?

Getting Started with Amazon S3 Glacier


Lightweight Linux distros for old notebooks 16Mb


Desktop: Enlightenment 23 -

Install Enlightenment on Ubuntu


3 automated testing wordpress plugins phpunit

## composer global require phpunit/phpunit:5.*

php composer.phar require –dev phpunit/phpunit ^8

./vendor/bin/phpunit –version PHPUnit 8.5.2 by Sebastian Bergmann and contributors.

./vendor/bin/phpunit –bootstrap src/Email.php tests/ PHPUnit 8.5.2 by Sebastian Bergmann and contributors. … 3 / 3 (100%) Time: 44 ms, Memory: 4.00 MB OK (3 tests, 3 assertions)

./vendor/bin/phpunit –bootstrap src/wpbootstrap.php wptests/ PHPUnit 8.5.2 by Sebastian Bergmann and contributors.

F 1 / 1 (100%)

Time: 663 ms, Memory: 68.25 MB

There was 1 failure:

  1. WpSimpleTest::testCanRunQuery

Failed asserting that 42 matches expected 5.


FAILURES! Tests: 1, Assertions: 1, Failures: 1.


Change your terminal’s directory to the root of your WordPress installation, and run the command below to generate the plugin test files.

wp scaffold plugin-tests wp-your-plugin-name-here

4 neomutt and Gmail

5 vmail (gmail from command line)

6 rclone

rclone - rsync for commercial cloud storage rclone-browser - Simple cross platform GUI for rclone

rclone and google drive


drive A tiny command line client for Google Drive

7.1 install pip on ubuntu 18

sudo apt install python3-pip

pip3 –version

pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)

7.2 check

Google Drive has become a vital part of our day to day life. As much as non-programmers use it, so do programmers in several situations, where we need not use git/github.

Drive-CLI is a command-line utility for google drive which helps you access, sync, download, upload, etc. directly to your drive without leaving the command-line. The best part being the commands are similar to git CLI so that you can easily remember them

7.3 run elisp from CLI without opening emacs

7.4 install auto-backups to S3 for

7.5 install git on orgnotes folder to track changes on txt files

7.6 instead of using build.el, experiment exporting org directly to html C-c C-e h h

#+OPTIONS: html-style:nil
#+HTML_HEAD:  <link rel='stylesheet' type='text/css' href='style.css' />
#+HTML_HEAD_EXTRA: <meta name='viewport' content='width=device-width, initial-scale=1.0' />

7.7 create a shortcut for C-c C-e h h

;; eval this to export to html (same as C-c C-e h h )
(org-export-dispatch "hh")

;; define a function and key binding C-c h  to export to html when inside an org buffer
(defun sen-quick-org-mode-export()
  "quick org-mode html export"
  (org-export-dispatch "hh")
(define-key org-mode-map (kbd "C-c h") 'sen-quick-org-mode-export )

7.8 Create a template with snippets of most used sections, like source code sections, etc

7.9 migrate the content from jekyll to org mode notes

7.10 connecting to a remove emacs via TCP?

7.11 install TOR browser in Ubuntu 18 (verified 2019-10-13)

sudo add-apt-repository ppa:micahflee/ppa
sudo apt install torbrowser-launcher

8 org

HTML export commands

C-c C-e h h (org-html-export-to-html)


(info "org")

The four Org commands ‘org-store-link’, ‘org-capture’, ‘org-agenda’, and ‘org-switchb’ should be accessible through global keys (i.e., anywhere in Emacs, not just in Org buffers). Here are suggested bindings for these keys, please modify the keys to your own liking. (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cc" 'org-capture) (global-set-key "\C-cb" 'org-switchb)

;; available key (global-set-key "\C-cn" 'org-store-link) (global-set-key "\C-cc" 'org-capture)

9 asciinema

Record and share your terminal sessions, the right way. Forget screen recording apps and blurry video. Enjoy a lightweight, purely text-based approach to terminal recording.

10 external services:

There are numerous services, both free and paid, that offer the ability to add dynamic aspects into static pages (it’s important to note that these services are not specifically intended for use only on static sites). Some popular options include:

  • Disqus, Livefyre, or Facebook for comments
  • Wufoo or Google for forms
  • Google, Swiftype, or AddSearch for search
  • Discourse for forums

11 remember: when building C samples, create separate build directory

mkdir build ; cd build ; ../configure

make distclean

12 TODO integrate worklog inside public_html ?

13 ASCII Art tools

14 How to convert tex to pdf ?

At the command line, first install the texlive package if it isn't already installed:

sudo apt-get install texlive

Then use the pdflatex utility to convert the file like this:

pdftex /path/to/myfile.tex

The path /path/to/myfile.tex is, of course, an example path. You would put the path to your own file on your system.

Notice that although the utility is called pdflatex you execute it with the command pdftex (without the la).

There are several settings that you can read about in the help for pdflatex:

pdflatex --help

The setting I use the most is the one to generate the pdf in a different directory:

pdflatex /path/to/myfile.tex --output-directory=../otherdir

The pdflatex utility is also interactive, so that if you forget to supply necessary information it will prompt you to enter it before converting the file.

14.1 what worked for me:

pdflatex worklog.tex

15 check


ebook-speaker - eBook reader that reads aloud in a synthetic voice

w3-recs - recommendations produced by W3C - 196Mb

(info "org")

actionaz - emulates interaction with computer (mouse clicks, keyboard, etc)

Author: Sebastian Emilio Narvaez

Created: 2020-06-13 Sat 00:02

Emacs 25.2.2 (Org mode 8.2.10)