LinuxParty

NUESTRO SITIO necesita la publicidad para costear hosting y el dominio. Por favor considera deshabilitar tu AdBlock en nuestro sitio. También puedes hacernos una donación entrando en linuxparty.es, en la columna de la derecha.
Inicio desactivadoInicio desactivadoInicio desactivadoInicio desactivadoInicio desactivado
 

Kaldin es un software de evaluación online basado en java / tomcat para ayudar a los instructores crear evaluaciones en línea. Visite esta página para obtener más detalles: http://www.kaldin.com/ El Script que se presenta en este tutorial instalará Kaldin para usted. He probado con éxito este script en Debian_7.0.0. Así como Ubuntu_12.04 en el que también debería funcionar bien, pero ésto, tendrá que hacerlo usted mismo.

Esta secuencia de comandos realizará los siguientes pasos automáticamente:

(1) Instalación de Oracle Java desde ppa

(2) Instalación de Apache 2, MySQL-5.5, Tomcat7 desde las fuentes estables de Debian

(3) Instalar webmin

(4) Conjunto Apache como proxy para tomcat

Al final, usted debe ver una página de instalación kaldin en http://your_server_ip/kaldin, proceda a llenar toda la información requerida, debe poblar la base de datos MySQL y permite hacer login.

Debajo soluciones provisionales que no se explican:

PhpMyAdmin es útil cuando se trabaja con MySQL, y también es necesaria durante la edición de una serie de textos en Kaldin DB - A saber email_settings.

Webmin es útil cuando se trata de los servidores de Linux, en este caso, es muy útil en el tratamiento de Postfix.

Cómo utilizar este script ..?

cd /tmp/

vi  kaldin

Copia y pega el código de abajo (sólo tienes que copiar la secuencia de comandos y haga clic derecho en el interior del editor vi).

Cambie el valor de la variable SERVER_FQDN, luego, en la línea de comandos escriba:

chmod + x kaldin

./kaldin    ## Esto iniciará la instalación, sólo tienes que seguir las instrucciones que aparecen en pantalla


#!/bin/bash
# Installing Kaldin Online Exam Management Solution #############
#   On Debian_7.0.0_x64 with Tomcat-7,Oracle-java7, MySQL5, Apache2, PHP5 and Webmin
#   Kaldin installation will fail if no JDK installation found
#   Kaldin is a java/tomcat based online assessment software to help instructors to 
#   create online assessments
#   visit this page for more details: http://www.kaldin.com/
## VAR

KALDIN_VER=1.8 ## Version of Latest Kaldin
KALDIN_WAR=http://superb-dca3.dl.sourceforge.net/project/kaldin/Kaldin-1.8/kaldin.war    ## Direct download Link for Kaldin WAR file
KALDIN_PROXY=/etc/apache2/conf.d/kaldin.conf
SOURCES_APT=/etc/apt/sources.list
APACHE_CONF=/etc/apache2/apache2.conf
JDK_VER=oracle-java7
JDKPATH=/usr/lib/jvm/
SERVER_FQDN=kaldiin.com        ## Change this as per your server name

##
#####        Function to prompt for user attention
function pause(){
   read -p "$*"
}

#### Installing Oracle-JAVA7
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/apt/sources.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80/ --recv-keys EEA14886
apt-get update
apt-get -y install oracle-java7-installer


#####
if dpkg --get-selections | grep $JDK_VER; then
echo "Found Oracle JDK $JDK_VER, Kaldin can be installed on this system"
else
echo "Oracle JDK $JDK_VER wasn't found in $JDKPATH, please check the installation and/or path $JDKPATH"
echo "Please correct the JDK installation and then run the Kaldin installer script. Kaldin installer is exiting now"
exit 1;
fi

#### Update the system
apt-get update
apt-get -y install sudo vim mysql-server apache2 tomcat7 php5 phpmyadmin postfix

###### Installing webmin
echo "Creating webmin sources for apt"
cat >> $SOURCES_APT << EOF
##[Webmin]
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
EOF

cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
apt-get update
apt-get -y install webmin

#####        Installing Kaldin
## Check the permissions for tomcat directories
chown -R tomcat7:tomcat7 /usr/share/tomcat7
chown -R tomcat7:tomcat7 /var/lib/tomcat7
cd /var/lib/tomcat7/webapps/

echo "downloading kaldin.war from $KALDIN_WAR"
wget $KALDIN_WAR
#pause 'Press [Enter] if kaldin.war has been downloaded successfully, else open another SSH session, download kaldin.war to /var/lib/tomcat7/webapps/, come over here and then press [Enter] to continue'

##### Setting up apache2 with "ServerName $SERVER_FQDN:80"
echo "ServerName $SERVER_FQDN:80" >> $APACHE_CONF
##### Setting up apache2 proxy for Tomcat7
cat >> $APACHE_CONF << EOF
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
EOF

#####
cat >> $KALDIN_PROXY << EOF
# mod_proxy setup.
ProxyRequests Off
ProxyPass /kaldin http://localhost:8080/kaldin/
ProxyPassReverse /kaldin/ http://localhost:8080/kaldin/

<Location "/kaldin">
  # Configurations specific to this location. Add what you need.
  # For instance, you can add mod_proxy_html directives to fix
  # links in the HTML code. See link at end of this page about using
  # mod_proxy_html.
  # Allow access to this proxied URL location for everyone.
  Order allow,deny
  Allow from all
</Location>
EOF


service tomcat7 restart
service apache2 restart

 

Pin It

Escribir un comentario


Código de seguridad
Refescar



Redes:



 

Suscribete / Newsletter

Suscribete a nuestras Newsletter y periódicamente recibirás un resumen de las noticias publicadas.

Donar a LinuxParty

Probablemente te niegues, pero.. ¿Podrías ayudarnos con una donación?


Tutorial de Linux

Filtro por Categorías