-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
executable file
·83 lines (65 loc) · 2.72 KB
/
script.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
set -e
echo deb http://ftp.debian.org/debian stretch-backports main contrib > /etc/apt/sources.list.d/stretch-backports.list
DEBIAN_FRONTEND=noninteractive apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
DEBIAN_FRONTEND=noninteractive apt-get install -y dpkg-* curl wget git gcc-arm-none-eabi virtualbox-guest-dkms virtualbox-guest-x11 srecord linux-headers-$(uname -r) linux-headers-amd64 vim xorg xfce4 xfce4-terminal libusb-1.0 libboost-all-dev libglib2.0-dev wireshark python-pyserial
#VBoxClient --seamless
# french keyboard
#sed 's/us/fr/' /etc/default/keyboard > /etc/default/keyboard
echo -e "XKBMODEL=\"pc105\"
XKBLAYOUT=\"fr\"
XKBVARIANT=\"latin9\"
XKBOPTIONS=\"terminate:ctrl_alt_bksp\"
BACKSPACE=\"guess\"" > /etc/default/keyboard
# creation de la toolchain sdcc
DEBIAN_FRONTEND=noninteractive apt-get source sdcc -y
DEBIAN_FRONTEND=noninteractive apt-get build-dep sdcc -y
cd sdcc-*+dfsg/debian/patches/
wget http://blog.ruecker.fi/wp-content/uploads/2015/02/04_makefile_mcs51
echo $'04_makefile_mcs51' >> series
cd ../..
dpkg-buildpackage -b
cd ..
dpkg -i sdcc*.deb
# obtention de contiki
git clone https://github.com/contiki-os/contiki.git
git clone -b cc/slip-radio https://github.com/g-oikonomou/contiki.git contiki-oikonomou
cd contiki
git submodule update --init --recursive
cd ..
# outil de flash CC2531
git clone https://github.com/dashesy/cc-tool.git
chmod a+rwx cc-tool -R
cd cc-tool
./bootstrap
autoreconf -vis
./configure
make
cd ..
#firefox coap
wget -q https://ftp.mozilla.org/pub/firefox/releases/55.0.3/linux-x86_64/fr/firefox-55.0.3.tar.bz2
tar -xvjf firefox-55.0.3.tar.bz2
#git clone https://github.com/mkovatsc/Copper.git
#head Copper/README.md -n 38 | tail -n 21 > HOWTOINSTALLFIREFOX.INFO.md
#mosquitto MQTT
DEBIAN_FRONTEND=noninteractive apt-get install mosquitto* -y
#uniflash
#wget -q http://software-dl.ti.com/ccs/esd/uniflash/uniflash_sl.5.0.0.2289.run
#DEBIAN_FRONTEND=noninteractive apt-get install libgconf-2-4 -y
#ln -s /lib/x86_64-linux-gnu/libudev.so.1.6.5 /usr/lib/libudev.so.0
#chmod +x uniflash_sl.5.0.0.2289.run
#./uniflash_sl.5.0.0.2289.run --mode unattended
#echo "alias uniflash=\"/opt/ti/uniflash_5.0.0/node_webkit/nw\"" >> .bashrc
#youpi git
git clone https://github.com/dynamid/youpi-6lowpan.git
mkdir -p /home/vagrant/.mozilla/firefox
cp -r youpi-6lowpan/other/firefox_Copper/profile/ /home/vagrant/.mozilla/firefox/vcoma1rd.firefox55/
cp -r youpi-6lowpan/other/firefox_Copper/profiles.ini /home/vagrant/.mozilla/firefox/
chown vagrant /home/vagrant -R
echo "additions to .bashrc"
/vagrant/script_bashrc.sh
echo "sudo mount -t vboxsf -o uid=1000,gid=1000 home_vagrant_sync-folder /home/vagrant/sync-folder" >> sync.sh
chmod +x sync.sh
#ip -6 r add fd00::/64 via bbbb::
reboot