Commit bc851e628bdaf1459d870099b4de0ad2f7e93136

Authored by Adhidarma Hadiwinoto
1 parent 7fe30f1b16
Exists in master

nodejs from nodesource

Showing 2 changed files with 9 additions and 5 deletions Side-by-side Diff

centos-after-install.sh
... ... @@ -16,11 +16,14 @@ set -x
16 16  
17 17 sudo useradd komodo
18 18 sudo usermod -a -G dialout komodo
  19 +sudo usermod -a -G systemd-journal
19 20  
20 21 sudo yum -y install epel-release
21   -sudo yum -y install vim-enhanced wget nodejs nmap traceroute net-tools telnet minicom iperf htop
22 22 sudo yum -y groupinstall "Development Tools"
23   -sudo yum -y update
  23 +sudo yum -y remove nodejs
  24 +curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
  25 +sudo yum -y install nodejs iftop vim-enhanced wget nmap traceroute net-tools telnet minicom iperf htop bwm-ng
  26 +sudo yum -y update
24 27 sudo npm install -g nodemon
25 28 sudo npm install -g mocha
26 29  
komodo-mkios-install.sh
1 1 #!/bin/bash
2 2  
3   -if [ ! -f "/home/komodo/.ssh/id_rsa.pub" ];
  3 +if [ ! -f "/home/komodo/.ssh/id_rsa.pub" ]; then
4 4 echo "SSH-ID does not exist."
5 5 echo "Please do ssh-keygen and do not forget to register it on gitlab."
6   - exit 1
  6 + #exit 1
7 7 fi
8 8  
9 9 read -p 'Cluster name (one word): ' clustername < /dev/tty
... ... @@ -14,11 +14,12 @@ fi
14 14 clustername=${clustername^^}
15 15  
16 16 read -p 'Modem port (eg: ttyUSB0): ' modemport < /dev/tty
  17 +$modemport=`basename $modemport`
17 18 if [ -z "$modemport" ]; then
18 19 echo "Invalid modemport";
19 20 exit
20 21 fi
21   -
  22 +exit
22 23 set -x
23 24  
24 25 sudo useradd komodo