Lateo.net - Flux RSS en pagaille (pour en ajouter : @ moi)

🔒
❌ À propos de FreshRSS
Il y a de nouveaux articles disponibles, cliquez pour rafraîchir la page.
À partir d’avant-hierInformatique & geek

Your artwork could be featured in the next Debian release

Par : Nick Indge

The Debian Linux project has opened a call for community artwork submissions ahead of the release of the upcoming Forky (Debian 14). If you think you've got the artistic chops, your art could appear on the boot screens, login prompts, and desktop wallpapers of millions of users. The submission deadline is November 26.

Continuing Debian's community-driven ethos, the artwork submission process mirrors that of previous releases. The artwork must feel distinctively "Debian," integrate cleanly without the need for core software patching, and remain visually appealing for the long term.

Elise Couper's "Ceratopsian" theme was chosen as the winning default for Debian 13 Trixie. For anyone who might not be up on the latest from the Toy Story franchise, the release names echo character names from the animated films. Trixie was a triceratops introduced in Toy Story 3, hence the "Ceratopsian" wink in the winning submission. It makes sense that the next version of Debian continues this trend with Forky, a character introduced in the franchise's fourth entry. The Debian team cautions against overly busy designs that may cause user fatigue, but if anyone can successfully incorporate Forky's googly eyes into the design somehow, know that you'd at least win the contest for my Debian desktop wallpaper.

Read full article

Comments

Download of the day: GIMP 3.0 is FINALLY Here!

Par : Vivek Gite

Wow! After years of hard work and countless commits, we have finally reached a huge milestone: GIMP 3.0 is officially released! I am excited as I write this and can't wait to share some incredible new features and improvements in this release. GIMP 2.10 was released in 2018, and the first development version of GIMP 3.0 came out in 2020. GIMP 3.0 released on 16/March/2025. Let us explore how to download and install GIMP 3.0, as well as the new features in this version.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Download of the day: GIMP 3.0 is FINALLY Here! appeared first on nixCraft.

Critical Rsync Vulnerability Requires Immediate Patching on Linux and Unix systems

Par : Vivek Gite

Rsync is a opensource command-line tool in Linux, macOS, *BSD and Unix-like systems that synchronizes files and directories. It is a popular tool for sending or receiving files, making backups, or setting up mirrors. It minimizes data copied by transferring only the changed parts of files, making it faster and more bandwidth-efficient than traditional copying methods provided by tools like sftp or ftp-ssl. Rsync versions 3.3.0 and below has been found with SIX serious vulnerabilities. Attackers could exploit these to leak your data, corrupt your files, or even take over your system. There is a heap-based buffer overflow with a CVSS score of 9.8 that needs to be addressed on both the client and server sides of rsync package. Apart from that info leak via uninitialized stack contents defeats ASLR protection and rsync server can make client write files outside of destination directory using symbolic links.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Critical Rsync Vulnerability Requires Immediate Patching on Linux and Unix systems appeared first on nixCraft.

ZFS Raidz Expansion Finally, Here in version 2.3.0

Par : Vivek Gite

After years of development and testing, the ZFS raidz expansion is finally here and has been released as part of version 2.3.0. ZFS is a popular file system for Linux and FreeBSD. RAIDz is like RAID 5, which you find with hardware or Linux software raid devices. It protects your data by spreading it across multiple hard disks along with parity information. A raidz device can have single, double, or triple parity to sustain one, two, or three hard disk failures, respectively, without losing any data. Hence, expanding or adding a new HDD is a very handy feature for sysadmins in today's data-sensitive apps.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post ZFS Raidz Expansion Finally, Here in version 2.3.0 appeared first on nixCraft.

How to install vnstat on Debian 12/11 to monitor network interface bandwidth usage

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Do you need to keep track of the network traffic (bandwidth) usage for the Network interface controller (NIC) of your Debian Linux-based cloud or bare metal server? Look no forward. Try the vnStat, a free and open-source console-based network traffic monitor that keeps a log of 5-minute intervals, hourly, daily, monthly, and yearly network traffic for the selected interface. Once installed, vnStat can be used even without root permissions on most systems.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install vnstat on Debian 12/11 to monitor network interface bandwidth usage appeared first on nixCraft.

