HOW-TO: Install MySQL Server with phpMyAdmin on Ubuntu 16.04 LTS

In this post, I will show you how to install MySQL server with phpMyAdmin to manage it. phpMyAdmin requires Apache2 to be installed, refer to this guide if you don’t already have it installed.

Once you are logged on to your Ubuntu instance, launch Terminal if in GUI or just issue the commands below (server – without GUI):

MySQL Server

sudo apt-get install mysql-server

Verify the packages that will be installed, then type y for yes and press Enter

You will see the installation begin then pause to ask you to configure a root password for MySQL. (This is different than the machine root account password) – Enter your new MySQL root password then press Ok

In the next prompt, confirm your root password and press Ok again

Assuming no errors,

Read More

HOW-TO: Install PHP7 on Ubuntu 16.04 LTS

Installing PHP7 on Ubuntu is very simple. Once you are logged on to your Ubuntu instance, launch Terminal if in GUI or just issue the commands below (server – without GUI):

Install PHP without Apache2

For only when you want to install PHP Command Line Interface to run PHP scripts without a web server

sudo apt-get install php-cli

If you have Apache2 Web Server installed

– follow this guide to install Apache2 Web Server if not already installed

sudo apt-get install php libapache2-mod-php

Verify the packages that will be installed, then type y for yes and press Enter

Thats it! To verify that PHP is working, create a new phpinfo file in your Apache2 directory (default – /var/www/html/) and name it info.php

sudo vi /var/www/html/info.php

This will create a new blank file in /var/www/html/ called info.php

Write the code below in the file then save and close

<?php phpinfo();

Read More

HOW-TO: Install Apache2 Web Server on Ubuntu 16.04 LTS

Installing Apache2 Web Server on Ubuntu is a very easy and pretty straight forward process. Once you are logged on to your Ubuntu instance, launch Terminal if in GUI or just issue the command (without GUI):

sudo apt-get install apache2

Enter your password

Verify the packages that will be installed, then type y for yes and press Enter

Thats it! If you don’t encounter any errors, you are basically done. Browse to your server’s IP address, you should see Apache’s default page

By default, Apache reads files from /var/www/html/. In order to change the default page, you need to remove/move/backup/overwrite the default index.html file /var/www/html/index.html with your own.

Read More

Shell script to download Bing’s daily image as a wallpaper for Mac

I previously wrote about downloading Bing’s daily image and set it as your wallpaper using PowerShell for Windows. Or, Python for Mac. This time around, I will show you how to do a Shell script to achieve the same thing. Also, set the downloaded image as wallpaper immediately.

I have already made the following script an app using Mac Automator. It basically creates a new directory for you, if one does not exist, under your “Pictures” directory called “Bing Wallpaper” and download Bing’s daily image there as “wallpaper.jpg”. Then, it will set the downloaded image as your wallpaper – Also works on multi-monitor.

You can save the app in your Applications folder or anywhere you want.
Download app

Or, if you want to edit the script, download the source below and make your own app.

Read More