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.
- In the Unity dash type “disks” and hit enter.
- Below “Devices” click on the hard drive you want to encrypt.
- Below “Volumes” click on the cog/more actions button.
- Click “Format Volume”. For type, choose “Encrypted, compatible with Linux systems.” Name your drive and give it a strong pass phrase.
- Click “Format”
Part 2: Automatically mount the HDD on system start-up.
- Keep the “Disks” application open, and click on the cog.
- Click “Edit Encryption Options.”
- “Automatic Encryption Options” will be turned on, and the menu below greyed out. Turn automatic encryption options off.
- 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
Linux: Create a small file of random data
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
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:
- sudo apt-get purge php5-common
- sudo apt-get install libapache2-mod-php
- sudo apt-get install php-mysql
- service apache2 restart
By: Timothy Conrad