How to install kvm-ok on Debian or Ubuntu Linux

Par : Vivek Gite
See all Linux Kernel Based Virtual Machine related FAQs/Howtos

The KVM-ok command command will tell you if your Debian or Ubuntu Linux-powered server can host hardware-accelerated KVM virtual machines. KVM (Kernel-based Virtual Machine) is a free and open-source virtualization technology that is used with every Linux kernel. In other words, KVM will make your Linux computer into a hypervisor, allowing you to run multiple isolated virtual machines (VMs) on a single physical machine. However, KVM depends upon CPU hardware virtualization extensions like Intel VT-x or AMD-V to provide high-performance virtual machines. This support must be enabled in the BIOS. Apart from that, some cloud service providers also allow nested virtualization that will help you to run VMs inside your instances. However, this may not be enabled in BIOS or instance configuration. Thus, you need to install the kvm-ok command to determine whether such support exists.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install kvm-ok on Debian or Ubuntu Linux appeared first on nixCraft.

Linux turn OFF password expiration / aging

Par : Vivek Gite

The /etc/shadow file stores the actual password in encrypted format using a hash (salted) function for the user's account with additional properties related to the user passwords, such as password expiration date or password aging. The /etc/passwd stores usernames and their properties, such as home directory, login shell, and more. The password expiration information for a user is contained in the last six fields. The Linux password expiration for a select user can be disabled by editing the /etc/shadow file. However, I recommend using the chage command for safety reasons. The chage command changes the number of days between password changes and the last password change date. The Linux system uses this information to determine when users must change their passwords.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Linux turn OFF password expiration / aging appeared first on nixCraft.

How to install and configure sudo on Debian Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

The minimal version of Debian Linux 12/11 does not support sudo. When performing a network installation for Debian, the usual approach is to use the minimum version, which only installs the essential packages. Most Linux container images based upon Debian also skip sudo, and if your project needs sudo, then read on how to install and configure sudo and grant access to a user on a Debian Linux version 12/11.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install and configure sudo on Debian Linux appeared first on nixCraft.

How to install incus server on Debian 12/11

Par : Vivek Gite
Patreon subscribers can download the PDF version here and support independent content creators.
See all FFmpeg command releated tutorials

Incus is a free and open-source project for the next-gen container management platform. It is a fork of LXD (the container hypervisor). It can manage both Linux containers and virtual machines. Let us see how to install the stable version of the Incus server on Debian 11 or 12 and deploy both containers and VMs for fun and profit.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install incus server on Debian 12/11 appeared first on nixCraft.

lnav – Awesome terminal log file viewer for Linux and Unix

Par : Vivek Gite

It is no secret that whether you are a developer or sysadmin, you need to use log files to troubleshoot errors on your Linux and Unix systems. You use tools like grep, tail, cat, or journalctl to view log files. However, you may need help with so many log files. These essential Unix tools are suitable for basic text but fall short when dealing with many log files. You can get tired from sifting through endless lines of log files. The lnav utility is here to the rescue! It is a powerful log file viewer that goes beyond the basics. It understands your logs by identifying timestamps, log levels, and other vital details. You can run SQLite SQL queries against your standard log files and build reports for your needs. Let us see how to install and use the lnav tool quickly.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post lnav – Awesome terminal log file viewer for Linux and Unix appeared first on nixCraft.

sttr – Awesome Linux & Unix tool for transformation of the string

Par : Vivek Gite
sttr demo

sttr demo

The sttr is a free and open-source command-line tool in Golang that lets you easily change and modify text. You can perform transformation operations on the string, such as hashing text, string manipulation, and more. sttr is beneficial for developers and *nix users requiring swift modification to strings or files directly via the command line or TUI. It is helpful in your scripting, data processing, and automation tasks at the CLI.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post sttr – Awesome Linux & Unix tool for transformation of the string appeared first on nixCraft.

