ubuntu activate root user

command sudo passwd root
will activate root user



Ubuntu java.lang.UnsatisfiedLinkError: Could not load SWT library 64 bit solution

!ENTRY org.eclipse.osgi 4 0 2013-07-23 22:59:46.009
!MESSAGE Application error
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can’t load library: /home/tuna/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can’t load library: /home/tuna/.swt/lib/linux/x86_64/libswt-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)

64 bit solution

apply the following;

>ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

Ubuntu installing Oracle JDK

To install Oracle Java on Ubuntu apply following commands;

>sudo add-apt-repository ppa:webupd8team/java
>sudo apt-get update
>sudo apt-get install oracle-jdk7-installer
>sudo update-alternatives –display java

test java

>java -version

tuna@tuna-VirtualBox:~$ java -version
java version “1.7.0_25”
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

edit your environment and add JAVA_HOME
>sudo gedit /etc/environment

add this at the end JAVA_HOME=/usr/lib/jvm/java-7-oracle
save environment file


>echo $JAVA_HOME

tuna@tuna-VirtualBox:~$ echo $JAVA_HOME

Ubuntu Windows 8 E: Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)

If you encountered the following problem;

E: Could not get lock /var/lib/dpkg/lock – open (11 Resource temporarily unavailable)

E: Unable to lock the administration directory (/var/lib/dpkg/)


Please apply the following;

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock

source: http://askubuntu.com/questions/15433/how-do-i-fix-a-could-not-get-lock-var-lib-dpkg-lock-problem