This repository has been archived by the owner on Apr 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall
executable file
·118 lines (89 loc) · 3.39 KB
/
install
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#!/bin/bash
source funcs
iapt_at_once() (DEBIAN_FRONTEND=noninteractive apt-fast install -y $(cat packages/apt))
iapt_for() (for p in $(cat packages/apt) ; do iapt "$p" ; done)
source urls
source i3brc
# install sources.list
cat configs/sources.list | sed "s/%PROXY%/$(echo "$I3B_APT_CACHE" | sed 's/\//\\\//')/" > /etc/apt/sources.list
dpkg --add-architecture i386
apt-key add packages/keys.gpg
apt_update
###### Install apt-fast
echo debconf apt-fast/maxdownloads string 16 | debconf-set-selections
echo debconf apt-fast/dlflag boolean true | debconf-set-selections
echo debconf apt-fast/aptmanager string apt | debconf-set-selections
apt install -y apt-fast || exit 1
###### Install tools before doing anything else
iapt curl gcc make
cd tools
make install clean
cd ..
###### Update
apt-fast upgrade -y
apt-fast autoremove -y
###### Install main apps, drivers and dependencies
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
iapt g++ clang
[ "$I3B_VSCODE" = 1 ] && isnap vscode --classic
idpkg "$I3B_GITHUB_DL_URL"
cp -f configs/env /etc/environment
iapt_at_once || iapt_for
for p in $(cat packages/pip3) ; do ipip3 "$p" ; done
source packages/netsh
likeu -l || fixme likeu latest
[[ "$I3B_BROWSER" == *"brave"* ]] && iapt brave-browser
[[ "$I3B_BROWSER" == *"opera"* ]] && iapt opera-stable
[[ "$I3B_BROWSER" == *"firefox"* ]] && iapt firefox
[[ "$I3B_BROWSER" == *"chrome"* ]] && iapt google-chrome-stable
###### set the cursor to something making sense
rm -f /etc/alternatives/x-cursor-theme
ln -s /usr/share/icons/DMZ-White/cursor.theme /etc/alternatives/x-cursor-theme
###### disable "Natural Scrolling" because it is UNNATURAL AS FUCK
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false
###### Get and install yEd
[ "$I3B_YED" = 1 ] && insh "$I3B_YED_DL_URL"
###### Get and install BlueJ
[ "$I3B_BLUEJ" = 1 ] && idpkg "$I3B_BLUEJ_DL_URL"
###### Get and install the Arduino IDE
[ "$I3B_ARDUINO" = 1 ] && imod arduino
###### Get and install the Teensy loader
[ "$I3B_TEENSY" = 1 ] && imod teensy
###### Get and install Teensyduino
[ "$I3B_ARDUINO" = 1 -a "$I3B_TEENSY" = 1 ] && insh "$I3B_TEENSYDUINO_DL_URL"
###### Get and install Ghidra
[ "$I3B_GHIDRA" = 1 ] && imod ghidra
###### Get and install TeamViewer
[ "$I3B_TEAMVIEWER" = 1 ] && iapt teamviewer
###### Get and install FlashPrint
[ "$I3B_FLASHPRINT" = 1 ] && idpkg "$I3B_FLASHPRINT_DL_URL"
###### Run Gamix
[ "$I3B_GAMIX" = 1 ] && insh -C "./gamix.sh ns y" -c chrissxYT/gamix
###### Install Discord
[ "$I3B_DISCORD" = 1 ] && idpkg "$I3B_DISCORD_DL_URL"
###### Get and install EOS
[ "$I3B_EOS" = 1 ] && imod eos
###### Build git libsecret cred helper
imod gitsecret
###### Change the distro name
cp -f configs/issue /etc/issue
cp -f configs/issue.net /etc/issue.net
cp -f configs/os-release /etc/os-release
cp -f configs/lsbr /etc/lsb-release
###### Set the locales
cp configs/locale /etc/default/locale
###### Configure GRUB
cp configs/grub /etc/default/grub
update-grub
###### Finish up everything
apt_update
apt -fy install
apt autoremove -y
###### Install the NAS
echo "$I3B_NAS" >> /etc/fstab
# give the user rights to all of their home directory
chown -R "$(logname):$(logname)" ~
# change the login shell to zsh
# (have to do this here, so you dont have to put in your pw again)
chsh -s /bin/zsh "$(logname)"