-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_script.sh
58 lines (46 loc) · 1.19 KB
/
install_script.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
# update ubuntu
<<<<<<< HEAD
apt-get update -y
apt-get dist-upgrade -y
=======
apt-get update
apt-get dist-upgrade
>>>>>>> b9e912f5fdc074c5f97b056b38d783505b492412
# update Nodejs
npm cache clean -f
npm install -g n
n stable
# install applications
apt-get install -y npm
apt-get install -y p7zip-full
apt-get install -y unzip
apt-get install -y htop
apt-get install -y git
apt-get install -y vim
# quietly add a user without password
adduser --quiet --disabled-password -shell /bin/bash --home /home/raza --gecos "User" raza
# set password
echo "raza:cc" | chpasswd
# add raza to sudoers
sudo adduser raza sudo
# login as raza
su - raza
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
chmod -R 777 /usr/local/bin/
# download bashrc and loads bashrc
git clone https://github.com/rationalthinker1/bashrc.git
cd bashrc/
mv -f .* ~/
cd
source ~/.bashrc
rm -rf bashrc/
# download phone
git clone https://github.com/rationalthinker1/phone.git
# download dropbox uploader
https://github.com/andreafabrizi/Dropbox-Uploader.git
echo "cc" | sudo -S -v
cd phone
sudo npm install
git config --global user.email "razaf88@gmail.com"
git config --global user.name "Raza Farooq"