-
Notifications
You must be signed in to change notification settings - Fork 18
/
first-time-install-hubo-ach.sh
executable file
·39 lines (39 loc) · 1.25 KB
/
first-time-install-hubo-ach.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
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install python-dev
sudo apt-get install linux-headers-$(uname -r)
cd ~/
rm tmp.hubo-ach
rm sources.list.hubo-ach
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk-pre-ach
echo 'deb http://code.golems.org/debian precise golems.org' >> tmp.hubo-ach
cat /etc/apt/sources.list | cat - tmp.hubo-ach >> sources.list.hubo-ach
sudo mv sources.list.hubo-ach /etc/apt/sources.list
rm tmp.hubo-ach
rm sources.list.hubo-ach
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git-core
sudo apt-get install libach1 libach-dev
sudo apt-get install ach-utils
sudo apt-get install autoconf automake libtool autoconf-archive
sudo apt-get install libreadline-dev
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libpopt-dev
source ~/.bashrc
git clone https://github.com/hubo/hubo-ach.git
cd hubo-ach/drivers
tar -xzf peak-linux-driver-7.7.tar.gz
cd peak-linux-driver-7.7
cat /lib/modules/$(uname -r)/build/include/linux/version.h
sudo make clean
sudo make
sudo make install
sudo /sbin/modprobe pcan
cd ~/hubo-ach
autoreconf -i
./hubo-ach-install.sh
# Install ACH python bindings
sudo apt-get install python-pip
sudo pip install http://code.golems.org/src/ach/py_ach-latest.tar.gz