This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Linux / UNIX and the fly likes Installing Softwares & Updating Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Installing Softwares & Updating Ubuntu" Watch "Installing Softwares & Updating Ubuntu" New topic
Author

Installing Softwares & Updating Ubuntu

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Guys,

I have purchased a new notebook today and got Ubuntu 10.10 installed on it. I have a question to fellow Ubuntu users. Normally where do you prefer to put all your software installations, personal files so that later when you upgrade to te next version of Ubuntu these files are automatically backed up or preserved. My plan is to install the following:

Java, Eclipse, NetBeans, MySQL, IntelliJ, Toad for MySQL, Maven, Tomcat, JBoss.

Apart from this I also plan to have a folder that stores all my personal file, pictures, videos, documents and so on. Can anyone offer me suggestions please?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

If you use the Ubuntu update mechanisms then you can place your files anywhere. My personal documents I put under my home directory. The JDK I place at /usr/java (a habit from my Fedora days). All other stuff (Ant, Maven, Tomcat, Eclipse, etc.) that I install manually (I never install anything Java-related using the Ubuntu package manager) goes into /opt (after I chown it).

A MySQL update should be transparent, but just in case do a database dump before running the update.

Also, check this forum for discussions of updated. The posts are fairly east to spot, usually named after the Unbutu release, such as "Ubuntu 10.0 Maverick Meerkat". Some people have had good luck with updates, for me I have never had one that succeeded so I am always faced with a reinstall. In that case normal backup procedures apply.


JBoss In Action
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Thanks for the information. Can you also please hint me at a good chat messenger for Ubuntu? I tried pidgin but is there any other better alternative?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10066
    
163

I use Ubuntu and I am very much happy with Pidgin.

I tried pidgin but is there any other better alternative?


Better in what ways specifically? I just looked around and there's Empathy IM client too. I haven't used it so I have no idea what features it has when compared to Pidgin.

[My Blog] [JavaRanch Journal]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

I guess Empathy is what we get along with the Ubuntu installation. Anyways I would try out Pidgin today. Is there a way to video chat with Pidgin? I have configured my yahoo email account in Pidgin.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Peter Johnson wrote:If you use the Ubuntu update mechanisms then you can place your files anywhere. My personal documents I put under my home directory. The JDK I place at /usr/java (a habit from my Fedora days). All other stuff (Ant, Maven, Tomcat, Eclipse, etc.) that I install manually (I never install anything Java-related using the Ubuntu package manager) goes into /opt (after I chown it).


Peter, I'm going to follow you. Would put the java under /usr/java and the rest will find its place in /opt.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10066
    
163

Joe Harry wrote:Is there a way to video chat with Pidgin?


Haven't personally used video chat with Pidgin. This Pidgin FAQ has some answers.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Successfully got the following installed:

Java, Maven, Intellij, Tomcat, ANT, Eclipse, Docky, Pidgin, Screenlets. So far so good and I'm pretty much happy with 10.10.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Encountered some issues when starting eclipse. I just followed what is said in the link below to create a desktop short cut for eclipse and run it.

http://devianture.wordpress.com/2010/04/10/installing-eclipse-on-ubuntu/

But after clicking on eclipse, nothing happens. I have untarred eclipse JEE.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Here is what I do to get Eclipse to run.

First, I download and install the HotSpot JDK from Oracle's web site. I always grab the *.bin file (not the RPM!), and install it at /usr/java/jdk-xxx. (As I mentioned, this is a holdover from my Fedora days)

Then I set JAVA_HOME. I also make some soft links in /usr/bin to point to /usr/java/jdk-xxx/bin/java, etc.

I unzip Eclipse at /opt/eclipse. (I did mention that I chown /opt to myself.)

I edit eclipse.ini adding in (right before the "-vmargs" line):

-vm
/usr/java/jdk-xxx/jre/bin/client/jvm.dll

The m2eclipse plugin wants the JDK and recommends setting it up this way. This way Eclipse knows where the JDK is located. It also means I don't really need the soft links in /usr/bin

Then I add Eclipse to the Gnome menu, and I usually add the Eclipse menu item to my task bar.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Need to try that to get eclipse up and running.

Another question to you... I have a Subversion repository set up on my external HDD. Now I want to checkout those sources to my workspace. How to identify the repo location?? file:///... how to identify the HDD partition that has the sources??
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9351
    
    2

Oh yeah. Just figured that out. It was under /media...
 
wood burning stoves
 
subject: Installing Softwares & Updating Ubuntu