blob: 4c48bcd60255cf2998c9d51e4c75ba7c91ce9176 [file] [log] [blame]
#!/bin/bash
export USER=tutorial1
#create_user $USER "Basic ONOS Tutorial"
#sudo su - $USER
DESKTOP=/home/${USER}/Desktop
mkdir -p ${DESKTOP}
#sudo chown -R $USER:$USER $DESKTOP
cat > ${DESKTOP}/ONOS << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=ONOS
Name[en_US]=ONOS
Icon=konsole
Exec=/usr/bin/lxterminal -e '/opt/onos/apache-karaf-3.0.2/bin/client -u karaf -h 10.0.3.11'
Comment[en_US]=
EOF
#sudo chown $USER:$USER ${DESKTOP}/ONOS
cat > ${DESKTOP}/Mininet << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Mininet
Name[en_US]=Mininet
Icon=konsole
Exec=/usr/bin/lxterminal -e 'sudo mn --custom /home/mininet/onos/tools/test/topos/tower.py --topo tower --controller remote --mac'
Comment[en_US]=
EOF
#sudo chown $USER:$USER ${DESKTOP}/Mininet
cat > ${DESKTOP}/Tutorial << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=ONOS Tutorial
Name[en_US]=ONOS Tutorial
Icon=internet-web-browser
Exec=/usr/bin/chromium-browser https://wiki.onosproject.org/display/ONOS/Basic+ONOS+Tutorial
Comment[en_US]=
EOF
#sudo chown $USER:$USER ${DESKTOP}/Tutorial
cat > ${DESKTOP}/GUI << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=ONOS GUI
Name[en_US]=ONOS GUI
Icon=internet-web-browser
Exec=/usr/bin/chromium-browser http://localhost:8181/onos/ui/index.html#topo
Comment[en_US]=
EOF
#sudo chown $USER:$USER ${DESKTOP}/GUI
cat > ${DESKTOP}/Wireshark << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Wireshark
Name[en_US]=Wireshark
Icon=wireshark
Exec=/usr/bin/wireshark
Comment[en_US]=
EOF
#sudo chown $USER:$USER ${DESKTOP}/Wireshark
cat > ${DESKTOP}/Reset << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Reset
Name[en_US]=Reset
Icon=konsole
Exec=/usr/bin/lxterminal -t 'Resetting; please wait' -e 'sudo service onos restart'
Comment[en_US]=
EOF
#sudo chown $USER:$USER ${DESKTOP}/Reset
#sudo chown -R $USER:$USER $DESKTOP
# Make sure the 3 node cluster is not running
#cell 3node
#onos-service --cell stop
#cell 1node
#onos-group install -f
#exit