Start off by executing the following command: sudo nano /usr/share/applications/YOUR-PROGRAM-NAME.desktop Add the following to the file: [Desktop Entry] Version=13.0 Type=Application Terminal=false Icon[en_US]=/home/USERNAME/PATH-TO-PROGRAM-FOLDER/PROGRAM-ICON.png Name[en_US]=PROGRAM-NAME Exec=/home/USERNAME/PATH-TO-PROGRAM-FOLDER/PROGRAM-NAME.sh Name=PROGRAM-NAME Icon=/home/USERNAME/PATH-TO-PROGRAM-FOLDER/PROGRAM-ICON.png Change permissions and ownership…
Creating a desktop/application launcher Ubuntu
Syntax for Secure Copy (scp) Linux
SCP allows files to be copied from one host to another over SSH. Copy the file “foobar.txt” **from the REMOTE HOST to the LOCALHOST** scp username@remote-host-ip:foobar.txt /home/ranzy/Desktop/ Copy the file “foobar.txt” **from…
Install mod_jk to remove Tomcat port 8080 from URL
mod_jk is an apache module which connects Tomcat to webservers. What this allows is for you to remove any port numbers from the url. In short mod_jk forwards requests from…
Solve Javac IntelliJ: error:java: javactask: source release 1.6 requires target release
Click on: File -> Settings In the search box, search for: Compiler Under the compiler section, click on: Java Compiler Under the per-module bytecode version section: Remove the current bytecode…
Use Gmail or Google Apps email with OpenCart
Input the following details: Select “SMTP” as the mail protocol Insert “ssl://smtp.gmail.com” as the SMTP hostname Insert your SMTP username and SMTP password. This is your email address and password used…
Convert DMG to ISO Ubuntu
A few simple commands are required to convert DMG files to ISO format: sudo apt-get install dmg2img dmg2img file-to-convert.dmg mv file-to-convert.img image.iso
CSS rotate or spin image
Simply add the spin class to the image, and change the value of the text highlighted in red to increase or decrease the rate of spin. .spin { animation: roll 8s…
Adjust Bootstrap Navbar breakpoint
Sometimes the Bootstrap Navbar collapses into the minified version too early, or too late. The following snippet allows you to adjust at what point the collapsing takes place (courtesy of…
Install Oracle Java 7 on Ubuntu 14.04 / 14.10
Simply run the following three commands in your terminal: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer You will be asked to accept the terms and conditions, and…
MySQL – create database, add user, grant permissions
This guide will explain how to create a database in MySQL, add a new user to MySQL, and grant permissions on that database for the new user. Login to MySQL…









