Skip to content

Commit 7782787

Browse files
author
root
committed
Added new installs cripts and updated existing ones
1 parent 2ba5773 commit 7782787

14 files changed

+220
-12
lines changed

BATCH_Tools/Bash/CLU_A.sh

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Author: Gilles S. Biagomba
44
#Program: Codified Likeness Utility or CLU
@@ -8,6 +8,19 @@
88
#contd. Lastly, it opens the server application so that the user may double check every was done correctly \n
99
#contd. copyright © 2014-2015 David's Bridal Inc. All Rights Reserved.
1010

11+
# Checking user is root
12+
if [ "$EUID" -ne 0 ]
13+
then echo "Please run as root"
14+
exit
15+
fi
16+
17+
# Ensuring system is debian based
18+
OS_CHK=$(cat /etc/os-release | grep -o debian)
19+
if [ "$OS_CHK" != "Maverick" ]; then
20+
echo "Unfortunately this install script was written for MacOSX only, sorry!"
21+
exit
22+
fi
23+
1124
#Temporarily fixing the PATH
1225
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin/
1326

@@ -38,4 +51,4 @@ sudo chmod -R 644 "/Store Server Images/"
3851
open -a Server
3952

4053
#close the script
41-
osascript -e 'tell application "Terminal" to quit'
54+
osascript -e 'tell application "Terminal" to quit'

BATCH_Tools/Bash/CLU_B.sh

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
#Author: Gilles S. Biagomba
44
#Program: Codified Likeness Utility or CLU
@@ -8,6 +8,19 @@
88
#contd. Lastly, it starts the Server services (caching, web, afp and smb), \n
99
#contd. copyright © 2014-2015 David's Bridal Inc. All Rights Reserved.
1010

11+
# Checking user is root
12+
if [ "$EUID" -ne 0 ]
13+
then echo "Please run as root"
14+
exit
15+
fi
16+
17+
# Ensuring system is debian based
18+
OS_CHK=$(cat /etc/os-release | grep -o debian)
19+
if [ "$OS_CHK" != "Maverick" ]; then
20+
echo "Unfortunately this install script was written for MacOSX only, sorry!"
21+
exit
22+
fi
23+
1124
#Temporarily Fixing the PATH
1225
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin/
1326

@@ -38,4 +51,4 @@ sudo serveradmin start smb
3851
open -a Server
3952

4053
#close the script
41-
osascript -e 'tell application "Terminal" to quit'
54+
osascript -e 'tell application "Terminal" to quit'

BATCH_Tools/Bash/CLU_debug.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
23
#NOTE: THIS IS THE DEBUGGING VERSION, DO NOT RUN THIS UNLESS YOU KNOW WHAT YOU'RE DOING \n
34
#Author: Gilles S. Biagomba
45
#Program: Codified Likeness Utility or CLU
@@ -7,6 +8,19 @@
78
#contd. then it changes the share-point user owner, user group and file permissions \n
89
#contd. Lastly, it opens the server application so that the user may double check every was done correctly \n
910

11+
# Checking user is root
12+
if [ "$EUID" -ne 0 ]
13+
then echo "Please run as root"
14+
exit
15+
fi
16+
17+
# Ensuring system is debian based
18+
OS_CHK=$(cat /etc/os-release | grep -o debian)
19+
if [ "$OS_CHK" != "Maverick" ]; then
20+
echo "Unfortunately this install script was written for MacOSX only, sorry!"
21+
exit
22+
fi
23+
1024
#contd. copyright © 2014-2015 David's Bridal Inc. All Rights Reserved.
1125
echo CLU is working on making the perfect system
1226
\n

BATCH_Tools/Bash/Tron 2.0.sh

+16-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1+
#!/usr/bin/env bash
2+
13
#Author: Gilles S. Biagomba
24
#Program: $Tron 2.0
35
#Description: This program automates the Ubuntu 8 to 10 upgrade & include security\n
46
#Links for the hardening:
57
#http://www.lampnode.com/linux/howto-harden-ubuntu-1404-after-installation/
68
#http://blog.mattbrock.co.uk/hardening-the-security-on-ubuntu-server-14-04/
79

