Linux Archives

Over 80% is running on some form of Linux – so does your Mac and you iPhone. Sometimes we have to get our hands dirty on the command line – it makes you feel like a proper hacker.

Here are some pointers I picked up on my journey.

How to update Plesk via the Command Line

You can update Plesk via the Web Interface (under Tools and Settings – Updates and Upgrades). However sometimes the interface times out, or browsers get confused – therefore it’s good to know that you can apply updates via the command line interface as well. In this article I’ll show you how (in Linux – I … Read more

How to open SMTP port 587 to send emails in Plesk

By default Plesk on Linux uses Postfix for outgoing email, and by default listens on port 25 for outgoing SMTP mail. Some service providers do not allow to send emails on that port, and tragedy occurs: clients can’t send email with their Plesk servers. Not good. Other SMTP ports will usually work, such as the … Read more

How to turn off all Plesk Health Monitor alert emails

I have previously described how to adjust the values that the Plesk Health Monitor uses to determine when an email should be sent out. There is also a way to switch these emails off entirely. Here’s how: To turn off the daemon that is responsible for sending these emails, issue this: /etc/init.d/psa-health-monitor-notificationd stop No more … Read more

LAMP Stack for Humans – now available on Amazon

Lampstack-SoftcoverMy book LAMP Stack for Humans is now available on Amazon, as Paperback and for Kindle Devices!

In this 284 page guide I’ll walk you through the process of turning an old laptop into an always-on server. You can use it to run web applications in the comfort of your own home or office – no “cloud” required.

Together we will configure the entire server: you will learn how to install CentOS, Apache, PHP and MySQL (or MariaDB) and WordPress. I will show you how you can reach your server from other computers on the network and how to create regular backups.

Perfect for the Linux newbie and those who want to get started with web applications without spending money “in the cloud” (in my opinion THE WORST expression for describing remote computers).

If you’re an avid reader of this site and have always wished that some instructions would be presented in a more cohesive form rather than in snippets, then LAMP Stack for Humans is perfect for you.

Grab your free sample today, or read the entire book for free via Kindle Unlimited!

Read more

How to edit your network connection settings from the command line in CentOS 7

CentOS 7 has a very funky text-based user interface that allows editing several important network connection settings. It’s called nmtui. Type the command without any parameters to get started: nmtui Now use this handy interface: Your system may require a full restart for all settings to take affect. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Networking_Guide/sec-Networking_Config_Using_nmtui.html

How to find the UUID of a disk drive in Linux

There are two ways I know of which will print the UUID of all disk drives attached to the current system: blkid /dev/sr0: UUID=”2014-12-02-19-30-23-00″ LABEL=”CDROM” TYPE=”iso9660″ /dev/sda1: UUID=”ae55a647-3c57-4ab5-9651-1389703fe6fe” TYPE=”ext4″ /dev/sda2: UUID=”bMtCfO-zpDU-7U1t-DcHg-Fe9p-Cy1K-Se0e1I” TYPE=”LVM2_member” /dev/sdb1: UUID=”0982ce66-537a-497b-baaf-99136594f3e8″ TYPE=”ext4″ /dev/mapper/VolGroup-lv_swap: UUID=”8f0652a8-d79b-453f-aa2d-0ff0b5d0ae7b” TYPE=”swap” /dev/mapper/VolGroup-lv_root: UUID=”5afc1b25-e6cd-45b2-ad20-69f0fed323b9″ TYPE=”ext4″ /dev/mapper/VolGroup-lv_home: UUID=”94e15e98-1cff-49a9-b76a-a8f3a948e2ea” TYPE=”ext4″ or ls -la /dev/disk/by-uuid total 0 drwxr-xr-x. 2 root root 160 … Read more

Getting started with Jekyll on CentOS 7

It’s not quite as easy to get up and running with Jekyll as the Quick Start Guide makes it sound. But it’s not super difficult either – if explained from one human to another. Here’s how I got Jekyll working on a vanilla CentOS 7 instance. Installing some necessary packages Before we can install Jekyll … Read more