10 lines
271 B
Bash
10 lines
271 B
Bash
#!/bin/bash
|
|
sudo apt update
|
|
sudo apt install npm wget -y
|
|
mkdir -p ~/CrabChat/public
|
|
cd ~/CrabChat
|
|
npm init -y
|
|
npm install express socket.io selfsigned
|
|
cd ~/CrabChat; openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=10.0.0.87"
|
|
|