How to uninstall packages marked “rc” on Debian / Ubuntu Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

In Debian and Ubuntu Linux, an "rc" status package means the package has been uninstalled, but its configuration files remain on the disk and take up space. Sometimes, certain directories are also in the /var/ directory. When you type the sudo apt remove pkg1 command, it deletes most of the data, but config files are left alone in case you reinstall that package again. You can free up disk space by removing unwanted config files.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to uninstall packages marked “rc” on Debian / Ubuntu Linux appeared first on nixCraft.

TCPDump: Capture and Record Specific Protocols / Port Traffic

Par : Vivek Gite
See all UNIX related articles/faq

How do I capture a specific protocol or port, such as 80 (HTTP) or 443 (HTTPS), using the TCPDump tool under Linux/UNIX? How do I record traffic with TCPDump and find problems later on with my network or server issues? Let's dive into the nitty-gritty of capturing and analyzing your network traffic for trapshooting network and server issues.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post TCPDump: Capture and Record Specific Protocols / Port Traffic appeared first on nixCraft.

How to add an IP alias to an EC2 instance on Debian/Ubuntu Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

An IP alias on Debian, Ubuntu, or any other Linux distros refers to assigning multiple IP addresses to a single network interface. A single network interface card (NIC) can respond to multiple IP addresses and configurations. IP aliases are commonly used for various purposes, such as network segmentation, virtual hosting, load balancing, VPN, split DNS, network testing, and more. Let us see how to add IPv6 and IPv4 IP addresses to your AWS EC2 or Lightsail instance using the CLI without disturbing the IPv4/IPv6 addresses assigned by the AWS DHCP server. These instructions will also work with all other cloud providers, as most providers use DHCP to give you a public IPv4/IPv6 address.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to add an IP alias to an EC2 instance on Debian/Ubuntu Linux appeared first on nixCraft.

How to install dnscrypt-proxy on Debian Linux 11/12

Par : Vivek Gite

DNSCrypt-proxy is an open-source and free software designed to encrypt DNS traffic, thus protecting it from eavesdropping and manipulation. This is also useful to evade DNS censorship when DNSCrypt-proxy is configured correctly with Wireguard or OpenVPN. Further, DNSCrypt-proxy can configured to block malware, trackers, and internet ads. In Debian 11 and 12, using DNSCrypt-proxy can enhance privacy and security by preventing DNS spoofing attacks, DNS hijacking, and surveillance of DNS traffic. It ensures that DNS queries are encrypted, authenticated, and secure, thereby safeguarding users' browsing activities and sensitive information. Let us see how to install dnscrypt-proxy on Debian Linux 11 and 12.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install dnscrypt-proxy on Debian Linux 11/12 appeared first on nixCraft.

How to enable Debian 12 Backports repository

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

The Debian Linux 12 backports repository offers updated versions of software packages for Debian Stable releases. These packages are sourced from Testing (and sometimes Unstable) branches of Debian, and then optimized and recompiled to function on the current Stable release, such as Bookworm. Let us see how to install and use Debian Linux 12 "Bookworm" Backports repository.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to enable Debian 12 Backports repository appeared first on nixCraft.

How to copy permissions from one file to another on Linux

Par : Vivek Gite
See all GNU/Linux related FAQ

I need to copy or clone file ownership and permissions from another file on Linux. Is there a bash command line option to clone the user, group ownership and permissions on a file from another file on Linux operating system?

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to copy permissions from one file to another on Linux appeared first on nixCraft.

How to add bash auto completion in Debian Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Bash is a command language interpreter compatible with sh. It can execute commands read from a file or keyboard. On Debian Linux, bash-completion is a set of shell functions that uses Bash's programmable completion feature. This page provides instructions on installing and enabling Bash auto-completion on Debian Linux versions 10, 11, and 12 to increase productivity by writing custom bash code.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to add bash auto completion in Debian Linux appeared first on nixCraft.

How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide

Par : Vivek Gite

{nixCraft Patreon supporters content}

