Install Chromium on Ubuntu 19.10+ from Debian instead of snap

As you might know, Ubuntu starting from 19.10 now ships with Chromium as a snap with no option to install it as a deb package. IMO, snap is still not polished enough to become default, having drawbacks like slow app first startup, integration issues sometimes, etc. I hope some …


Install Riot on Debian or Ubuntu or derivatives

  1. Add Riot repository to your system:
    echo "deb https://riot.im/packages/debian/ $(lsb_release -s -c) main" | sudo tee /etc/apt/sources.list.d/matrix-riot-im.list

  2. Import Riot repository signature key:
    curl -L https://riot.im/packages/debian/repo-key.asc | sudo apt-key add -

  3. Update repositories database and install Riot:
    sudo …


Install Shadowsocks proxy on Debian or Ubuntu

Server:

  • Install:
    sudo apt install shadowsocks-libev
  • Restore config from backup if you have one:
    sudo cp -a backup/etc/shadowsocks-libev /etc
    or just:
    sudo tee /etc/shadowsocks-libev/config.json << EOF
    {
        "server":"0.0.0.0",
        "server_port":8388,
        "local_port":1080,
        "password":"<password>",
        "timeout":60,
        "method":"chacha20-ietf-poly1305"
    }
    EOF
    
  • Disable server localhost access …

Connect VM to ZeroTier without ZeroTier client on it

This might be useful to connect e.g. Windows XP to ZeroTier network or other machines which you can't or don't want to install ZeroTier client to.

  1. Create ZeroTier network in control panel and join it on your host

  2. Allow Ethernet bridging for your host in control panel

    ZeroTier Control panel: Allow bridging

  3. In VM …


Reduce Akonadi memory usage to 40 MB

By default Akonadi uses MySQL and lots of agents, so total memory usage could be ~300-400MB right from the start. If you don't need all of its capabilities, there is a way to make it use less memory.

  1. Replace MySQL with SQLite:
    • sudo apt install akonadi-backend-sqlite
    • sed -i 's/^Driver …

Create persistent local SSH server forwarding with autossh

UPD: Just use ZeroTier — open source, cross-platform, secure and easy to use virtual LAN. Add your remote computers to a virtual network and connect to them as if they are in the same LAN. Connections are end-to-end encrypted and P2P, so you always get the best speed and latency possible …



Set up SSH key based authentication

SSH keys come in pairs: a public and a private key. It might be easier to think of them as a lock (public part) and key (private part). You add public key (lock) to the computer you want to connect to, and then you can connect from elswhere and unlock …


Set up support account

  1. Create user: sudo adduser support
  2. Let user execute commands as root: sudo adduser support sudo
  3. Switch to new user: sudo su support
  4. Set up user avatar:
    • Get avatar: cd; wget https://shevchuk.co/cog.png
    • Move it where system expects it: mv cog.png ~/.face
    • Make AccountsService aware of it …