Page 1 of 1
Nodejs in Porteus KIosk
Posted: 29 Aug 2018, 22:22
by Dollynho
Have a simple way to add nodejs 8/10~ in porteus kiosk? I'm trying to download (the latest) everytime when reboot the system and install... but need tar... I dont find a xzm module of node
Nodejs in Porteus KIosk
Posted: 30 Aug 2018, 07:11
by fanthom
No plans for adding nodejs by default.
You need to create xzm module first (may try to use some .deb. or .rpm or slckware package) and then modify the ISO:
http://porteus-kiosk.org/kiosk-customization.html
since this is 'user modification to the ISO' we will not support it.
If you need a help then you could query customized builds service:
http://porteus-kiosk.org/builds.html
Re: Nodejs in Porteus KIosk
Posted: 27 Jan 2019, 20:39
by roby
This is actually quite simple. It's taken me about 15 minutes to get it working...
Create Node as a xzm package...
* Download the latest version of Node as a .deb file. I got mine from here:
https://deb.nodesource.com/node_10.x/po ... /n/nodejs/ Make sure that you get the ARM64 version
* Copy the deb onto a Ubuntu machine. I used Xenial, any recent version will do
* You'll need mksquashfs. Install it using
Code: Select all
sudo apt-get install squashfs-tools
* Extract the contents of the deb using
* You'll end up with several files. The data.tar.xz is the interesting one
* Extract the contents of data.tar.xz using
* Create a directory called squashfs-root. Move the usr directory that was extracted from data.tar.xz into this squashfs-root directory
* Create a xzm file using
Code: Select all
mksquashfs squashfs-root/ node_10.x.xzm -comp xz -b 256K -Xbcj x86 -noappend
Add it to Porteus
* Extract the iso as described on the Porteus website
* Copy node_10.x.xzm into the xzm subfolder
* Repack the iso as described on the Porteus website
Done.
Nodejs in Porteus KIosk
Posted: 12 May 2019, 22:28
by roby
Update: The above instructions seem to prevent /dev/cdrom working in Porteus kiosk.
The solution appears to be copying only the node binary, rather than the complete contents of the Deb package. No idea why this is the case.
* Extract the data.tar.xz as described above
* mkdir --parents squashfs-root/usr/bin
* cp usr/bin/node squashfs-root/usr/bin/node
* Create the xzm file as described above
Nodejs in Porteus KIosk
Posted: 03 Sep 2019, 18:12
by codinghusi
roby wrote: ↑27 Jan 2019, 20:39
Make sure that you get the ARM64 version
It should be AMD64
I had also to copy only the /usr/bin folder.
Made a small script to automate that. (No warranty for anything)
Code: Select all
#!/bin/bash
mkdir tmp
cd tmp
ar x ../$1
tar -xJf data.tar.xz
mkdir --parents squashfs-root/usr
mv usr/bin squashfs-root/usr/bin
mksquashfs squashfs-root/ $2.xzm -comp xz -b 1M -Xbcj x86 -noappend
cd ..
mv tmp/$2.xzm $2.xzm
rm -rf tmp
How it works:
Create a file with the content above. For example "makemodule.sh"
Then make it runnable with
Now you need to download a AMD64 package from
https://deb.nodesource.com/node_10.x/po ... /n/nodejs/
I put it into the same folder where my script is located.
In the last step you need to run this command. First argument is the deb-package you downloaded and the second is the name of the output file (.xzm will be appended)
Code: Select all
sudo ./makemodule.sh nodejs_10.0.0-1nodesource1_amd64.deb 009-nodejs
Have Fun