October 18

Ubuntu 16.04 – Disable/Enable Network Manager

Disable:
sudo systemctl stop NetworkManager.service
sudo systemctl disable NetworkManager.service

Enable:
sudo systemctl stop NetworkManager.service
sudo systemctl enable NetworkManager.service

Category: Linux | Comments Off on Ubuntu 16.04 – Disable/Enable Network Manager
October 16

Ubuntu: Autologin to an encrypted drive on startup

Make certain that you understand the security implications of using auto login on an encrypted drive.

Part 1: Encrypt the secondary drive.

  1. In the Unity dash type “disks” and hit enter.
  2. Below “Devices” click on the hard drive you want to encrypt.
  3. Below “Volumes” click on the cog/more actions button.
  4. Click “Format Volume”. For type, choose “Encrypted, compatible with Linux systems.” Name your drive and give it a strong pass phrase.
  5. Click “Format”

 

Part 2: Automatically mount the HDD on system start-up.

  1. Keep the “Disks” application open, and click on the cog.
  2. Click “Edit Encryption Options.”
  3. “Automatic Encryption Options” will be turned on, and the menu below greyed out. Turn automatic encryption options off.
  4. Enter the pass phrase from when you formatted the disk. Click “Ok”.

You now have an encrypted hard drive that will automatically login when your computer boots.

By: Tryion

Automount your encrypted drive:
If you want to have your encrypted volume automount you can do the following:

1. Create a directory on your drive that you want to mount: mkdir /media/datavolume
2. Type: cat /etc/crypttab
2. Look for the LUKS UUID.  eg: luks-3d22f21c-22bc-2bb4-7be3-2bc1121a02d73
3. Using your newly discovered encrypted volume ID, add the following to your fstab file:
4. /dev/mapper/luks-3d22f21c-22bc-2bb4-7be3-2bc1121a02d73      /media/datavolume      ext4      defaults      0      2

By: Timothy Conrad

Category: Linux, Security | Comments Off on Ubuntu: Autologin to an encrypted drive on startup
October 10

Linux: Create a small file of random data

There a several ways to create a file with random data.
Here are two options:

head -c 100k /dev/urandom > test.txt

dd if=/dev/urandom of=test2.txt bs=1k count=100

The key is creating the data from /dev/urandom or /dev/random

By: Timothy Conrad

Category: Linux | Comments Off on Linux: Create a small file of random data
September 29

Linux: configure.ac error when running autoconf

If you start receiving errors that you have undefined macros like :
configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
after running the command autoconf, you most likely need to run autoconf –install

This command will take care of install the missing packages to create a working configure file.

By: S Gimenez

Category: Linux | Comments Off on Linux: configure.ac error when running autoconf
September 22

Linux: WordPress not working after a Linux OS upgrade

After upgrading my Digital Ocean server from Ubuntu 14.04 to 16.04, none of my WordPress sites would work.
The issue was that the version of PHP had changed in 16.04

The following steps fixed the issue:

  1. sudo apt-get purge php5-common
  2. sudo apt-get install libapache2-mod-php
  3. sudo apt-get install php-mysql
  4. service apache2 restart

 

By: Timothy Conrad

Category: Linux, Websites | Comments Off on Linux: WordPress not working after a Linux OS upgrade