Tips for better Linux experience as a dev.

Table of contents

No heading

No headings in the article.

These tips are from my own experience.

Add a backup method.

I currently use a program called rclone to backup my stuff. I didn't want to install multiple programs for each cloud provider like Drive, Dropbox, also there is not much support in case of Linux. I found rclone to be highly customisable and easy to setup.

I have a script which I run every other day, you can run it manually or set up a cronjob.

#!/bin/bash

/usr/bin/rclone copy -L --update \
         --verbose --transfers 30  \
         --checkers 8 --contimeout 60s \
         --timeout 300s --retries 3 \
         --low-level-retries 10 --stats 1s \
         --max-size "50M" --exclude="**.mp4" \
         --exclude="**.mov" --exclude="**.mkv" \
         --exclude="**.m4v" --exclude="**.pgm" \
         --exclude="env/**" --exclude="__pycache__/**" \
         --exclude="node_modules/**" --exclude=".git/**" \
          "path" "google-drive:Notes"

Check this article on how to configure it on Linux - howtogeek.com/451262/how-to-use-rclone-to-b...

Backup your configs.

Now vscode has added it's own sync which is connected your Github or MS Live account. For other editors you can find their config files and add it to the rclone !

Use scripting to automate your tasks.

You can use scripting languages such as Python or Bash to make functions that can be executed by you. Later you can add aliases to .bashrc file to run those files.

This will let you avoid writing same stuff again.

I also found this scripting kit recently, this might be good enough too - scriptkit.com

Add a script for first time setup of your OS.

This script will remove programs that are not used by you and install useful ones. I have a script which is inspired by John Hammond's - github.com/JohnHammond/archlinux/blob/maste.. (s/o - checkout his yt if you are into cybersec!)

Tweak your terminal

Terminal is the most useful to any linux user, checkout ezprompt.net to customise your terminal.

Thank you for reading!

gajraj.dev