Linux Handbook
1,221 FOLLOWERS
Linux Handbook focuses on the server-side of Linux. At Linux Handbook, you'll learn Linux command line in detail along with tutorials on cloud-related technologies, DevOps tools, managing servers, and more such tips and tricks.
Linux Handbook
8M ago
Jenkins is a popular open-source automation server that can be used to implement continuous integration and continuous delivery pipelines for software projects. It allows you to build, test, and deploy your code using a set of instructions called Jenkinsfile.
However, installing and configuring Jenkins on a cloud platform such as AWS can be a tedious and error-prone process. That's why in this article, I will show you how to automate the installation of Jenkins on an AWS EC2 instance using Terraform, an infrastructure as code tool that can create and manage cloud resources declaratively.
By u ..read more
Linux Handbook
8M ago
Most users rely on external peripherals like USB drives, wireless keyboards, mice, disk drive, and more to use their computers.
Sure, if the disk is mounted, it can easily be retrieved with the file manager or by listing the disks of the system but what about the connected keyboard or mouse or other interfaces that are not mounted on the file system?
Well, that's what I'm going to cover in this tutorial.
1. List mounted USB drives using df command
Whenever you plug the disk drive into your system, it will be automatically mounted in the /media directory. So if you are looking for a way to lis ..read more
Linux Handbook
8M ago
One of my favorite features of Proxmox is its ability to form clusters from multiple nodes (servers).
For example, if you have 3 physical servers with Proxmox installed on each of them, you can cluster them together. This way, if you need to take a node down for maintenance, you can simply move the VMs on that node to another server while not incurring any downtime.
The other thing you can do is, if you have at least 3 physical servers in a cluster, you can set up high availability between the three servers.
Proxmox requires at least 3 nodes for this function because it uses quorum to determi ..read more
Linux Handbook
8M ago
Usually, you'll come across the .zip or .gz compressed files. However, every now and then, you'll also encounter RAR files in Linux.
Dealing with RAR files in the Linux command line is not that complicated.
You extract RAR files with the unrar command:
unrar x file.rar
Similarly, you can create RAR file archive from a given files and folders using the rar command:
rar a output_file.rar files_or_folders_to_archive
?
The thing is that RAR is a proprietary software and hence, it is not installed by default in Linux systems. You have to install the RAR archiving support first.
Install ..read more
Linux Handbook
8M ago
Proxmox 8.0 was released on June 22, 2023, and it's full of exciting new features. Among the highlights are the following straight from the official Proxmox forum:
Debian 12, but using a newer Linux kernel 6.2
QEMU 8.0.2, LXC 5.0.2, ZFS 2.1.12
Ceph Quincy 17.2 is the default and comes with continued support.
There is now an enterprise repository for Ceph which can be accessed via any Proxmox VE subscription, providing the best stability for production systems.
Additional text-based user interface (TUI) for the installer ISO.
Integrate host network bridge and VNet access when configuring virt ..read more
Linux Handbook
8M ago
"Never spend 5 minutes doing something by hand when you can try automating it for 5 hours."
This might be sarcasm to mean that automating might take longer than doing it manually, but automation is necessary for a power Linux user. Shell scripts form a base for automation in Linux.
The simplest way to run a bash shell script is:
bash path_to_script
However, the more popular method is by giving execute permission to the script and then running the script like this:
chmod u+x script.sh
./script.sh
Let me explain this in detail, step by step.
Run Shell Scripts in Ubuntu
First of all, let us ..read more
Linux Handbook
8M ago
The du command is used to find out the space used by the directories and files in Linux. This means you can find files and directories taking the most and least size.
But by default, the du command won't let you sort the output by size.
So how do you sort du command output by size? Simple!
By piping the output to the sort command. And in this tutorial, I will share several examples of how you sort the output by size.
How to sort du command output
As I mentioned earlier, the du command does not have a built-in functionality to sort output so you'll have to pipe it to the sort command.
In the s ..read more
Linux Handbook
8M ago
Interested in AI? I am adding the AI touch to LHB with this tutorial on deploying convolutional and transformer-based generative models as microservices on Kubernetes, with containerized model serving and periodic retraining.
You'll learn the following in this tutorial:
Containerize PyTorch and TensorFlow models for GPU-accelerated inference
Implement canary deployments for gradual generative model updates
Automated continuous retraining of generative models with new data
Integrate generative microservices into disaster recovery workflows
By the end of this article, you will be able to crea ..read more
Linux Handbook
8M ago
GitLab is great for programming collaboration, but as I've found out, it's become very useful to me for writing. I use it to keep track of revisions and my work in general.
But I like to tinker, so I didn't just stop at installing Gitlab CE on a VM - that would be too easy.
I went with a proper GitLab CE server setup with separate PostgreSQL database server and a replica for failover.
I'll share the same setup with you in this tutorial:
Setup GitLab server on one system
External PostgreSQL as primary database for GitLab on another server
Set up replica server of PostgreSQL in failover mode s ..read more