Skip to content

Instantly share code, notes, and snippets.

View sidmulajkar's full-sized avatar

Siddhant Mulajkar sidmulajkar

View GitHub Profile
@sidmulajkar
sidmulajkar / how-to-install-nodejs-npm-on-linux.md
Last active December 5, 2023 17:20
How to Install nodejs-npm on Linux System

How to install Install Nodejs on Linux using Snapd,apt or manually installing the binary

I had started installing node using apt but couldn't install as I had some missing dependencies and after installing those missing dependencies then also had the same issue, so tried other ways to install nodejs.

Missing Dependencies on my install:

sid@sid:~$ sudo apt install nodejs npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
@sidmulajkar
sidmulajkar / enable-ech-in-browsers.md
Last active April 16, 2024 19:03
enable-ech-sni-in-chromium-browsers-like-brave-chrome-firefox
@sidmulajkar
sidmulajkar / searxng-meta-search-engine.md
Last active October 17, 2022 19:55
How to use Searxng Meta Search Engine without docker

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled as we are hosting it.

This meta search can be hosted on cloud or on raspberrypi or simple VM Instances as well using docker

  1. Clone the Searxng Repository
$ cd ~/Downloads
$ git clone https://github.com/searxng/searxng.git searxng
$ cd searxng
@sidmulajkar
sidmulajkar / wireguard-issue-connecting.md
Created October 10, 2022 18:18
/usr/bin/wg-quick: line 32: resolvconf: command not found

/usr/bin/wg-quick: line 32: resolvconf: command not found

This issue is caused while using the Wireguard in Ubuntu as the installation doesn't come with resolvconf or openresolv

Problem

sid@sid:~$ sudo wg-quick up /etc/wireguard/abc.conf
[sudo] password for sid: 
[#] ip link add abc type wireguard
[#] wg setconf abc /dev/fd/63
@sidmulajkar
sidmulajkar / how-to-run-tor-middle-relay.md
Created October 2, 2022 14:37
How to run a tor relay network

1. Enable Automatic Software Updates

One of the most important things to keep your relay secure is to install security updates timely and ideally automatically so you can not forget about it. Follow the instructions to enable automatic software updates for your operating system.

2. Configure Tor Project's Repository

Configuring the Tor Project's package repository for Debian/Ubuntu is documented here. Please follow those instructions before proceeding.

3. Package installation

@sidmulajkar
sidmulajkar / searxng-meta-search-engine.md
Created October 2, 2022 12:36
How to host a personal meta-search engine using docker

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled as we are hosting it.

This meta search can be hosted on cloud or on raspberrypi or simple VM Instances as well using docker

  1. Install docker and docker-compose

For ubuntu, mint and debian users

sudo apt update
@sidmulajkar
sidmulajkar / how-to-encrypt-and-decrypt-files-using-gpg.md
Last active October 1, 2022 19:53
How to encrypt and decrypt files using gpg
  1. First of all install GPG and in this gist I'm using Symmetric Encryption

On Ubuntu, Debian or Arch based systems

sudo apt install gpg 
or
sudo dnf install gpg
or
sudo pacman -S install gnupg
@sidmulajkar
sidmulajkar / how-to-automount-a-external-drive-on-linux-server.md
Last active October 1, 2022 16:58
How to automount a external drive in Linux Server

We can configure the USB drive so that it can be auto-mounted when plugged in.

  1. Insert the external USB drive to the linux server

  2. UUID (universal unique identifier) is used in Linux for the detection of the USB which is plugged in or for the identification of the partition used by the USB drive. Because of this we have to be a root user. We can be a root user by the sudo command, it will ask for a password.

  3. Use this command to list the disk or dirves connected

pi@raspberrypi:~ $ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT