Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I will mainly run JBoss AS 5 on this server and I am just started to learn Linux. So which Linux distro is both easy to learn/configure/manage and runs JBoss well? Any advice/hints is appreciated.

share|improve this question

migrated from Oct 30 '09 at 0:43

This question came from our site for professional and enthusiast programmers.

Well, RedHat (RHEL) would be a "natural" choice (as JBoss is a division of RedHat). CentOS is another option. But, to be honest, JBoss would run nicely on Ubuntu Server too (that you might want to choose if you like debian based distros).

share|improve this answer

I would say that any distro is good except that you might want to uninstall the default Java that comes with your distro. OpenJDK is very commonly installed with all the main distros. What I do is download the Oracle/Sun java .bin installer and then I use the etc alternatives system to reconfigure the path environment for the newly installed Java.

This script , which needs modification, might give you some hints on how to do it:

#  run this from the jboss/bin directory
# Set the JAVA_HOME variable
function set_java_home {
  if [ -z $JAVA_HOME ]; then
      echo "Using default value for JAVA_HOME: /usr/java/default"
  export -p JAVA_HOME
  echo $JAVA_HOME > java.home.config
  sudo rm /etc/alternatives/java
  sudo ln -s $JAVA_HOME/bin/java /etc/alternatives/java
  echo "JAVA_HOME variable set to $JAVA_HOME and /etc/alternatives set."
if [ -f java.home.config ]; then
  JAVA_HOME_CANDIDATES=$(find /usr -type d -name '*jdk1.6*')
  echo "Found the following candidates for JAVA_HOME. Pick one: "
  echo "---"
  echo "---"
  echo "You chose $USER_SUBMITTED_JAVA_HOME ."
## then optionally, execute jboss
## $JAVA_BIN $JAVA_OPTS -Djava.endorsed.dirs=$JBOSS_ENDORSED_DIRS \
##     -classpath $CLASSPATH org.jboss.Main $JBOSS_OPTS $1 $2 $3
share|improve this answer

This is such a personal choice and there is no one answer fits all.

Personally, I find Ubuntu server edition the easiest to get on with as it comes on one cd and easy to get.

Other choices include Debian and CentOS amongst MANY others

share|improve this answer
Ubuntu 14.04 LTS is going to rule! – djangofan Apr 3 '14 at 14:36

I like CentOS for servers. Because it's built on RedHat Enterprise, the packages they include and choices they make are all aimed at the enterprise server market (as opposed to desktops like some other distros).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .