May 24 2006
User: cedric
Category: Linux
Tags: serveur

Ajaxterm 0.6

Pour acceder à son serveur par un browser web, il existe une solution sympathique: Ajaxweb

La configuration et l’installation sur Debian/Ubuntu est très bien expliquée ici

j’ai fait en plus un petit script pour automatiser le demarrage du démon:
  #! /bin/sh
  # ajaxterm
  daemon to start and stop ajaxterm on port 7080
  #access by https://yoursite.com/ajaxterm/
  DAEMON=/path_to_the_file/ajaxterm.py
  PORT=-p7080
  NAME=ajaxterm
  test -x $DAEMON || exit 0
  case "$1" in
      start)
      echo -n "Starting daemon: " 
      start-stop-daemon --start --background --pidfile /var/run/ajaxterm.pid --make-pidfile --exec /usr/bin/python $DAEMON -- $PORT
      echo "ajaxterm." 
      ;;
      stop)
      echo -n "Shutting down: " 
      start-stop-daemon --stop --pidfile /var/run/ajaxterm.pid --oknodo --exec /usr/bin/python $DAEMON -- $PORT
      echo "ajaxterm." 
      ;;
      restart)
      echo -n "Restarting: " 
      start-stop-daemon --stop --pidfile /var/run/ajaxterm.pid --oknodo --exec /usr/bin/python $DAEMON -- $PORT
      start-stop-daemon --start --background --pidfile /var/run/ajaxterm.pid --exec /usr/bin/python $DAEMON -- $PORT
      echo "ajaxterm." 
      ;;
      *)
      echo "Usage: $0 {start|stop|restart}" 
      exit 1
  esac
  exit 0
Enregistrez le script /etc/init.d/ajaxterm en tant que root (ou sudo) et le tour est joué, et configurez le demarrage et l’arrêt du démon avec la commande:
  update-rc.d ajaxterm start 20 3 5 . stop 20 0 1 6 .

comments : 0 Add comment

Back
Log in

Quick links

Localization

Search

weather


  • metric us

gallery

Last comments

Categories

  • categories

nabaztag

  • message

    left
    right
    voice
    speed
    pitch

hcard