The first requirement of running laravel-echo-server on your Linux server is to have NodeJS installed.
Follow my tutorial to learn how to install NodeJS on Ubuntu/Linux
Installing Laravel-echo-server
I assumed that you have already installed the NodeJS on your server and it is running
Use following command to install the NPM package globally on your server:
npm install -g laravel-echo-server
Ready to use laravel echo server
Now you are ready to use laravel echo server
You can create a Laravel configuration/Json file using following command:
laravel-echo-server init
Provide appropriate input for the configuration and you should be good to go to use Laravel echo server with socket