-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
59 lines (50 loc) · 2.06 KB
/
install.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
declare -A logo
seconds="0.014"
logo[-1]=" :::::::::: ::::::: :: :: :::::::: :: :: :::::: :::::::: :::::: "
logo[0]=" +: :+ :+: :+:+ +::+ +: :+:+ +:+: +: :+ +: +: :+ "
logo[1]=" :+ +: :+ +:+:+ :+ :+ :+ +:+:+ :+ :+ +: :+ :+ +: "
logo[2]=" ++ :# ++ +:+ ++ +++++# ++ +:+ ++ #+++++ +++:+# +++++# "
logo[3]=" ++ +# +#+#+ #+ + #+ #+ #+ + +# #+ +# #+ #+ +# "
logo[4]=" +# #+ +# +# +# +# +# #+ +# # +# +# #+"
logo[5]=" ## ####### ## ## ######## ## ## ####### ######## ## ##"
printf "\033[32;4;208m\t"
for i in ${!logo[@]}; do
for x in `seq 0 ${#logo[$i]}`; do
printf "${logo[$i]:$x:1}"
sleep $seconds
done
printf "\n\t"
done
printf "\n"
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev lua-socket lua-sec lua-expat libevent-dev make unzip git redis-server autoconf g++ libjansson-dev libpython-dev expat libexpat1-dev
sudo apt-get install lua-lgi
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get install libstdc++6
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
wget "https://valtman.name/files/telegram-cli-1222"
wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz
tar zxpf luarocks-2.2.2.tar.gz
cd luarocks-2.2.2
./configure; sudo make bootstrap
sudo luarocks install luasocket
sudo luarocks install luasec
sudo luarocks install redis-lua
sudo luarocks install lua-term
sudo luarocks install serpent
sudo luarocks install dkjson
sudo luarocks install lanes
sudo luarocks install Lua-cURL
sudo service redis-server start
cd ..
rm -rf luarocks-2.2.2.tar.gz
chmod +x telegram-cli-1222
chmod +x anticrash.sh
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
sudo pip install redis
python sinchi.py