Language Selection

English French German Italian Portuguese Spanish

today's howtos

Filed under
HowTos
  • Server Monitoring with Munin and Monit on Debian 8 (Jessie)

    In this article, I will describe how you can monitor your Debian 8 (Jessie) server with Munin and Monit. munin produces nifty little graphics about nearly every aspect of your server (load average, memory usage, CPU usage, MySQL throughput, eth0 traffic, etc.) without much configuration, whereas Monit checks the availability of services like Apache, MySQL, Postfix and takes the appropriate action such as a restart if it finds a service is not behaving as expected. The combination of the two gives you full monitoring: graphics that let you recognize current or upcoming problems (like "We need a bigger server soon, our load average is increasing rapidly."), and a watchdog that ensures the availability of the monitored services.

    Although Munin lets you monitor more than one server, we will only discuss the monitoring of the system where it is installed here.

    This tutorial was written for Debian 8 (Jessie), but the configuration should apply to other distributions like Ubuntu with little changes as well.

    I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal, but this is the way I take. I do not issue any guarantee that this will work for you!

  • How to setup a NAS with XigmaNAS - Unixcop

    In this article I will show you how to setup a NAS with XigmaNAS, formerly known as Nas4Free.

    A NAS (Network-attached Storage) is a network server specialized for serving files. With a PC, a couple of disks and XigmaNAS you can build a low-cost ZFS-based NAS with little effort.

  • How to install the Latest Symfony on Ubuntu 21.04 - Unixcop

    Symfony is the leading PHP framework to create websites and web apps

    There are many PHP frameworks but in this post, you will learn how to install Symfony. Maybe this is one of the most advanced ones out there.

    Symfony is an entire web development platform that includes a framework

    On the other hand, it uses the Model – View – Controller pattern that is so widespread among developers. Also, it allows you to create from simple websites to macro projects and complex applications all hand in hand with a huge community of users.

    So, let’s get started.

  • Learn Mount command in Linux and Umount command with examples a Guide

    But In Linux, When you will connect an external device, It will not mount automatically. You can mount external storage device on the desired directory in a Linux distribution.

    You can change mounting point in Linux as per your choice.

  • How to install Hastebin on Ubuntu 21.04
  • Home made snapshots with rsync - Unixcop

    In this article I will show you how to make snapshots of your filesystem that looks likes a full copy but that copy isn’t going to use the same store space as in a real full copy.

  • 20 Things You MUST DO After Installing Fedora 34 (RIGHT NOW!)

    In this video, I’ll be taking you through 20 things that’ll make your Fedora Perform Better (Preload), your Internet Speed Faster (custom DNS) and so many more improvements.

  • How To Install Lighttpd, PHP, and MariaDB on Ubuntu 20.04 LTS - idroot

    In this tutorial, we will show you how to install Lighttpd, PHP, and MariaDB on Ubuntu 20.04 LTS. For those of you who didn’t know, Lighttpd is a free, open-source, secure, and standards-compliant web server designed for high-performance environments. Compared to other alternative web servers, Lighttpd consumes very few resources and capable of serving large loads and when installed alongside PHP and MySQL or MariaDB it can serve millions of connections reliably. Lighty also has many modules that extend its capabilities.

    This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you through the step-by-step installation of PrestaShop on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.

  • How To Install Miniconda on Ubuntu 20.04 LTS - idroot

    In this tutorial, we will show you how to install Miniconda on Ubuntu 20.04 LTS. For those of you who didn’t know, Miniconda is a minimal free Conda installer. It’s a thin, bootstrap version that contains just conda, Python, the packages they depend on, and a limited range of other helpful modules like pip, zlib, and a few others. Miniconda is suitable for those who don’t mind installing each package individually. It saves you not only the disk space but also avoids dumping a lot of unnecessary applications that you don’t use often in your hard drive.

    This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Miniconda on Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.

  • How to Checkout a Specific Commit in Git? – Linux Hint

    Git is probably the most popular and most respected version control system. Large companies and individual developers use it to track and share their code and projects. It allows developers to collaborate from every point of the world and revert changes to codes if need.

    This tutorial will look at reverting to a specific commit in a specific repository using the git checkout command.

  • How to Create a Dockerfile? – Linux Hint

    Docker allows developers to build, test, and deploy applications quickly and efficiently using isolated and portable containers that run anywhere.

    Docker is an open-source tool that packages application(s), all the required packages, and its base operating system into containerized packages. As Docker containers are standalone, they run on any system without any need for reconfiguration.

    Docker builds containers from images. A Docker image is a standalone package that defines all the requirements needed to run an application, such as operating system, runtime, system tools, libraries, configurations, and more. Docker converts the images to containers during runtime.

    Docker builds images from configurations defined in a Dockerfile. A Dockerfile is simply a configuration file that states all the instructions on creating a Docker image. As a result, building Docker images using a Dockerfile is easier and much more efficient.

    This guide will walk you through creating a Dockerfile and using it to build a docker image.

  • How to Run Docker in Verbose Mode? – Linux Hint

    Errors are bound to occur once an application gets to the deployment stage. Hence, knowing how to use debugging tools and application is a critical requirement for a DevOps engineer.

    This guide will show you how to debug the Docker daemon to find and resolve errors. The debugging process works by allowing the docker daemon to show the verbose output of operations happening in the background and other helpful information. In return, the logs help to identify the reason why containers or images are not working correctly.

  • How to Set CORS in NGINX? – Linux Hint

    Cross-Origin Resource Sharing is a protocol that allows controlled access to resources located outside the scope of a given domain. CORS is similar to SOP with additional features and flexibility.
    A common example of CORS usage is if JavaScript needs to patch a request to an API endpoint located on a different domain. If SOP is used, which is followed by XMLHttpRequest and fetch, the request would be blocked. However, using CORS, the request can be allowed to access the requested endpoint.

    As you can imagine, there are some advantages and disadvantages of using CORS on your server as it does not protect against cross-domain-based attacks, including CSRF.

    The purpose of this tutorial is to give you a quick rundown of how CORS works and how to enable it on an NGINX server.

  • Configuring VNC Server Access on a Redhat Linux

    Most of the time as a Linux system administrator you are managing your servers over the network. It is very rare that you will need to have a physical access to any of your managed servers. In most cases all you need is to SSH remotely to do your administration tasks. In this article we will configure a GUI alternative to a remote access to your RHEL server, which is VNC. VNC allows you to open a remote GUI session to your server and thus providing you with a full graphical interface accessible from any remote location.

  • How to Vim / Vi Save and Quit the Editor

    Vim is an improved adaptation of Vi - the standard Unix visual text editor. Vim is available on literally all Unix-like systems, including Linux and Mac OS.

    Vim is pretty fast and almost all functions has shortcut keys. Vim is a very useful text editor for programming/scripting and editing configuration files and more.

    In this tutorial, we will show you how to save a file in Vim / Vi and quit the editor.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.