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.

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

How to mount EXT4 partitions on Android Jelly Bean

I was racking my brains over how to mount an SD card formatted with anything other than FAT32 on my Android device. Jelly Bean and Kit Kat automatically mount FAT32 partitions, but they seem to ignore native Linux file systems – which Android clearly understands. Apparently there’s a $1.54 app on the Play Store that … Read more

The Debian Experience: Cheat Sheet for CentOS and Fedora users

I’ve just installed a LAMP stack on my Nook Tablet using Debian. However I’ve been using CentOS since 2008 and I’m so used to how things are done there that it was a bit of a culture shock doing relatively simple things “on the other side”. It’s like a country whose language you don’t speak … Read more