Content pertaining to Linux

Allowing SSH Into Two Separate Ports, One For LAN and One For WAN

By admin |

Is it possible to configure a server such that one can ssh into that server internally on a LAN while being able to ssh into the network interface that communicates on the WAN out to the Internet? How do we handle this? Do we just open port 22 for ssh for both LAN and WAN and call it a day? Is this going to pose a security risk by allowing port 22 traffic from the WAN internally to our LAN? Can we even do this? The answer to this question is, YES! How can we take care of this without posing an unnecessary risk on our server? The answer to this second question is simple.

Backgrounding & Foregrounding a Process in Linux

By admin |

In this article, I want to explain the importance of being able to foreground and background a process running in Linux. If you’ve never used this technique or have never heard of it, then you will be happy to learn that it exists on all Linux distros and making use of it can really enhance your productivity and workflow.

Creating a Swap File Versus Swap Partition in Linux

By admin |

When setting up a Linux distro using an installer in your favorite hypervisor of choice, you'll need to decide whether you wish to use a swap partition or a swap file for managing swap. Most installers will give you the option to use a swap partition. In my particular instance, I installed Debian 12 Bookworm, 64-bit using the AMD netinst (net installer). At some point in the installation setup process using the netinst ISO, I indicated that I wanted to have a separate partition for my $HOME  directory, but did not specify a swap partition.

Rsync Time-Machine Backup For Linux

By admin |

Rsync is a Linux command-line tool that allows one to transfer files either to or from a remote host (but not between two remote hosts). The user can transfer single files or multiple files matching a pattern. In this article, I will first introduce rsync and its use in Linux, then I'll point out a method using rsync that replicates the backup process found in Apple Mac platforms called Time-Machine Backup.

Non-GUI Terminal in Linux

By admin |

The terminal that you normally access in a Linux distro is called the Pseudo-Terminal. If you run the command:

$ tty

at the system prompt, it should report something like the following in stdout:

/dev/pts/0

indicating that you are in a pseudo-terminal (pts). See man pts and man tty for more information. If, on the other hand, you run the command:

$ who

the stdout will look something like the following:

<your user> tty7         2023-05-28 22:30 (:0)

Generating 2FA Authentication Code From the Linux CLI

By admin |

Two-factor authentication (2FA) is a security process that requires two forms of identification to access an account. This provides an extra layer of protection against unauthorized access, even if a hacker or cybercriminal gains access to a user's password. Some reasons why using 2FA is important for accessing your online accounts are:

Elive Linux

By admin |

Elive Linux is a beautiful and powerful operating system that is gaining popularity among Linux enthusiasts and power users alike. With its sleek interface, extensive customization options, and powerful built-in applications, Elive Linux is quickly becoming one of the most attractive and functional Linux distributions available today.

Doas: Super Lightweight Replacement For sudo

By admin |

The long-time use sudo command in Linux has been subject to security risks and is being deprecated and replaced with a much lighter command taken from OpenBSD called doas. The security risks have been identified in the National Vulnerability Database (NVD) CVE-2021-3156 as a High Risk. Sudo stands for superuser do whereas the doas command stands for dedicated openbsd application subexecutor. The sudo command package is roughly 20M in size whereas doas is only 570K in size.