10+
# Checking user is root
11+
if [ "$EUID" -ne 0 ]
12+
then echo "Please run as root"
13+
exit
14+
fi
15+
16+
# Ensuring system is debian based
17+
OS_CHK=$(cat /etc/os-release | grep -o debian)
18+
if [ "$OS_CHK" != "debian" ]; then
19+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
20+
exit
21+
fi
22+
823
#Check for updates and upgrades again
924
apt-get update --yes
1025
apt-get upgrade --yes
@@ -102,4 +117,4 @@ apt-get autoremove
102117
do-release-upgrade -f DistUpgradeViewNonInteractive
103118

104119
#restart the box
105-
shutdown -r now
120+
shutdown -r now

BATCH_Tools/Bash/Tron 2.1.sh

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
#Author: Gilles S. Biagomba
44
#Program: $Tron 2.0
@@ -7,6 +7,19 @@
77
#http://www.lampnode.com/linux/howto-harden-ubuntu-1404-after-installation/
88
#http://blog.mattbrock.co.uk/hardening-the-security-on-ubuntu-server-14-04/
99

10+
# Checking user is root
11+
if [ "$EUID" -ne 0 ]
12+
then echo "Please run as root"
13+
exit
14+
fi
15+
16+
# Ensuring system is debian based
17+
OS_CHK=$(cat /etc/os-release | grep -o debian)
18+
if [ "$OS_CHK" != "debian" ]; then
19+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
20+
exit
21+
fi
22+
1023
#Check for updates and upgrades again
1124
apt-get update -y
1225
apt-get upgrade -y
@@ -108,4 +121,4 @@ apt-get autoremove
108121
#do-release-upgrade -f DistUpgradeViewNonInteractive
109122

110123
#restart the box
111-
shutdown -r now
124+
shutdown -r now

BATCH_Tools/Bash/Tron.sh

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
1+
#!/usr/bin/env bash
2+
13
#Author: Gilles S. Biagomba
24
#Program: $Tron
35
#Description: This program automates the Ubuntu 8 to 10 upgrade. \n
46

5-
#!/bin/sh
6-
#apt-get install cron-apt --yes
7-
87
#Log everything happening
98
#script
109

10+
# Checking user is root
11+
if [ "$EUID" -ne 0 ]
12+
then echo "Please run as root"
13+
exit
14+
fi
15+
16+
# Ensuring system is debian based
17+
OS_CHK=$(cat /etc/os-release | grep -o debian)
18+
if [ "$OS_CHK" != "debian" ]; then
19+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
20+
exit
21+
fi
22+
1123
#Announcement
1224
echo 'This Script is going to update all the packages'
1325
echo 'Then it will upgrade the entire system to the next LTS'

INSTALLATION-04/cuckoodroid_install.sh

+15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
1+
#!/usr/bin/env bash
2+
13
#Author: Gilles Biagomba
24
#Program: install_cuckoodroid.sh
35
#Description: This script was written to automate the installation of cuckoodroid.\n
46
# https://github.com/idanr1986/cuckoodroid-2.0
57

8+
# Checking user is root
9+
if [ "$EUID" -ne 0 ]
10+
then echo "Please run as root"
11+
exit
12+
fi
13+
14+
# Ensuring system is debian based
15+
OS_CHK=$(cat /etc/os-release | grep -o debian)
16+
if [ "$OS_CHK" != "debian" ]; then
17+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
18+
exit
19+
fi
20+
621
cd /opt/
722
git clone https://github.com/idanr1986/cuckoodroid-2.0
823
cd cuckoodroid-2.0

INSTALLATION-04/docker_install.sh

+15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1+
#!/usr/bin/env bash
2+
13
# Based on these two articles
24
# https://medium.com/@airman604/installing-docker-in-kali-linux-2017-1-fbaa4d1447fe
35
# https://docs.docker.com/install/linux/docker-ce/debian/
46

7+
# Checking user is root
8+
if [ "$EUID" -ne 0 ]
9+
then echo "Please run as root"
10+
exit
11+
fi
12+
13+
# Ensuring system is debian based
14+
OS_CHK=$(cat /etc/os-release | grep -o debian)
15+
if [ "$OS_CHK" != "debian" ]; then
16+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
17+
exit
18+
fi
19+
520
# Add Docker PGP key:
621
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
722

INSTALLATION-04/go_install.sh

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
#!/usr/bin/env bash
22

3+
# Checking user is root
4+
if [ "$EUID" -ne 0 ]
5+
then echo "Please run as root"
6+
exit
7+
fi
8+
9+
# Ensuring system is debian based
10+
OS_CHK=$(cat /etc/os-release | grep -o debian)
11+
if [ "$OS_CHK" != "debian" ]; then
12+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
13+
exit
14+
fi
15+
316
# Install golang
417
apt install golang -y
518

INSTALLATION-04/npm_install.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1+
#!/usr/bin/env bash
12
# Based on this article https://ourcodeworld.com/articles/read/410/how-to-install-node-js-in-kali-linux
23

4+
# Checking user is root
5+
if [ "$EUID" -ne 0 ]
6+
then echo "Please run as root"
7+
exit
8+
fi
9+
10+
# Ensuring system is debian based
11+
OS_CHK=$(cat /etc/os-release | grep -o debian)
12+
if [ "$OS_CHK" != "debian" ]; then
13+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
14+
exit
15+
fi
16+
317
# Verify that you have all required tools
4-
sudo apt-get install python g++ make checkinstall fakeroot -y
18+
apt-get install python g++ make checkinstall fakeroot -y
519

620
# You may get a warning like "dpkg was interrupted", the below command will correct it
721
# dpkg --configure -a

INSTALLATION-04/npm_install_alt.sh

+14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1+
#!/usr/bin/env bash
12
# Based on the article https://relutiondev.wordpress.com/2016/01/09/installing-nodejs-and-npm-kaliubuntu/
23

4+
# Checking user is root
5+
if [ "$EUID" -ne 0 ]
6+
then echo "Please run as root"
7+
exit
8+
fi
9+
10+
# Ensuring system is debian based
11+
OS_CHK=$(cat /etc/os-release | grep -o debian)
12+
if [ "$OS_CHK" != "debian" ]; then
13+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
14+
exit
15+
fi
16+
317
# Warning message to user
418
echo "Use this script if the npm_install does not work"
519
read answer #fix later

INSTALLATION-04/signal_install.sh

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# Checking user is root
4+
if [ "$EUID" -ne 0 ]
5+
then echo "Please run as root"
6+
exit
7+
fi
8+
9+
# Ensuring system is debian based
10+
OS_CHK=$(cat /etc/os-release | grep -o debian)
11+
if [ "$OS_CHK" != "debian" ]; then
12+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
13+
exit
14+
fi
15+
116
curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
217
echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
318
apt update

INSTALLATION-04/snap_install.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/usr/bin/env bash
2+
# Reference: https://miloserdov.org/?p=2448
3+
4+
# Checking user is root
5+
if [ "$EUID" -ne 0 ]
6+
then echo "Please run as root"
7+
exit
8+
fi
9+
10+
# Ensuring system is debian based
11+
OS_CHK=$(cat /etc/os-release | grep -o debian)
12+
if [ "$OS_CHK" != "debian" ]; then
13+
echo "Unfortunately this install script was written for debian based distributions only, sorry!"
14+
exit
15+
fi
16+
17+
# Install the snap, start and add the service to autoload:
18+
apt install snapd -y
19+
systemctl start snapd
20+
systemctl enable snapd
21+
22+
# We also add apparmor to autoload (otherwise there will be an error):
23+
systemctl start apparmor
24+
systemctl enable apparmor
25+
26+
# Adding snap to bashrc
27+
echo "Snap configs" >> ~/.bashrc
28+
echo "export PATH=$PATH:/snap/bin" >> ~/.bashrc
29+
source ~/.bashrc
30+
31+
# Teting snap
32+
snap find snap-store
33+
snap install snap-store -y

Sys_Mng_Scripts/Bootstrap_Cleaning.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Check the current kernel version
2+
uname -r
3+
4+
# Removing old kernels
5+
for i in $(dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`); do apt-get purge $i; done
6+
apt autoremove -y
7+
update-grub
8+
9+

0 commit comments

Comments
 (0)