installEmulators question is now gone.

What ivan.sh does now is a lot of fairly complicated shtuff that is
going to get harder to extract from here on out.

set versions/directories
find a2cSource
ID system
set Pi/computer (me/fullme)
detect systemd or not (the way RPF does it)
report installed/available version
parse argv
prompt for installation
skip a whole lot of questions
try to change your password
update package lists
install udev trigger
install random scripts like cppo and aliases
install motd
disable virtualbox screen blanking
write the version
install avahi
install at (why?)
install xdg-utils (less useful than it used to be at present)
install ADTPro:
	check for java or free space to install it
	install X11/LXDE
	set boot to command line via systemd/grub (why here?)
	install java
	remove adtpro if it's old
	install adtpro if needed
	install applecommander
	install modified adtpro.sh
	if adtpro was updated, install new a2cloud disk images
	install rxtx
	install xvfb
	make netatalk share a2cloud disk images if that's installed
	make samba share a2cloud disk images if that's installed
	install shell scripts for controlling adtpro, vsd
	install acmd, mkpo, dos2pro
	WHEW!
install xrdp
install the serial port handler script
create udev rules for usb-serial
install serial port login on the Pi (doesn't currently check for rpi)
install serial scripts: baud, term, usbgetty
install systemd service or modify inittab for serial console
call install_comm_tools
call install_emulators
call install_archive_tools
Create .desktop files for ADTPro and LXterminal
Decide whether we need to make/update a2cloud disks
If we do:
	See if we need to update it
	If we do and have most of what we need:
		Extract files and add them where they go
	If we're not going to make disks from scratch:
		Extract files elsewhere and add them where they go
	Otherwise:
		Kill adtpro if running
		Download a2cloud disk images if we can
		If we cannot:
			Get an 800k .po named A2CLOUD
			delete files we'll replace
			Download GSOS 6.0.1 disk 3 for its BASIC.SYSTEM
			Grab STARTUP.BAS and add that
			Grab VEDRIVE and add that
			Grab Apple System Utilities and add that
			Grab ProTERM and add that
			Patch ProTERM for IIc printer port
			Add ProTERM macros
			Download Z-Link and add that
			Download ShrinkIt and add that
			Download DSK2FILE and add that
			Add Apple System Utilities (check above)
			Download Filer and add
			Add ADTPro client
			Add VSDRIVE
			Create 140k image and add the basics
			make vsd files symlinks if they're not already
			create a2cloud.hdv compatibility symlink
If we need to make a new blank image:
	make it
set up the a2cloud-setup command
decide what to do about rebooting, restarting, starting, whatever.

Okay, the first thing to do here seems to probably be moving the
installation of Java out.  If we can just call "make sure java is
installed" from ivan.sh, we can from install_archive_tools too and pull
acmd and the other Ivan-written archiver scripts into that file.

I think at some point we need a "go download this" tool.  We often don't
waste a lot of effort on this for random programs, but we have for stuff
that comes from eg Apple or archive.org or … let's just not duplicate
that code anymore.

Making a2cloud disks is a high priority for its own file.  It's also a
bit of a jumbled mess right now, installing things in somewhat jumbled
order.  Let's be clear where we get our ProDOS, where we get our
BASIC.SYSTEM, and then handle things in stages.

How we install ProTERM etc should be compared with how it's done in
a2server at some point.  It's not hte same to install it to a directory
as it is to a disk image (or is it?)  Reducing effort could pay off
later in that regard.

We'll see how this pans out and where it leaves us with ivan.sh.
There's also a lot of bugs left to fix compiling things like nulib on
buster and we'd like to be able to start pulling AppleCommander and
mabye ADTPro as well out of GitHub revisions we trust…  That sort of
thing.
This commit is contained in:
T. Joseph Carter 2018-05-06 03:45:39 -07:00
parent 099f5b3f44
commit 42ac9cc6ef

View File

@ -123,7 +123,6 @@ if [[ $installAllFeatures ]]; then
installADTPro=1
createBootDisk=1
setupSerialPortLogin=1
installEmulators=1
else
### Q: Install ADTPro?
installADTPro=
@ -192,13 +191,6 @@ else
read
[[ ${REPLY:0:1} == "Y" || ${REPLY:0:1} == "y" ]] && setupSerialPortLogin=1
### Q: Install emulators?
installEmulators=
echo
echo -n "Install Apple IIgs and IIe emulators? "
read
[[ ${REPLY:0:1} == "Y" || ${REPLY:0:1} == "y" ]] && installEmulators=1
fi
echo