Below is a sneak peek of this content! Ubuntu 24.04 LTS (Noble Numbat) was launched on April 25th, 2024. This new version will be supported for five years until June 2029. The armhf architecture now provides support for the Year 2038 problem. The upgrades include significant updates to core packages like Linux kernel, systemd, Netplan, […]

The post How to Upgrade Ubuntu 22.04 to 24.04 LTS: A Complete Guide appeared first on Opensource Flare✨.

The repository ‘http://deb.debian.org/debian buster-backports Release’ no longer has a Release file.

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

When you run the sudo apt update, you may see the following message or error on a Debian Linux:
Err:5 http://deb.debian.org/debian buster-backports Release
404 Not Found [IP: 146.75.34.132 80]
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian buster-backports Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Here is how to fix this issue.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post The repository ‘http://deb.debian.org/debian buster-backports Release’ no longer has a Release file. appeared first on nixCraft.

How to use debsecan command in Linux with examples

Par : Vivek Gite
See all Ubuntu Linux related FAQ

The debsecan command is an essential tool for developers and sysadmins using Debian or Ubuntu Linux. It analyzes the list of installed packages on the current host and reports any vulnerabilities found on the system.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to use debsecan command in Linux with examples appeared first on nixCraft.

How to verify Debian CD or DVD image using GPG

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

When you download Debian Linux CD or DVD images, you must verify the authenticity of Debian Linux CD or DVD images using the gpg and sha512sum command. There are three files you will find here for Debian 12 AMD64 Architecture (download those files using the wget command or use the curl command to download file):
$ wget https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/debian-12.5.0-amd64-DVD-1.iso \
https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/SHA512SUMS \
https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/SHA512SUMS.sign

Now you have three files as follows:

  1. debian-12.5.0-amd64-DVD-1.iso : DVD file for USB or DVD.
  2. SHA512SUMS : Checksum file for debian-12.5.0-amd64-DVD-1.iso to ensure that debian-12.5.0-amd64-DVD-1.iso file is not corrupted or contains bad stuff like backdoor.
  3. SHA512SUMS.sign : GPG signature file for SHA512SUMS file, which ensures that the checksums file themselves are correct.
You must put all these three files into the same directory for easy understanding and verification in a zippy. Use the ls command to list them:
{vivek@desktop:~}$ ls -l
Outputs:

-rw-rw-r-- 1 vivek vivek 3992977408 Feb 10 19:17 debian-12.5.0-amd64-DVD-1.iso
-rw-rw-r-- 1 vivek vivek       3372 Feb 10 22:11 SHA512SUMS
-rw-rw-r-- 1 vivek vivek        833 Feb 11 01:43 SHA512SUMS.sign

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to verify Debian CD or DVD image using GPG appeared first on nixCraft.

How to install BTRFS on a Debian Linux 12/11

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Btrfs, which stands for "Butter FS" or "B-tree FS," is a modern Linux file system. It was developed to overcome the limitations of older file systems like ext4 or ext3. Btrfs is an excellent choice for efficient storage management on multiple Hard Disk Drivers. It supports Linux file systems with snapshots, subvolumes, and built-in RAID-like capabilities that provide robust data protection. It is designed to handle huge file systems and file sizes. Btrfs incorporates checksumming and COW (Copy-on-write), making it more resilient to data corruption. The COW feature means changes are written to new locations instead of overwriting existing data, enhancing data protection and enabling snapshots. After installation, let us see how to install Btrfs support for Debian Linux 11 or 12 using the CLI.

Why am I using BTRFS on an existing Debian Linux system?

Install BTRFS FILESYSTEM on a Debian Linux
In my case, the EC2 VM AMI is configured to use ext4 by default at AWS. However, I had to make changes since I needed to store files using EBS (Elastic Block Store) and Python code expected to see BTRFS. Hence, this quick tutorial.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install BTRFS on a Debian Linux 12/11 appeared first on nixCraft.

How to install GPG (gnupg2) on a Debian Linux to fix gpg command not found error

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

