Categories
Linux Servers

Fixing kernel error AMD-Vi IO_PAGE_FAULT – Linux

Without any clear reason, today an error appeared on my home server, in fact the server crashed and did not respond to any commands, the only option was the hardware reset, from the button! The server is a HTPC, with remote access (headless server), based on a Ryzen 2400G processor, 16GB Ram, 1xNVMe, 1xSSD, 4xHDDs […]

Categories
Linux Servers Useful

How to Update Linux Kernel to 5.5.0

To upgrade to linux 5.5.0 kernel, you can perform the following steps: 1st) Download the following files to an empty folder (for 64bit & generic kernel): wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/linux-headers-5.5.0-050500_5.5.0-050500.202001262030_all.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/linux-headers-5.5.0-050500-generic_5.5.0-050500.202001262030_amd64.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/linux-image-unsigned-5.5.0-050500-generic_5.5.0-050500.202001262030_amd64.deb wget https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5/linux-modules-5.5.0-050500-generic_5.5.0-050500.202001262030_amd64.deb 2nd) execute the command: sudo dpkg -i *.deb 3rd) In the end, after the installation has taken place, all you have […]

Categories
Linux Servers

Stop Random Standy/Sleep in Ubuntu-Linux Server

My Ubuntu Server 18.04, is without a monitor / keyboard connected (headless server) and has been running for several years, but today I updated to the latest kernel version because I couldn’t find the solution to a problem that suddenly appeared and without any apparent cause: AMD-Vi IO_PAGE_FAULT error. From what I found online, it […]

Categories
Linux Security Servers

Install OpenVPN, DNSCrypt and Pi-Hole – Ubuntu 20

Step by step: Install OpenVPN + Pi-Hole ad-blocker + DNSCrypt-proxy for DoH and DNSSEC Step 1. Update the system: sudo apt update sudo apt upgrade Step 2. Install OpenVPN: wget https://git.io/vpn -O openvpn-install.sh chmod 755 openvpn-install.sh sudo ./openvpn-install.sh Generated opvn file can be used with an OpenVPN client in PC or cell phone. It can be […]

Categories
Linux Servers

How to Change Partition Label Names on Linux: EXT4 / EXT3 / EXT2

The most popular options are to use commands e2label or tune2fs used for changing label of ext4, ext3 or ext2 type partitions: # e2label /dev/sdf1 EXTLABEL and/or # tune2fs –L EXTLABEL /dev/sdf1 For other file filesystem, some less used in the linux environment: NTFS ntfslabel /dev/sdf1 NTFSLABEL SWAP mkswap -L SWAPLABEL /dev/sdf1 exFAT exfatlabel /dev/sdf1 […]

Categories
Linux Servers Useful

Reload new entry in fstab – fast and easy way – Linux

A fast and easy way to reload new entries in /etc/fstab is to use the linux mount command: @ sudo mount -a or with verbose mode: @ sudo mount -av / : ignored /boot : already mounted /boot/efi : already mounted //srv/TOSHIBA-3T-V300 : already mounted //srv/WD-2T-USB : already mounted //srv/TOSHIBA-3T-ENTERPRISE: already mounted //srv/SAMSUNG-850-PRO : already […]

Categories
Servers

Common HTTP response status codes

200 OK The request has succeeded and depends on the HTTP method (The most common response code): GET: the resource has been fetched & is transmitted in the message body. HEAD: the entity headers are in the message body. POST/PUT: result of the action is transmitted in the message body. 201 Created Is typically the […]

Categories
Linux Servers Useful

How long a process has been running on linux server ? by PID or Name

If you want to see how long a process has been running on linux, all you have to do is find on its PID and use the following command: @ ps -o etime= -p “530” 9-18:53:38 but if you want the result in seconds, not in D-H:M:S / timestamp format, use the command like this: […]

Categories
Linux PHP Servers Useful

Get PHP MAJOR,MINOR and RELEASE Version Number – Linux Server

To find out the current version of php active on the server, there are basically two simple solutions and both use the php command with additional parameters. 1. php + grep + cut @ php -v | grep ^PHP | cut -d’ ‘ -f2 7.4.13 2. php +  internal constant from php itself @ php […]

Categories
Linux PHP Servers Useful

PHP-FPM Service – How to start,stop,reload – Ubuntu Linux Severs

Used with many web servers like Apache, Nginx, and other, PHP-FPM is a FastCGI process manager for PHP. Sometimes we need to restart the server for various reasons: changing settings for example, and depending on what linux we have on the server there are some variations in the commands used. Ubuntu/Debian Linux (Ubuntu Linux 16.04+; 18.04; […]