How to display a static Google Map

 

If you have ever needed a static Google Maps image, here is the URL to use:

The bold values can be changed to suit your requirements.

https://maps.googleapis.com/maps/api/staticmap?center=180,lonsdale,st,melbourne,%20Australia&zoom=15&size=800×600&format=gif&sensor=false

Handy if you need a simple version to print and take with you.

You can do much more than described above like add markers and routes, just visit the Google Developers site https://developers.google.com/maps/documentation/static-maps/intro?hl=en

 

 

 

Install GUI on Ubuntu 14.04

Pretty simple.  You want to add a visual interface to your Ubuntu server.

Firstly, update the APT package manager

sudo apt-get update

Install a minimal Unity desktop

sudo apt-get install --no-install-recommends ubuntu-desktop

GUI should now be installed, reboot to take effect.

sudo reboot

This is what is looks like upon reboot (after login)
unity

To get to a TTY terminal.
For Text Mode
Ctrl-Alt-F1(-F6)
for GUI Mode
Ctrl-Alt-F7

Installing Webmin on ubuntu

To install Webmin via apt-get you will have to add it to your repository:

sudo nano /etc/apt/sources.list

Go to the end and add this to the file:

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Save the file.  Ctrl-X, Yes, Enter.

After performing the above actions, you need to get the GPG key the repository is signed with. So for that type in the following commands:

cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

After adding the GPG key you need to update the source.list:

sudo apt-get update

Now you can install Webmin by typing:

sudo apt-get install webmin

Or alternatively you can try downloading the actual .deb file:

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.750_all.deb

This will download the .deb file on to the system, then you should:

dpkg --install webmin_1.750_all.deb

This will install Webmin on your system.
Login to Webmin
Open up the browser and type in you IP address with as following:

https://your_ip:10000/
OR
https://localhost:10000/

You will get a warning for the SSL certificate, you may just proceed ignoring that warning. After you have navigated to the above URL you will get the following login page:

Log in with root user name and password.

Simple boto.cfg example file

This file can be place in either:

/etc/boto.cfg for system wide

$HOME/.boto for user specific


 

 

cat /etc/boto.cfg
# boto.cfg
# python boto config file - system wide settings

[Credentials]
# <AWS account name>
aws_access_key_id = <access_key_id>
aws_secret_access_key = <secret_key_id>

[Boto]
#debug = 0
#num_retries = 10
#
#proxy = myproxy.com
#proxy_port = 8080
#proxy_user = foo
#proxy_pass = bar