Saturday, July 7, 2012

How to Extract a .7z file in Linux

How to extract a .7z files

To install the packages:
sudo apt-get install p7zip


In Linux, when you would like to extract a ".7z" file, you need to open your terminal and type this in:
7za e FILE.7z

How to install Microsoft Fonts for LibreOffice on Ubuntu

How to install Microsoft fonts

When installing Ubuntu, it may not come with Microsoft Fonts such as "New Times Roman" and "Verdana". Therefore, Ubuntu applications such as LibreOffice will not have them.



To install them:
sudo apt-get install msttcorefonts

Thursday, July 5, 2012

How to use crontabs in Linux

How to create a crontab

Open your terminal and run:

crontab -e
This will be for your user. 

Usually this should open up your crontab file in nano. Today, we will run our crontab to execute hourly:
0 * * * * /bin/sh /PATH/TO/SCRIPT
Now, this runs hourly shell scripts(/bin/sh).

 If you would like to run other scripts, obviously you simply change the "/bin/sh" to whatever you would like(python, perl, bash, etc...).

minute 0-59
hour 0-23
day 1-31
month 1-12
day-of-week 0-7 (0/7 Sunday, 1 = Monday, 2 = Tuesday, etc...)
command-line the command to execute

Tuesday, July 3, 2012

How to Extract a Tar Ball on Linux

How to extract a Tar Ball in Linux

In Linux, when you would like to extract a "tar.gz" file, you need to open your terminal and type this in:

tar -zxvf FILE.tar.gz

tar xvjf FILE.tar.bz2

How to install the Android SDK

How to install the Android SDK

First, install Eclipse here.

After installing Eclipse, install the Android ADT plugin for Eclipse:
 - Click on Help > Then click on
 - Install New Software Copy and paste this and click "Add":
https://dl-ssl.google.com/android/eclipse/
 - Click "OK"

Eclipse will ask you to restart. After you restart, the Android ADT plugin will ask you to either download and install the Android SDK for you or you can do it yourself.

If you are using an existing SDK or downloading it yourself:

Download the SDK:

http://developer.android.com/sdk/index.html

The file should look like:

android-sdk_r20-linux.tgz

Extract the file to your /home/USER directory by either double clicking on the file or command line:

tar -zxvf android-sdk_r20-linux.tgz
Next you will go into Eclipse and use the Android ADT plugin to use with the /home/USER/android-sdk that you have extracted.

Installing Android Versions

 - Go to Window > then click on Android SDK Manager

 From here, you can select the Android Packages that you would like.

How to remove bloatware that comes with Ubuntu

How to safely strip(uninstall) Ubuntu Bloatware

Package List (Last Updated 10/4/2012):

sudo apt-get remove --purge --ignore-missing gbrainy aisleriot gbrainy gnome-games-* gnome-sudoku gnomine libgme0 mahjongg bogofilter* empathy* thunderbird* remmina gwibber* tomboy avahi-daemon transmission-* whoopsie samba* modemmanager ubuntuone* rhythmbox* activity-log-manager-common python-zeitgeist zeitgeist-core deja-dup pidgin* apport*
* Note: this is for standard Unity

Remove Unity Completely:
http://blog.burrowsapps.com/2012/09/ubuntu-completely-remove-unity.html

Make sure to have a new Desktop(default theme):
http://blog.burrowsapps.com/2012/09/ubuntu-install-gnome-3.html

How to install Google Chrome on Ubuntu

How to install Google Chrome

Fast Way:
https://www.google.com/intl/en/chrome/browser/

Download the ".deb" file and install through the software store.

Command Line:
First, you need to get the repository:

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

Next, you need to edit your source list:

sudo nano /etc/apt/sources.list

Add this:

deb http://dl.google.com/linux/chrome/deb/ stable main

Crtl + x, then Enter to save

Followed by updating your package list:

sudo apt-get update

Finally install Google Chrome:

sudo apt-get google-chrome-stable

How to install Dropbox on Ubuntu

How to install Dropbox - the fastest way

Go to their install page:

https://www.dropbox.com/install?os=lnx

Download the ".deb" file and it will install through the store.