Install xvfb
, graphicsmagick
, imagemagick
and wkhtmltox
from Ubuntu repositery.
sudo apt install xvfb graphicsmagick imagemagick wkhtmltox -y
And then install node
from binary release. Make sure node
, npm
and wkhtmltoimage
can be found in $PATH
.
cd /tmp
wget https://nodejs.org/dist/v7.4.0/node-v7.4.0-linux-x64.tar.xz
# Manually setup this xz package.
Simply just:
sudo pacman -S xorg-server-xvfb nodejs npm wkhtmltopdf graphicsmagick imagemagick
git clone https://github.com/cnVintage/cnVintage-Legacy.git
cd cnVintage-Legacy
npm i
cp config.sample.js config.js
vi config.js
echo "
[Unit]
Description=Legacy version of cnVintage.org.
[Service]
WorkingDirectory=$(pwd)
ExecStart=$(which node) $(pwd)/index.js
[Install]
WantedBy=multi-user.target
" | sudo tee /lib/systemd/system/cnvtg-legacy.service
sudo systemctl enable cnvtg-legacy.service
sudo systemctl start cnvtg-legacy.service