<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <title>alavi.me - linux</title>
    <subtitle>My mind on the web</subtitle>
    <link rel="self" type="application/atom+xml" href="https://alavi.me/tags/linux/atom.xml"/>
    <link rel="alternate" type="text/html" href="https://alavi.me"/>
    <generator uri="https://www.getzola.org/">Zola</generator>
    <updated>2026-09-09T00:00:00+00:00</updated>
    <id>https://alavi.me/tags/linux/atom.xml</id>
    <entry xml:lang="en">
        <title>My Box of Cool CLI/TUI tools</title>
        <published>2025-12-21T00:00:00+00:00</published>
        <updated>2026-09-09T00:00:00+00:00</updated>
        
        <author>
          <name>
            Alireza Alavi
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://alavi.me/blog/cool-cli-tui/"/>
        <id>https://alavi.me/blog/cool-cli-tui/</id>
        
        
        <content type="html" xml:base="https://alavi.me/blog/cool-cli-tui/">
            
            &lt;h2 id=&quot;preface&quot;&gt;Preface&lt;a class=&quot;zola-anchor&quot; href=&quot;#preface&quot; aria-label=&quot;Anchor link for: preface&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Here is a list of CLI(Command Line Interface) and TUI(Terminal User Interface) applications that I love and use often.
I list them here so I don&#39;t forget about them, and maybe others(you) might find them useful.&lt;/p&gt;
&lt;p&gt;Read about &lt;a href=&quot;/blog/cli-and-tui-over-gui&quot;&gt;why I prefer CLI and TUI over GUI&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There also exists extensive lists of CLI and TUI tools ( see &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#other-similar-lists&quot;&gt;other cli tui lists&lt;/a&gt;),
This is just &lt;em&gt;my&lt;/em&gt; list.&lt;/p&gt;
&lt;p&gt;The lists aren&#39;t written in any particular order.&lt;/p&gt;
&lt;h2 id=&quot;non-obvious-ones&quot;&gt;Non-obvious ones&lt;a class=&quot;zola-anchor&quot; href=&quot;#non-obvious-ones&quot; aria-label=&quot;Anchor link for: non-obvious-ones&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;These are less common applications.&lt;/p&gt;
&lt;h3 id=&quot;aerc&quot;&gt;Aerc&lt;a class=&quot;zola-anchor&quot; href=&quot;#aerc&quot; aria-label=&quot;Anchor link for: aerc&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;E-mail is definitely my favorite way of messaging, and arguably one of the greatest and most
successful methods of communication ever created. It is simple, effective, and truly
decentralized (although big tech hates that and is trying to kill the decentralization).&lt;/p&gt;
&lt;p&gt;Aerc is a TUI E-mail client.&lt;br /&gt;
Lightweight, efficient, amazing integration with git&#39;s email based workflows.&lt;/p&gt;
&lt;p&gt;If you work with email based git workflows, Aerc is absolutely amazing. But even if you don&#39;t,
I think it is still great for E-mail communication. Using it is pretty simple and the UI
is pretty simple with little learning curve.&lt;br /&gt;
I still use Thunderbird as my main E-mail client mostly because of the calendar which I heavily
use for both my work and personal life, and BiDi text support which the TUI/CLI world doesn&#39;t
really support yet, although using Aerc with a BiDi capable terminal like Wezterm and good font
renders OK RTL text.&lt;/p&gt;
&lt;p&gt;Note that Aerc stores your password in clear text in the config file by default, which is bad.
You should use a password manager like &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#pass&quot;&gt;pass&lt;/a&gt; to store your password and read it from Aerc&#39;s config.&lt;br /&gt;
For example, add this to your config and remove the clear text password:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;source-cred-cmd = pass my/password/name&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;asdf&quot;&gt;asdf&lt;a class=&quot;zola-anchor&quot; href=&quot;#asdf&quot; aria-label=&quot;Anchor link for: asdf&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;An &quot;extendable version manager&quot; for multiple languages and runtimes including
Node, Ruby, Elixir, Elrang, Java, Clojure etc.&lt;/p&gt;
&lt;p&gt;Instead of having a different version manager for each runtime and language you
use, you can handle them all with one tool.&lt;br /&gt;
It can even manage some other cli tools through community plugins. You can see
them by running &lt;code&gt;asdf plugin list all&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It manages versions both for your global computer configuration and per-project.&lt;/p&gt;
&lt;p&gt;Mise is another alternative, but I have multiple issues with it, including it
being pretty vibe coded, doing too much with unclear boundaries, and being
sponsored by very questionable people.&lt;/p&gt;
&lt;h3 id=&quot;bombardier&quot;&gt;Bombardier&lt;a class=&quot;zola-anchor&quot; href=&quot;#bombardier&quot; aria-label=&quot;Anchor link for: bombardier&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;bombardier is a HTTP(S) benchmarking tool.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you want to stress test your server or application, you want to &lt;em&gt;bombardier&lt;/em&gt; it with gazillion requests
to tests it&#39;s limits.&lt;/p&gt;
&lt;p&gt;Bombardier does exactly that. And figuring out how to use it is as simple as &lt;code&gt;bombardier --help&lt;/code&gt;.&lt;br /&gt;
I&#39;m also a huge fan of how the provide an AppImage format of the binary. I always like that.&lt;/p&gt;
&lt;p&gt;Also checkout &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#wrk&quot;&gt;wrk&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;wrk&quot;&gt;wrk&lt;a class=&quot;zola-anchor&quot; href=&quot;#wrk&quot; aria-label=&quot;Anchor link for: wrk&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;According to &lt;a rel=&quot;external&quot; href=&quot;https://github.com/codesenberg/bombardier/wiki/Comparison-to-other-tools&quot;&gt;bombardier&#39;s wiki&lt;/a&gt;, &lt;code&gt;wrk&lt;/code&gt; is 1.5-2x faster than &lt;code&gt;bombardier&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Also check out &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#bombardier&quot;&gt;bombardier&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;hyperfine&quot;&gt;Hyperfine&lt;a class=&quot;zola-anchor&quot; href=&quot;#hyperfine&quot; aria-label=&quot;Anchor link for: hyperfine&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Hyperfine is a great and yet very simple program benchmarking tool.&lt;/p&gt;
&lt;p&gt;Yes, there are built-in or libraries in most languages for benchmarking within your code,
but having a simple benchmarking tool that doesn&#39;t care about what your program is or does,
and just runs it and tests it can be really great.&lt;br /&gt;
For example, if have have written the same program or algorithm in multiple languages and want
to benchmark the performance as a black box, hyperfine is the tool.
Or if you want to benchmark programs that you haven&#39;t written, don&#39;t know anything about
them and don&#39;t have access to their code.&lt;/p&gt;
&lt;h3 id=&quot;httpie&quot;&gt;HTTPie&lt;a class=&quot;zola-anchor&quot; href=&quot;#httpie&quot; aria-label=&quot;Anchor link for: httpie&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Postman is for babies; real men use &lt;code&gt;curl&lt;/code&gt;. But there is also a great middle ground,
and it is called &lt;code&gt;HTTPie&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;HTTPie is an HTTP client that does absolutely everything you need from a sane HTTP client.&lt;br /&gt;
No, we don&#39;t need API mocking (that&#39;s why you have &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#prism&quot;&gt;Prism&lt;/a&gt;), project management and mini-games
in an HTTP client which takes 30 seconds to load and takes up 3GiB of ram.&lt;/p&gt;
&lt;p&gt;HTTPie provides both a GUI which is great and simple, and CLI commands &lt;code&gt;http&lt;/code&gt; and &lt;code&gt;https&lt;/code&gt;.&lt;br /&gt;
It also supports GraphQL requests.&lt;/p&gt;
&lt;h3 id=&quot;http-server&quot;&gt;http-server&lt;a class=&quot;zola-anchor&quot; href=&quot;#http-server&quot; aria-label=&quot;Anchor link for: http-server&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;The name is pretty self explanatory, which I always like.&lt;br /&gt;
If you want to serve some static files, say, your static website for showing it to others
or development, you will need an http server and &lt;code&gt;http-server&lt;/code&gt; is great at doing that!&lt;/p&gt;
&lt;p&gt;Install it using &lt;code&gt;npm&lt;/code&gt; or whatever js package manager you are using.\&lt;/p&gt;
&lt;h3 id=&quot;transmission-cli&quot;&gt;Transmission-cli&lt;a class=&quot;zola-anchor&quot; href=&quot;#transmission-cli&quot; aria-label=&quot;Anchor link for: transmission-cli&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Torrent client for the cli. Also has Qt and GTK GUI clients.&lt;/p&gt;
&lt;h3 id=&quot;btop&quot;&gt;Btop&lt;a class=&quot;zola-anchor&quot; href=&quot;#btop&quot; aria-label=&quot;Anchor link for: btop&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;If you ask me, Btop is the king of &lt;em&gt;task managers&lt;/em&gt;. You can think of it as &lt;code&gt;htop&lt;/code&gt; with lots of
added functionality and pizzazz.&lt;/p&gt;
&lt;p&gt;It&#39;s been my default task manager for years, both on my personal computers and on servers.&lt;/p&gt;
&lt;h3 id=&quot;fd&quot;&gt;fd&lt;a class=&quot;zola-anchor&quot; href=&quot;#fd&quot; aria-label=&quot;Anchor link for: fd&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;From it&#39;s manpage: &quot;Find entries in the filesystem&quot;. &quot;A simple, fast and user-friendly
alternative to find&quot;. I will emphasize on the &quot;Fast&quot; part.\&lt;/p&gt;
&lt;p&gt;As simple as &lt;code&gt;fd .html&lt;/code&gt; to find all files that have &quot;.html&quot; in their name, in your current directory
and all it&#39;s subdirectories.&lt;/p&gt;
&lt;h3 id=&quot;fzf&quot;&gt;fzf&lt;a class=&quot;zola-anchor&quot; href=&quot;#fzf&quot; aria-label=&quot;Anchor link for: fzf&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Interactively search within basically anything.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;fzf - a command-line fuzzy finder&lt;br /&gt;
fzf is an interactive filter program for any kind of list.&lt;/p&gt;
&lt;p&gt;- fzf manpage&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;But what is a &quot;fuzzy finder&quot;? Well it all goes back to some complicated math and logic from
&quot;Fuzzy math&quot; and &quot;Fuzzy logic&quot; which is pretty amazing, but in short, fuzzy can mean
&quot;not exactly, but it&#39;s close&quot;.&lt;/p&gt;
&lt;p&gt;By running &lt;code&gt;fzf&lt;/code&gt;, by default it will be searching within your files in the current directory.&lt;br /&gt;
For example, searching for &quot;stry&quot; will match all these files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;.bash_hi&lt;strong&gt;st&lt;/strong&gt;o&lt;strong&gt;ry&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;some/path/&lt;strong&gt;st&lt;/strong&gt;o&lt;strong&gt;ry&lt;/strong&gt;_time.txt&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;str&lt;/strong&gt;eam/&lt;strong&gt;y&lt;/strong&gt;our_file.md&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Or you can search within the contents of a file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;cat huge_file.md | fzf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Or within a some specified files. Remember &lt;code&gt;fd&lt;/code&gt;? These two pair up beautifully together:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;fd -t file --hidden .conf | fzf --preview &quot;cat -n {}&quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will find all &lt;em&gt;files&lt;/em&gt;, even the &lt;em&gt;hidden&lt;/em&gt; ones, that their names contain &quot;.conf&quot; and then you
can interactively search within them using fzf and preview each file with cat.&lt;/p&gt;
&lt;p&gt;I should also note that it is really fast!&lt;/p&gt;
&lt;p&gt;This &lt;a rel=&quot;external&quot; href=&quot;https://www.redhat.com/en/blog/fzf-linux-fuzzy-finder&quot;&gt;blog post by redhat on fzf&lt;/a&gt;
is pretty good for some tricks.&lt;/p&gt;
&lt;p&gt;TODO: how to search the contents of multiple files with fzf?(email me if you know)&lt;/p&gt;
&lt;h3 id=&quot;rg-ripgrep&quot;&gt;rg (ripgrep)&lt;a class=&quot;zola-anchor&quot; href=&quot;#rg-ripgrep&quot; aria-label=&quot;Anchor link for: rg-ripgrep&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;The new &quot;grep&quot; in town.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;recursively search the current directory for lines matching a pattern&lt;/p&gt;
&lt;p&gt;- ripgrep manual&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I think most of the benefit of &lt;code&gt;rg&lt;/code&gt; over &lt;code&gt;grep&lt;/code&gt; comes down to it&#39;s better performance.
rg is very fast. For example, running &lt;code&gt;rg &quot;init.lua&quot;&lt;/code&gt; in my home directory, which contains
tons of files, returns all the results in 7 seconds, while &lt;code&gt;grep -r &quot;init.lua&quot;&lt;/code&gt; took
4 minutes to complete! That is a huge difference.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Cool tip:&lt;/em&gt; You can search for something in your git project, only in files that are tracked by
git with &lt;code&gt;rg [pattern] $(git ls-files)&lt;/code&gt;.&lt;br /&gt;
This is much faster than using &lt;code&gt;git grep [pattern]&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;But don&#39;t sleep on the good old &lt;code&gt;grep&lt;/code&gt; either. It&#39;s still very good and installed on every Linux system.&lt;/p&gt;
&lt;h3 id=&quot;lnav&quot;&gt;lnav&lt;a class=&quot;zola-anchor&quot; href=&quot;#lnav&quot; aria-label=&quot;Anchor link for: lnav&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;lnav is a log navigator that does exactly that. It gives you unbelievable power in navigating log files.&lt;/p&gt;
&lt;p&gt;It has vim like bindings and interface, and has many features that makes it so efficient and simple
to navigate and monitor log files. I always have it on my servers.&lt;/p&gt;
&lt;h3 id=&quot;lynx&quot;&gt;Lynx&lt;a class=&quot;zola-anchor&quot; href=&quot;#lynx&quot; aria-label=&quot;Anchor link for: lynx&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;a general purpose distributed information browser for the World Wide Web&lt;/p&gt;
&lt;p&gt;- Lynx manpage&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A good website shouldn&#39;t rely on CSS and Javascript to deliver content and information to you.&lt;br /&gt;
Sometimes, you can use your favorite websites only with a terminal, without opening up a browser
that eats 3GB of ram.&lt;/p&gt;
&lt;p&gt;A lot can be done with just HTML. HTML is the whole driver of the web. Don&#39;t underestimate it.&lt;/p&gt;
&lt;p&gt;And it&#39;s also always good to test your website with Lynx to see if your website is usable and
correct from it. If yes, it shows that your website is correctly structured, the HTML is
correct and your website doesn&#39;t rely on CSS and JS for functionality.&lt;/p&gt;
&lt;p&gt;Here is how this page looks in Lynx:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://alavi.me/blog/cool-cli-tui/./assets/lynx_screenshot.webp&quot; alt=&quot;Screenshot of Lynx browser showing this webpage&quot; /&gt;&lt;/p&gt;
&lt;p&gt;A big downside of Lynx for me is that it doesn&#39;t support RTL and BiDi text.&lt;/p&gt;
&lt;h3 id=&quot;w3m&quot;&gt;w3m&lt;a class=&quot;zola-anchor&quot; href=&quot;#w3m&quot; aria-label=&quot;Anchor link for: w3m&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;While &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#lynx&quot;&gt;Lynx&lt;/a&gt; is the OG TUI web browser, w3m is somewhat more modern.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It uses Vim like bindings for navigation (which is always a good thing)&lt;/li&gt;
&lt;li&gt;can handle image rendering if your terminal supports it&lt;/li&gt;
&lt;li&gt;supports RTL text if your terminal supports it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There is also &lt;em&gt;Chawan&lt;/em&gt; which is a newer TUI web browser but I couldn&#39;t run it after installing it on arch
so I can&#39;t tell if it&#39;s better or not.&lt;/p&gt;
&lt;p&gt;Here&#39;s a comparison of a website that uses RTL text in Wezterm (left is w3m right is lynx)
&lt;img src=&quot;https://alavi.me/blog/cool-cli-tui/./assets/w3m_vs_lynx_rtl.webp&quot; alt=&quot;Comparison of w3m and lynx with RTL text&quot; /&gt;&lt;/p&gt;
&lt;p&gt;As you can see, lynx renders gibberish.&lt;/p&gt;
&lt;p&gt;I have to say, using and navigating w3m is much simpler than lynx.&lt;/p&gt;
&lt;h3 id=&quot;nnn&quot;&gt;nnn&lt;a class=&quot;zola-anchor&quot; href=&quot;#nnn&quot; aria-label=&quot;Anchor link for: nnn&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/jarun/nnn&quot;&gt;nnn&lt;/a&gt; (n³) is a full-featured terminal
file manager. It&#39;s tiny, nearly 0-config and incredibly fast.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It uses vim-like bindings and is hassle free, fast and simple. I tried
ranger for a while but it wasn&#39;t as fast and it kept crashing.&lt;/p&gt;
&lt;h3 id=&quot;weechat&quot;&gt;Weechat&lt;a class=&quot;zola-anchor&quot; href=&quot;#weechat&quot; aria-label=&quot;Anchor link for: weechat&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;The extensible chat client (mainly IRC).&lt;a rel=&quot;external&quot; href=&quot;https://weechat.org&quot;&gt;website&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I use it everyday for communicating via IRC (we all the real good
stuff are in IRC). It has vim-like keybindings which is a great plus.&lt;/p&gt;
&lt;h3 id=&quot;prism&quot;&gt;Prism&lt;a class=&quot;zola-anchor&quot; href=&quot;#prism&quot; aria-label=&quot;Anchor link for: prism&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;pass&quot;&gt;pass&lt;a class=&quot;zola-anchor&quot; href=&quot;#pass&quot; aria-label=&quot;Anchor link for: pass&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;pass - stores, retrieves, generates, and synchronizes passwords securely&lt;/p&gt;
&lt;p&gt;- pass manage&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;One must have tool. It can be managed with git so you don&#39;t lose track of your passwords.&lt;br /&gt;
This can be very useful both for personal usage and for usage within teams.
Usually, within a team you will have lots of passwords that you have to share,
and I think this can be a very convenient, secure and simple way of doing it.&lt;/p&gt;
&lt;p&gt;You should use &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#gpg&quot;&gt;gpg&lt;/a&gt; to encrypt your passwords in &lt;code&gt;pass&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;tldr&quot;&gt;tldr&lt;a class=&quot;zola-anchor&quot; href=&quot;#tldr&quot; aria-label=&quot;Anchor link for: tldr&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;It is like &lt;code&gt;man&lt;/code&gt; but much more concise, with examples.&lt;/p&gt;
&lt;p&gt;Of course, this doesn&#39;t replace &lt;code&gt;man&lt;/code&gt; but it is great for quickly being reminded how
to use something&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tldr curl&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tldr ffmpeg&lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;tmux&quot;&gt;Tmux&lt;a class=&quot;zola-anchor&quot; href=&quot;#tmux&quot; aria-label=&quot;Anchor link for: tmux&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Tmux is a terminal multiplexer.&lt;br /&gt;
What does that mean?\&lt;/p&gt;
&lt;p&gt;When working with a terminal, be it a TTY session, an SSH connection, or even your terminal emulator,
you only get one terminal to interact with.&lt;br /&gt;
With a multiplexer like tmux, &lt;em&gt;you can have many terminals within one terminal&lt;/em&gt;.&lt;br /&gt;
You can create new tabs, splits and sessions.&lt;/p&gt;
&lt;p&gt;A huge benefit of tmux is the idea of sessions. If you are working with a bare terminal, closing
the terminal will kill all the processes that are running within it. But if you are working
in a tmux session, closing the terminal doesn&#39;t kill the session, so you will not lose your work.&lt;/p&gt;
&lt;p&gt;For me, tmux is a must-have both for my personal computers and on servers. It makes you much more
productive, and makes using the terminal much more enjoyable, powerful and versatile.&lt;/p&gt;
&lt;p&gt;I have heard of Zellij, the new terminal multiplexer in town, but I can&#39;t find enough reasons
to switch to it. Tmux does everything I want.&lt;/p&gt;
&lt;h3 id=&quot;lazygit&quot;&gt;Lazygit&lt;a class=&quot;zola-anchor&quot; href=&quot;#lazygit&quot; aria-label=&quot;Anchor link for: lazygit&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;A Git TUI for the lazy.&lt;/p&gt;
&lt;p&gt;This is my go-to Git frontend. Although I believe you should not be reliant on simple abstractions
for your critical software like Git, if you actually understand what is going on, Lazygit is
the best Git front-end I know of.&lt;/p&gt;
&lt;h3 id=&quot;delta&quot;&gt;Delta&lt;a class=&quot;zola-anchor&quot; href=&quot;#delta&quot; aria-label=&quot;Anchor link for: delta&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://dandavison.github.io/delta/&quot;&gt;Delta&lt;/a&gt; is a very cool git pager
for showing much better diffs with git.&lt;/p&gt;
&lt;p&gt;You can also use it with &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#lazygit&quot;&gt;lazygit&lt;/a&gt; so lazygit uses delta for
it&#39;s diffs (&lt;a rel=&quot;external&quot; href=&quot;https://github.com/jesseduffield/lazygit/blob/master/docs/Custom_DiffRenderers.md#delta&quot;&gt;see how&lt;/a&gt;)&lt;/p&gt;
&lt;h3 id=&quot;tokei&quot;&gt;Tokei&lt;a class=&quot;zola-anchor&quot; href=&quot;#tokei&quot; aria-label=&quot;Anchor link for: tokei&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Tokei gives you stats about your code project, like how many lines of code it has, what languages are used and in what proportion.&lt;/p&gt;
&lt;p&gt;Here, it&#39;s simpler with an example:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;jsc on  feat/advanced-filter-db&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;❯ tokei&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;===============================================================================&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Language            Files        Lines         Code     Comments       Blanks&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;===============================================================================&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Clojure                40         1720         1436          116          168&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; CSS                     1           57           48            0            9&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Dockerfile              1           15            8            1            6&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Edn                     5         1142         1091           25           26&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; JavaScript              3           40           34            1            5&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; JSON                    1           43           43            0            0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Makefile                1           14           10            0            4&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; XML                     3           70           67            3            0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-------------------------------------------------------------------------------&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Markdown                3          396            0          290          106&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; |- Clojure              2           14            9            5            0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; (Total)                            410            9          295          106&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;===============================================================================&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt; Total                  58         3497         2737          436          324&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;===============================================================================&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&#39;s not super useful, but it&#39;s fun.&lt;/p&gt;
&lt;h3 id=&quot;scc&quot;&gt;SCC&lt;a class=&quot;zola-anchor&quot; href=&quot;#scc&quot; aria-label=&quot;Anchor link for: scc&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;SCC is similar to &lt;a href=&quot;https://alavi.me/blog/cool-cli-tui/#tokei&quot;&gt;tokei&lt;/a&gt;, it has some additional features like price estimation of project,
time estimation, unique lines of code, etc.&lt;/p&gt;
&lt;h3 id=&quot;exiftool&quot;&gt;exiftool&lt;a class=&quot;zola-anchor&quot; href=&quot;#exiftool&quot; aria-label=&quot;Anchor link for: exiftool&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;exiftool - Read and write meta information in files&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Your files, including your images, videos or anything else, can contain EXIF and other meta data.&lt;br /&gt;
While this can be good, sometimes, it can be a security and safety problem.&lt;/p&gt;
&lt;p&gt;You might share an image with someone or share it on your website, and within the EXIF data of that
image might be your location, And people that you don&#39;t want might be able to find your location.&lt;/p&gt;
&lt;p&gt;This tools helps you remove or add these kinds of data to files.&lt;/p&gt;
&lt;h3 id=&quot;zoxide&quot;&gt;Zoxide&lt;a class=&quot;zola-anchor&quot; href=&quot;#zoxide&quot; aria-label=&quot;Anchor link for: zoxide&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;zoxide - a smarter cd command&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;It keeps track of the directories you use most frequently, and uses a ranking&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;algorithm to navigate to the best match.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I heavily use Zoxide. It remembers the directories that you visit and ranks them, so you can
navigate around your system with fuzzy matching and much more efficiently.&lt;/p&gt;
&lt;p&gt;Let&#39;s say I have these directories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;/mnt/work/projects/foo&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/mnt/work/projects/personal/foo&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/mnt/work/projects/baz&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If I have previously z&#39;d into them (&lt;code&gt;z /mnt/work/projects/foo&lt;/code&gt;), z has added them to it&#39;s database
and now I can navigate to them just with &lt;code&gt;z foo&lt;/code&gt;, &lt;code&gt;z personal/foo&lt;/code&gt;, &lt;code&gt;z baz&lt;/code&gt;. This is amazingly
simple and fast.\&lt;/p&gt;
&lt;p&gt;Remember it also uses &lt;code&gt;fzf&lt;/code&gt; so you don&#39;t even need to type the filename fully or correctly.&lt;br /&gt;
You can go to &lt;code&gt;/projects/myBigProjectName&lt;/code&gt; with &lt;code&gt;z projecna&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id=&quot;obvious-ones&quot;&gt;Obvious ones&lt;a class=&quot;zola-anchor&quot; href=&quot;#obvious-ones&quot; aria-label=&quot;Anchor link for: obvious-ones&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;These are more well-known applications, which don&#39;t need lots of introduction (Who doesn&#39;t use git or curl?).&lt;/p&gt;
&lt;h3 id=&quot;curl&quot;&gt;curl&lt;a class=&quot;zola-anchor&quot; href=&quot;#curl&quot; aria-label=&quot;Anchor link for: curl&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;curl is a tool for transferring data from or to a server using URLs.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Most software engineers know curl, but if you don&#39;t, you are definitely using it.&lt;br /&gt;
From your, computer, smartphone, Car, Fridge or anything that connects to the internet or
needs to communicate with somewhere using URLs (why the hell do fridges and cars need to
be connected?), they are probably using curl.&lt;/p&gt;
&lt;p&gt;The most common use-case for me is either downloading files and html pages, or using it as a HTTP
client to make requests to HTTP endpoints (like I said, postman is for babies).&lt;/p&gt;
&lt;!-- FIXME --&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;http://justuse.org/curl/&quot;&gt;justusecurl&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;git&quot;&gt;Git&lt;a class=&quot;zola-anchor&quot; href=&quot;#git&quot; aria-label=&quot;Anchor link for: git&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;The king of SCM.&lt;/p&gt;
&lt;p&gt;Who doesn&#39;t know git?&lt;br /&gt;
I can praise git for hours but I don&#39;t think it needs much praise.&lt;/p&gt;
&lt;h3 id=&quot;gpg&quot;&gt;GPG&lt;a class=&quot;zola-anchor&quot; href=&quot;#gpg&quot; aria-label=&quot;Anchor link for: gpg&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;blockquote&gt;
&lt;p&gt;gpg - OpenPGP encryption and signing tool&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;It is a tool to provide digital encryption and signing services using the OpenPGP standard.
gpg features complete key management and all the bells and whistles you would expect
from a full OpenPGP implementation.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you don&#39;t know about OpenPGP, in short you can digitally sign things, you can encrypt and decrypt
things with GPG.&lt;br /&gt;
This is how Email encryption works. If you want to send end-to-end encrypted (E2EE) emails, you should use
GPG. If you want to send anything with E2EE, GPG is a great way to do it.&lt;/p&gt;
&lt;h3 id=&quot;neovim-nvim&quot;&gt;Neovim (nvim)&lt;a class=&quot;zola-anchor&quot; href=&quot;#neovim-nvim&quot; aria-label=&quot;Anchor link for: neovim-nvim&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;The greatest text editor of all time (let&#39;s start a war), and the tool I spend most of my time using.&lt;/p&gt;
&lt;p&gt;Objectively the greatest keybindings ever(Vim bindings) paired with great performance and beautiful, simple
extensibility using a great programming language: Lua.
Although I use &quot;fennel&quot; for configuring it, which compiles to Lua with &lt;code&gt;nfnl&lt;/code&gt;.
What can I say, I&#39;m a sucker for &lt;em&gt;Lispy&lt;/em&gt; languages.&lt;/p&gt;
&lt;h3 id=&quot;networkmanager-tui-nmtui&quot;&gt;networkManager TUI (nmtui)&lt;a class=&quot;zola-anchor&quot; href=&quot;#networkmanager-tui-nmtui&quot; aria-label=&quot;Anchor link for: networkmanager-tui-nmtui&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I remember people giving lots of hate to nmtui for it&#39;s instability.&lt;br /&gt;
I have to agree, it isn&#39;t very stable and crashes often, but it gets the job done.&lt;/p&gt;
&lt;p&gt;Many times, you don&#39;t have access to a GUI for configuring NetworkManager
(which is what most desktops use for network managing) and nmtui gets simple tasks
like connecting, disconnecting to internet or changing configuration done.&lt;/p&gt;
&lt;h2 id=&quot;honorable-mentions&quot;&gt;Honorable mentions&lt;a class=&quot;zola-anchor&quot; href=&quot;#honorable-mentions&quot; aria-label=&quot;Anchor link for: honorable-mentions&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;h3 id=&quot;wezterm&quot;&gt;Wezterm&lt;a class=&quot;zola-anchor&quot; href=&quot;#wezterm&quot; aria-label=&quot;Anchor link for: wezterm&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I know it&#39;s not a TUI or CLI app, but we mostly use CLI and TUI apps inside our terminal emulators.&lt;br /&gt;
Although I like using a simple bare bones emulator like &lt;code&gt;Alacritty&lt;/code&gt; or &lt;code&gt;foot&lt;/code&gt; with [tmux], Wezterm is
so lovely that I can&#39;t help but giving it a shout out.&lt;/p&gt;
&lt;p&gt;It has enough features but not too much, simple config, great documentation, cross-platform
and one of the main features that makes me keep using it for some things, is that it is
one of the few emulators that supports BiDi and RTL text which is pretty important for me
as a Farsi speaker.&lt;/p&gt;
&lt;p&gt;Too bad Neovim/vim still don&#39;t support BiDi text which is really odd. I really don&#39;t know anything
about text rendering and BiDi but I want it so much that I might learn it to try and add it to
Neovim.&lt;/p&gt;
&lt;h3 id=&quot;ttyper&quot;&gt;ttyper&lt;a class=&quot;zola-anchor&quot; href=&quot;#ttyper&quot; aria-label=&quot;Anchor link for: ttyper&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Typing speed test in the terminal&lt;/p&gt;
&lt;h2 id=&quot;other-similar-lists&quot;&gt;Other similar lists&lt;a class=&quot;zola-anchor&quot; href=&quot;#other-similar-lists&quot; aria-label=&quot;Anchor link for: other-similar-lists&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/agarrharr/awesome-cli-apps&quot;&gt;agarrharr/awesome-cli-apps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/rothgar/awesome-tuis&quot;&gt;rogthar/awesome-tuis&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

        </content>
        
    </entry>
    <entry xml:lang="en">
        <title>Using E-Ink tablet as monitor for Linux</title>
        <published>2025-12-08T00:00:00+00:00</published>
        <updated>2025-12-15T00:00:00+00:00</updated>
        
        <author>
          <name>
            Alireza Alavi
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://alavi.me/blog/e-ink-tablet-as-monitor-linux/"/>
        <id>https://alavi.me/blog/e-ink-tablet-as-monitor-linux/</id>
        
        
        <content type="html" xml:base="https://alavi.me/blog/e-ink-tablet-as-monitor-linux/">
            
            &lt;p&gt;Yesterday, I was writing and doing research about software licenses.
I read through heaps and walls of legal text and different licenses, taking notes and making sense of them. After about fourteen hours of this, I felt like my eyes were ready to quit. I thought it would be really nice if I could use my old Android E-ink tablet as a display for reading and writing text, with much less strain on the eyes.&lt;br /&gt;
I got it to work and I&#39;m going to document it here so both the future me remembers, and maybe &lt;em&gt;you&lt;/em&gt; find it useful and your eyes thank you.&lt;/p&gt;
&lt;p&gt;Here is what I am working with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;OS: Linux (Arch, btw. but doesn&#39;t matter)&lt;/li&gt;
&lt;li&gt;i3wm (X11)&lt;/li&gt;
&lt;li&gt;E-ink tablet: Onyx BOOX Air 2 (It being Android matters, if not, you must find a VNC client for your tablet)&lt;/li&gt;
&lt;li&gt;I just want to mirror one of my screens to the tablet, I don&#39;t care about &lt;em&gt;extending the screen&lt;/em&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;showcasing-end-results&quot;&gt;Showcasing end results&lt;a class=&quot;zola-anchor&quot; href=&quot;#showcasing-end-results&quot; aria-label=&quot;Anchor link for: showcasing-end-results&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;figure&gt;
&lt;p&gt;&lt;video class=&quot;&quot; src=&quot;e-ink-monitor-linux.webm&quot; aria-title=&quot;demonstration of typing within neovim in an E-ink display mirroring the contents of computer&#39;s monitor, and viewing text on it&quot; controls&gt;&lt;/video&gt;&lt;/p&gt;
&lt;figcaption&gt;
You can also watch this &lt;a href=&quot;https://youtu.be/TeOg7Of8ZU4&quot; target=&quot;_blank&quot;&gt;on YouTube&lt;/a&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;The latency with VNC is very little. The main bottleneck is the &lt;strong&gt;low refresh rate and the lag of my old E-ink tablet&lt;/strong&gt;. This can be a much better experience with a &lt;em&gt;newer tablet with higher refresh rate&lt;/em&gt;.&lt;br /&gt;
I still like this though; It is good for just writing with minimal distractions, and less eye strain, but it is &lt;strong&gt;amazing for reading&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id=&quot;how-i-use-this&quot;&gt;How I use this&lt;a class=&quot;zola-anchor&quot; href=&quot;#how-i-use-this&quot; aria-label=&quot;Anchor link for: how-i-use-this&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I think this will be best used in a dual monitor setup (minus the e-ink).&lt;br /&gt;
One is just a mirror to the e-ink, which sometimes helps, taking glances at it for some things that need color.&lt;br /&gt;
The second monitor will be used for other things besides reading and writing.&lt;/p&gt;
&lt;p&gt;I do not use the E-ink tablet as my main monitor. I use it 70% for reading and 30% for writing simple text.
This depends on your tablet, it&#39;s refresh rate and quality but with my tablet, writing code or doing things like browsing the web isn&#39;t a good experience because of the latency.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;There is another pro&lt;/strong&gt;: It&#39;s more than a monitor. The VNC connection grants you the ability to use your tablet as the input device too.&lt;br /&gt;
This way, I open the thing that I need to be reading or reviewing, pick up my tablet and just roam around the office, scrolling the pages, making small edits.&lt;br /&gt;
I also use the tablet for drawing things in GIMP or whatever while explaining things to my co workers and during presentations. So it also acts as a pretty good drawing tablet.&lt;/p&gt;
&lt;h2 id=&quot;attempt1-deskreen&quot;&gt;Attempt1: Deskreen&lt;a class=&quot;zola-anchor&quot; href=&quot;#attempt1-deskreen&quot; aria-label=&quot;Anchor link for: attempt1-deskreen&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Deskreen is great, and has its use cases, specially that it&#39;s so simple to use even a hamster can use it.
But the issue was that you should view your screen inside a browser. That has two problems for our use case:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The streaming quality is not amazing. For reading text, you need crisp letters and high quality&lt;/li&gt;
&lt;li&gt;The input lag is way too much. My rusty BOOX Air2 already has considerable input and rendering lag. I can&#39;t afford anymore.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;So Deskreen failed for me.&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;attempt2-vnc&quot;&gt;Attempt2: VNC&lt;a class=&quot;zola-anchor&quot; href=&quot;#attempt2-vnc&quot; aria-label=&quot;Anchor link for: attempt2-vnc&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Setting up a VNC servers seemed a bit daunting at first (that&#39;s why I&#39;m writing this) but I got it working in ~20 minutes.&lt;/p&gt;
&lt;p&gt;We will use &lt;strong&gt;TigerVNC as our server, and AVNC for our Android client&lt;/strong&gt; (E-ink tablet)&lt;/p&gt;
&lt;h3 id=&quot;setting-up-the-vnc-server&quot;&gt;Setting up the VNC server&lt;a class=&quot;zola-anchor&quot; href=&quot;#setting-up-the-vnc-server&quot; aria-label=&quot;Anchor link for: setting-up-the-vnc-server&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;As always, the Arch wiki is a great resource, regardless of your distro. See &lt;a rel=&quot;external&quot; href=&quot;https://wiki.archlinux.org/title/TigerVNC&quot;&gt;TigerVNC arch wiki&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here, I will provide a quick-start.&lt;/p&gt;
&lt;h3 id=&quot;install-and-initial-setup&quot;&gt;Install and initial setup&lt;a class=&quot;zola-anchor&quot; href=&quot;#install-and-initial-setup&quot; aria-label=&quot;Anchor link for: install-and-initial-setup&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;install the tiger vnc package. For arch:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; pacman&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;Sy&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; tigervnc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then, according to the Arch wiki,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a password using &lt;code&gt;vncpasswd&lt;/code&gt; which will store the hashed password in &lt;code&gt;$XDG_CONFIG_HOME/tigervnc/passwd&lt;/code&gt;. &lt;strong&gt;Ensure the file&#39;s permission is set to 0600&lt;/strong&gt;.
If creating vncserver access for another user, you must be logged in as that user before running vncpasswd.&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;vncpasswd&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; chmod&lt;/span&gt;&lt;span style=&quot;color: light-dark(#FE640B, #FAB387);&quot;&gt; 0600&lt;/span&gt;&lt;span&gt; $&lt;/span&gt;&lt;span&gt;XDG_CONFIG_HOME&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;/tigervnc/passwd&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Edit &lt;code&gt;/etc/tigervnc/vncserver.users&lt;/code&gt; to define user mappings. &lt;strong&gt;Each user defined in this file will have a corresponding port on which its session will run&lt;/strong&gt;. The number in the file corresponds to a TCP port. By default, &lt;strong&gt;:1 is TCP port 5901 (5900+1)&lt;/strong&gt;. If another parallel server is needed, a second instance can then run on the next highest, free port, i.e. 5902 (5900+2).&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;/etc/tigervnc/vncserver&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;:1=alireza&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Create $XDG_CONFIG_HOME/tigervnc/config and at a minimum, define the type of session desired with a line like session=foo where foo corresponds to whichever desktop environment is to run. One can see which desktop environments are available on the system by seeing their corresponding .desktop files within /usr/share/xsessions/. For example:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;plain&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;$XDG_CONFIG_HOME/tigervnc/config&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;---&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;session=i3&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;geometry=1400x1050+0+0&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;passwd-file=$XDG_CONFIG_HOME/tigervnc/config&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;FrameRate=30&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;localhost&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;alwaysshared&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: Notice the &lt;code&gt;geometry&lt;/code&gt;. &lt;strong&gt;1400x1050 is roughly the resolution of my E-ink display&lt;/strong&gt;, that my computer display also supports, while &lt;code&gt;+0+0&lt;/code&gt; tells the coordinates of the screen (xrandr things). So this means that &quot;Share a 1400x1050 view of my screen, starting from position 0, 0 (top left corner)&quot;. &lt;strong&gt;This makes the screen fit perfectly within the tablet&#39;s display with no borders and use as much screen as possible.&lt;/strong&gt; You could just go with your original resolution and get more borders.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: the &lt;code&gt;tigervnc/config&lt;/code&gt; file is used for &lt;code&gt;vncserver&lt;/code&gt;. we will be using &lt;code&gt;x0vncserver&lt;/code&gt; which needs these options passed to it directly (more on that later).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: you must change the resolution of your computer screen to 1400x1050, or whatever you set in &lt;code&gt;geometry&lt;/code&gt;.&lt;/p&gt;
&lt;h3 id=&quot;run-x0vncserver-directly&quot;&gt;Run x0vncserver directly&lt;a class=&quot;zola-anchor&quot; href=&quot;#run-x0vncserver-directly&quot; aria-label=&quot;Anchor link for: run-x0vncserver-directly&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Now to quickly test.&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;x0vncserver&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-PasswordFile&lt;/span&gt;&lt;span&gt; $&lt;/span&gt;&lt;span&gt;HOME&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;/.config/tigervnc/passwd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-Geometry&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; 1400x1050+0+0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-FrameRate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#FE640B, #FAB387);&quot;&gt; 30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-AlwaysShared&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-SendCutText=false&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-SendPrimary=false&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-AcceptCutText=false&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: We are passing all the configurations we want directly to &lt;code&gt;x0vncserver&lt;/code&gt; because it &lt;em&gt;doesn&#39;t read&lt;/em&gt; from &lt;code&gt;.config/tigervnc/config&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: The only mandatory option is &lt;code&gt;-PasswordFile&lt;/code&gt;. The rest are optional, see what suits you: &lt;code&gt;man x0vncserver&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Running the above command will also output on which port it is listening on (default is 5900).\&lt;/li&gt;
&lt;li&gt;Open the port in your firewall if needed.\&lt;/li&gt;
&lt;li&gt;Now connect from the client (Android E-ink table) with AVNC(or any VNC client) to the IP and port (e.g. 192.168.0.50:5900).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Of course, both devices need to be reachable within their network connections.&lt;/p&gt;
&lt;h3 id=&quot;running-x0vncserver-automatically&quot;&gt;Running x0vncserver automatically&lt;a class=&quot;zola-anchor&quot; href=&quot;#running-x0vncserver-automatically&quot; aria-label=&quot;Anchor link for: running-x0vncserver-automatically&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;There are a couple of ways to do this, listed in the &lt;a rel=&quot;external&quot; href=&quot;https://wiki.archlinux.org/title/TigerVNC#Running_x0vncserver_to_directly_control_the_local_display&quot;&gt;Arch wiki&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;running-things-in-a-script&quot;&gt;Running things in a script&lt;a class=&quot;zola-anchor&quot; href=&quot;#running-things-in-a-script&quot; aria-label=&quot;Anchor link for: running-things-in-a-script&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;I will just use a simple script to go into my &quot;e-ink mode&quot;, so I can quickly run it from my &lt;code&gt;rofi&lt;/code&gt; script runner.
You can probably find the script &lt;a rel=&quot;external&quot; href=&quot;https://codeberg.org/alirezaalavi/dotfiles/src/branch/main/i3-config/.config/scripts/e-ink-vncserver.sh&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It looks something like this:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);font-style: italic;&quot;&gt;#!&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);font-style: italic;&quot;&gt;/usr/bin/env sh&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;PRIMARY_DISPLAY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;xrandr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;-listactivemonitors&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt; sed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;2q;d&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt; cut&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: light-dark(#FE640B, #FAB387);&quot;&gt; 6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;SECONDARY_DISPLAY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt;`&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;xrandr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;-listactivemonitors&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt; sed&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; &amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;3q;d&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;&amp;#39;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt; |&lt;/span&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt; cut&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;d&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;color: light-dark(#FE640B, #FAB387);&quot;&gt; 6&lt;/span&gt;&lt;span style=&quot;color: light-dark(#179299, #94E2D5);&quot;&gt;`&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);font-style: italic;&quot;&gt; Set display size to the same size as the e-ink display&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;xrandr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;-output&lt;/span&gt;&lt;span&gt; $&lt;/span&gt;&lt;span&gt;PRIMARY_DISPLAY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;-mode&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; 1400x1050&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);font-style: italic;&quot;&gt; Adjust secondary display to position to the right of the first screen&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;xrandr&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;-output&lt;/span&gt;&lt;span&gt; $&lt;/span&gt;&lt;span&gt;SECONDARY_DISPLAY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; -&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;-right-of&lt;/span&gt;&lt;span&gt; $&lt;/span&gt;&lt;span&gt;PRIMARY_DISPLAY&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: light-dark(#7C7F93, #9399B2);font-style: italic;&quot;&gt; Start the x0vncserver session&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;x0vncserver&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-PasswordFile&lt;/span&gt;&lt;span&gt; $&lt;/span&gt;&lt;span&gt;HOME&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt;/.config/tigervnc/passwd&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-Geometry&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; 1400x1050+0+0&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-FrameRate&lt;/span&gt;&lt;span style=&quot;color: light-dark(#FE640B, #FAB387);&quot;&gt; 30&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-AlwaysShared&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-SendCutText=false&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-SendPrimary=false&lt;/span&gt;&lt;span style=&quot;color: light-dark(#EA76CB, #F5C2E7);&quot;&gt; \&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;giallo-l&quot;&gt;&lt;span&gt;-AcceptCutText=false&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;endnotes&quot;&gt;Endnotes&lt;a class=&quot;zola-anchor&quot; href=&quot;#endnotes&quot; aria-label=&quot;Anchor link for: endnotes&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://news.ycombinator.com/item?id=46205089&quot;&gt;Discuss this post on Hackernews&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you feel like you have to encrypt your VNC connection, see &lt;a rel=&quot;external&quot; href=&quot;https://wiki.archlinux.org/title/TigerVNC#recommended_security_settings&quot;&gt;arch wiki&lt;/a&gt;. I don&#39;t think it is needed for me since I am using this at home or work, there aren&#39;t many threats.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use a light theme for Neovim and other things when using with E-ink. The &lt;code&gt;shine&lt;/code&gt; theme that is installed by default is pretty sweet: &lt;code&gt;:colorshceme shine&lt;/code&gt; or just try &lt;code&gt;:set background=light&lt;/code&gt; on different themes! But it&#39;s best the theme is high contrast and has true white background (not gray or something).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The BOOX Air2 has different &quot;refresh modes&quot; in it&#39;s &quot;E-ink center&quot;: normal, regal, speed, A2, X&lt;br /&gt;
These are horribly named, So here is the description from the manual:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Normal Mode (Default): Good display effect, suitable for ordinary text
reading.&lt;br /&gt;
Speed Mode: Slight ghosting and aliasing effect, suitable for thumbing
through eBooks with text and images.&lt;br /&gt;
A2 Mode: Slightly heavier ghosting and aliasing effect, suitable for
browsing images and text by quick sliding.&lt;br /&gt;
X Mode: Heaviest ghosting and aliasing effect accompanying detail
loss, suitable for browsing websites and video playback.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;From my usage, &lt;strong&gt;for reading text &quot;normal&quot; is great&lt;/strong&gt;. But don&#39;t scroll around too much. Try to &lt;strong&gt;use &lt;kbd&gt;PageUp&lt;/kbd&gt; and &lt;kbd&gt;PageDown&lt;/kbd&gt;&lt;/strong&gt;&lt;br /&gt;
For writing though, &quot;normal&quot; is not really usable. &lt;strong&gt;Use the &quot;Speed&quot; or &quot;A2&quot;mode for writing&lt;/strong&gt;. The ghosting makes them less than ideal for reading, but they are still OK.&lt;br /&gt;
The &quot;X&quot; mode gives you lower quality but higher refresh rate and less latency. I think &lt;strong&gt;X mode is great for using your tablet as a drawing tablet&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

        </content>
        
    </entry>
    <entry xml:lang="en">
        <title>My Checklist And Tips For Server Setup</title>
        <published>2025-02-21T00:00:00+00:00</published>
        <updated>2025-07-27T00:00:00+00:00</updated>
        
        <author>
          <name>
            Alireza Alavi
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://alavi.me/blog/my-server-setup-checklist/"/>
        <id>https://alavi.me/blog/my-server-setup-checklist/</id>
        
        
        <content type="html" xml:base="https://alavi.me/blog/my-server-setup-checklist/">
            
            &lt;p&gt;Disclaimer: I&#39;m by no means a professional systems administrator or DevOps engineer. I&#39;m a software engineer that works a lot on servers.&lt;/p&gt;
&lt;p&gt;These are just how I do things. Maybe not necessarily the best way or even the correct way. But I will be updating and refining this post as I learn more (or post them in separate new posts).&lt;/p&gt;
&lt;p&gt;I will be very happy if you share your own tips and tricks with me(&lt;a rel=&quot;external&quot; href=&quot;https://alavi.me/contact&quot;&gt;contact me&lt;/a&gt;)&lt;/p&gt;
&lt;h2 id=&quot;linux-distribution-preferences&quot;&gt;Linux distribution preferences&lt;a class=&quot;zola-anchor&quot; href=&quot;#linux-distribution-preferences&quot; aria-label=&quot;Anchor link for: linux-distribution-preferences&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;If I want to work with a server with more than 4GiB of ram and I know that there will be many use cases for that server, I will go with &lt;a rel=&quot;external&quot; href=&quot;https://debian.org&quot;&gt;Debian Linux&lt;/a&gt;. It is true and tested, stable and has good community support and resources for server use cases.&lt;/p&gt;
&lt;p&gt;If the server is limited on resources, and it will be used for specific things like only containerization or only a single service, I will go with &lt;a rel=&quot;external&quot; href=&quot;https://alpinelinux.org&quot;&gt;Alpine Linux&lt;/a&gt;. It is super lightweight and the package manager &lt;code&gt;apk&lt;/code&gt; is so fast, it&#39;s unbelievable.&lt;/p&gt;
&lt;p&gt;But for most cases, for the checklist and tips here the Linux distribution doesn&#39;t matter that much. So let&#39;s get started.&lt;/p&gt;
&lt;h2 id=&quot;first-tools-to-install&quot;&gt;First tools to install&lt;a class=&quot;zola-anchor&quot; href=&quot;#first-tools-to-install&quot; aria-label=&quot;Anchor link for: first-tools-to-install&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;You can install all the tools on debian with this command:&lt;/p&gt;
&lt;pre class=&quot;giallo&quot; style=&quot;color-scheme: light dark; color: light-dark(#4C4F69, #CDD6F4); background-color: light-dark(#EFF1F5, #1E1E2E);&quot; &gt;&lt;code data-lang=&quot;shellscript&quot;&gt;&lt;span class=&quot;giallo-l&quot;&gt;&lt;span style=&quot;color: light-dark(#1E66F5, #89B4FA);font-style: italic;&quot;&gt;sudo&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; apt&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; install&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; neovim&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; tmux&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; nnn&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; lnav&lt;/span&gt;&lt;span style=&quot;color: light-dark(#40A02B, #A6E3A1);&quot;&gt; btop&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&quot;neovim&quot;&gt;neovim&lt;a class=&quot;zola-anchor&quot; href=&quot;#neovim&quot; aria-label=&quot;Anchor link for: neovim&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;There is no way I am editing any text without my &lt;a rel=&quot;external&quot; href=&quot;https://neovim.io&quot;&gt;neovim&lt;/a&gt;. When you have a good editor that you are efficient with, editing config files and searching around the server becomes so much faster and less tiring.&lt;/p&gt;
&lt;h3 id=&quot;tmux&quot;&gt;Tmux&lt;a class=&quot;zola-anchor&quot; href=&quot;#tmux&quot; aria-label=&quot;Anchor link for: tmux&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/tmux/tmux&quot;&gt;Tmux&lt;/a&gt; is an absolute life saver when SSH-ing into servers. The fact that you might get disconnected from the SSH server and don&#39;t lose any work is amazing, The way it lets you have multiple panes and windws and sessions is amazing, it just makes working on servers so much easier and more enjoyable. I hate the default tmux keymaps, so I always import &lt;a rel=&quot;external&quot; href=&quot;https://codeberg.org/alirezaalavi/dotfiles&quot;&gt;my own config&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; You can also use &lt;a rel=&quot;external&quot; href=&quot;https://wezterm.org&quot;&gt;Wezterm&lt;/a&gt; for multiplexing. Using &lt;code&gt;wezterm ssh &amp;lt;user&amp;gt;@&amp;lt;domain/ip&amp;gt;&lt;/code&gt; will multiplex the SSH connection, but if a Wezterm daemon isn&#39;t installed and running on the host, The sessions will get destroyed. So this isn&#39;t as good as the Tmux method, since even with the daemon you have to install wezterm on both the client and the host. But it&#39;s good for simple sessions that don&#39;t have Tmux installed.&lt;/p&gt;
&lt;h3 id=&quot;btop&quot;&gt;btop&lt;a class=&quot;zola-anchor&quot; href=&quot;#btop&quot; aria-label=&quot;Anchor link for: btop&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Yes, &lt;code&gt;htop&lt;/code&gt; is cool and all, but honestly the usability and information that btop provides is on another level. I install &lt;a rel=&quot;external&quot; href=&quot;https://github.com/aristocratos/btop&quot;&gt;btop&lt;/a&gt; on anything I use, and it is the only &quot;task manager&quot; that I need.&lt;/p&gt;
&lt;h3 id=&quot;nnn&quot;&gt;nnn&lt;a class=&quot;zola-anchor&quot; href=&quot;#nnn&quot; aria-label=&quot;Anchor link for: nnn&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;Exploring files on a server can be a real pain, so I always install &lt;code&gt;nnn&lt;/code&gt; to easily navigate and manipulate files and directories on my servers.&lt;/p&gt;
&lt;p&gt;I used to use &lt;a rel=&quot;external&quot; href=&quot;https://ranger.fm/&quot;&gt;ranger&lt;/a&gt; but the instability of python and constant bugs and crashes really got on my nerves. I realized why you really shouldn&#39;t make TUI/CLI tools with python. &lt;a rel=&quot;external&quot; href=&quot;https://github.com/jarun/nnn&quot;&gt;nnn&lt;/a&gt; is much more stable and written in C.&lt;/p&gt;
&lt;p&gt;I also looked into &lt;a rel=&quot;external&quot; href=&quot;https://github.com/sxyazi/yazi&quot;&gt;yazi&lt;/a&gt; but it really doesn&#39;t seem stable(I don&#39;t care that it&#39;s written in Rust) and the development approach doesn&#39;t seem to have stability and simplicity in mind(it&#39;s on version 25 and had 25 releases. A major release with every release!)&lt;/p&gt;
&lt;h3 id=&quot;lnav&quot;&gt;lnav&lt;a class=&quot;zola-anchor&quot; href=&quot;#lnav&quot; aria-label=&quot;Anchor link for: lnav&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;No more &lt;code&gt;cat&lt;/code&gt; and &lt;code&gt;tail&lt;/code&gt; for logs. Super useful for navigating logs and debugging.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://lnav.org/&quot;&gt;lnav&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;firewalld&quot;&gt;firewalld&lt;a class=&quot;zola-anchor&quot; href=&quot;#firewalld&quot; aria-label=&quot;Anchor link for: firewalld&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;NOTE: &lt;code&gt;ufw&lt;/code&gt; does not work with docker and docker bypasses the firewall. (see &lt;a rel=&quot;external&quot; href=&quot;https://github.com/docker/for-linux/issues/690&quot;&gt;github issue&lt;/a&gt;) although you can use a tool like &lt;a rel=&quot;external&quot; href=&quot;https://github.com/chaifeng/ufw-docker&quot;&gt;ufw-docker&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE: Remember to configure firewall for docker&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;NOTE: It&#39;s much better to use podman in production&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These below articles provide good information on this matter
https://docs.docker.com/engine/network/packet-filtering-firewalls/&lt;/p&gt;
&lt;p&gt;https://dev.to/soerenmetje/how-to-secure-a-docker-host-using-firewalld-2joo&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://firewalld.org/&quot;&gt;firewalld&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;honorable-mentions&quot;&gt;honorable mentions&lt;a class=&quot;zola-anchor&quot; href=&quot;#honorable-mentions&quot; aria-label=&quot;Anchor link for: honorable-mentions&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;trash-cli&lt;/code&gt; on a server might sound strange, but honestly I think it&#39;s just good practice to use &lt;code&gt;rm&lt;/code&gt; less and less. Why take unneeded risks?
Recently, I accidentally ran &lt;code&gt;rm -rf /*&lt;/code&gt; instead of &lt;code&gt;rm -rf ./*&lt;/code&gt; and made a pinky promise to myself that I will only use &lt;code&gt;trash&lt;/code&gt; from now on. There isn&#39;t a downside that I can think of. Only more safety.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;rsync&lt;/code&gt; can be very useful if you want to transfer lots of files, much faster and better than &lt;code&gt;scp&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;server-configurations&quot;&gt;Server configurations&lt;a class=&quot;zola-anchor&quot; href=&quot;#server-configurations&quot; aria-label=&quot;Anchor link for: server-configurations&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Update and upgrade the server&lt;/li&gt;
&lt;li&gt;Set datetime and timezone&lt;/li&gt;
&lt;li&gt;Setup firewall
&lt;ul&gt;
&lt;li&gt;Allow ssh port&lt;/li&gt;
&lt;li&gt;Deny all incoming, allow all outgoing&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Setup SSH
&lt;ul&gt;
&lt;li&gt;Copy ssh key to server:
&lt;code&gt;ssh-copy-id -i ~/.ssh/[key name].pub [user]@[server ip]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;disable root login&lt;/li&gt;
&lt;li&gt;enable ssh-key auth&lt;/li&gt;
&lt;li&gt;disable password auth&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Make sure swap is enabled&lt;/li&gt;
&lt;li&gt;Set hostname&lt;/li&gt;
&lt;li&gt;Enable and configure &lt;code&gt;unattended-upgrades&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://wiki.debian.org/UnattendedUpgrades&quot;&gt;debian wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sudo apt install unattended-upgrades apt-listchange&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit &lt;code&gt;/etc/apt/apt.conf.d/50unattended-upgrades&lt;/code&gt; to send emails on upgrades and errors (&lt;strong&gt;setup a mail server&lt;/strong&gt;)&lt;/li&gt;
&lt;li&gt;Enable automatic upgrades &lt;code&gt;sudo dpkg-reconfigure -plow unattended-upgrades&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;tips&quot;&gt;Tips&lt;a class=&quot;zola-anchor&quot; href=&quot;#tips&quot; aria-label=&quot;Anchor link for: tips&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h2&gt;
&lt;h3 id=&quot;neovim-as-terminal-multiplexer&quot;&gt;Neovim as terminal multiplexer&lt;a class=&quot;zola-anchor&quot; href=&quot;#neovim-as-terminal-multiplexer&quot; aria-label=&quot;Anchor link for: neovim-as-terminal-multiplexer&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;When you realize that 90% of the work that you do on a server can be achieved from a neovim session, It really makes things a lot easier.
You can use the &lt;code&gt;netrw&lt;/code&gt; file explorer built within vim to explore files, use &lt;code&gt;:term&lt;/code&gt; for a terminal within your neovim, and create splits (&lt;code&gt;C-w&lt;/code&gt;) and tabs (&lt;code&gt;:tabnew&lt;/code&gt;). So if you have a raw server with only vim, you have most of the things that you need right there. The tools that I listed prior are super useful and make things a lot easier and better, but if you want to keep it minimal, a lot can be done with just vim.
&lt;strong&gt;Remember that more complete multiplexers like &lt;code&gt;tmux&lt;/code&gt; also have sessions, meaning you can disconnect from the SSH and reconnect later and don&#39;t lose any work.&lt;/strong&gt;&lt;/p&gt;
&lt;h3 id=&quot;consider-podman-instead-of-docker&quot;&gt;Consider podman instead of docker&lt;a class=&quot;zola-anchor&quot; href=&quot;#consider-podman-instead-of-docker&quot; aria-label=&quot;Anchor link for: consider-podman-instead-of-docker&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://podman.io/&quot;&gt;Podman&lt;/a&gt; has a lot of benefits over docker.
I haven&#39;t tested podman in serious conditions yet, but it seems like it is pretty mature. If feasible, it is a more desirable option.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.redhat.com/en/blog/5-reasons-choose-podman-2025&quot;&gt;5 reasons to choose podman in 2025 - redhat&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.geeky-gadgets.com/podman-vs-docker-comparison/&quot;&gt;podman vs docker comparison - geekygadgets&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.simplehomelab.com/docker-to-podman-migration-guide/&quot;&gt;ultimate docker to podman migration guide&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;external&quot; href=&quot;https://developers.redhat.com/blog/2020/11/19/transitioning-from-docker-to-podman&quot;&gt;how to transition from docker to podman&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;consider-automation&quot;&gt;Consider automation&lt;a class=&quot;zola-anchor&quot; href=&quot;#consider-automation&quot; aria-label=&quot;Anchor link for: consider-automation&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;If you setup a lot of servers(I don&#39;t. Maybe 10/year) consider automating your repetitive tasks. Automation can be achieved with tools like &lt;a rel=&quot;external&quot; href=&quot;https://ansible.com&quot;&gt;Ansible&lt;/a&gt; or simple bash/sh scripts.&lt;/p&gt;
&lt;h3 id=&quot;backups-and-snapshots&quot;&gt;Backups and snapshots&lt;a class=&quot;zola-anchor&quot; href=&quot;#backups-and-snapshots&quot; aria-label=&quot;Anchor link for: backups-and-snapshots&quot;&gt;&lt;i class=&quot;icon&quot;&gt;&lt;/i&gt;&lt;/a&gt;
&lt;/h3&gt;
&lt;p&gt;You don&#39;t notice that backups are important until you need them.&lt;/p&gt;
&lt;p&gt;Try to keep the 3-2-1 principle in mind:&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Three&lt;/strong&gt; copies of your data: Your three copies include your original or production data plus two more copies.&lt;/li&gt;
&lt;li&gt;On &lt;strong&gt;two&lt;/strong&gt; different media: You should store your data on two different forms of media. This means something different today than it did in the late 2000s. I’ll talk a little more about this in a bit.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One&lt;/strong&gt; copy off-site: You should keep one copy of your data off-site in a remote location, ideally more than a few miles away from your other two copies.&lt;a rel=&quot;external&quot; href=&quot;https://www.backblaze.com/blog/the-3-2-1-backup-strategy/&quot;&gt;[source]&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;I finally realized that for taking backups, you don&#39;t have strict how-tos. It very much depends on your use case and situation. Just be sure that you take backups from parts of the system that you can&#39;t afford to lose.&lt;/p&gt;
&lt;p&gt;You also most likely will need custom bash scripts for taking backups, depending on the services running on the server. So don&#39;t try to find a &quot;do it all&quot; tool that just magically &quot;does backups&quot;.&lt;/p&gt;
&lt;p&gt;Here are some good tools that can help the backup process:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://github.com/linuxmint/timeshift&quot;&gt;timeshift&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https://www.borgbackup.org/&quot;&gt;Borg backup&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

        </content>
        
    </entry>
    <entry xml:lang="en">
        <title>How to record meetings with high quality with light software on Linux (Easyeffects + SSR)</title>
        <published>2024-08-28T00:00:00+00:00</published>
        <updated>2024-08-28T00:00:00+00:00</updated>
        
        <author>
          <name>
            Alireza Alavi
          </name>
        </author>
        
        <link rel="alternate" type="text/html" href="https://alavi.me/blog/easyeffects-with-simplescreenrecorder/"/>
        <id>https://alavi.me/blog/easyeffects-with-simplescreenrecorder/</id>
        
        
        <content type="html" xml:base="https://alavi.me/blog/easyeffects-with-simplescreenrecorder/">
            
            &lt;p&gt;NOTE: Helvum is a tool for &lt;a rel=&quot;external&quot; href=&quot;https://www.pipewire.org/&quot;&gt;Pipewire&lt;/a&gt; so this doesn&#39;t apply
to systems that only use PulseAudio.&lt;/p&gt;
&lt;p&gt;I was having problems with using &lt;a rel=&quot;external&quot; href=&quot;https://github.com/MaartenBaert/ssr&quot;&gt;Simple Screen Recorder(SSR)&lt;/a&gt;
for recording meetings. Either the input voice from my microphone wouldn&#39;t be recorded,
or the system sound from my sound card wouldn&#39;t be recorded.&lt;/p&gt;
&lt;p&gt;I fixed it by using &lt;a rel=&quot;external&quot; href=&quot;https://gitlab.freedesktop.org/pipewire/helvum&quot;&gt;Helvum&lt;/a&gt; to connect
the output of my microphone, directly to the input of SSR.&lt;/p&gt;
&lt;p&gt;And while at it, why not use &lt;a rel=&quot;external&quot; href=&quot;https://github.com/wwmm/easyeffects&quot;&gt;Easyeffects&lt;/a&gt;
to get a good quality recording?&lt;/p&gt;
&lt;p&gt;My preferred recording setup:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Set input profile of SSR &amp;gt; Audio input &amp;gt; Backend: PulseAudio , Source: Monitor of Built-in Audio Analog Stereo (or monitor of your preferred output device)&lt;/li&gt;
&lt;li&gt;For meetings. I also like to scale to video down. More than HD is overkill for a meeting or conference recording in most cases.&lt;/li&gt;
&lt;li&gt;Set Output profile of SSR &amp;gt; Video &amp;gt; Codec: Other &amp;gt; Codec name: libx265 (the default is H.246)&lt;/li&gt;
&lt;li&gt;Connect &quot;Easyeffect Source&quot; capture channels to &quot;SimpleScreenRecorder&quot; input channels in Helvum&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now the recording consists of your enhanced(denoised, reverb, pitch corrected or whatever you like),
plus the sounds coming from your system(your peers talking in a meeting or discord, your game, etc.)&lt;/p&gt;
&lt;p&gt;Here is how it looks in Helvum:&lt;/p&gt;
&lt;img class=&quot;&quot; alt=&quot;Image of my Helvum patchbay for achieving this setup&quot; src=&quot;Screenshot_2024-08-28_11-51-17.png&quot; /&gt;
&lt;p&gt;NOTE: I installed Helvum from the arch repos but the recommended way(due to Helvum&#39;s docs) is flatpak.&lt;/p&gt;
&lt;p&gt;NOTE: I use &quot;Deep Noise Remover(&lt;a rel=&quot;external&quot; href=&quot;https://github.com/Rikorose/DeepFilterNet&quot;&gt;DeepFilterNet&lt;/a&gt;)&quot; in Easyeffects for noise canceling. It works really good, specially in
very noisy environments. I installed it using using arch&#39;s &lt;a rel=&quot;external&quot; href=&quot;https://aur.archlinux.org/packages/libdeep_filter_ladspa-bin&quot;&gt;AUR package&lt;/a&gt;
but there are other ways to install it (&lt;a rel=&quot;external&quot; href=&quot;https://github.com/Rikorose/DeepFilterNet/blob/main/ladspa/README.md&quot;&gt;docs&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I don&#39;t think this is necessarily the best way to record things, but it works well enough for me.
SSR is very lightweight compared to things like OBS, and Easyeffects is great for controlling and enhancing
the sound of your input and output sounds.&lt;/p&gt;

        </content>
        
    </entry>
</feed>
