How to deploy the Node.js version of Shadowsocks over Websocket on the Linux One

Deploying the Node.js version of Shadowsocks on the Linux One platform typically follows similar procedures to deployment on other Linux platforms. However, due to the specific hardware platform offered by IBM, adjustments may be required based on specific configurations and requirements. Below are the general steps to deploy the Node.js version of Shadowsocks on the Linux One platform:

Preparation.

1.Register and select the Ubuntu version of LinuxONE. Download your linuxone.pem to local.

chmod 400 linuxone.pem 

ssh -i linuxone.pem linux1@root

sudo -i

2.Open all ports.Execute the following command in the terminal:

iptables -P INPUT ACCEPT

iptables -P FORWARD ACCEPT

iptables -P OUTPUT ACCEPT

iptables -F

rm -rf /etc/iptables && reboot

Install Node.js:

Ensure that Node.js is installed on Linux One.
Download s390x version nodejs, Execute the following command in the terminal:

cd /opt/

mkdir nodejs & cd nodejs

wget https://nodejs.org/dist/v6.9.0/node-v6.9.0-linux-s390x.tar.xz

tar xvf node-v6.9.0-linux-s390x.tar.xz

Configure environment variables:

   vim /etc/profile

Add the following code at the bottom

export NODE_HOME=/opt/nodejs/node-v6.9.0-linux-s390x/bin
export PATH=$NODE_HOME:$PATH
source /etc/profile

Download and install the Node.js version of Shadowsocks.

Execute the following command in the terminal:

 git clone https://github.com/wojiaoluyuan/shadowsocks-herokuapp.git

cd shadowsocks-herokuapp

npm install

screen node server.js -b 0.0.0.0 -m aes-256-cfb -k password -r port
  • Run the Node.js version of Shadowsocks locally
node local.js -s yourlinuxoneip -l 1080 -m aes-256-cfb -k password -r port
How to deploy the Node.js version of Shadowsocks over Websocket on the Linux One
Share this