How To Install Netbeans with JDK Bundle and Sublime-Text in CentOS6/RHEL6

Several students in our PHP/mySQL class have asked about installing Netbeans IDE and/or Sublime-Text editor in their CentOS6 virtual servers. After researching the installation instructions for these programs, I determined that there was no one place that explained what our students were looking for.  Therefore, I am going to provide an installation guide here.

Installing Netbeans IDE with Oracle JDK in CentOS6/RHEL6

  1. Make a snapshot of your virtual server to be on the safe side
  2. Log in to your virtual server as root
  3. Use Firefox to browse to the following link to download the Netbeans +JDK installation software; select Linux x64 for our class:
    http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html
  4. After the download completes, right-click on your desktop and select Terminal from the shortcut menu
  5. Next, enter the following commands:
    cd /root/Downloads
    chmod 770 jdk-7u25-nb-7_3_1-linux-x64.sh
    ./jdk-7u25-nb-7_3_1-linux-x64.sh
  6. The installation script will begin running; an installation program window will pop up; accept the license agreement; accept all of the defaults, and complete the installation
  7. Netbeans 7.3.1 will be available under Applications > Programming in the menu at the top of the screen

Installing Sublime-Text 2 in CentOS6/RHEL6

  1. Make a snapshot of your virtual server
  2. Log in to your virtual server as root
  3. Open Firefox and browse to this article at https://blog.beausanders.org if you have now already done so in your virtual server
  4. Open a terminal by right-clicking on your desktop and selecting Terminal from the shortcut menu
  5. Cut and paste the following script into the open terminal; it will execute when you press Enter:
    #!/bin/bash
    wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.2%20x64.tar.bz2
    tar vxjf Sublime\ Text\ 2.0.2\ x64.tar.bz2
    mv Sublime\ Text\ 2 /opt/
    ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/subl
    ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
    SHORTCUT="[Desktop Entry]
    Version=2.0.2
    Name=Sublime Text 2
    Exec=sublime
    Terminal=false
    Encoding=UTF-8
    Type=Application
    Icon=/opt/Sublime Text 2/Icon/128x128/sublime_text.png
    Categories=TextEditor;IDE;Development"
    echo "${SHORTCUT}" > "/usr/share/applications/sublime-text-2.desktop"
    rm -f  Sublime\ Text\ 2.0.2\ x64.tar.bz2
        # plugins and settings
        # cp -rf (/path/to/user/folder/backup)Packages/* .config/sublime-text-2/Packages
  6. Once this script downloads and installs Sublime-Text 2, it will be available under Applications > Programming in the menu at the top of the screen

As always, use these suggestions at your own risk. Please let me know if you run in to any trouble with these installations.

Leave a Reply

Your email address will not be published. Required fields are marked *

WordPress spam blocked by CleanTalk.