Skip to main content

Posts

Showing posts from July, 2014

Update Date and Time from Internet in Ubuntu

You can use ntpdate command to update date and time from Internet in Ubuntu. You can synchronize with global server such as pool.ntp.org . The pool.ntp.org project is a big virtual cluster of timeservers providing reliable easy to use NTP service for millions of clients. This is the command. $ sudo ntpdate id.pool.ntp.org You can change id.pool.ntp.org to your appropriate location such as jp.pool.ntp.org (Japan), de.pool.ntp.org (Germany), etc.

Create Desktop Shortcut in Ubuntu

It's different with Windows, we should install additional tools to create desktop shortcut in Ubuntu. First, you must install the tools by this command. $ sudo apt-get install --no-install-recommends gnome-panel Then, run the tools to create desktop shortcut. $ gnome-desktop-item-edit /home/<user>/Desktop/ --create-new After that, a pop up window will show up. You should fill information about the shortcut.

Install Oracle JDK in Ubuntu

In development environment I prefer to use Oracle JDK rather than OpenJDK. The easiest way to install any applications in Ubuntu is from repository. To install Oracle JDK you must add its repository. These are the commands. $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer If you have installed other version, e.g Java 6 or Java 8, you can update your system environment by this command. $ sudo update-java-alternatives -s java- <version> -oracle You can setup Java environment variables by this command. $ sudo apt-get install oracle-java7-set-default reference:  http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html