Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIAB installer should auto-detect NOOBS (pre-installed in many RPi's) alerting you how to proceed #1521

Open
holta opened this issue Feb 25, 2019 · 9 comments

Comments

@holta
Copy link
Member

holta commented Feb 25, 2019

@mitra42 describes the hours he lost and 2 recommendations:

I'm a relative RPi newbie - the previous install was easy for me since NOOBS got me the OS and I only had to work on top of that, which I'm familiar with. For IIAB it was far from obvious to me.

My first problem is which to install, which might also be a problem of where to start....

I started with http://d.iiab.io/install.txt ...

The install.txt tells me its not compatible with NOOBS, fine - except that my RPi came out of the box with NOOBS, and your install script doesn't tell me how to get from having NOOBS to a suitable starting point to then run the IIAB installer. For example some pointer on how to get your preferred compatible distro would be useful. Suggestion: Pointer or instruction for people whose RPi came with NOOBS (as both brands I bought do...)

I eventually followed the link to the Unix manual at https://github.com/iiab/iiab/wiki/IIAB-Installation - this wasn't my obvious choice since I'm not trying to do anything on a different OS, I'm trying to use your prefered (Raspbian) and that led me to downloading Stretch from https://www.raspberrypi.org/downloads/raspbian/ and somewhere I found https://www.balena.io/etcher/ which I could use to get it onto an SD and boot my RPi.

This was entirely non-obvious, I know Unix well, and have done a raw (NOOBS) install before, I doubt anyone just ordering a RPI online, and trying to get a IIAB box going will find this easy, and think most would fail. Note in particular that some of the downloads are very large so that making mistakes can cause multi-hour waits to figure out what you did wrong.

He also recommends that all implementers learn about (the common need to re-run) sudo iiab before they begin their install. There are very loud warnings today, within the 1-line installer itself (and other places) but this makes sense — I need to make these warnings even louder & more timely — perhaps even forcing the implementer to acknowledge that they understand...before proceeding to install:

[IIAB] install from the script worked ok - it failed twice and it probably wouldnt be obvious to someone less experienced. Suggestion stronger suggestion that people run sudo iiab repeatedly until they get a run with no error messages. (except that I got an error message even on my last run - something about being a member of a sharing network, so maybe that script needs tweaking to know its not an error)

Ref: #1519

@holta holta added this to the 7.0 milestone Feb 25, 2019
@holta
Copy link
Member Author

holta commented Feb 25, 2019

@tim-moody suggests NOOBS might allow folks to easily "upgrade" to full Raspbian possibly?

If so we can try to document this — ideally as part of auto-alerting folks (in 1-line installer) that they're trying to install IIAB on an inappropriate OS.

@holta
Copy link
Member Author

holta commented Feb 25, 2019

@jvonau suggests we might put a LOUD BANNER in the implementer's face every time they ssh in, similar to Raspbian & IIAB's security warnings about weak passwords, but also educating the implementer about the need to possibly run sudo iiab and iiab-hotspot-on:

If so emulating these 2 files:
https://github.com/iiab/iiab/blob/master/roles/iiab-admin/templates/lxde_ssh_warn.sh
https://github.com/iiab/iiab/blob/master/roles/iiab-admin/templates/profile_ssh_warn.sh

As installed by:
https://github.com/iiab/iiab/blob/master/roles/iiab-admin/tasks/main.yml#L24-L44

Ref: #1520

@mitra42
Copy link
Contributor

mitra42 commented Feb 25, 2019

@holta - @tim-moody - Unless automatically going from NOOBS to Raspbian is possible, then I think the NOOBS thing is needed in two places.
a) in the script - when it runs - detect NOOBS and exit
b) in the text of install.txt this needs rewording.

 To install Internet-in-a-Box (IIAB) 7.0 / pre-release onto Raspbian Stretch,
# Ubuntu 18.04 or Debian 9, run this 1-line installer: 
# curl d.iiab.io/install.txt | sudo bash
WARNING: NOOBS IS *NOT* SUPPORTED, as its partitioning is very different.
#    To attempt IIAB 7.0 on another Linux see the full/manual instructions:
#    https://github.com/iiab/iiab/wiki/IIAB-Installation#do-everything-from-scratch

c) on the home page d.iiab.io reword

WARNING: NOOBS IS *NOT* SUPPORTED, as its partitioning is very different.
To attempt IIAB 7.0 on another Linux see the full/manual instructions.

Since I'm not trying to run on another Linux, I'm trying to get from NOOBS to Raspbian Stretch, which is ALMOST, but not quite, covered by the wiki.

@mitra42
Copy link
Contributor

mitra42 commented Feb 25, 2019

Then I think the Wiki should tell me how to install Rasbian on a RPi.

Note that you are three steps away from doing this ...
a) find install.txt or home page
b) figure out that NOOBS isn't supported and then go to the do-everything-from-scratch wiki
c) figure out you need Rasbian and follow that link
d) Spot that you need the installation guide and follow that link.

There is enough geeky language on all those pages to reduce the chances of successfully getting there. I'd suggest a link in install.txt and home page direct to the installation guide that says something like:

"NOOBS is not supported, go to the installation guide to install the latest version of Rasbian. "

@holta
Copy link
Member Author

holta commented Feb 25, 2019

@mitra42 I'm working with community volunteers in India on simplifying our most commonly-accessed docs, for non-technical librarians especially. There will be major revisions in coming months.

Meantime thanks for the link (don't tell ppl what mistakes to avoid, rather show them the way ;-) which I've added here:

Also for IIAB 7.0/master:

@holta
Copy link
Member Author

holta commented Feb 26, 2019

Documentation below further enhanced — alongside http://FAQ.IIAB.IO Number 8 ("Is a quick installation possible?")

Also for IIAB 7.0/master:

@holta holta changed the title IIAB installer should auto-detect NOOBS (pre-installed on many RPi's) alerting you how to proceed IIAB installer should auto-detect NOOBS (pre-installed in many RPi's) alerting you how to proceed Mar 4, 2019
@holta holta modified the milestones: 7.0, 7.1 May 4, 2019
@mitra42
Copy link
Contributor

mitra42 commented Jul 2, 2019

@holta did you figure this out for 7.0 ? I'm just wondering if I need to modify directions for people who startoff on NOOBS. Do they still need to do the manual Rasbian image download etc ?

@holta
Copy link
Member Author

holta commented Jul 2, 2019

NOOBS is not supported for IIAB 7.0

(It's very different in it's partitioning from mainline "real" Raspbian, according to @floydianslips and others, so this is too difficult to support for now )

@mitra42
Copy link
Contributor

mitra42 commented Jul 2, 2019

Yes - understood, the issue was more about how IIAB handles NOOBS from the perspective of guiding users to a successful install, since most RPI's I've seen come with NOOBS rather than Raspbian.

I unfortunately don't have a high degree of confidence in most, even technical, users - who buy an off-the-shelf RPI - following the instructions at https://github.com/internetarchive/dweb-mirror/blob/master/INSTALLATION-raspberrypi.md all the way through to successful install of IIAB+IA

@holta holta modified the milestones: 7.1, 7.2 Dec 21, 2019
@holta holta modified the milestones: 7.2, 8.0 Sep 10, 2020
@holta holta modified the milestones: 8.0, 8.1 Jan 1, 2022
@holta holta modified the milestones: 8.1, 8.2 Jan 1, 2023
@holta holta modified the milestones: 8.2, 8.3 Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants