-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodejs.sh
More file actions
36 lines (27 loc) · 869 Bytes
/
Copy pathnodejs.sh
File metadata and controls
36 lines (27 loc) · 869 Bytes
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
#!/bin/bash
# To run this file
# $ (sudo bash /pm/install.sh | sudo tee /pm/stdout.log) 3>&1 1>&2 2>&3 | sudo tee /pm/stderr.log
owner="vagrant"
# Set Locale
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
apt-get install locales
dpkg-reconfigure locales
echo "export LANGUAGE=en_US.UTF-8" | sudo tee -a /etc/default/locale
echo "export LANG=en_US.UTF-8" | sudo tee -a /etc/default/locale
echo "export LC_ALL=en_US.UTF-8" | sudo tee -a /etc/default/locale
echo ""
echo "========= Installing Python-Software-Properties ========="
echo ""
sudo apt-get update
sudo apt-get install python-software-properties
# Install NodeJS
echo ""
echo "========= Installing NodeJS ========="
echo ""
sudo apt-get update
sudo apt-get install nodejs -y
sudo apt-get install npm -y
sudo ln -s /usr/bin/nodejs /usr/bin/node