-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstallfullenv.sh
39 lines (29 loc) · 1.1 KB
/
installfullenv.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
#!/bin/bash
# INSTALL GO
wget --progress=bar:force:noscroll https://golang.org/dl/go1.15.2.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.15.2.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >> $HOME/.profile
source ~/.profile
# INSTALL DEPENDENCIES
DEBIAN_FRONTEND="noninteractive" apt install -y ca-certificates git unzip wget qemu-user-static build-essential qemu-user-static ca-certificates dosfstools gdisk kpartx parted libarchive-tools sudo xz-utils psmisc
git clone https://github.com/hashicorp/packer --branch v1.5.5
cd packer
go mod vendor
go get .
go install
cd ..
# INSTALL PACKER-BUILDER-ARM
git clone https://github.com//mkaczanowski/packer-builder-arm/
cd packer-builder-arm
go mod download
go build
sudo cp packer-builder-arm /usr/local/bin
cd ..
# INSTALL PISHRINK
wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
chmod +x pishrink.sh
sudo mv pishrink.sh /usr/local/bin
echo "you're really going to want to source your bash profile like:"
echo "source ~/.profile"
echo "otherwise, Go won't work properly and you won't have a good time :)"
echo "have a good time!"