GnuPG2 (or GPG2) is an open-source and free tool that implements the OpenPGP standard. Its primary purpose is to encrypt your sensitive information to protect it from unauthorized access. It also allows you to create digital signatures, guaranteeing that the data hasn't been tampered with while in transit. Many newly created Debian 11/12 cloud VMs and images may not have the gpg/gpg2 command installed. Thus, you will get an error that reads "-bash: gpg: command not found." Here is how to fix this error and install gnupg2 on a Debian Linux 11 or 12. Further, you will learn how to use the gpg command.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install GPG (gnupg2) on a Debian Linux to fix gpg command not found error appeared first on nixCraft.

How to enable contrib repo on Debian Linux 10/11/12

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Sometimes, when you try to install specific Debian Linux packages, you might encounter an error message that reads:
Unable to locate package pkg-name-here
In many cases, the required package might already be present in the remote download repos. It would be best to have an additional repository, such as contrib, which adds extra packages to the core Debian Linux system. To enable and use the contrib repository in Debian Linux version 10/11/12 or newer versions, follow the instructions below.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to enable contrib repo on Debian Linux 10/11/12 appeared first on nixCraft.

How to open DHCP port using UFW in Linux

Par : Vivek Gite
See all Ubuntu Linux related FAQ

The Uncomplicated Firewall (UFW) needs to be configured to allow traffic on UDP ports 67 and 68, regardless of whether the Dynamic Host Configuration Protocol (DHCP) server is local or remote. Additionally, it may be necessary to open both TCP and UDP port 53, which are used for Domain Name Service (DNS). In small business and home environments, typically, both DNS and DHCP services come from a single device. Hence, it would be best if you opened both DHCP and DNS ports using the ufw command.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to open DHCP port using UFW in Linux appeared first on nixCraft.

Debian/Ubuntu Linux show package changelog command

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Are you interested in checking the changelog of a package on Debian or Ubuntu and Linux Mint? You may need to search to see if the particular CVE (Common Vulnerabilities and Exposures) is fixed. Suppose you have installed or upgraded a package in Debian or Ubuntu Linux. In that case, you can easily find out what changes have been made to the package, including new features or bug fixes. Here's how you can view the changelog of a Debian package in Debian or Ubuntu Linux.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Debian/Ubuntu Linux show package changelog command appeared first on nixCraft.

Debian Linux 12.1 released with Security Updates

Par : Vivek Gite

Debian Linux project announces the first update of the Debian project's stable distribution, Debian 12 (codename "bookworm") named Debian 12.1. This update mainly addresses security issues and significant problems. Security advisories have been published and are now available to download.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Debian Linux 12.1 released with Security Updates appeared first on nixCraft.

Setting up VSCode for Ansible Lightspeed AI in Ubuntu 22.04 desktop

Par : Vivek Gite

Red Hat launched the Ansible Lightspeed Code Assistant Generative AI with IBM Watson Code Assistant in May 2023. This preview is now available to all Ansible users, allowing them to explore the technology, provide feedback to Red Hat, and further train the AI model. In this brief blog post, I will share my personal experience with installing and utilizing Ansible Lightspeed AI to create playbooks in VSCode using Ubuntu Linux 20.04 LTS desktop.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Setting up VSCode for Ansible Lightspeed AI in Ubuntu 22.04 desktop appeared first on nixCraft.

How To Set Up a Firewall with UFW on Debian 12

Par : Vivek Gite
How To Set Up a Firewall with UFW on Debian 12
See all Debian/Ubuntu Linux related FAQ

If you're using Debian 12, you can easily manage your firewall with the help of Uncomplicated Firewall (UFW). UFW interface simplifies firewall management and handles the complexities of packet filtering technologies like iptables and nftables. It's a great option for beginners who want to set up a firewall. In this tutorial, we'll guide you through installing UFW in Debian Linux 12, configuring it to allow SSH, HTTP, HTTPS, and other connections, and enabling it to block unauthorized traffic.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How To Set Up a Firewall with UFW on Debian 12 appeared first on nixCraft.

How to install ZFS in Debian 12 “Bookworm”

