PAY ATTENTION : BE SURE TO CONNECT YOUR BOARD TO A STABLE ( 5V ) POWER SOURCE SUCH AS A USB PORT OF YOUR DESKTOP/LAPTOP PC OR THE NETWORK POWER ITSELF.
THE SCRIPT SHOULD WORK IF THE SDCARD IS INITIALLY FAT32 FORMATTED WITH SINGLE PARTITION (SUCH AS A BRAND NEW FLASH MEMORY) OR MULTI-PARTITIONED AS WELL.
HOWEVER IF YOU EXPERIENCE ANY ISSUE WHILE RUNNING THIS SCRIPT, WE STRONGLY ADVISE YOU TO USE THE OFFICIAL TOOL PROVIDED BY THE SD ASSOCIATION TO FORMAT THE SD CARD AND THEN RESTART THE WHOLE PROCESShttps://www.sdcard.org/downloads/formatter_4/
The script is designed to work with SDcard of 2,4,8,16,32,64 GB denomination only. Be sure to insert your SDCard into your system and to verify that it is properly mounted on the system itself.
Hi folks, this is a simple guide to guide you through the installation of the node.js platform on your system without any hassle. We have designed and made a simple shell script to set up your working enviroment in just five minutes or less.
First of all download and untar in the root of your linino board the script with :
$ wget http://wiki.linino.org/lib/exe/fetch.php?media=wiki:nodeyun_inst_latest.tar.gz -O nodeyun_inst_latest.tar.gz
$ tar zxvf nodeyun_inst_latest.tar.gz
Please check the consistency of your download with the following command:
$ md5sum nodeyun_inst_latest.tar.gz
MD5 (nodeyun_inst_latest.tar.gz) = 0011886f0a81658287ea0e955f4214f4
MD5SUM : 0011886f0a81658287ea0e955f4214f4 nodeyun_inst_latest.tar.gz
then launch the script with :
$ sh nodeyun_inst_latest.sh
You must have fdisk installed on your system to properly launch the script. If you don’t have it, don’t worry because the script will take care of installing fdisk for you.
Once the process has finished, re-launch the installation script the and the main menu of the script will be presented to you :
Linino node.js installation menu :
1. Prepare SDCard and install node.js
2. Revert to original settings
3. Exit and reboot
4. Kill all node processes
In brief, this is what a single option performs when selected :
- Erase all your data on the external SDCard and install node.js
- Revert the system to its settings before installing node.js
- Reboot the system and exit from the remote ssh session
- Kill all existing node.js running processes
- Exit the script
Installing Node.Js on your system
Select the entry with number 1 and a warning message about the deletion of all your data on the SDCard will appear :
WARNING : All data on your SDCard Would will be erased, are you sure ? (y/n)
Then select yes and at the end of the process reboot the OS (you will be warned by the script). In fact by doing so, the modifications generated by the script to the Linino environment will be properly and permanently set as system defaults. After rebooting and logging into the system again through SSH connection, type from shell the following command :
$ which node
if it returns the string :
Congratulations ! You’re now ready to work with the node.js platform !
PAY ATTENTION : If you ever accidentally remove the SDCard from the board after node.js is installed and working, please re-insert it and reboot the system to restore the proper settings.
Uninstalling Node.Js / Reverting the settings on your system
To return to the system status previous to the installation process, just relaunch the script and select the entry number 2. The uninstalling process will start and you will be notified by the message :
Reverting to defaults..........
At the end of the process reboot your system once again to permanently apply the new changes. Please also note that your SDcard data will be erased again and the card itself will be vFat (FAT 32) formatted as if it was a brand new one.
For further reference and some useful screenshot please take a look at the original post on the Lining.org blog :