Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
thewickedkarma
GitHub Repository: thewickedkarma/blackeye-im
Path: blob/master/setup.sh
777 views
1
#!/bin/bash
2
3
chmod +x *.sh
4
5
declare -A osInfo;
6
osInfo[/etc/redhat-release]=yum
7
osInfo[/etc/arch-release]=pacman
8
osInfo[/etc/gentoo-release]=emerge
9
osInfo[/etc/debian_version]=apt-get
10
11
for f in ${!osInfo[@]}
12
do
13
if [[ -f $f ]];then
14
echo ${osInfo[$f]} detected..
15
echo Installing dependencies...
16
if ((${osInfo[$f]} == apt-get)); then
17
sudo apt-get install wget curl php unzip lolcat figlet npm nodejs jq xsel -y
18
npm install -g localtunnel
19
fi
20
if ((${osInfo[$f]} == pacman)); then
21
sudo pacman -S wget curl php unzip figlet npm nodejs jq xsel --noconfirm
22
sudo pacman -S gem
23
sudo gem install lolcat
24
npm install -g localtunnel
25
fi
26
if ((${osInfo[$f]} == yum)); then
27
sudo yum install wget curl php unzip lolcat figlet npm nodejs jq xsel
28
npm install -g localtunnel
29
fi
30
if ((${osInfo[$f]} == emerge )); then
31
sudo emerge -u wget curl php unzip lolcat figlet npm nodejs jq xsel
32
npm install -g localtunnel
33
fi
34
35
fi
36
37
38
done
39
echo Installation Completed
40
echo Blackeye will start automtically.
41
echo if it does not start, type ./blackeye.sh manually. | lolcat
42
sleep 5; figlet Blackeye-im && ./blackeye.sh
43
44