Quote from obarthelemy on September 4, 2011, 17:40
If I understand right, there are 2 issues:
1- since the Raspi only has 1 USB port, it can have either a keyboard, or a flash stick. To update from stick, there needs to be a delay mechanism to give the user time to unplug keyboard and plug flash stick instead. It would probably be nice to be able to use the same mechanism for any file, not just system updates. Maybe tick boxes: Copy from Flash stick to internal SD: System Image (will delete all/confirm), All files, System Updates, Movies, Pictures, Music, Programs, ... True/false for each, with space requirements for each, and check.
This wouldn't be necessary because everything would be made through the software before having to download anything to the usb drive, so you could select everything you wanted to do, remove your keyboard and use the mouse to just select "Download to USB drive".
Even in the case that you can't use either keyboard or mouse you could just tell the software to wait until it detects a flash drive being plugged in and once it does, mount it and transfer everything automatically. This is actually pretty easy to do in Linux.
But your idea of also being able to also transfer other type of files is pretty good *adds to the list*
2- the only Internet access is via Internet cafés; which means 2 sub-things:
2a- Raspi itself never gets connected to the Internet
2b- the user cannot install and run random programs on the "internet" PC.
This makes selecting, downloading, and applying upgrades a bit convoluted. The best I could come up with is:
- have a custom program on the Raspi generate a list of the packages installed, and save that list to the Flash stick
- Once in the net café, upload that list to a Raspberry Update Server. The server then pushes the appropriate updates (plus tha latest bare OS system image) to the Flash stick.
- back at home on the Raspi, do a delayed apt-get from Flash stick. apt-get needs to know to search Flash stick and/or SD for a local repo.
Well i never thought of this simply because i never had those issues around here, as long as you don't want to install anything on the systems ( access system files, write to the registry etc ) you usually don't have any problems using standalone software on Internet cafes. Even when they don't have the usb ports available it's just a matter of asking and they allow it. That might be problems in other countries it seems.
A slightly simpler version would be for a Raspberry server with just a simple list of all "official" and "approved" (community-driven) packages' latest versions, with tick boxes to choose the ones the user wants to DL. Again, once back home, delayed apt-get from local repo.
That's more tricky because every person has different needs and having someone approving what apps are ok or not to use would be a huge burden itself.
Quote from Blars on September 4, 2011, 22:51
Debian already has a way of doing offline updates, I forget what the package is called. It's so you can update a system via floppies or other removable media.
The APT system can update using local repositories instead of remote ones, no extra packages necessary. Since i have many debian systems at home i just made my fileserver a local apt repository and every time one of the systems is updated, it transfers the deb files to the fileserver and makes them available to the rest