Last active
January 15, 2018 22:52
-
-
Save WebReflection/5084045 to your computer and use it in GitHub Desktop.
Boot to node: An Arch Linux on Raspberry PI + WiFi + node.js quick guide through
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# these info are valid today | |
# 4th March 2013 | |
# flush latest Arch for Pi dist | |
# via dd or other ways | |
# With A DHCPed Network Cable | |
pacman -Syu | |
sync | |
reboot | |
# full version is | |
pacman -Syuc --noconfirm && sync | |
# add nodejs to avoid compiling specific version | |
pacman -S nodejs | |
# OR node requirements (python2 only!) | |
pacman -S gcc make git-core python2 | |
ln -s /usr/bin/python2 /usr/bin/python | |
# since by default python2 installs as python2 | |
# clone | |
git clone git://github.com/joyent/node.git | |
cd node | |
# edit this part or shit happens | |
# NOT NEEDED ANYMORE | |
# vi deps/v8/build/common.gypi | |
# /CAN_USE_VFP3_INSTRUCTIONS | |
# CAN_USE_VFP2_INSTRUCTIONS | |
# compile node.js | |
./configure | |
# after | |
make | |
# go out or watch a movie | |
make install | |
# to have a server + .njs | |
# easyness in any desired folder | |
npm install -g polpetta | |
# --------------------------------------------- | |
# Optional WiFi | |
# --------------------------------------------- | |
vi /etc/network.d/wireless-wpa | |
# add SSID and KEY and save | |
netcfg wireless-wpa | |
# ignore errors and wait for [DONE] | |
# automatic boot | |
vi /etc/conf.d/netcfg | |
NETWORKS=(@wireless-wpa @ethernet-eth0) | |
# auto boot | |
systemctl enable netcfg |
vi /etc/profile.d/update.sh
might have some problem due delay ... it also fires for every connection as root, watch out!
#!/bin/sh
pacman -Syu --noconfirm
# q for quite
pacman -Sc --noconfirm
sync
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
auto login: https://wiki.archlinux.org/index.php/Automatic_login_to_virtual_console
type is idle and leave linux there