If you not installing the offline archive on a Rachel 3+ then one of these documents will be much easier to follow.
- INSTALLATION.md for general installation instructions.
- INSTALLATION-dev.md for developers who want to work on this code or on dweb-archive (our offline Javascript UI). These are tested on Mac OSX, but should work with only minor changes on Linux (feedback welcome).
- INSTALLATION-iiab-rpi.md to install Internet In A Box on a Rasperry Pi
- INSTALLATION-iiab-olip.md to install OLIP on a Rasperry Pi
- INSTALLATION-rachel.md for Rachel on their own Rachel 3+ (incomplete)
This is a work in progress - and hasn't been tried on a clean box, since many of the earlier attempts failed and I have no way to give it a full factory reset.
- [#93] for meta task for anything Rachel related.
There are docs that come with the Rachel box and are worth reading, however they are inadequate for this task set.
If you have permission to do this then you'll know the passwords so we are not putting it in this public repo!
- There are two ways to physically connect the Rachel3+ to the internet either directly via the Internet or via your laptop's Wifi.
- Connect the Rachel box to the Ethernet - it may care which socket its plugged into.
- Press and hold power button till blue light comes on then wait for WiFi to start flashing (can take a few minutes)
- On your laptop, connect via WiFi to "Rachel"
- Connect the Rachel box via Ethernet to your laptop - it may care which socket its plugged into.
- first connect from another device to WiFi Rachel,
- open
192.168.88.1
in your browser, - look in the top right corner for the LAN address (for me its often
192.168.2.3
so you could try that as a shortcut) - On your Laptop,
ssh 192.168.2.3
or whatever address you found above- and login with user:
cap
and the password supplied (not the same password as for the browser)
- and login with user:
- OR in browser open
http://192.168.2.3
and click on Admin,- then login with 'admin' and the password you should know
- The docs below assume you are connecting to 192.168.88.1, substitute the address you found above instead
- [http://192.168.88.1/admin/modules.php] - for general administration, but we won't do this here. (next page is Hardware / Advanced)
- [http://192.168.88.1:8080/]
- Login, user is
admin
and notAdmin
as stated in the docs shipped with the box - you should have the password.
- Login, user is
- General Settings
- Set to "Full Internet Access" and "wide area network"
- Disable Captive Portal - at least for now.
- Save and Apply
# Please send the result of this to me, I forgot to do this, so I'm not sure how much disk I'm using below.
sudo df -k
# Update the list of packages apt knows about.
sudo apt-get update
- Or:
ssh 192.168.88.1
and- login with user:
cap
and the password supplied (not the same password as for the browser)
- login with user:
- DONT DO THIS I BROKE MY BOX, requiring a full reinstall
sudo apt-get upgrade
- I did:
sudo apt-get install gcc g++ make
but I'm not sure which of these were actually required.- TODO on fresh machine try without these tools and edit this comment.
- g++ is certainly required for nvm below
- If something below complains of the other's absence then go ahead and install, the only downside is significant disk usage especially for gcc & g++
Now get yarn - as probably going to end up using both npm and yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Many tools now require Node v10 to work, but Node no longer supports 32 bit by default. Note there is an issue open on the Rachel community about this and Refael Ackermann from the node-js team helped make 32 bit compiles available, but there is noone at Rachel who has time to look at it... [http://community.rachelfriends.org/t/installing-usable-version-of-node/1082/4]
This next list only gets to v9 at present, its worth looking at /etc/apt/sources.list.d/nodesource.list
if debugging this.
sudo node --version # Typically shows an antique version of node around version 4.x
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-cache policy nodejs # Should show v10 but for some Rachel problem it only goes to v9 which is ok but sub-optimal
sudo apt-get install -y nodejs
sudo npm i -g npm # Update npm
So alternatively via NVM
touch ~/.bash_profile # Nvm needs it to at least exist
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
source ~/.bash_profile
nvm install node # Should compile 10.13.0 or later from source using the g++ installed earlier !!SLOW!!
node -v # Check its 10.x
TODO-RACHEL figure out the issues around path
etc for services accessing node and use whatever Rafael produces.
The final step requires integration by the Rachel team, We've had an issue open since March 2019, but there isn't anyone available, http://community.rachelfriends.org/t/integrating-installation-of-internet-archive-as-a-server/1284 so its going to be a bit of a guesswork if you want to complete this.
- TODO-RACHEL - hook into supervisorctl etc [http://community.rachelfriends.org/t/starting-at-boot-supervisorctl/1202]
- THEN TODO-RACHEL - auto start mirrorHttp
- TODO-RACHEL - run crawl under cron
- TODO-RACHEL - maybe setup easy auto-update process
- TODO-RACHEL - integrate into menus [http://community.rachelfriends.org/t/integrating-into-the-main-user-facing-menu/1203]