Unix Tips

Contents

iTerm 2

NordVPN

Setup

  1. Install OpenVPN: sudo dnf install openvpn
  2. Go to /etc/openvpn
  3. sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
  4. sudo unzip ovpn.zip
  5. sudo rm *.zip

Connecting to NordVPN

  1. Go to https://nordvpn.com/servers/ and select "Recommend Server"
  2. cd /etc/openvpn/ovpn_udp
  3. sudo openvpn <recommended_server>.udp.ovpn
    • If you're on a network that doesn't allow UDP connections, you can try the same thing in /etc/openvpn/ovpn_tcp and <recommended_server>.tcp.ovpn

RTorrent

ImageMagick

Create a PNG image with some text

convert -background none -font <font_name>.ttf -fill black -pointsize 150 -size "256x256" -gravity center label:"<text>" <output_file_name>.png

Change image formats:

convert file.<input extension> file.<output extension>

Tmux

Shell

List only directories

Get the current time in milliseconds

Get the nth line of a file

Aliases

Local Web Server

Manual IP Address Configuration

Configure Passwordless Logins

DC Calculator

List all installed packages on Fedora

Select a random value

MPV

rsync

Hostname

GNU Find

GNU Grep

Synaptics touchapd customization:

Automatically set up power management:

  1. Install PowerTop: sudo dnf install powertop
  2. Create the following systemd init file:
      [Unit]
      Description=PowerTop Auto Tune
    
      [Service]
      Type=idle
      Environment="TERM=dumb"
      ExecStart="/usr/sbin/powertop --auto-tune"
    
      [Install]
      WantedBy=multi-user.target
    
    

cURL

RPM Fusion repo:

Clipboard

WeeChat setup with weechat.el

Clojure setup