How-to: Boot MLN Hosts into Konsole Tabs

From SOFTICE

Jump to: navigation, search

Contents

Developed by:

Synopsis

This page describes how to modify MLN's startup scripts to boot each host into its own konsole tab.

dcop

Coming soon.

Example Network

Coming soon.

Modifying Startup Scripts

Coming soon.

Completed Startup Script

#!/bin/sh

mco=$(find uml_dir -type s | grep "/server/" )
if [ -n "$mco" ]; then
echo "Host server seems to be up already"
exit 1
fi

echo "Starting server in konsole"

kstart konsole --script
konsole=`dcop | grep konsole | tail -n 1` # identify console process

session=$(dcop $konsole konsole currentSession) # identify current (first) tab
dcop $konsole $session renameSession server # label server tab

# launch server
dcop $konsole $session sendSession "/home/softice/matt/mln/uml/uml-2.6.12-rc2-mm3/linux   \
ubd0=images/server \
eth0=daemon,fe:fd:0:0:f6:6a,unix,network/lan \
ubd2=/home/softice/matt \
mem=32M umid=server uml_dir=uml_dir/server  LD_ASSUME_KERNEL=2.4.1"



mco=$(find uml_dir -type s | grep "/client/" )
if [ -n "$mco" ]; then
echo "Host client seems to be up already"
exit 1
fi

echo "Starting client in konsole"

session=$(dcop $konsole konsole newSession) # create client tab
dcop $konsole $session renameSession client # label client tab

# launch client
dcop $konsole $session sendSession "/home/softice/matt/mln/uml/uml-2.6.12-rc2-mm3/linux \
ubd0=images/client \
eth0=daemon,fe:fd:0:0:66:c,unix,network/lan \
ubd2=/home/softice/matt \
mem=32M umid=client uml_dir=uml_dir/client  LD_ASSUME_KERNEL=2.4.1"



mco=$(find uml_dir -type s | grep "/observer/" )
if [ -n "$mco" ]; then
echo "Host observer seems to be up already"
exit 1
fi

echo "Starting observer in konsole"

session=$(dcop $konsole konsole newSession) # create observer tab
dcop $konsole $session renameSession observer # label observer tab

# launch observer
dcop $konsole $session sendSession "/home/softice/matt/mln/uml/uml-2.6.12-rc2-mm3/linux \
ubd0=images/observer \
eth0=daemon,fe:fd:0:0:e5:7b,unix,network/lan \
ubd2=/home/softice/matt \
mem=32M umid=observer uml_dir=uml_dir/observer  LD_ASSUME_KERNEL=2.4.1"

Screenshot

Coming soon.

References

  • [1] DCOP: Desktop COmmunications Protocol
  • [2] The MLN Manual
Personal tools