Skip to content

linux

My Ubuntu Setup: From Barebones to a Productive Dev Environment

When I install a fresh Linux distribution like Ubuntu 24, I'm not just setting up a computer; I'm building a personal workspace. My goal is a clean, reliable, and portable development environment that can be replicated anywhere, from my local machine to a remote VPS.

A clean, minimalist desktop setup
Image generated using Google Gemini

This isn't just about a list of commands, it's a philosophy of intentionality. Every tool I choose, and every tool I leave behind, is a step toward a more efficient and less cluttered workflow.

This is my journey to a perfect setup, and it all starts with version control.

How to Set Up Remote Desktop Access from Linux to Windows 10 Using Remmina

Org.remmina.Remmina

Remote desktop access has become an essential feature in today's digital landscape, allowing users to connect to their computers from anywhere. While Windows users have built-in options for remote desktop access, Linux users often need to rely on third-party applications.

In this guide, we'll explore how to set up remote desktop access from a Linux system to a Windows 10 machine using Remmina.

Mastering Essential Linux Commands: Your Path to File and Directory Mastery

Introduction

This documentation aims to offer a comprehensive understanding of essential commands and techniques for file and directory management in a Linux environment. Mastering these commands is crucial for efficient navigation, manipulation, and analysis of files and directories.

We'll embark on a journey by delving into the foundational usage of key commands like wc, du, grep, awk, and find, uncovering their individual functionalities. Additionally, we'll explore how these commands can be combined using powerful methods such as pipes (|), -exec {} \;, or -exec {} +, unlocking their synergistic potential.

Moreover, to solidify your understanding, real-life examples showcasing practical applications will be demonstrated.

Setting Up Laravel Environment on Ubuntu

This guide will help you set up the necessary environment to run a Laravel application on an Ubuntu system.

So this document provides a step-by-step guide to set up Apache, PHP, MySQL/MariaDB, Composer, and phpMyAdmin for managing databases, while also ensuring MySQL root user password setup for a Laravel environment on Ubuntu.

Install Apache and PHP

  • Install Apache
sudo apt update 
sudo apt install apache2

Guide to Installing MySQL and Connecting to Databases

Introduction

MySQL is a popular relational database management system used for storing and managing data. To get started, you'll need to install MySQL, set it up, and then connect to databases. Here's a comprehensive guide to help you through the process.

Installation Process

To install MySQL, follow these steps:

  • update the package lists
sudo apt-get update
  • install MySQL
sudo apt-get install mysql-server

Run an application forever on linux made easy: Case of a javascript project

Introduction

If you're looking to turn your application into a background process, you have come to the right tutorial, always using the fastest way.

Instead of just writing theory, we we use a real world example i've worked on.

To run a Java application as a background process and keep it running forever, you can use a process manager like systemd on Linux. Here's how you can set up a systemd service to run your Java application:

Certainly! Here are the steps named as per their actions:

Step 1: Create Service File

Create a new systemd service file for your Java application using a text editor:

sudo nano /etc/systemd/system/myapp.service

Step 2: Configure Service

Paste the following configuration into the file, replacing <jar-file-name> with the name of your JAR file:

Step-by-Step Guide to Identifying and Terminating Processes on Specific Ports

Introduction

This markdown provides a step-by-step guide to identify and terminate processes running on a specific port, catering to both Unix-based and Windows systems.

Handling Processes on a Port

Suppose you encounter an OSError: [Errno 98] Address already in use error while trying to run an application that requires port 8000. This commonly happens when another process is already using the same port.

Method 1: Using curl to Test the Port

One way to check if a process is using port 8000 is by attempting to access it:

curl 127.0.0.1:8000