Par : Vivek Gite
How to install ZFS on Debian Linux 12 Bookworm using APT-GET
See all Debian/Ubuntu Linux related FAQ

Here is a quick tutorial on installing ZFS support in Debian Linux 12 "Bookworm" using "apt" or "apt-get" command-line option.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install ZFS in Debian 12 “Bookworm” appeared first on nixCraft.

How to upgrade Debian 11 to Debian 12 bookworm using CLI

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Debian Linux 12 "Bookworm" has been released. As of 23/July/2023, Debian 12.1 point was released too. The new version offers updated packages and five years of support. This page provides a step-by-step guide to updating Debian 11 Bullseye to Debian 12 Bookworm using command-line options, including upgrading all installed packages.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to upgrade Debian 11 to Debian 12 bookworm using CLI appeared first on nixCraft.

How to install PHP 8.2 with Apache on Debian 11 Linux

Par : Vivek Gite
See all PHP related FAQ

Debian 11 is an excellent server OS to run the LAMP stack. PHP (Hypertext Preprocessor) is a widely-used open source general-purpose scripting language especially suited for web development. However, Debian 11 comes with PHP version 7.4. Here is how to install PHP 8.2 with Apache server on Debian 11 using the CLI or over ssh based session.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install PHP 8.2 with Apache on Debian 11 Linux appeared first on nixCraft.

How To Install LXD on Debian 11 Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

You can install LXD pure-container hypervisor on Debian 11 Linux to run an unmodified version of Debian, Ubuntu, CentOS, Fedora, Alpine, Arch and many other Linux distro. You can mimic AWS or different cloud instance types with LXD for testing and deployment purposes on your development machine. You can also run a GUI app such as Firefox completely isolated using LXD for security or privacy reasons. Let us see how to set up and use LXD on the Debian Linux 11 server or desktop.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How To Install LXD on Debian 11 Linux appeared first on nixCraft.

Find APT packages occupy the most space on Debian/Ubuntu

Par : Vivek Gite
See all Ubuntu Linux related FAQ

Are you running out of disk space on your Debian or Ubuntu Linux? Do you want to know which installed Debian or Ubuntu packages occupy the most disk space? There are many ways to find out this info. In this quick tip, you will learn about listing apt or apt-get installed packages that occupy the most space using the command-line options.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Find APT packages occupy the most space on Debian/Ubuntu appeared first on nixCraft.

How do you add comments on UFW firewall rule?

Par : Vivek Gite
See all Firewall related FAQ

The iptables and ip6tables commands are used to set up a Linux firewall. However, many new Linux sysadmins and users find it challenging to use iptables. Hence, the ufw program is for managing a Linux firewall and aims to provide an easy-to-use interface for the user. This page explains how to add a comment to your ufw firewall rules.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How do you add comments on UFW firewall rule? appeared first on nixCraft.

How to install MySQL server on Ubuntu 22.04 LTS Linux

Par : Vivek Gite

{nixCraft Patreon supporters content}

MySQL version 8.0 is a free and open-source database system used by most web applications and sites on the Internet. Typically MySQL is part of the LAMP (Linux, Apache, MySQL, Perl/Python/PHP) stack. MySQL heavily uses popular open-source software such as WordPress, MediaWiki, and others as a database storage engine. Let us see how to install MySQL server version 8.x on Ubuntu 22.04 LTS Linux server, including settings up a new database, users and fine tuning server config.

The post How to install MySQL server on Ubuntu 22.04 LTS Linux appeared first on Opensource Flare✨.

How to fix “bash: add-apt-repository: command not found” error on Ubuntu/Debian Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

Let us see how to fix the "bash: add-apt-repository: command not found" error on an Ubuntu/Debian Linux system when you run the add-apt-repository command.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to fix “bash: add-apt-repository: command not found” error on Ubuntu/Debian Linux appeared first on nixCraft.

How to install GIMP 2.10 on Ubuntu or Debian Linux

Par : Vivek Gite
See all Debian/Ubuntu Linux related FAQ

This quick tutorial explains how to download and install the latest GIMP application on Ubuntu or Debian Linux and friend using the CLI.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install GIMP 2.10 on Ubuntu or Debian Linux appeared first on nixCraft.

How to install and edit desktop files on Linux (Desktop entries)

Par : Vivek Gite

Linux comes with three commands for developers, sysadmins and users to set up a hierarchy of applications, typically displayed as a menu. In other words, these commands allow third-party software to add menu items that work for all desktops. In addition, it allows Linux system administrators to edit menus in a way that affects all desktops using the following commands to install and edit desktop files on Linux to make Desktop entries:

  1. desktop-file-edit command is a tool for editing desktop files.
  2. Use the desktop-file-install command to install .desktop files.
  3. Update database of desktop entries cache using the update-desktop-database command.
  4. Validate desktop entry files using desktop-file-validate command.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to install and edit desktop files on Linux (Desktop entries) appeared first on nixCraft.

How to protect Linux against rogue USB devices using USBGuard

Par : Vivek Gite

{nixCraft Patreon supporters content}

You deployed a perfect firewall and other network security policies preventing unauthorized access to the user's desktop computer over a network. However, you still need to block USB device access. We can configure a Linux desktop security policy to protect your computer against rogue USB devices (a.k.a. BadUSB) by implementing essential allow and blocklisting capabilities based on device attributes. For instance, I can define what kind of USB devices are authorized and how a USB device interacts with the Linux system. For example, I can define policy allowing Yubikey with serial number "XYZ" and USB LTE modem with serial # "ABC." Every other USB device access is denied by default. This guide will cover the following topics:

The post How to protect Linux against rogue USB devices using USBGuard appeared first on Opensource Flare✨.

How to use htmlq to extract content from HTML files on Linux, macOS or FreeBSD

Par : Vivek Gite

Most of us use love and use the jq command. It works on Linux or Unix-like systems to extract data from JSON documents. Recently I found htmlq, which is like jq and written in Rust lang. Imagine being able to sed or grep for HTML data. We can search, slice, and filter HTML data with htmlq. Let us see how to install and use this handy tool on Linux or Unix and play with HTML data.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to use htmlq to extract content from HTML files on Linux, macOS or FreeBSD appeared first on nixCraft.

How to set up Mariadb Galera cluster on Ubuntu or Debian Linux

Par : Vivek Gite

{nixCraft Patreon supporters content}

MariaDB Galera Cluster

This guide explains how to set up MariaDB high-availability cluster for the database using the Galera library, which provides a virtual mater-to-master three-node cluster running on Debian or Ubuntu Linux.

Software and hardware requirements

  • Minimum three VMs running at cloud providers or bare metal servers in same zone or data center. Always keep an ODD number of servers (at least 3) when all the servers are in the same zone or data center. Please note that the MariaDB Galera cluster can exist between two or more zones/data centers. Galera Cluster requires server hardware for a minimum of three nodes. If your cluster runs on a single switch, use three nodes. If your cluster spans switches, use three switches. If your cluster spans networks, use three networks. If your cluster spans data centers, use three data centers. This ensures that the cluster can maintain a Primary Component in the event of network outages.
  • Ubuntu 20.04 or Debian 10/11 Linux LTS release. The instructions will not work on other operating systems such as FreeBSD or other Linux distros such as RHEL/SUSE due to different tools (e.g., firewall). However, one can always adopt it.
  • MariaDB server with Galera library on each VM. The cluster is made of two components (replication engine called Galera and database called MariaDB).
  • The MariaDB cluster is protected using password-based authentication, TLS, VLAN/VPC, and firewall for security and privacy. The cluster will not accept any traffic from the Internet or public interfaces at all.
This guide will cover the following topics:
TOC-MariaDB-Galera-Cluster.Welcome

The post How to set up Mariadb Galera cluster on Ubuntu or Debian Linux appeared first on Opensource Flare✨.

How to set up Redis sentinel cluster on Ubuntu or Debian Linux

Par : Vivek Gite

{nixCraft Patreon supporters content}

This guide explains how to set up Redis sentinel failover cluster for caching database or any other data type in high availability node.

Software and hardware requirements

Minimum three VMs running at cloud providers or bare metal servers. Always keep an ODD number of servers.
  1. Ubuntu 20.04 or Debian 10 Linux LTS.
  2. Redis server with sentinel on each VM.
  3. HAProxy for load balancing and traffic redirection to healthy Redis node for writing or reading data.
  4. Keepalived for IP failover for HAProxys.
  5. The Redis cluster will be protected using firewall, password, and VLAN or VPC.
  6. Email-based alert for HAproxy and Keepalived cluster.
  7. Simple web-based stats for Redis.
Out sample setup:

How to set up Redis sentinel cluster on Ubuntu or Debian Linux

All clients (your web app written in Python/PHP/Perl) will send Redis to read and write requests to 172.0.0.5 TCP port 6379. HAproxy will redirect read requests based upon the health status of the Redis server among three servers. The Redis write request will redirect to an active node in the sentinel cluster. Keepalived is used to maintain standby HAPorxy node in case primary HAPorxy node is down for any reason. In addition, Keepalived will provide IP failover based upon the VRRP protocol running on an interface. This in-depth guide will cover the following topics:

toc-redis-cluster-preview

The post How to set up Redis sentinel cluster on Ubuntu or Debian Linux appeared first on Opensource Flare✨.

Quick Tip: Turn off the login banner in Linux or Unix .hushlogin file

Par : Vivek Gite

Did you know? You can turn off the banner in Linux or Unix using a particular file. When you log in using ssh or other methods, you will find tons of information on the screen. Here is how my FreeBSD home server login looks:

FreeBSD login banner

Default motd with my hardware and other info

The first one is /etc/motd, and the second is the output of neofetch called from ~/.profile file. And my Ubuntu Linux box showing stuff too when I login using the ssh command:

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Quick Tip: Turn off the login banner in Linux or Unix .hushlogin file appeared first on nixCraft.

cpufetch – awesome CPU architecture info tool for Linux and macOS

Par : Vivek Gite

AMD cpufetch
Typically we use the lscpu command or /proc/cpuinfo command on Linux to check CPU information. I recently found another simplistic yet fancier CPU architecture fetching tool inspired by neofetch, pfetch or screenfetch. Let us see how to install cpufetch on Linux, macOS, Android, and Windows to fetch CPU details.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post cpufetch – awesome CPU architecture info tool for Linux and macOS appeared first on nixCraft.

Interview with curl creator and Swedish software developer Daniel Stenberg

Par : Vivek Gite

Daniel Stenberg
Even if you do not use the curl command daily, the chances are high that you are still using curl and don't know. IoT and tons of other services on the Internet depend upon libcurl for network operations. Daniel Stenberg is a Swedish software developer, recipient of the Polhem Prize 2017, on cURL. Recently I did a quick Q and A with Daniel about starting the curl project and his daily workflow.

The post Interview with curl creator and Swedish software developer Daniel Stenberg appeared first on nixCraft.

How to enable LUKS disk encryption with keyfile on Linux

Par : Vivek Gite

We can easily add a key file to LUKS disk encryption on Linux when running the cryptsetup command. A key file is used as the passphrase to unlock an encrypted volume. The passphrase allows Linux users to open encrypted disks utilizing a keyboard or over an ssh-based session. There are different types of key files we can add and enable LUKS disk encryption on Linux as per our needs:

  1. Passphrase keyfile - It is a key file holding a simple passphrase.
  2. Random text keyfile - This is a key file comprising a block of random characters which is much more resistant to dictionary attacks than a simple passphrase-based key file.
  3. Binary keyfile - We can defile an image, video, or any other static binary file as key file for LUKS. It makes it harder to identify as a key file. It would look like a regular image file or video clip to the attacker instead of a random text keyfile.

Let us see how to enable LUKS disk encryption with a key file.

The post How to enable LUKS disk encryption with keyfile on Linux appeared first on nixCraft.

❌