Showing posts with label #Linux #Kernel #LinuxKernel. Show all posts
Showing posts with label #Linux #Kernel #LinuxKernel. Show all posts

Thursday, September 28, 2023

List of top #Linux distributions categorized by uses








Here is a list of top Linux distributions categorized by uses:

Desktop:

  • Ubuntu
  • Linux Mint
  • Pop!_OS
  • Fedora
  • Elementary OS
  • Zorin OS
  • Manjaro
  • KDE neon
  • Deepin
  • MX Linux
  • Solus

Server:

  • Ubuntu Server
  • CentOS Stream
  • AlmaLinux
  • Debian
  • Fedora Server
  • openSUSE
  • SUSE Linux Enterprise Server (SLES)
  • Red Hat Enterprise Linux (RHEL)

Cloud:

  • Ubuntu Cloud
  • CentOS Stream for Cloud
  • AlmaLinux Cloud
  • Amazon Linux Amazon Linux 2 (AL2)
  • Google Cloud Platform (GCP)
  • Microsoft Azure
  • IBM Cloud
  • Oracle Cloud Platform

Special purpose:

  • Kali Linux (security)
  • Parrot OS (security)
  • Tails OS (privacy)
  • Puppy Linux (low-resource devices)
  • Bodhi Linux (low-resource devices)
  • Lubuntu (low-resource devices)
  • Xubuntu (low-resource devices)
  • Chrome OS (Chromebooks)
  • Android (Android devices)

This is just a small sample of the many Linux distributions available. There are distributions for all sorts of uses, so it's important to do your research to find the one that's right for you.

You can find all distribution details here : https://distrowatch.com/


Tuesday, September 26, 2023

Some tips and tricks for using the `#sudo` #command

1. Limit Access: By default, `sudo` allows authorized users to execute any command with elevated privileges. You can restrict access to specific commands or command categories by editing the `/etc/sudoers` file using the `visudo` command. For example, to allow a user to only run the `reboot` command:

 

   username ALL=/sbin/reboot

 

2. Customize the Prompt: You can customize the `sudo` command prompt to display a warning message or provide context for the command being executed. Edit the `sudoers` file and add a `Defaults` line with the `lecture` option:

 

   Defaults        lecture=always

   Defaults        lecture_file=/etc/sudo_lecture

 

3. Timestamp and Timeout: By default, `sudo` caches your credentials for a certain period (usually 5 minutes) to avoid repetitive password prompts. You can adjust the timeout duration by editing the `sudoers` file:

 

   Defaults        timestamp_timeout=10

 

4. Check User Privileges: You can verify which commands a user can run with `sudo` privileges by running:

 

   sudo -l

 

5. Running GUI Applications: If you need to run graphical applications with `sudo`, use `sudo -H` or `sudo -i` to set the `HOME` environment variable correctly:

 

   sudo -H gedit

 

6. Avoid `sudo su`: Instead of running `sudo su` to become the root user interactively, use `sudo -i` or `sudo -s` for a shell session with elevated privileges. This avoids potential issues with environment variables.

 

   sudo -i

 

7. Audit `sudo` Usage: You can enable auditing of `sudo` commands to keep track of who is using `sudo` and what commands are executed. Refer to your system's auditd or auditctl configuration for this.

8. Use `sudo !!`: If you forget to prefix a command with `sudo`, you can run it with elevated privileges using `sudo !!`. For example:

 

   apt update

   sudo !!  # Executes 'sudo apt update'

 

9. Secure Password Entry: To ensure your password is hidden while entering it for `sudo`, use the `-S` option:

 

   sudo -S command

 

10. Temporary Elevation: If you need to run multiple commands as the superuser in the same terminal session, you can use `sudo -s` to start an elevated shell:

  

    sudo -s

  

11. Insider Information: To display information about the user's `sudo` privileges, run:

  

    sudo -l

  

12. Enable Root Account: You can enable and set a password for the root account, but this is generally discouraged in favor of using `sudo`.

Remember that with great power comes great responsibility. Always use `sudo` cautiously to avoid unintentional system changes or security risks.

Thursday, February 2, 2023

#Linux #Kernel

The Linux Kernel is the core component of the popular open-source operating system Linux. It acts as the interface between the hardware and software components of a computer. The Linux Kernel was first released in 1991 by Linus Torvalds, a computer science student at the University of Helsinki, and has since become one of the largest and most widely used open-source software projects in the world.

The Linux Kernel is written in the C programming language and is designed to be portable, meaning it can run on a variety of hardware platforms. It is also modular, allowing developers to add or remove features as needed. This makes it an ideal choice for a wide range of devices, from embedded systems and smartphones to supercomputers and data centers.

The Linux Kernel provides a number of important services, including memory management, process management, file system management, and network communication. It also manages access to hardware devices and drivers, ensuring that applications can interact with hardware components in a consistent and reliable way.

One of the key advantages of the Linux Kernel is its open-source nature, which means that anyone can contribute to its development or customize it for their own needs. The large and active community of developers who work on the Linux Kernel ensures that it is constantly evolving and improving. This has led to the creation of a wide range of specialized versions of Linux, known as distributions, each tailored to specific use cases or audiences.

Another advantage of the Linux Kernel is its stability and reliability. Because it is used in so many different devices and applications, developers must constantly test and improve the code to ensure that it works well on all types of hardware. This process of continuous improvement has led to a robust and stable kernel that is widely used in mission-critical applications where downtime is not an option.

In conclusion, the Linux Kernel is a critical component of the Linux operating system and plays a vital role in enabling applications and devices to interact with the underlying hardware. Its open-source nature and a large community of developers ensure that it is constantly evolving and improving, making it an ideal choice for a wide range of applications.

Featured Posts

Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP

  Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...