Skip to content

Instantly share code, notes, and snippets.

@WebReflection
Last active January 15, 2018 22:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebReflection/5084045 to your computer and use it in GitHub Desktop.
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
# 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
@WebReflection
Copy link
Author

auto login: https://wiki.archlinux.org/index.php/Automatic_login_to_virtual_console

type is idle and leave linux there

@WebReflection
Copy link
Author

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