Nodejs and pm2

Install PM2

Now we’ll install PM2, which is a process manager for Node.js applications. PM2 provides an easy way to manage and daemonize applications (run them in the background as a service).

We will use npm, a package manager for Node modules that installs with Node.js, to install PM2 on our server. Use this command to install PM2:

  • sudo npm install -g pm2

The -g option tells npm to install the module globally, so that it's available system-wide.

Jessie nodejs

Getting Node.js up and running on your system - be it your development machine or your production environment - is step one to building and deploying Node.js tools, applications, and services.

In this quick tutorial, we'll be running through how to get up and running with Node.js on Debian-based distributions. Once we've completed the entirity of the tutorial, you'll be ready to take the next step with Node.js.

Isolinux splash screen

1) Create png image with resolution 640x480 and save it as raw.png

2) Correcting Color & Depth:

$ convert -depth 16 -colors 65536 raw.png splash.png

3) Set in isolinux.cfg:

default vesamenu.c32
menu background splash.png

4) Burn it !


Recording sound played on linux

1) find monitor device:

$ pacmd list | grep "\.monitor"
name: <alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor>
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
        alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor/#0: Monitor of HDA NVidia Digital Stereo (HDMI)
        alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#2: Monitor of Built-in Audio Analog Stereo

2) Capture audio to file: