In Linux, Logical Volume Manager (LVM) is a useful tool that allows you to manage your disk partitions in a more flexible way. With LVM, you can create logical volumes that span multiple physical disks and dynamically resize them without the need to reboot your system. If you need to extend the root partition of […]
Category: Linux
How to extend the root partition with LVM and extend XFS file system.
If you need to increase the storage capacity of your root partition, you can do so by extending the Logical Volume Manager (LVM) and the XFS file system. Here’s a step-by-step guide on how to do this on a CentOS 7 system: After running these commands, your root partition will have been extended, and your […]
Installing GitLab CI on Ubuntu
Server preparation: Let’s first update the list of packages in the repositories, set the correct time and open ports in the firewall. Update package lists: Set the timezone: To automatically synchronize the time, install the package: And enable autostart of the service: Firewall settings: By default, Ubuntu’s firewall is set to accept any packets. But […]
TCPdump – completely guide. How to use tcpdump.
Listing network interfaces in tcpdump: In order to show a list of network interfaces used in the system, you must specify the -D parameter Capturing packets from a specific network interface By default, Tcpdump listens on the lowest numbered network interface in the list. to listen on a specific network interface, you must use the […]
How to set up automatic disk mounting in Linux
All settings are shown on the example of a CentOS system and are applicable to any Linux distribution. Mount by drive name Open the following file for editing: and add the following line to it: /dev/sda1 – the drive that we are mounting /db – directory where we mount the disk xfs – file system […]
How to create, edit and delete users in Linux
This manual describes how to work with Linux users through the terminal (using the command line). Creating users in linux Syntax: Example: In this example, the developer account is created. For the account, you should immediately create a password: *after entering, the system will ask you to enter the password twice. Key Description and examples […]
How to set up your CentOS repository
Creating a local yum repository on CentOS 7 from an ISO image is a convenient way to provide your local network with a comprehensive set of software packages. By creating a local repository from an ISO, you can have all the packages available on the installation media at your fingertips and eliminate the need to […]
What is firewalld? How to configure firewalld in Centos
Firewalld is utility that allow us to manage firewall rules. It is is the default firewall on Centos. Install and starting firewalld. Some CentOS systems may not have firewalld. To install it, enter: For automatic start, enter: And to start the service: General commands for managing firewalld View Status: Reload a firewalld configuration when you […]
Reset Root Superuser Password in Centos 7 or 8
Sometimes it happens that system administrators forget the superuser password or, for example, a server which there is no information. In these cases, we need to figure out what kind of server it is and what service is running on it. But how to get into the system if we do not have a password? […]