Skip to main content

Posts

Ubuntu 18.04 Change Hostname

Follow the following post to change hostname: https://linuxize.com/post/how-to-change-hostname-on-ubuntu-18-04/ 1. sudo hostnamectl set-hostname [new hostname] 2. nano /etc/hosts 3. ls -l /etc/cloud/cloud.cfg If there is a cloud.cfg file, edit the following to "true" 4. # This will cause the set+update hostname module to not operate (if true) preserve_hostname: true

Implementing MFT for a more secure data transfer than SFTP

Managed File Transfer provides a more secure file transfer options. Implementing this requires the use of secured key pairs. The following is a summary of steps and references. Full credit to Mr. Martin Ng. Platform: AWS EC2 running on Ubuntu AMI. References to path may be different, with ISPConfig installed for virtual hosting management. For key generation: https://www.thesecuritybuddy.com/pgp-and-gpg/how-to-generate-gpg-key/ For generating enough entropy at the last step of key generation (need to open another SSH): https://serverfault.com/a/950103 (essentially run ls on root path so that it generates disk operations / entropy) Encrypting and decrypting: https://www.gnupg.org/gph/en/manual/x110.html Passing passphrase in decrypting (simplified as using this --batch --passphrase 'thepassphrase'): https://superuser.com/a/1358025 Note: The ".gnupg" directory should be in the same directory of the PHP files...

Ubuntu 14.04.5LTS to 16.04.5LTS

Ubuntu 14.04.5LTS is a widely popular Linux distro for server and it still receives updates as of Feb 2019. However, the official maintenance period will soon end (April 2019) and hence it is prime time for upgrade. Upgrading a standard LAMP from 14.04LTS to 16.04LTS is not as straight forward as it seems, especially the original server may be running for years receiving various patches to different minor versions (14.04.1, .2, .3, .4, and .5) Below are the steps that had worked for me. 1. Ensure the 14.04 version is updated to 14.04.5LTS. This is the latest as of this writing. If you are running ISPConfig 3.1, it is recommended that you also upgrade ISPConfig prior to the distro upgrade. 2. apt-get update 3. apt-get upgrade 4. apt-get dist-upgrade The above steps should patch the 14.04 to the latest version and with all the patches installed. 5. do-release-upgrade This should then prompt a new version is ready for upgrade. 6. I have chosen to keep all existing ...