forked from iPublicis/Distro-Builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAUTO_INSTALL.sh
More file actions
executable file
·101 lines (78 loc) · 2.57 KB
/
AUTO_INSTALL.sh
File metadata and controls
executable file
·101 lines (78 loc) · 2.57 KB
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
#!/bin/bash
setup() {
export HOME=/root
export LC_ALL=C
export DISPLAY=:10
cat COPY_OVER_TO_CHROOT/PPA_LIST.txt > /etc/apt/sources.list
bash COPY_OVER_TO_CHROOT/PPA_GPG.sh
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4B4E7A9523ACD201 ## get MEGA gpg key
#-------------------------------Bellow adds other PPAs----------------------------------#
apt-get update
apt-get install apt-transport-https software-properties-common -y ## Get add-apt-repository
## INSERT PPA ADDS HEDRE
apt-get update && apt-get upgrade -y
main
}
#-------------------------------Bellow Installs the main system------------------------#
######################## Main Desktop ########################
main() {
## MOSTLY BASE SYSTEM PROGRAMS | Might wish to use another internet manager
## besides Wicd-gtk and might not want to use Slim as a login manager
apt-get install xserver-xorg xorg xinit slim synaptic aptitude apt-xapian-index \
gufw wicd-gtk pulseaudio pavucontrol file-roller p7zip-rar arj rar unrar-free \
xcompmgr tweak lhasa unar p7zip zip terminator stjerm gparted gdebi sox udisks2 \
iftop htop tree hardinfo libsox-fmt-all onboard mc -y
apt-get autoremove --purge -y && apt-get autoclean
gaming
}
############ Gaming ############
gaming() {
## INSERT GAMING STUFF HEDRE
media
}
################### Multimedia-- Videos- Images- Etc ###################
media() {
## INSERT MEDIA STUFF HEDRE
office
}
######################### Office-General Stuff #########################
office() {
## INSERT OFFICE & OTHER STUFF HEDRE
debs
}
################### Looks at DEB32/64 dirs to install software ####################
## INSERT GAMING STUFF HEDRE
debs() {
ARCH=$(uname -m)
touch COPY_OVER_TO_CHROOT/DEBS.sh
if [[ "${ARCH}" == "i386" ]]; then
ls COPY_OVER_TO_CHROOT/DEB32/ > COPY_OVER_TO_CHROOT/DEBS.sh
ARCH="DEB32/"
elif [[ "${ARCH}" == "x86_64" ]]; then
ls COPY_OVER_TO_CHROOT/DEB64/ > COPY_OVER_TO_CHROOT/DEBS.sh
ARCH="DEB64/"
fi
sed -i "s|^|dpkg -i ${ARCH}/|" COPY_OVER_TO_CHROOT/DEBS.sh
bash COPY_OVER_TO_CHROOT/DEBS.sh
setSettings
}
######################### Copy Settings to their locations #########################
setSettings() {
## COPY/REMOVE SETTING FIES HERE
## Fine tune the system
cleanr
}
######################### Cleanup System #########################
cleanr() {
apt-get autoremove --purge -y
apt-get autoclean -y
aptitude keep-all -y
rm -rf COPY_OVER_TO_CHROOT/
clear
echo ""
echo ""
echo "Please remove this scrit then type exit to continue build..."
echo ""
echo ""
}
setup