To change the MySQL password for a particular user first login to MySQL: mysql -u root -p Next update the appropriate user's password with the following command: SET PASSWORD FOR…
Change/update MySQL password
Linux user management – list, add, edit, delete
To list users: getent passwd To add a new user: sudo adduser newuser To change a user's password: sudo passwd username To change a user's username: sudo usermod -l newUsername…
Change/update hostname Ubuntu
To change the hostname of an Ubuntu machine you can run the following commands:
Split large files Ubuntu
If you're working with large log files and you're not comfortable using vi or vim then you might want to split your log/text file into multiple parts based on the…
Prevent chrome from redirecting http to https
Chrome employs HSTS which allows sites to elect to use https. This is a bit of a buggerup when you don't want to use https. To get rid of https…
ssh too many authentication failures – solved
If you receive the following message when trying to login using ssh: too many authentication failures This is as a result of ssh iterating through your keys stored in ~/.ssh,…
Add additional hard drive to proxmox
The first step to adding a new hard drive to Proxmox is to run: fdisk -l It's likely that you'll see a list of drives in the format: /dev/sda Next,…
Update Ghost blog
Assuming you installed Ghost using Ghost CLI, it is a straight forward process to update Ghost. Change directories to where Ghost is installed: cd /var/www/ghost Simply run the following to…
Install Gitlab with Let's Encrypt Ubuntu 16.04
Firstly, add the Gitlab repository: curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash Update your package list: sudo apt-get update Next, install Gitlab Community edition: sudo apt install gitlab-ce The order in…
WordPress – Fatal Error: Allowed Memory Size Exhausted – Solved
One really handy method for troubleshooting rogue WordPress themes or plugins is to view the error_log file in the root web directory (www or public_html). This will reveal what the…









