-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinstall.sh
85 lines (75 loc) · 2.62 KB
/
install.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
#! /bin/bash
#Star Pi install script, tested with a Zero W
# still a lot of work to make this a totally automated installation. see README.md for up to date instructions.
# please do this first:
# From a console do the following.
# if using serial gps, disable shell on serial before connecting the GPS to it.
# for lite install git
# sudo apt-get -y install git-core
#
# sudo raspi-config
#-enable ssh and i2c
#-disable the serial shell and enable the hardware serial
#-set the domain name and boot to cli
#-reduce the graphics memory
#-configure wifi
#-reboot
# git clone https://github.com/ChrisDick/StarPi
# edit any options in the config to match your choice of sensors.
# nano StarPi\Software\Src\Config.h
# cd ~/StarPi
# chmod u+x install.sh
# ./install.sh
# then go and make a nice cup of tea. it'll take a little while.
# usage over ssh:
# Any of the following depending on how your run it. ( WMM.COF must be in directory StarPi is started from )
# cd ~/StarPi/Software
# sudo ./Out/StarPi 10001
now=$(date +"%T")
echo "Start time : $now"
sudo apt-get update
sudo apt-get -y dist-upgrade
#Assume we have a raspian based install
sudo apt-get -y install libnova-dev libcfitsio-dev libusb-1.0-0-dev libjpeg-dev libgsl-dev libcurl4-gnutls-dev cmake gpsd libgps-dev build-essential zlib1g-dev libtiff-dev libfftw3-dev libftdi-dev libraw-dev libdc1394-22-dev libgphoto2-dev libboost-dev libboost-regex-dev librtlsdr-dev liblimesuite-dev libftdi1-dev cdbs dkms fxload libusb-dev libgsl0-dev libkrb5-dev
#StarPi:
cd ./Software
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz
tar zxvf bcm2835-1.71.tar.gz
cd bcm2835-1.71
./configure
make
sudo make check
sudo make install
cd ..
make
#indi:
mkdir -p indi
cd indi
git clone https://github.com/indilib/indi.git
git clone https://github.com/indilib/indi-3rdparty
mkdir -p build/indi-core
cd build/indi-core
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ./../../indi/
make
sudo make install
cd ../..
mkdir -p indidrivers
cd indidrivers
mkdir -p build/indi-starpi
cd build/indi-starpi
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ./../../../../indi-starpi
make
sudo cp indi-starpi /usr/bin/indi_starpi
cd ..
mkdir indi-gpsd
cd indi-gpsd
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ./../../../indi-3rdparty/indi-gpsd
make
sudo make install
cd ../../../..
sudo cp ./indi-starpi/indi_starpi_sk.xml /usr/share/indi/indi_starpi_sk.xml
echo "Start time : $now"
now=$(date +"%T")
echo "Finish time : $now"
#if you want to use the picam with indi, uncomment this line then add indi_v4l2_ccd when calling indiserver:
#sudo modprobe bcm2835-v4l2