From f767a7c8ce1267eac11f8254f70fd4fdc6ea555c Mon Sep 17 00:00:00 2001 From: ddp Date: Mon, 24 May 2021 00:07:49 +0200 Subject: [PATCH 1/5] first --- installnodejs.txt | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 installnodejs.txt diff --git a/installnodejs.txt b/installnodejs.txt new file mode 100644 index 0000000..db19f85 --- /dev/null +++ b/installnodejs.txt @@ -0,0 +1,2 @@ +curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - +sudo apt-get install -y nodejs \ No newline at end of file From 265c3bee9a552ebb9a9f614c4542010fad41cef6 Mon Sep 17 00:00:00 2001 From: ddp Date: Mon, 24 May 2021 00:12:24 +0200 Subject: [PATCH 2/5] works better --- installnodejs.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/installnodejs.txt b/installnodejs.txt index db19f85..3810394 100644 --- a/installnodejs.txt +++ b/installnodejs.txt @@ -1,2 +1,7 @@ -curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - -sudo apt-get install -y nodejs \ No newline at end of file +sudo apt-get install curl +sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages +# Using Ubuntu +curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - +curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null +echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list +sudo apt-get update && sudo apt-get install yarn From d46355a10649bda06af5348b71e3e26bba67e41f Mon Sep 17 00:00:00 2001 From: ddp Date: Mon, 24 May 2021 00:17:20 +0200 Subject: [PATCH 3/5] more --- installnodejs.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installnodejs.txt b/installnodejs.txt index 3810394..5f63fc6 100644 --- a/installnodejs.txt +++ b/installnodejs.txt @@ -4,4 +4,6 @@ sudo apt-get remove nodejs npm ## remove existing nodejs and npm packages curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list -sudo apt-get update && sudo apt-get install yarn +sudo apt-get update && sudo apt-get install yarn -y +npm install +npm audit fix --force From 680744600beb770f030d5ff2fc2d218acec0f1e4 Mon Sep 17 00:00:00 2001 From: ddp Date: Mon, 24 May 2021 00:19:41 +0200 Subject: [PATCH 4/5] get password --- installnodejs.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/installnodejs.txt b/installnodejs.txt index 5f63fc6..68f7053 100644 --- a/installnodejs.txt +++ b/installnodejs.txt @@ -7,3 +7,4 @@ echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/deb sudo apt-get update && sudo apt-get install yarn -y npm install npm audit fix --force +cat /etc/masternodes/vivo_n1.conf | grep rpcpass From 3ece75797147f9f0c04e82cf7ba79ab5548a6758 Mon Sep 17 00:00:00 2001 From: ddp Date: Mon, 24 May 2021 00:35:32 +0200 Subject: [PATCH 5/5] dealing with lighthttpd --- installnodejs.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installnodejs.txt b/installnodejs.txt index 68f7053..9988cd8 100644 --- a/installnodejs.txt +++ b/installnodejs.txt @@ -8,3 +8,9 @@ sudo apt-get update && sudo apt-get install yarn -y npm install npm audit fix --force cat /etc/masternodes/vivo_n1.conf | grep rpcpass + +nano /etc/lighttpd/lighttpd.conf + +/etc/init.d/lighttpd restart + +ufw allow 3002 \ No newline at end of file