Posts

Showing posts with the label Linux

Install Docker on Debian 12 (Bookworm)

Image
How to Install Docker on Debian Docker is a popular platform for developing, shipping, and running applications inside containers. This guide will show you how to install Docker on a Debian-based system. Step 1: Update the Package Index and Install Necessary Packages sudo apt-get update sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release Step 2: Add Docker’s Official GPG Key sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg Step 3: Set Up the Docker Repository echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null Step 4: Update the Package Index Again sudo apt-get update Step 5: Install Docker Engine, containerd, an...

Managing Multiple SSH Keys for Different Machines

Managing Multiple SSH Keys for Different Machines In today's interconnected world, it's common to access multiple remote machines via SSH. However, managing different SSH keys for various machines can be a bit challenging. This blog post will guide you through the process of generating and adding multiple SSH keys on a single computer, making your workflow seamless and efficient. Step 1: Generate SSH Keys To start, we'll generate a unique SSH key for each machine. Open your terminal and use the ssh-keygen command: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/id_rsa_machine1 ssh-keygen -t rsa -b 4096 -C "your_email@example.com" -f ~/.ssh/id_rsa_machine2 Replace machine1 and machine2 with appropriate identifiers for your machines. Step 2: Add SSH Keys to the SSH Agent Next, we need to add these keys to the SSH agent, which manages your SSH keys ...

Setting up Jupyter Lab integrated with Python, Julia, R on Windows Subsystem for Linux (Ubuntu)

Image
Every guy gotta favourite OS. But, due to some constraints, all can't use that all the time. Being a Linux user, I had to shift to Windows 10 because of the barrier by MS Office and Dual booting often doesn't work. A few weeks before I learned about Windows Subsystem for Linux and my experience was great. If you are Linux pro stuck in Windows, this could be a relief. Basically, you can run a well-designed minimal version of Ubuntu inside Windows 10. In this article, we will get familiar with, Activation of Windows Subsystem for Linux. Installation of Ubuntu (no GUI) using Microsoft App Store. Configuring Python3, Pip3 and Jupyter Lab. Installation of R in Ubuntu and integration of R with Jupyter Lab. Installation of Julia in Ubuntu along with Jupyter Lab integration. Accessing Windows files with Ubuntu. Installation of Windows Subsystem for Linux Windows don't ship with WSL by default, we need to install it via PowerShell.  Reference -  https://docs.microsoft.co...

How to configure Static IP for Raspberry Pi 3

Image
A raspberry pi is often accessed via SSH or VNC viewer. Attaching the set of Monitor, Keyboard and Mouse to Raspberry Pi is not always recommended. For accessing Raspberry Pi from a remote device we need to provide the following, 1. Username - Pi (by default) 2. Hostname or IP 3. Password configured for the user 'Pi' 4. Enabling SSH,VNC ports in Pi configuration If multiple devices are plugged into your network, there is a high probability for IP shifts. To avoid this it is often suggested getting a static IP for Raspberry Pi. Please follow following steps for enabling a static IP to your Raspberry Pi. 1. Login to the Raspberry Pi via SSH, From router's admin page(192.168.1.1) you will get the IPs of connected devices. Connect to the Raspberry Pi via SSH. For Example, My Pi's IP was 192.168.1.3 2. Modify /etc/dhcpcd.conf and add your desired IP, In my case, static IP I was preferring is 192.168.1.9. Add the following lines to the dhcpcd.conf fi...

How to root, flash twrp, unlock bootloader and install custom ROM via Linux

People often find difficulties in downloading and installing usb driver for their phone on Windows operating system. But if you are using Linux operating system then things are much simpler for you. This is a generic flow of customizing your android device. Advantages of using Ubuntu or any Linux distribution for rooting are, You don't need usb driver specific to your phone.  Linux generic driver supports all android devices. ​ADB and fastboot are readily available in Ubuntu's inventory. You could simply install those. Follow below steps for rooting or install custom ROM, Intsall ADB and fastboot in Linux Open a Terminal and install tools from your Linux repo, For Debian/Ubuntu users, sudo apt install android-tools-adb android-tools-fastboot  For Fedora/SUSE users, sudo yum install android-tools Download TWRP image and SuperSu zip TWRP - This opensource project allows us to install custom ROMs safely. Installing TWRP will enable option to root your d...

Popular posts from this blog

Flux vs Argo CD in GitOps

Understanding Swagger and OpenAPI Specifications

Install Docker on Debian 12 (Bookworm)

Adding Multiple SSH Keys to Your Raspberry Pi

Managing Multiple SSH Keys for Different Machines