Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 3 | export USER=tutorial1 |
| 4 | |
Jonathan Hart | 6ccaec8 | 2015-04-01 14:43:40 -0700 | [diff] [blame^] | 5 | echo "Creating tutorial1" |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 6 | |
| 7 | DESKTOP=/home/${USER}/Desktop |
| 8 | |
| 9 | mkdir -p ${DESKTOP} |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 10 | |
| 11 | cat > ${DESKTOP}/ONOS << EOF |
| 12 | [Desktop Entry] |
| 13 | Encoding=UTF-8 |
| 14 | Type=Application |
| 15 | Name=ONOS |
| 16 | Name[en_US]=ONOS |
| 17 | Icon=konsole |
Jonathan Hart | 6ccaec8 | 2015-04-01 14:43:40 -0700 | [diff] [blame^] | 18 | Exec=/usr/bin/lxterminal -e '/home/mininet/apache-karaf-3.0.2/bin/client -u karaf -h 10.0.3.11' |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 19 | Comment[en_US]= |
| 20 | EOF |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 21 | |
| 22 | cat > ${DESKTOP}/Mininet << EOF |
| 23 | [Desktop Entry] |
| 24 | Encoding=UTF-8 |
| 25 | Type=Application |
| 26 | Name=Mininet |
| 27 | Name[en_US]=Mininet |
| 28 | Icon=konsole |
Jonathan Hart | 6ccaec8 | 2015-04-01 14:43:40 -0700 | [diff] [blame^] | 29 | Exec=/usr/bin/lxterminal -e 'sudo mn --custom /home/mininet/onos/tools/test/topos/tower.py --topo tower --controller,10.0.3.11 remote --mac' |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 30 | Comment[en_US]= |
| 31 | EOF |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 32 | |
| 33 | cat > ${DESKTOP}/Tutorial << EOF |
| 34 | [Desktop Entry] |
| 35 | Encoding=UTF-8 |
| 36 | Type=Application |
| 37 | Name=ONOS Tutorial |
| 38 | Name[en_US]=ONOS Tutorial |
| 39 | Icon=internet-web-browser |
| 40 | Exec=/usr/bin/chromium-browser https://wiki.onosproject.org/display/ONOS/Basic+ONOS+Tutorial |
| 41 | Comment[en_US]= |
| 42 | EOF |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 43 | |
| 44 | cat > ${DESKTOP}/GUI << EOF |
| 45 | [Desktop Entry] |
| 46 | Encoding=UTF-8 |
| 47 | Type=Application |
| 48 | Name=ONOS GUI |
| 49 | Name[en_US]=ONOS GUI |
| 50 | Icon=internet-web-browser |
Jonathan Hart | 6ccaec8 | 2015-04-01 14:43:40 -0700 | [diff] [blame^] | 51 | Exec=/usr/bin/chromium-browser http://10.0.3.11:8181/onos/ui/index.html#topo |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 52 | Comment[en_US]= |
| 53 | EOF |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 54 | |
| 55 | cat > ${DESKTOP}/Wireshark << EOF |
| 56 | [Desktop Entry] |
| 57 | Encoding=UTF-8 |
| 58 | Type=Application |
| 59 | Name=Wireshark |
| 60 | Name[en_US]=Wireshark |
| 61 | Icon=wireshark |
| 62 | Exec=/usr/bin/wireshark |
| 63 | Comment[en_US]= |
| 64 | EOF |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 65 | |
| 66 | cat > ${DESKTOP}/Reset << EOF |
| 67 | [Desktop Entry] |
| 68 | Encoding=UTF-8 |
| 69 | Type=Application |
| 70 | Name=Reset |
| 71 | Name[en_US]=Reset |
| 72 | Icon=konsole |
Jonathan Hart | 6ccaec8 | 2015-04-01 14:43:40 -0700 | [diff] [blame^] | 73 | Exec=/usr/bin/lxterminal -t 'Resetting; please wait' -e '/bin/bash -c /home/mininet/reset-to-1.sh' |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 74 | Comment[en_US]= |
| 75 | EOF |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 76 | |
Jonathan Hart | b1e2211 | 2015-03-31 16:42:03 -0700 | [diff] [blame] | 77 | |