Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Sunday, 17 August 2014

How to Bring back classic menu on Ubuntu?

| Sunday, August 17, 2014 | | | Be first to comment!

Newer versions of Ubuntu have perfectly handled the application search and access. Now, you only need to press that super key and type to search. So, the dash is just enough.

ALSO SEE: Customize Ubuntu for bloggers

In older versions, applications were accessed from classic menu. Some users still find it better for easily accessing applications and want classic menu back on Ubuntu.

classic menu on ubuntu 14.04
Classic Menu on Ubuntu 14.04
Using the above is completely user's choice some find it better others find it of no use. The layout and orientation is different from the original. But if you'll use it you'll get familiar in couple of hours.

To get Classic Menu-
  1. Go to software center and search for ClassicMenu Indicator, and Install it.

Friday, 15 August 2014

How to install Sublime Text theme on Netbeans?

| Friday, August 15, 2014 | | | Be first to comment!

PHP developers love Sublime Text. I have Sublime Text installed on Ubuntu. But Sublime Text is a text editor with modern features like code completion, syntax highlighting, etc.

For bigger projects or when you have to meet deadlines, you are required to use some IDE to decrease development time.

ALSO SEE: Install NetBeans IDE 8.0 on Ubuntu

sublime text theme for NetBeans IDE
Import Sublime Text theme

How to install Sublime Text theme on NetBeans IDE?

  1. Download Sublime Text theme.
  2. Open NetBeans, go to Tools then Options, and then Import.
  3. Browse and select the downloaded .zip file. And hit OK.
This will force your IDE to restart. After restart your theme will become active.

NOTE - Systax Highlighting is only applicable for HTML, CSS, XML and PHP codes only.

How to install NetBeans IDE 8.0 on Ubuntu?

| Friday, August 15, 2014 | | | Be first to comment!

NetBeans IDE 7.0.1 is available on Ubuntu's Software Center. But the latest stable version online is 8.0. Also using the method below you are required to get programming language specific bundle only.

If you are PHP developer, then why would you install IDE for Java or C or C++.

Installing Netbeans IDE 8.0

  1. Go to NetBeans official website and download the bundle required. There are 5 NetBeans bundle. NetBeans for Java SE, Java EE, C/C++, HTML5 & PHP, All (this package will support all individual bundles).
  2. The file downloaded will have a .sh extension.
  3. You have to make the file executable. To do so follow the steps below-
  • Right click on the file, select Properties.
  • Navigate to Permission Tab.
  • Check Allow executing file as program option.
Netbeans IDE 8.0 on Ubuntu 14.04
Making file executable
NOTE - In the above method, if Group has Read-only permission the above method won't work. As soon as you'll check it, it will automatically get unchecked.

Using terminal to make file executable

sudo chmod +x 'path/to/file.sh'
To execute

sudo bash 'path/to/file.sh'

The program will also search for JVM on your system. It will also automatically install some updates while installing like Symphony framework, etc. I did only PHP bundle installation.

Saturday, 9 August 2014

How to install JDK 8 on Ubuntu?

| Saturday, August 09, 2014 | | | Be first to comment!


install JDK 8 on Ubuntu
JDK 8 on Ubuntu
When setting up JDK 8 or any other version in Windows platform you are required to set PATH environment variable manually. In case of Ubuntu, you can skip that step and everything will work jut fine.

Install JDK 8

Oracle JDK 8 stable version was released on 18th of March, 2014.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

Check Java Version

To check the version of Java. just check the version of java tool. To get a complete set of options just type java in terminal and hit enter.

$ java -version

java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java Hotspot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)

Check Javac tool version

$ javac -version
javac 1.8.0_11

How to switch to JDK 7?

$ sudo update-java-alternatives -s java-7-oracle
To switch back to JDK8,
$ sudo update-java-alternatives -s java-8-oracle

What if OpenJDK is also installed?

No, need to worry. After installing JDK 8 via ppa, it will get set as default. But, if openJDK is installed then, while trying to switch back to JDK 7, the above command will not work.

Saturday, 2 August 2014

How to install Sublime Text in Ubuntu?

| Saturday, August 02, 2014 | | Be first to comment!

Sublime Text in loved most among PHP programmers. Sublime Text is a cross platform text and source code editor. Sublime text is not available from Software Center.

It is not an IDE or Integrated Development Environment. But provides some features like code highlighting, auto code completion, multiple selections, split editing, distraction free mode, etc.

Install Sublime Text on Ubuntu
Sublime Text on Ubuntu

How to install Sublime Text on Ubuntu?

  1. Go to Sublime text official website, and select to download Sublime Text 3 Beta release.
  2. From beta version page download 32 bit or 64 bit version. From here you will get a file with .deb extension. Don't download the one with .tar.bz2 extension.
  3. Now, double click on the file. It will get opened in software center, and will install.
NOTE- If you'll download file with .tar.bz2  extension. You're required to extract the file and then double click the executable file again and again to run Sublime Text.
Also, it won't get installed on your system, and you cannot search Sublime Text from Search bar.