How to run this on ubuntu.

What specifically does not work out?
I think something like this is necessary (although I do not have Linux).
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
npm i -g socketio
Download the sources with
https://github.com/JerryWm/Stratum-Proxy-XMR (there is a green button Clone or download)
Create a sh file in the src folder
node ./app/