Getting Eclipse to work with Oracle Java 1.7

Refer: http://stackoverflow.com/questions/10165693/eclipse-cannot-load-swt-libraries

On my Ubuntu 12.04 32 bit. I edit the command to:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/

And on Ubuntu 12.04 64 bit try:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

Not really what I wanted as a solution but important to note:

Because I had installed the Oracle Java 7 it had changed the default Java to Oracle Java 7, however it needed to be the Open JDK.

To fix, open up terminal and type

sudo update-alternatives --config java
This brings up a list of the different types of Java. Simply select the Open JDK.

 

Ubuntu Cleanup Steps

First thing first there is a few commands that can clean up your disc. I will explain them as we go. First command is the package autoclean. What autoclean does is remove partial packages from the system. To use autoclean type the following command in a terminal:

$ sudo apt-get autoclean

Then enact the package clean command. What this commnad does is to clean remove .deb packages that apt caches when you install/update programs. To use the clean command type the following in a terminal window:

$ sudo apt-get clean

You can then use the autoremove command. What the autoremove command does is to remove packages installed as dependencies after the original package is removed from the system. To use autoremove tye the following in a terminal window:

$ sudo apt-get autoremove

 

Installing RockMongo on Ubuntu

Setting up the RockMongo GUI on Ubuntu.  The easiest way to get started is to install Apache and PHP:
Refer: http://offlinedeveloper.blogspot.com/2013/05/steeps-to-configure-rockmongo.html

Step1 Install Apache and Required Components
$ sudo apt-get install apache2 php5 php-pear

Step2 Install Mongo Plug-in
$ sudo pecl install mongo

Step3 Update Apache configuration
$sudo nano /etc/php5/apache2/php.ini

In "Dynamic Extensions" section, add:
extension=mongo.so

Restart Apache
$ sudo service apache2 restart

Step 4 Get Current Version of MongoDB
Refer: http://rockmongo.com/downloads
Extract and copy as root
$ sudo mv rockmongo/ /var/www/rockmongo/

Step 5 Launch
Credentials are admin/admin by default
http://localhost/rockmongo

 

Using JSLint/JSHint in Ubuntu

Let's use JSHint instead:

Try this for configuration file:
http://blog.eye48.com/post/22780542166/javascript-quality-control-install-and-use-jshint-on

Refer: http://stackoverflow.com/questions/8863888/how-do-i-install-jslint-on-ubuntu
Refer: http://stackoverflow.com/questions/12913141/installing-from-npm-fails

$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ npm config set registry http://registry.npmjs.org/
$ sudo npm install -g jslint

---

http://blog.perthulin.com/2011/01/how-to-use-jslint-javascript-code.html

sudo apt-get install rhino

-- Original Article --
Refer: http://blog.perthulin.com/2011/01/how-to-use-jslint-javascript-code.html

Download Js-Lint:
http://jslint.com/jslint.js

In case you have missed it, I can recommend a tool called JSLint. It goes through your JavaScript for common pitfalls, performance issues and makes sure it's standards compatible.

The first step is to download the jslint.js file. Since it's a JavaScript program, you need a JavaScript interpreter to run it, e.g. Rhino or node.js. This is how you install and run it on an Ubuntu system:

$ apt-get install rhino
$ rhino /path/to/jslint.js /path/to/your/script.js

The output might hurt your feelings, but is a real time saver when hunting down cross-browser issues etc. If you need to tell JSLint about global variables, e.g. the jQuery $ sign, you do so with a special comment at the top of your JavaScript source file:

/*global alert: true, window: true, $: true */

Read more about other options here: www.jslint.com/lint.html

Also, you can use JSLint in the browser just by pasting your code in the text box over at www.jslint.com

Live CD Skipping Installation Splash

Refer: http://askubuntu.com/questions/47522/how-to-bypass-try-it-install-screen-when-booting-from-usb-live-session-wit
Release with updates installed:
http://old-releases.ubuntu.com/releases/


$sudo nano /cdrom/syslinux/syslinux.cfg

Replace:

# D-I config version 2.0
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
ui gfxboot bootlogo

with this for 32-bit:

default live
label live
say Booting an Ubuntu Live session...
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash noprompt --

with this for 64-bit:

default live
label live
say Booting an Ubuntu Live session...
kernel /casper/vmlinuz.efi
append file=/cdrom/preseed/ubuntu.seed boot=casper persistent initrd=/casper/initrd.lz quiet splash noprompt --

Fix right-handle problem with Ubuntu

https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/878198

Another workaround is to hack the theme itself. For the Ambiance theme edit

$sudo gedit /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml

and in the section starting
<frame_geometry name="frame_geometry_normal"
change left_width, right_width and bottom_height from 1 to 3.

I have not tried it on the Radiance theme but I expect the same change would work there. Keep a note of what you have done as if the theme is updated you might have to do it again.