- byobu-classroom peers have a leader running the primary screen... other peers simply change init scripts to redirect to the master upon guest login
update /etc/default/ajaxterm
-------------------8<-------------------------
# Default start options for Ajaxterm
# Sourced by /etc/init.d/ajaxterm
#
# This is a POSIX shell fragment
#
# Set the daemon's user id (ajaxterm by default)
# If run as root ajaxterm will run `/bin/login',
# otherwise it will run `ssh localhost'.
#AJAXTERM_UID="ajaxterm"
# Allow to change the default port used by Ajaxterm
#PORT="8022"
# Allow to use a different port than 22 to connect to the ssh server
#SERVERPORT="22"
COMMAND='ssh -l guest ec2-75-101-209-36.compute-1.amazonaws.com -oPreferredAuthentications=keyboard-interactive,password -oNoHostAuthenticationForLocalhost=yes -oLogLevel=FATAL -F/dev/null'
-------------------8<-------------------------
updated /etc/init.d/ajaxterm
-------------------8<-------------------------
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: ajaxterm
# Required-Start: $syslog $local_fs $remote_fs
# Required-Stop: $syslog $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts/stops ajaxterm
# Description: starts and stops Ajaterm,
# a web based terminal written in Python
### END INIT INFO
Just a reminder:
- use a head
- byobu-classroom peers have a leader running the primary screen... other peers simply change init scripts to redirect to the master upon guest login
update /etc/default/ ajaxterm ------- -----8< ------- ------- ------- ---- d/ajaxterm
-------
# Default start options for Ajaxterm
# Sourced by /etc/init.
#
# This is a POSIX shell fragment
#
# Set the daemon's user id (ajaxterm by default) UID="ajaxterm"
# If run as root ajaxterm will run `/bin/login',
# otherwise it will run `ssh localhost'.
#AJAXTERM_
# Allow to change the default port used by Ajaxterm
#PORT="8022"
# Allow to use a different port than 22 to connect to the ssh server 101-209- 36.compute- 1.amazonaws. com -oPreferredAuth entications= keyboard- interactive, password -oNoHostAuthent icationForLocal host=yes -oLogLevel=FATAL -F/dev/null'
#SERVERPORT="22"
COMMAND='ssh -l guest ec2-75-
------- ------- -----8< ------- ------- ------- ----
updated /etc/init. d/ajaxterm ------- -----8< ------- ------- ------- ----
-------
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: ajaxterm
# Required-Start: $syslog $local_fs $remote_fs
# Required-Stop: $syslog $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts/stops ajaxterm
# Description: starts and stops Ajaterm,
# a web based terminal written in Python
### END INIT INFO
PATH=/usr/ local/bin: /usr/local/ sbin:/usr/ bin:/usr/ sbin:/bin: /sbin /usr/bin/ ajaxterm /var/run/ ajaxterm. pid UID=ajaxterm GID=ajaxterm
DAEMON=
PORT=8022
SERVERPORT=22
PIDFILE=
NAME=ajaxterm
DESC="web based terminal"
AJAXTERM_
AJAXTERM_
if [ $(id -u) != 0 ]; then
echo "You should run this program as root"
exit 1
fi
[ -x "$DAEMON" ] || exit 0
[ -f "/etc/default/ ajaxterm" ] && . /etc/default/ ajaxterm
. /lib/lsb/ init-functions
case "$1" in action_ cont_msg " already running" stop-daemon --start --group= $AJAXTERM_ GID --pidfile $PIDFILE --exec $DAEMON -- --daemon --port=$PORT --serverport= $SERVERPORT \ $AJAXTERM_ UID --command= "$COMMAND" >/dev/null force-reload) stop|restart| force-reload} " >&2 ------- -----8< ------- ------- ------- ----
start)
log_begin_msg "Starting $DESC:" "$NAME"
if [ -f $PIDFILE ]; then
log_
log_end_msg 1
else
start-
--uid=
log_end_msg $?
fi
;;
stop)
log_begin_msg "Stopping $DESC:" "$NAME"
start-stop-daemon --stop --pidfile $PIDFILE
rm -f $PIDFILE
log_end_msg $?
;;
restart|
$0 stop
$0 start
;;
*)
echo "Usage: $SCRIPTNAME {start|
exit 3
;;
esac
-------