-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRRF_LPC_3_2_RC_2.sh
65 lines (65 loc) · 2.21 KB
/
RRF_LPC_3_2_RC_2.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
echo "-----This will install the LPC Version of DSF-----"
echo "-----Update and upgrade the PI-----"
cd ~
sudo apt-mark hold \
duetsoftwareframework \
duetcontrolserver \
duetruntime \
duetsd \
duetsoftwareframework \
duettools \
duetwebcontrol \
duetwebserver \
reprapfirmware
sudo apt-get -q update && sudo apt-get -y upgrade
echo "-----Upgrade and Update finished-----"
echo "-----Switching to the unstable branch-----"
sudo apt-mark unhold \
duetsoftwareframework \
duetcontrolserver \
duetruntime \
duetsd \
duettools \
duetwebcontrol \
duetwebserver \
reprapfirmware
wget -q https://pkg.duet3d.com/duet3d.gpg
wget -q https://pkg.duet3d.com/duet3d-unstable.list
sudo mv duet3d.gpg /etc/apt/trusted.gpg.d/
sudo mv duet3d-unstable.list /etc/apt/sources.list.d/duet3d-unstable.list
sudo chown root:root /etc/apt/trusted.gpg.d/duet3d.gpg
sudo chown root:root /etc/apt/sources.list.d/duet3d-unstable.list
sudo rm /etc/apt/sources.list.d/duet3d.list
echo "-----Switching finished-----"
sudo apt -q update
sudo apt install \
duetsoftwareframework=3.2.0-rc2 \
duetcontrolserver=3.2.0-rc2 \
duetruntime=3.2.0-rc2 \
duetsd=1.1.0 \
duettools=3.2.0-rc2 \
duetwebcontrol=3.2.0-rc2 \
duetwebserver=3.2.0-rc2 \
reprapfirmware=3.2.0-rc2-1 \
--allow-downgrades
sudo apt-mark hold \
duetsoftwareframework \
duetcontrolserver \
duetruntime \
duetsd \
duettools \
duetwebcontrol \
duetwebserver \
reprapfirmware
echo "-----Stop DCS and DWS---"
sudo systemctl stop duetcontrolserver
sudo systemctl stop duetwebserver
echo "-----Both stoped-----"
sudo sed -i -e 's/"SpiBufferSize": 8192/"SpiBufferSize": 3072/g' /opt/dsf/conf/config.json
sudo sed -i -e 's/"SpiTransferMode": 0/"SpiTransferMode": 3/g' /opt/dsf/conf/config.json
sudo sed -i -e 's/"MaxCodeBufferSize": 256/"MaxCodeBufferSize": 200/g' /opt/dsf/conf/config.json
sudo sed -i -e 's/"MaxMessageLength": 4096/"MaxMessageLength": 2560/g' /opt/dsf/conf/config.json
echo "-----CHANGES MADE-----"
sudo systemctl start duetcontrolserver && sudo systemctl enable duetcontrolserver
sudo systemctl start duetwebserver && sudo systemctl enable duetwebserver
echo "-----DCS and DWS started-----"