blob: 5392095a45a4ba3c78ae4c5938be0269385d7976 [file] [log] [blame]
Jonathan Hartb1e22112015-03-31 16:42:03 -07001#!/bin/bash
2
Jonathan Hartb1e22112015-03-31 16:42:03 -07003export USER=tutorial1
4
Jonathan Hart6ccaec82015-04-01 14:43:40 -07005echo "Creating tutorial1"
Jonathan Hartb1e22112015-03-31 16:42:03 -07006
7DESKTOP=/home/${USER}/Desktop
8
9mkdir -p ${DESKTOP}
Jonathan Hartb1e22112015-03-31 16:42:03 -070010
11cat > ${DESKTOP}/ONOS << EOF
12[Desktop Entry]
13Encoding=UTF-8
14Type=Application
15Name=ONOS
16Name[en_US]=ONOS
17Icon=konsole
Jonathan Hart6ccaec82015-04-01 14:43:40 -070018Exec=/usr/bin/lxterminal -e '/home/mininet/apache-karaf-3.0.2/bin/client -u karaf -h 10.0.3.11'
Jonathan Hartb1e22112015-03-31 16:42:03 -070019Comment[en_US]=
20EOF
Jonathan Hartb1e22112015-03-31 16:42:03 -070021
22cat > ${DESKTOP}/Mininet << EOF
23[Desktop Entry]
24Encoding=UTF-8
25Type=Application
26Name=Mininet
27Name[en_US]=Mininet
28Icon=konsole
Jonathan Hart6ccaec82015-04-01 14:43:40 -070029Exec=/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 Hartb1e22112015-03-31 16:42:03 -070030Comment[en_US]=
31EOF
Jonathan Hartb1e22112015-03-31 16:42:03 -070032
33cat > ${DESKTOP}/Tutorial << EOF
34[Desktop Entry]
35Encoding=UTF-8
36Type=Application
37Name=ONOS Tutorial
38Name[en_US]=ONOS Tutorial
39Icon=internet-web-browser
40Exec=/usr/bin/chromium-browser https://wiki.onosproject.org/display/ONOS/Basic+ONOS+Tutorial
41Comment[en_US]=
42EOF
Jonathan Hartb1e22112015-03-31 16:42:03 -070043
44cat > ${DESKTOP}/GUI << EOF
45[Desktop Entry]
46Encoding=UTF-8
47Type=Application
48Name=ONOS GUI
49Name[en_US]=ONOS GUI
50Icon=internet-web-browser
Jonathan Hart6ccaec82015-04-01 14:43:40 -070051Exec=/usr/bin/chromium-browser http://10.0.3.11:8181/onos/ui/index.html#topo
Jonathan Hartb1e22112015-03-31 16:42:03 -070052Comment[en_US]=
53EOF
Jonathan Hartb1e22112015-03-31 16:42:03 -070054
55cat > ${DESKTOP}/Wireshark << EOF
56[Desktop Entry]
57Encoding=UTF-8
58Type=Application
59Name=Wireshark
60Name[en_US]=Wireshark
61Icon=wireshark
62Exec=/usr/bin/wireshark
63Comment[en_US]=
64EOF
Jonathan Hartb1e22112015-03-31 16:42:03 -070065
66cat > ${DESKTOP}/Reset << EOF
67[Desktop Entry]
68Encoding=UTF-8
69Type=Application
70Name=Reset
71Name[en_US]=Reset
72Icon=konsole
Jonathan Hart6ccaec82015-04-01 14:43:40 -070073Exec=/usr/bin/lxterminal -t 'Resetting; please wait' -e '/bin/bash -c /home/mininet/reset-to-1.sh'
Jonathan Hartb1e22112015-03-31 16:42:03 -070074Comment[en_US]=
75EOF
Jonathan Hartb1e22112015-03-31 16:42:03 -070076
Jonathan Hartb1e22112015-03-31 16:42:03 -070077