Nodejs in Porteus KIosk
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Nodejs in Porteus KIosk
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Nodejs in Porteus KIosk
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
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
Please add [Solved] to your thread title if the solution was found.
Re: Nodejs in Porteus KIosk
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
* 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
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.
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
Code: Select all
ar x nodejs_....deb
* Extract the contents of data.tar.xz using
Code: Select all
tar -xJf data.tar.xz
* Create a xzm file using
Code: Select all
mksquashfs squashfs-root/ node_10.x.xzm -comp xz -b 256K -Xbcj x86 -noappend
* 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
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
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
-
- White ninja
- Posts: 11
- Joined: 27 Aug 2019, 20:06
- Distribution: Porteus Kiosk
Nodejs in Porteus KIosk
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
Create a file with the content above. For example "makemodule.sh"
Then make it runnable with
Code: Select all
chmod +x makemodule.sh
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