Linux

Unlocking Linux on Windows: A Guide to Installing Ubuntu Using WSL 2 on Windows 11

Unlocking Linux on Windows: A Guide to Installing Ubuntu Using WSL 2 on Windows 11

Have you ever wondered how WSL 2 (Windows Subsystem for Linux) lets developers use a Linux-like environment right on Windows? It's quite intriguing! It provides a simple way to set up Laravel, PHP, Python, Node.js, Vue.js, React.js, and many more for development. Let's explore how to get started quickly. Step 1: Enable Virtualization in BIOS Restart your computer and enter the BIOS/UEFI settings (usually by pressing F2, Delete, or Esc during boot). Look for an option like Intel Virtualization Technology, AMD-V, or SVM Mode under the processor or advanced settings. Enable the option and save changes. Restart your system. Check…
Read More
Bash Scripting from Beginner to Advanced: A Step-by-Step Guide

Bash Scripting from Beginner to Advanced: A Step-by-Step Guide

Bash scripting is a powerful way to automate tasks and streamline command-line operations. Whether you're new to scripting or looking to expand your skills, this guide will take you on a journey from the fundamentals of Bash scripting to more advanced topics, such as file operations, conditional statements, loops, and more. By the end, you'll have a solid foundation for creating, managing, and enhancing scripts to make your command-line work more efficient and effective Table of Contents Introduction to Bash Scripting Getting Started: Writing Your First Script Working with Variables Conditional Statements Loops in Bash Creating, Moving, and Deleting Files…
Read More
Why Both return and exit() Work in main()

Why Both return and exit() Work in main()

In C programming, there are two ways to terminate a program from the main function: using return and using exit(). int main() { printf("Hello, World!"); return 0; // Method 1: Normal termination } int main() { printf("Hello, World!"); exit(0); // Method 2:Normal termination } Enter fullscreen mode Exit fullscreen mode Why can both methods terminate the program correctly, even though they appear completely different?In this article, we'll unravel this mystery by understanding how C programs actually start and terminate.Note that this article focuses on the implementation in GNU/Linux environments, specifically using glibc. First, let's examine how the exit function works…
Read More
Apex Legends is no longer available for the Steam Deck

Apex Legends is no longer available for the Steam Deck

Valve’s Steam Deck has proven to be an enormous success, but the custom Linux-based OS has always been a thorn in the side of certain developers. Some have alleged that it gives nefarious players easier ways to cheat, which is why popular battle royale games like Valorant, PUBG and Fortnite aren’t available for the console. We can add Apex Legends to that pile, as EA just announced its withdrawing both Steam Deck and Linux support.“In our efforts to combat cheating in Apex, we’ve identified Linux OS as being a path for a variety of impactful exploits and cheats. As a…
Read More
Playing with Rust: Building a Safer rm and Having Fun Along the Way

Playing with Rust: Building a Safer rm and Having Fun Along the Way

Welcome to my YOLO series, where I'll be showcasing simple tools and projects that I've built—sometimes for fun, sometimes to solve specific problems, and other times just out of pure curiosity. The goal here isn't just to present a tool; I'll also dive into something interesting related to the process, whether it's a technical insight or a lesson learned while crafting these little experiments. Introducing rrm: The Command-Line Tool Nobody Asked For Nobody asked for it, and nobody want it—but here it is anyway. Meet rrm, a tool that solves a problem only I seem to have (but hey, it…
Read More
Linux Terminal for Beginners – Mastering Navigation Basics

Linux Terminal for Beginners – Mastering Navigation Basics

Originally published on: blog.theenthusiast.dev Imagine this: You've been using your computer for a while, and your Documents folder has become a catch-all for every file you've saved. You want to bring some order to this chaos, create a structure for your projects, and set up a system for personal files. Doing this with a mouse seems tedious. There must be a faster, more efficient way, right? Enter the terminal --> your new friend for doing things faster. Before we start organizing, we need to learn how to navigate our digital space efficiently. This is where the power of the terminal…
Read More
Rsyslog ile Kullanıcıların Bash History Bilgilerinin Log Sunucusuna Yönelendirilmesi

Rsyslog ile Kullanıcıların Bash History Bilgilerinin Log Sunucusuna Yönelendirilmesi

1- Rsyslog Paketinin Kurulması Log paylaşımı yapması istenen linux sunucuda rsyslog paketinin kurulu olup olamdığını kontrol edelim, yoksa kuralım. Debian sistemler için: apt install rsyslog Enter fullscreen mode Exit fullscreen mode RPM tabanlı sistemler için yum install rsyslog Enter fullscreen mode Exit fullscreen mode 2- Rsyslog Yapılandırmasının Yapılaması Standart rsyslog kurulumunda yapılandırma bilgileri /etc/rsyslog.conf içinde ve /etc/rsyslog.d/ klasörünün altında .conf uzantılı dosyaların içinde yer almaktadır. Kullanıcıların komut geçmişlerine erişmek ve yönlendirmek için birkaç konfigürasyonu yapılandırma dosyasına eklememiz gerekmektedir. $ModLoad imfile $InputFileName /home/*/.bash_history $InputFileTag bash_history $InputFileFacility local0 $InputRunFileMonitor local0.* @<hedep-ip>:<hedep-port> Enter fullscreen mode Exit fullscreen mode InputFileName alanı yönlendireilecek dosya veya…
Read More
Vim: an epic terminal-based text editor

Vim: an epic terminal-based text editor

(This Blog post is part of a collaborative work between Me and Mustapha El Idrissi, Consult his devTo page for more information: https://dev.to/appsbymuss) Introduction about Vim Vim (short for Vi IMproved) is a highly configurable and efficient text editor that extends the functionality of the classic Unix-based Vi editor. Created by Bram Moolenaar, Vim is designed to maximize productivity in text editing through a combination of keyboard-driven commands and modes. What are Buffers in vim ? In Vim, a buffer is essentially an in-memory representation of a file. When you open a file in Vim, it is loaded into a…
Read More
Performing Backups in Linux: Tools and the 3-2-1 Strategy

Performing Backups in Linux: Tools and the 3-2-1 Strategy

This article covers the tools and methods involved in performing a full Linux backup and a few of the tricks I use. Here’s a backup checklistCompleteness. Backups should include all the critical components of your project: databases, site files, configuration files, and multimedia content. Regularity is key to minimizing data loss. The frequency by which you back up depends on the pace of change on your site. As a rule, this ends up being daily to weekly. Secure storage. Backups must not be stored on primary servers. It is better to use cloud storage or dedicated physical media. Encryption. Data…
Read More
Top 5 Cheap VPS Providers

Top 5 Cheap VPS Providers

OH NO. ANOTHER ONE OF THOSE POSTS. Don't worry, none of these providers paid me to write this. As the founder of a small cloud hosting provider (sliplane.io), I've been doing a lot of research on the best VPS providers that we can partner with. And in the process, I've found and used easily 50+ different providers, today I want to share with you 5 of my favorites if you are looking for a cheap VPS. 1. Hetzner Hetzner should be a name that rings a bell for most people, since they are really having a boom in the last…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.