mirror of
https://github.com/RasppleII/a2server.git
synced 2025-09-11 06:27:25 +00:00
Compare commits
15 Commits
1.5.0
...
current-te
Author | SHA1 | Date | |
---|---|---|---|
|
4fb47b06ed | ||
|
a615ed1808 | ||
|
5e0feab69c | ||
|
a3a7a9479d | ||
|
34836dcbb4 | ||
|
7b7917d417 | ||
|
938db3c46b | ||
|
4d1b5db5e3 | ||
|
7d1a06a916 | ||
|
f9b120002a | ||
|
49d50e49ac | ||
|
dfa1e26c80 | ||
|
d86e3bfa88 | ||
|
cd20570999 | ||
|
cd8271cd56 |
14
README.md
14
README.md
@@ -1,5 +1,6 @@
|
|||||||
# A2SERVER
|
# A2SERVER
|
||||||
AppleTalk server for Apple // computers developed by Ivan Drucker
|
AppleTalk server for Apple // computers developed by Ivan Drucker, with
|
||||||
|
substantial rework and by T. Joseph Carter
|
||||||
|
|
||||||
Documentation here is sparse for the moment; see [Ivan's site]() for
|
Documentation here is sparse for the moment; see [Ivan's site]() for
|
||||||
information about A2SERVER and how it all works. There's a lot there and it's
|
information about A2SERVER and how it all works. There's a lot there and it's
|
||||||
@@ -13,7 +14,14 @@ relatively modern piece of it. As such they should be preserved as they are.
|
|||||||
|
|
||||||
## Developer note
|
## Developer note
|
||||||
|
|
||||||
To use the scripts on your own server, including your local machine:
|
To use the scripts with a specific GitHub tag:
|
||||||
|
~~~ bash
|
||||||
|
export A2SERVER_SCRIPT_URL=https://raw.githubusercontent.com/RasppleII/a2server/TAG_GOES_HERE/
|
||||||
|
export A2SERVER_BINARY_URL=${A2SERVER_SCRIPT_URL}files
|
||||||
|
wget -O setup ${A2SERVER_SCRIPT_URL}setup/index.txt; source setup
|
||||||
|
~~~
|
||||||
|
|
||||||
|
Or, to use the scripts on your own server, including your local machine:
|
||||||
|
|
||||||
~~~ bash
|
~~~ bash
|
||||||
export A2SERVER_SCRIPT_URL=http://yoururl.com/
|
export A2SERVER_SCRIPT_URL=http://yoururl.com/
|
||||||
@@ -46,7 +54,7 @@ Once you have those:
|
|||||||
export A2SERVER_NO_EXTERNAL=1
|
export A2SERVER_NO_EXTERNAL=1
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
You may want to put the above exports into ~/.bashrc or ~/.bash_profile.
|
You may want to put the above exports into `~/.bashrc` or `~/.bash_profile`.
|
||||||
|
|
||||||
If you want to host scripts locally installed on your own machine or another
|
If you want to host scripts locally installed on your own machine or another
|
||||||
computer on your LAN, type the following, and export "http://localhost:8000/"
|
computer on your LAN, type the following, and export "http://localhost:8000/"
|
||||||
|
1749
files/A2FILES-list.txt
Normal file
1749
files/A2FILES-list.txt
Normal file
File diff suppressed because it is too large
Load Diff
65
files/dist/getexternal.sh
vendored
Executable file
65
files/dist/getexternal.sh
vendored
Executable file
@@ -0,0 +1,65 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
||||||
|
|
||||||
|
if ! hash wget; then
|
||||||
|
echo "wget is not installed. On a Mac, install it with MacPorts or Homebrew."
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Downloading items..."
|
||||||
|
|
||||||
|
mkdir -p files/external/source
|
||||||
|
wget -O files/external/source/ciopfs-0.4.tar.gz http://www.brain-dump.org/projects/ciopfs/ciopfs-0.4.tar.gz
|
||||||
|
wget -O files/external/source/macipgw.zip https://github.com/zero2sixd/macipgw/archive/2a5f6a7521a627e46b18468d44f4306fb0a7b7ab.zip
|
||||||
|
wget -O files/external/source/netatalk-2.2.4.tar.gz http://downloads.sourceforge.net/project/netatalk/netatalk/2.2.4/netatalk-2.2.4.tar.gz
|
||||||
|
wget -O files/external/source/nulib2-3.1.0a2.zip https://github.com/fadden/nulib2/archive/20fe7efb4d37fedf807416c16d74d51d893ea48a.zip
|
||||||
|
wget -O files/external/source/unar-1.8.1.zip https://github.com/incbee/Unarchiver/archive/unar-1.8.1.zip
|
||||||
|
|
||||||
|
mkdir -p files/external/appleii
|
||||||
|
wget --max-redirect 0 -O files/external/appleii/Apple_II_System_Disk_3.2.sea.bin http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Apple_II/Apple_II_Supplemental/Apple_II_System_Disk_3.2.sea.bin
|
||||||
|
wget -O files/external/appleii/Asimov.shk http://www.ninjaforce.com/downloads/Asimov.shk
|
||||||
|
wget -O files/external/appleii/MOUNTIT.SHK http://www.brutaldeluxe.fr/products/apple2gs/MOUNTIT.SHK
|
||||||
|
wget -O files/external/appleii/Marinetti3.0b8.po http://www.a2retrosystems.com/downloads/Marinetti3.0b8.po
|
||||||
|
wget -O files/external/appleii/PPPX.1.3d4.SHK http://www.apple2.org/marinetti/PPPX.1.3d4.SHK
|
||||||
|
wget -O files/external/appleii/dsk2file.shk http://www.dwheeler.com/6502/oneelkruns/dsk2file.zip
|
||||||
|
wget -O files/external/appleii/gshk11.sea http://www.nulib.com/library/gshk11.sea
|
||||||
|
wget -O files/external/appleii/shrinkit.sdk http://www.nulib.com/library/shrinkit.sdk
|
||||||
|
wget -O files/external/appleii/spectrum_gold_2mg.zip http://speccie.uk/speccie/downloads/spectrum_gold_2mg.zip
|
||||||
|
wget -O files/external/appleii/uthernet2ll.bxy http://speccie.uk/speccie/downloads/uthernet2ll.bxy
|
||||||
|
wget -O files/external/appleii/uthernetll.bxy http://speccie.uk/speccie/downloads/uthernetll.bxy
|
||||||
|
|
||||||
|
unset safeUrl samUrl snapUrl
|
||||||
|
safeUrl=$(wget -qO- http://speccie.uk/software/safe2/ | grep -i 'safe2.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
||||||
|
samUrl=$(wget -qO- http://speccie.uk/software/sam2/ | grep -i 'sam2.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
||||||
|
snapUrl=$(wget -qO- http://speccie.uk/software/snap/ | grep -i 'snap.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
||||||
|
wget -O files/external/appleii/safe2.bxy "$safeUrl"
|
||||||
|
wget -O files/external/appleii/sam2.bxy "$samUrl"
|
||||||
|
wget -O files/external/appleii/snap.bxy "$snapUrl"
|
||||||
|
|
||||||
|
for gsosInstall in {1..3}; do
|
||||||
|
activeDisk=0
|
||||||
|
mkdir -p files/external/appleii/gsos60${gsosInstall}
|
||||||
|
|
||||||
|
diskNames=( Install System.Disk SystemTools1 SystemTools2 Fonts synthLAB )
|
||||||
|
if (( $gsosInstall == 1 )); then
|
||||||
|
gsosURL="http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Apple_II/Apple_IIGS_System_6.0.1/"
|
||||||
|
wget --max-redirect 0 -O files/external/appleii/gsos601/Disk_7_of_7-Apple_II_Setup.sea.bin http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Apple_II/Apple_IIGS_System_6.0.1/Disk_7_of_7-Apple_II_Setup.sea.bin
|
||||||
|
elif (( $gsosInstall == 2 )); then
|
||||||
|
gsosURL="http://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Operating%20Systems/Apple%20IIGS%20System/Disk%20Images/"
|
||||||
|
diskNames=( Install System.Disk SystemTools1 SystemTools2 SystemTools3 Fonts1 Fonts2 synthLAB )
|
||||||
|
diskWebNames=( Install System%20disk System%20tools%201 System%20tools%202 System%20tools%203 Fonts%201 Fonts%202 Synthlab )
|
||||||
|
elif (( $gsosInstall == 3 )); then
|
||||||
|
gsosURL="ftp://ftp.apple.asimov.net/pub/apple_II/images/gs/os/gsos/Apple_IIGS_System_6.0.3/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for diskname in ${diskNames[@]}; do
|
||||||
|
outfile="files/external/appleii/gsos60${gsosInstall}/$diskname.po"
|
||||||
|
(( activeDisk++ ))
|
||||||
|
if (( $gsosInstall == 1 )); then
|
||||||
|
wget --max-redirect 0 -O files/external/appleii/gsos601/"Disk_${activeDisk}_of_7-${diskname}.sea.bin" "${gsosURL}Disk_${activeDisk}_of_7-${diskname}.sea.bin"
|
||||||
|
elif (( $gsosInstall == 2 )); then
|
||||||
|
wget -O $outfile "$gsosURL/IIGS%20System%206.0.2%20-%20Disk%20${activeDisk}%20${diskWebNames[$activeDisk-1]}.po"
|
||||||
|
elif (( $gsosInstall == 3 )); then
|
||||||
|
wget -O $outfile "$gsosURL/$diskname.po"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
152
files/netatalk-init.d-clean.txt
Executable file
152
files/netatalk-init.d-clean.txt
Executable file
@@ -0,0 +1,152 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: netatalk
|
||||||
|
# Required-Start: $remote_fs $syslog
|
||||||
|
# Should-Start: avahi-daemon
|
||||||
|
# Required-Stop: $remote_fs $syslog
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop: 1
|
||||||
|
### END INIT INFO
|
||||||
|
#
|
||||||
|
# netatalk Netatalk 2.2.4 initscript
|
||||||
|
# Author: Thomas Kaiser <Thomas.Kaiser@phg-online.de>
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
DESC="Netatalk"
|
||||||
|
NAME=netatalk
|
||||||
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
# Guard to prevent execution if netatalk was removed.
|
||||||
|
test -x /usr/local/sbin/afpd || exit 0
|
||||||
|
|
||||||
|
# Set defaults. Please change these options in /etc/default/netatalk
|
||||||
|
ATALK_NAME=`/bin/hostname --short`
|
||||||
|
ATALK_UNIX_CHARSET='LOCALE'
|
||||||
|
ATALK_MAC_CHARSET='MAC_ROMAN'
|
||||||
|
|
||||||
|
CNID_METAD_RUN=yes
|
||||||
|
AFPD_RUN=yes
|
||||||
|
AFPD_MAX_CLIENTS=50
|
||||||
|
AFPD_UAMLIST="-U uams_dhx2.so"
|
||||||
|
AFPD_GUEST=nobody
|
||||||
|
CNID_CONFIG="-l log_note"
|
||||||
|
|
||||||
|
ATALKD_RUN=no
|
||||||
|
PAPD_RUN=no
|
||||||
|
TIMELORD_RUN=no
|
||||||
|
#A2BOOT_RUN=no
|
||||||
|
ATALK_ZONE=
|
||||||
|
ATALK_BGROUND=no
|
||||||
|
|
||||||
|
# old /etc/default/netatalk expected hostname in $HOSTNAME by default
|
||||||
|
HOSTNAME=`/bin/hostname`
|
||||||
|
|
||||||
|
# Read in netatalk configuration.
|
||||||
|
if [ -f /etc/default/netatalk ]; then
|
||||||
|
. /etc/default/netatalk
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start Netatalk servers.
|
||||||
|
atalk_startup() {
|
||||||
|
if [ x"$ATALKD_RUN" = x"yes" ]; then
|
||||||
|
|
||||||
|
# Try to load the AppleTalk kernel module if it was intended.
|
||||||
|
if grep -q '^appletalk$' /etc/modules; then
|
||||||
|
/sbin/modprobe appletalk || echo "[could not load appletalk module]"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Start atalkd server.
|
||||||
|
/usr/local/sbin/atalkd
|
||||||
|
|
||||||
|
# register workstation
|
||||||
|
/usr/local/bin/nbprgstr -p 4 "$ATALK_NAME:Workstation$ATALK_ZONE"
|
||||||
|
/usr/local/bin/nbprgstr -p 4 "$ATALK_NAME:netatalk$ATALK_ZONE"
|
||||||
|
|
||||||
|
echo -n " atalkd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# prepare startup of file services
|
||||||
|
if [ "x$CNID_METAD_RUN" = "xyes" -a -x /usr/local/sbin/cnid_metad ] ; then
|
||||||
|
echo -n " cnid_metad"
|
||||||
|
/usr/local/sbin/cnid_metad $CNID_CONFIG
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$AFPD_RUN" = x"yes" ]; then
|
||||||
|
/usr/local/sbin/afpd $AFPD_UAMLIST -g $AFPD_GUEST -c $AFPD_MAX_CLIENTS \
|
||||||
|
-n "$ATALK_NAME$ATALK_ZONE"
|
||||||
|
echo -n " afpd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "x$ATALKD_RUN" = "xyes" ]; then
|
||||||
|
if [ "x$PAPD_RUN" = "xyes" ]; then
|
||||||
|
/usr/local/sbin/papd
|
||||||
|
echo -n " papd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ x"$TIMELORD_RUN" = x"yes" ]; then
|
||||||
|
/usr/local/sbin/timelord
|
||||||
|
echo -n " timelord"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
if [ "x$ATALK_BGROUND" = "xyes" -a "x$ATALKD_RUN" = "xyes" ]; then
|
||||||
|
echo "Starting Netatalk services in the background."
|
||||||
|
atalk_startup >/dev/null &
|
||||||
|
else
|
||||||
|
echo -n "Starting Netatalk services (this will take a while): "
|
||||||
|
atalk_startup
|
||||||
|
echo "."
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
echo -n "Stopping Netatalk Daemons:"
|
||||||
|
echo -n " afpd"
|
||||||
|
start-stop-daemon --stop --quiet --oknodo --exec /usr/local/sbin/afpd
|
||||||
|
|
||||||
|
echo -n " cnid_metad"
|
||||||
|
start-stop-daemon --stop --quiet --oknodo --exec /usr/local/sbin/cnid_metad
|
||||||
|
|
||||||
|
if test -x /usr/local/sbin/papd; then
|
||||||
|
echo -n " papd"
|
||||||
|
start-stop-daemon --stop --quiet --oknodo --exec /usr/local/sbin/papd
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -x /usr/local/sbin/timelord; then
|
||||||
|
echo -n " timelord"
|
||||||
|
start-stop-daemon --stop --quiet --oknodo --exec /usr/local/sbin/timelord
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -x /usr/local/sbin/atalkd; then
|
||||||
|
echo -n " atalkd"
|
||||||
|
start-stop-daemon --stop --quiet --oknodo --exec /usr/local/sbin/atalkd
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "."
|
||||||
|
;;
|
||||||
|
|
||||||
|
restart)
|
||||||
|
$0 force-reload
|
||||||
|
;;
|
||||||
|
|
||||||
|
force-reload)
|
||||||
|
echo -n "Restarting Netatalk Daemons (this will take a while)"
|
||||||
|
$0 stop
|
||||||
|
echo -n "."
|
||||||
|
sleep 2
|
||||||
|
echo -n "."
|
||||||
|
if $0 start; then
|
||||||
|
echo "done."
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start|stop|restart|force-reload}" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
@@ -7,7 +7,7 @@
|
|||||||
# Ensure URL we'll use ends in a /
|
# Ensure URL we'll use ends in a /
|
||||||
case "$A2SERVER_SCRIPT_URL" in
|
case "$A2SERVER_SCRIPT_URL" in
|
||||||
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
||||||
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current}/" ;;
|
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current}/" ;;
|
||||||
esac
|
esac
|
||||||
case "$A2SERVER_BINARY_URL" in
|
case "$A2SERVER_BINARY_URL" in
|
||||||
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
||||||
@@ -22,7 +22,7 @@ arch=
|
|||||||
if [[ -f /usr/bin/raspi-config ]]; then
|
if [[ -f /usr/bin/raspi-config ]]; then
|
||||||
isRpi=1
|
isRpi=1
|
||||||
arch='rpi'
|
arch='rpi'
|
||||||
elif lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ $(cut -c 1 <<< $debianVersion) -ge "7" ]]; then
|
elif lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ $(cut -d . -f 1 <<< $debianVersion) -ge "7" ]]; then
|
||||||
uname_m="$(uname -m)"
|
uname_m="$(uname -m)"
|
||||||
if [[ $uname_m == "i686" ]]; then
|
if [[ $uname_m == "i686" ]]; then
|
||||||
arch='debian_x86'
|
arch='debian_x86'
|
||||||
@@ -33,10 +33,12 @@ fi
|
|||||||
|
|
||||||
debianName=
|
debianName=
|
||||||
if [[ $debianVersion ]]; then
|
if [[ $debianVersion ]]; then
|
||||||
debianMajor=$(cut -c 1-2 <<< $debianVersion)
|
debianMajor=$(cut -d . -f 1 <<< $debianVersion)
|
||||||
if [[ $debianMajor == "8." ]]; then
|
if [[ $debianMajor == "9" ]]; then
|
||||||
|
debianName="stretch"
|
||||||
|
elif [[ $debianMajor == "8" ]]; then
|
||||||
debianName="jessie"
|
debianName="jessie"
|
||||||
elif [[ $debianMajor == "7." ]]; then
|
elif [[ $debianMajor == "7" ]]; then
|
||||||
debianName="wheezy"
|
debianName="wheezy"
|
||||||
else
|
else
|
||||||
debianName="unknown"
|
debianName="unknown"
|
||||||
@@ -120,7 +122,7 @@ if ! hash unar &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# jessie and later: Just use the unar package
|
# jessie and later: Just use the unar package
|
||||||
if [[ $debianName == "jessie" ]]; then
|
if [[ $debianMajor -ge 8 ]]; then
|
||||||
sudo apt-get -y install unar
|
sudo apt-get -y install unar
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
fi
|
fi
|
||||||
|
@@ -16,12 +16,12 @@
|
|||||||
|
|
||||||
# Ensure URL we'll use ends in a /
|
# Ensure URL we'll use ends in a /
|
||||||
case "$A2SERVER_SCRIPT_URL" in
|
case "$A2SERVER_SCRIPT_URL" in
|
||||||
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
||||||
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current}/" ;;
|
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current}/" ;;
|
||||||
esac
|
esac
|
||||||
case "$A2SERVER_BINARY_URL" in
|
case "$A2SERVER_BINARY_URL" in
|
||||||
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
||||||
*) binaryURL="${A2SERVER_BINARY_URL:-http://ivanx.com/a2server/files}/" ;;
|
*) binaryURL="${A2SERVER_BINARY_URL:-http://ivanx.com/a2server/files}/" ;;
|
||||||
esac
|
esac
|
||||||
useExternalURL=1
|
useExternalURL=1
|
||||||
[[ $A2SERVER_NO_EXTERNAL ]] && useExternalURL=
|
[[ $A2SERVER_NO_EXTERNAL ]] && useExternalURL=
|
||||||
@@ -32,7 +32,7 @@ arch=
|
|||||||
if [[ -f /usr/bin/raspi-config ]]; then
|
if [[ -f /usr/bin/raspi-config ]]; then
|
||||||
isRpi=1
|
isRpi=1
|
||||||
arch='rpi'
|
arch='rpi'
|
||||||
elif lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ $(cut -c 1 <<< $debianVersion) -ge "7" ]]; then
|
elif lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ $(cut -d . -f 1 <<< $debianVersion) -ge "7" ]]; then
|
||||||
uname_m="$(uname -m)"
|
uname_m="$(uname -m)"
|
||||||
if [[ $uname_m == "i686" ]]; then
|
if [[ $uname_m == "i686" ]]; then
|
||||||
arch='debian_x86'
|
arch='debian_x86'
|
||||||
@@ -43,16 +43,28 @@ fi
|
|||||||
|
|
||||||
debianName=
|
debianName=
|
||||||
if [[ $debianVersion ]]; then
|
if [[ $debianVersion ]]; then
|
||||||
debianMajor=$(cut -c 1-2 <<< $debianVersion)
|
debianMajor=$(cut -d . -f 1 <<< $debianVersion)
|
||||||
if [[ $debianMajor == "8." ]]; then
|
if [[ $debianMajor == "10" ]]; then
|
||||||
|
debianName="buster"
|
||||||
|
elif [[ $debianMajor == "9" ]]; then
|
||||||
|
debianName="stretch"
|
||||||
|
elif [[ $debianMajor == "8" ]]; then
|
||||||
debianName="jessie"
|
debianName="jessie"
|
||||||
elif [[ $debianMajor == "7." ]]; then
|
elif [[ $debianMajor == "7" ]]; then
|
||||||
debianName="wheezy"
|
debianName="wheezy"
|
||||||
else
|
else
|
||||||
debianName="unknown"
|
debianName="unknown"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# enable SSH (disabled by default in Raspbian from late 2016 onward)
|
||||||
|
if [[ $isRpi && $debianMajor -ge 8 ]] && ! ps aux | grep -q '[s]shd'; then
|
||||||
|
echo "A2SERVER: Enabling ssh access..."
|
||||||
|
sudo systemctl enable ssh &> /dev/null && sudo systemctl start ssh &> /dev/null
|
||||||
|
else
|
||||||
|
echo "A2SERVER: ssh access is already enabled."
|
||||||
|
fi
|
||||||
|
|
||||||
# skip this if already done
|
# skip this if already done
|
||||||
if [[ -f /usr/local/etc/A2SERVER-version ]] && (( $(head -c 3 /usr/local/etc/A2SERVER-version) >= 101 )); then
|
if [[ -f /usr/local/etc/A2SERVER-version ]] && (( $(head -c 3 /usr/local/etc/A2SERVER-version) >= 101 )); then
|
||||||
|
|
||||||
@@ -100,15 +112,25 @@ else
|
|||||||
if [[ $(apt-cache search '^libdb5.1$') ]]; then # Wheezy
|
if [[ $(apt-cache search '^libdb5.1$') ]]; then # Wheezy
|
||||||
# Dependencies: netatalk 2.2.4
|
# Dependencies: netatalk 2.2.4
|
||||||
sudo apt-get -y install libdb5.1
|
sudo apt-get -y install libdb5.1
|
||||||
elif [[ $(apt-cache search '^libdb5.3$') ]]; then # Jessie
|
elif [[ $(apt-cache search '^libdb5.3$') ]]; then # Jessie or Stretch
|
||||||
# Dependencies: netatalk 2.2.4
|
# Dependencies: netatalk 2.2.4
|
||||||
sudo apt-get -y install libdb5.3
|
sudo apt-get -y install libdb5.3
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [[ $(apt-cache search '^libssl1.0.0$') ]]; then
|
if [[ $(apt-cache search '^libssl1.0.0$') ]]; then # Wheezy or Jessie
|
||||||
# Dependencies: netatalk 2.2.4
|
# Dependencies: netatalk 2.2.4
|
||||||
sudo apt-get -y install libssl1.0.0
|
sudo apt-get -y install libssl1.0.0
|
||||||
|
elif [[ $(apt-cache search '^libssl1.0.2$') ]]; then # Stretch
|
||||||
|
# Dependencies: netatalk 2.2.4
|
||||||
|
sudo apt-get -y install libssl1.0.2
|
||||||
|
elif [[ $(apt-cache search '^libssl1.1$') ]]; then # Buster
|
||||||
|
# Dependencies: netatalk 2.2.4
|
||||||
|
echo "deb http://deb.debian.org/debian/ oldstable main" | sudo tee -a /etc/apt/sources.list > /dev/null
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install libssl1.0.2
|
||||||
|
sudo sed -i '$d' /etc/apt/sources.list
|
||||||
|
sudo apt-get -y update
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -116,7 +138,7 @@ else
|
|||||||
if [[ $(apt-cache search '^libgcrypt11$') ]]; then # Wheezy
|
if [[ $(apt-cache search '^libgcrypt11$') ]]; then # Wheezy
|
||||||
# Dependencies: netatalk 2.2.4
|
# Dependencies: netatalk 2.2.4
|
||||||
sudo apt-get -y install libgcrypt11
|
sudo apt-get -y install libgcrypt11
|
||||||
elif [[ $(apt-cache search '^libgcrypt20$') ]]; then # Jessie
|
elif [[ $(apt-cache search '^libgcrypt20$') ]]; then # Jessie, Stretch, Buster
|
||||||
# Dependencies: netatalk 2.2.4
|
# Dependencies: netatalk 2.2.4
|
||||||
sudo apt-get -y install libgcrypt20
|
sudo apt-get -y install libgcrypt20
|
||||||
else
|
else
|
||||||
@@ -125,7 +147,7 @@ else
|
|||||||
|
|
||||||
# install Netatalk
|
# install Netatalk
|
||||||
if [[ $arch && ! -f /tmp/a2server-compileAlways ]]; then
|
if [[ $arch && ! -f /tmp/a2server-compileAlways ]]; then
|
||||||
{ wget -qO- "${binaryURL}precompiled/netatalk224-${arch}_${debianName}.tgz" | sudo tar Pzx; } &> /dev/null
|
{ wget -qO- "${binaryURL}precompiled/netatalk226-${arch}_${debianName}.tgz" | sudo tar Pzx; } &> /dev/null
|
||||||
fi
|
fi
|
||||||
sudo mandb &> /dev/null
|
sudo mandb &> /dev/null
|
||||||
|
|
||||||
@@ -135,12 +157,36 @@ else
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ $compileFromSource ]]; then
|
if [[ $compileFromSource ]]; then
|
||||||
|
|
||||||
# Dependencies: build-deps for netatalk 2.2.4
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
sudo apt-get -y install build-essential libssl-dev
|
sudo apt-get -y install build-essential
|
||||||
|
|
||||||
|
if [[ $(dpkg -l | grep libssl-dev | tr -s ' ' | cut -d ' ' -f 3 | cut -c 1-3) == "1.1" ]]; then
|
||||||
|
echo "A2SERVER: WARNING: libssl-dev 1.1 is already installed; removing."
|
||||||
|
sudo apt-get -y purge libssl-dev
|
||||||
|
sudo apt -y autoremove
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $(apt-cache search '^libssl1.0-dev$') ]]; then # Stretch
|
||||||
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
|
sudo apt-get -y install libssl1.0-dev
|
||||||
|
else # Jessie or Wheezy (libssl-dev 1.0.x) or Buster (absent)
|
||||||
|
if [[ $(apt-cache madison libssl-dev | grep '^libssl' | head -1 | cut -d '|' -f 2 | tr -d ' ' | cut -c 1-3) == "1.1" ]]; then # Buster, so pull from Stretch
|
||||||
|
echo "deb http://deb.debian.org/debian/ oldstable main" | sudo tee -a /etc/apt/sources.list > /dev/null
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install libssl1.0.dev
|
||||||
|
sudo sed -i '$d' /etc/apt/sources.list
|
||||||
|
sudo apt-get -y update
|
||||||
|
else # Jessie or Wheezy
|
||||||
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
|
sudo apt-get -y install libssl-dev
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $(apt-cache search '^libdb5.1-dev$') ]]; then # Wheezy
|
if [[ $(apt-cache search '^libdb5.1-dev$') ]]; then # Wheezy
|
||||||
# Dependencies: build-deps for netatalk 2.2.4
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
sudo apt-get -y install libdb5.1-dev
|
sudo apt-get -y install libdb5.1-dev
|
||||||
elif [[ $(apt-cache search '^libdb5.3-dev$') ]]; then # Jessie
|
elif [[ $(apt-cache search '^libdb5.3-dev$') ]]; then # Jessie, Stretch, Buster
|
||||||
# Dependencies: build-deps for netatalk 2.2.4
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
sudo apt-get -y install libdb5.3-dev
|
sudo apt-get -y install libdb5.3-dev
|
||||||
else
|
else
|
||||||
@@ -148,14 +194,23 @@ else
|
|||||||
# Dependencies: build-deps for netatalk 2.2.4
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
sudo apt-get -y install libdb-dev
|
sudo apt-get -y install libdb-dev
|
||||||
fi
|
fi
|
||||||
if [[ $(apt-cache search '^libgcrypt11-dev$') ]]; then # Jessie or Wheezy
|
|
||||||
|
if [[ $(apt-cache search '^libgcrypt11-dev$') ]]; then # Stretch, Jessie or Wheezy
|
||||||
# Dependencies: build-deps for netatalk 2.2.4
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
sudo apt-get -y install libgcrypt11-dev
|
sudo apt-get -y install libgcrypt11-dev
|
||||||
|
elif [[ $(apt-cache search '^libgcrypt20-dev$') ]]; then # Buster
|
||||||
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
|
echo "deb http://deb.debian.org/debian/ oldstable main" | sudo tee -a /etc/apt/sources.list > /dev/null
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y install libgcrypt11-dev
|
||||||
|
sudo sed -i '$d' /etc/apt/sources.list
|
||||||
|
sudo apt-get -y update
|
||||||
else
|
else
|
||||||
echo "A2SERVER: WARNING: unknown version of libgcrypt-dev is being installed."
|
echo "A2SERVER: WARNING: unknown version of libgcrypt-dev is being installed."
|
||||||
# Dependencies: build-deps for netatalk 2.2.4
|
# Dependencies: build-deps for netatalk 2.2.4
|
||||||
sudo apt-get -y install $(apt-cache search '^libgcrypt.*dev$' | sort -r | head -1 | cut -d ' ' -f 1)
|
sudo apt-get -y install $(apt-cache search '^libgcrypt.*dev$' | sort -r | head -1 | cut -d ' ' -f 1)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
|
|
||||||
# get Netatalk
|
# get Netatalk
|
||||||
@@ -179,10 +234,10 @@ else
|
|||||||
# props to Steven Hirsch for these
|
# props to Steven Hirsch for these
|
||||||
sed -i ':a;N;$!ba;s/case FILPBIT_ATTR :\n *change_mdate = 1;\n/case FILPBIT_ATTR :\n/g' etc/afpd/file.c
|
sed -i ':a;N;$!ba;s/case FILPBIT_ATTR :\n *change_mdate = 1;\n/case FILPBIT_ATTR :\n/g' etc/afpd/file.c
|
||||||
sed -i 's/rtmp->rt_iface == iface/rtmp->rt_iface != iface/g' etc/atalkd/main.c
|
sed -i 's/rtmp->rt_iface == iface/rtmp->rt_iface != iface/g' etc/atalkd/main.c
|
||||||
|
|
||||||
# prepare to build Netatalk
|
# prepare to build Netatalk
|
||||||
./configure --enable-debian --enable-ddp --enable-a2boot
|
./configure --enable-debian --enable-ddp --enable-a2boot
|
||||||
|
|
||||||
# uninstall Netatalk if already installed
|
# uninstall Netatalk if already installed
|
||||||
[[ -f /usr/local/sbin/afpd ]] && sudo make uninstall
|
[[ -f /usr/local/sbin/afpd ]] && sudo make uninstall
|
||||||
|
|
||||||
@@ -193,7 +248,7 @@ else
|
|||||||
# to remove the Netatalk source code (optional), type:
|
# to remove the Netatalk source code (optional), type:
|
||||||
cd
|
cd
|
||||||
rm -rf /tmp/netatalk
|
rm -rf /tmp/netatalk
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# --- Install MacIPgw
|
# --- Install MacIPgw
|
||||||
@@ -215,7 +270,7 @@ if ! hash macipgw &> /dev/null; then
|
|||||||
unzip macipgw.zip 2> /dev/null
|
unzip macipgw.zip 2> /dev/null
|
||||||
rm macipgw.zip &> /dev/null
|
rm macipgw.zip &> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ ! -d macipgw-master ]]; then
|
if [ ! -d macipgw* ]; then
|
||||||
wget -qO macipgw.zip "${binaryURL}external/source/macipgw.zip"
|
wget -qO macipgw.zip "${binaryURL}external/source/macipgw.zip"
|
||||||
unzip macipgw.zip 2> /dev/null
|
unzip macipgw.zip 2> /dev/null
|
||||||
rm macipgw.zip &> /dev/null
|
rm macipgw.zip &> /dev/null
|
||||||
@@ -421,11 +476,16 @@ if ! hash ciopfs &> /dev/null; then
|
|||||||
cd /tmp/ciopfs
|
cd /tmp/ciopfs
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -q -O ciopfs-0.4.tar.gz http://www.brain-dump.org/projects/ciopfs/ciopfs-0.4.tar.gz
|
wget -q -O ciopfs-0.4.tar.gz http://www.brain-dump.org/projects/ciopfs/ciopfs-0.4.tar.gz
|
||||||
|
if (( $? != 0 )); then
|
||||||
|
wget -q -O ciopfs-0.4.tar.gz http://web.archive.org/web/20160911102924/http://www.brain-dump.org/projects/ciopfs/ciopfs-0.4.tar.gz
|
||||||
|
fi
|
||||||
tar zxf ciopfs-0.4.tar.gz &> /dev/null
|
tar zxf ciopfs-0.4.tar.gz &> /dev/null
|
||||||
|
rm ciopfs-0.4.tar.gz &> /dev/null
|
||||||
fi
|
fi
|
||||||
if [ ! -f ciopfs*/ciopfs.c ]; then # single brackets required for glob
|
if [ ! -f ciopfs*/ciopfs.c ]; then # single brackets required for glob
|
||||||
wget -q -O ciopfs-0.4.tar.gz ${binaryURL}external/source/ciopfs-0.4.tar.gz
|
wget -q -O ciopfs-0.4.tar.gz ${binaryURL}external/source/ciopfs-0.4.tar.gz
|
||||||
tar zxf ciopfs-0.4.tar.gz &> /dev/null
|
tar zxf ciopfs-0.4.tar.gz &> /dev/null
|
||||||
|
rm ciopfs-0.4.tar.gz &> ?dev/null
|
||||||
fi
|
fi
|
||||||
cd ciopfs*
|
cd ciopfs*
|
||||||
make
|
make
|
||||||
@@ -529,7 +589,7 @@ if [[ -f "/lib/modules/$kernelRelease/kernel/drivers/net/appletalk/ipddp.ko" ]];
|
|||||||
|
|
||||||
sudo mv /lib/modules/$kernelRelease/kernel/net/appletalk/appletalk.ko /tmp 2> /dev/null
|
sudo mv /lib/modules/$kernelRelease/kernel/net/appletalk/appletalk.ko /tmp 2> /dev/null
|
||||||
|
|
||||||
if [[ ${arch%_*} == "debian" ]]; then
|
if [[ ! $compileFromSource && ${arch%_*} == "debian" ]]; then
|
||||||
echo "A2SERVER: Fetching AppleTalk kernel module for Debian..."
|
echo "A2SERVER: Fetching AppleTalk kernel module for Debian..."
|
||||||
wget -qO /tmp/appletalk.tgz ${binaryURL}precompiled/appletalk-$kernelRelease-${arch}.tgz
|
wget -qO /tmp/appletalk.tgz ${binaryURL}precompiled/appletalk-$kernelRelease-${arch}.tgz
|
||||||
if [[ $? -eq 0 ]]; then
|
if [[ $? -eq 0 ]]; then
|
||||||
@@ -542,9 +602,12 @@ if [[ -f "/lib/modules/$kernelRelease/kernel/drivers/net/appletalk/ipddp.ko" ]];
|
|||||||
sudo sed -i "s/ATALKD_RUN=no/ATALKD_RUN=yes/" /etc/default/netatalk
|
sudo sed -i "s/ATALKD_RUN=no/ATALKD_RUN=yes/" /etc/default/netatalk
|
||||||
sudo /etc/init.d/netatalk restart &> /dev/null
|
sudo /etc/init.d/netatalk restart &> /dev/null
|
||||||
else
|
else
|
||||||
|
echo "A2SERVER: failed to load AppleTalk kernel module"
|
||||||
# if we didn't load it successfully, remove it
|
# if we didn't load it successfully, remove it
|
||||||
sudo rm /lib/modules/$kernelRelease/kernel/net/appletalk/appletalk.ko 2> /dev/null
|
sudo rm /lib/modules/$kernelRelease/kernel/net/appletalk/appletalk.ko 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
else # download failed, so premade kernel not found, remove empty file
|
||||||
|
rm /tmp/appletalk.tgz 2>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -562,6 +625,7 @@ if [[ -f "/lib/modules/$kernelRelease/kernel/drivers/net/appletalk/ipddp.ko" ]];
|
|||||||
[[ -f /boot/config-$kernelRelease ]] || break
|
[[ -f /boot/config-$kernelRelease ]] || break
|
||||||
sudo apt-get -y install linux-headers-$kernelRelease linux-source-$kernelMajorMinor || break
|
sudo apt-get -y install linux-headers-$kernelRelease linux-source-$kernelMajorMinor || break
|
||||||
sudo apt-get -y install build-essential
|
sudo apt-get -y install build-essential
|
||||||
|
sudo apt-get -y install libelf-dev # required as of kernel 4.14.12, apparently
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
kernelSrc=$(find linux-source-${kernelMajorMinor}*)
|
kernelSrc=$(find linux-source-${kernelMajorMinor}*)
|
||||||
if [[ ${kernelSrc##*.} == "xz" ]]; then
|
if [[ ${kernelSrc##*.} == "xz" ]]; then
|
||||||
@@ -592,6 +656,7 @@ if [[ -f "/lib/modules/$kernelRelease/kernel/drivers/net/appletalk/ipddp.ko" ]];
|
|||||||
sudo rm /usr/src/$kernelSrc
|
sudo rm /usr/src/$kernelSrc
|
||||||
sudo rm -r /usr/src/linux-source-$kernelMajorMinor
|
sudo rm -r /usr/src/linux-source-$kernelMajorMinor
|
||||||
sudo apt-get -y purge linux-source-$kernelMajorMinor
|
sudo apt-get -y purge linux-source-$kernelMajorMinor
|
||||||
|
sudo apt -y autoremove
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
# Ensure URL we'll use ends in a /
|
# Ensure URL we'll use ends in a /
|
||||||
case "$A2SERVER_SCRIPT_URL" in
|
case "$A2SERVER_SCRIPT_URL" in
|
||||||
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
||||||
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current}/" ;;
|
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current}/" ;;
|
||||||
esac
|
esac
|
||||||
case "$A2SERVER_BINARY_URL" in
|
case "$A2SERVER_BINARY_URL" in
|
||||||
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
||||||
@@ -30,6 +30,7 @@ diskToolsP8Dir=$p8Dir/Disk.Tools.P8
|
|||||||
commDir="/srv/A2SERVER/A2FILES/Comm"
|
commDir="/srv/A2SERVER/A2FILES/Comm"
|
||||||
|
|
||||||
gsosURL="http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Apple_II/Apple_IIGS_System_6.0.1/"
|
gsosURL="http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Apple_II/Apple_IIGS_System_6.0.1/"
|
||||||
|
# alernate: http://web.archive.org/web/20080907081050/http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English-North_American/Apple_II/Apple_IIGS_System_6.0.1/
|
||||||
gsosBackupURL="http://archive.org/download/download.info.apple.com.2012.11/download.info.apple.com.2012.11.zip/download.info.apple.com%2FApple_Support_Area%2FApple_Software_Updates%2FEnglish-North_American%2FApple_II%2FApple_IIGS_System_6.0.1%2F"
|
gsosBackupURL="http://archive.org/download/download.info.apple.com.2012.11/download.info.apple.com.2012.11.zip/download.info.apple.com%2FApple_Support_Area%2FApple_Software_Updates%2FEnglish-North_American%2FApple_II%2FApple_IIGS_System_6.0.1%2F"
|
||||||
|
|
||||||
# --- bashByter library routines
|
# --- bashByter library routines
|
||||||
@@ -135,11 +136,11 @@ updateP8YearTables () {
|
|||||||
patched=0 # 0 is true in this case since it's the return value
|
patched=0 # 0 is true in this case since it's the return value
|
||||||
while (( $i < ${#files[@]} )); do
|
while (( $i < ${#files[@]} )); do
|
||||||
[[ ! -f "${files[$i]}" ]] && { (( i++ )); continue; }
|
[[ ! -f "${files[$i]}" ]] && { (( i++ )); continue; }
|
||||||
if [[ ! $patch1 || $patch1 != $(sudo dd if="${files[$i]}" skip=${offset1[$i]} bs=1 count=7 2> /dev/null) ]]; then
|
if [[ ! $patch1 || $patch1 != $(sudo dd if="${files[$i]}" skip=${offset1[$i]} bs=1 count=7 2> /dev/null | tr -d '\0') ]]; then
|
||||||
patched=1 # 1 is false
|
patched=1 # 1 is false
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
if [[ ! $patch2 || $patch2 != $(sudo dd if="${files[$i]}" skip=${offset2[$i]} bs=1 count=9 2> /dev/null) ]]; then
|
if [[ ! $patch2 || $patch2 != $(sudo dd if="${files[$i]}" skip=${offset2[$i]} bs=1 count=9 2> /dev/null | tr -d '\0') ]]; then
|
||||||
patched=1 # 1 is false
|
patched=1 # 1 is false
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -340,11 +341,22 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
|
|
||||||
if [[ $gsosReinstall ]]; then
|
if [[ $gsosReinstall ]]; then
|
||||||
if [[ ! $autoAnswerYes ]]; then
|
if [[ ! $autoAnswerYes ]]; then
|
||||||
|
echo
|
||||||
echo "You can set up GS/OS for network boot. This may take a while."
|
echo "You can set up GS/OS for network boot. This may take a while."
|
||||||
echo "0: don't install GS/OS"
|
echo
|
||||||
echo "1: GS/OS 6.0.1 (official Apple release, May 1993)"
|
echo " 0: don't install GS/OS"
|
||||||
echo "2: GS/OS 6.0.2 (community release by Antoine Vignau, July 2015)"
|
echo " 1: GS/OS 6.0.1 (May 1993) [official release]"
|
||||||
echo "3: GS/OS 6.0.3 (community release by Tony Diaz, August 2015)"
|
echo " The final version authorized by Apple. It has a few bugs,"
|
||||||
|
echo " but most of these can be patched. Predictable and might be"
|
||||||
|
echo " required if you use certain patches."
|
||||||
|
echo " 2: GS/OS 6.0.2 (Jul 2015)"
|
||||||
|
echo " A community effort released by Antoine Vignau with fixes for"
|
||||||
|
echo " some serious bugs and a few other enhancements."
|
||||||
|
echo " 3: GS/OS 6.0.3 (Aug 2015)"
|
||||||
|
echo " Continuing community effort released by Tony Diaz. Includes"
|
||||||
|
echo " previous work along with additional fixes/changes. Better"
|
||||||
|
echo " documentation of changes. Most will prefer this or Apple's"
|
||||||
|
echo " release above."
|
||||||
echo
|
echo
|
||||||
echo -n "Which flavor would you like? "
|
echo -n "Which flavor would you like? "
|
||||||
read
|
read
|
||||||
@@ -559,6 +571,9 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
cd /tmp/netboot
|
cd /tmp/netboot
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -qO Asimov.shk http://www.ninjaforce.com/downloads/Asimov.shk
|
wget -qO Asimov.shk http://www.ninjaforce.com/downloads/Asimov.shk
|
||||||
|
if (( $? != 0 )); then
|
||||||
|
wget -qO Asimov.shk http://web.archive.org/web/20160330184627/http://www.ninjaforce.com/downloads/Asimov.shk
|
||||||
|
fi
|
||||||
nulib2 -x -s Asimov.shk &> /dev/null
|
nulib2 -x -s Asimov.shk &> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ ! -d Asimov ]]; then
|
if [[ ! -d Asimov ]]; then
|
||||||
@@ -662,6 +677,9 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
cd /tmp/netboot
|
cd /tmp/netboot
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -q -O dsk2file.shk http://www.dwheeler.com/6502/oneelkruns/dsk2file.zip
|
wget -q -O dsk2file.shk http://www.dwheeler.com/6502/oneelkruns/dsk2file.zip
|
||||||
|
if (( $? != 0 )); then
|
||||||
|
wget -q -O dsk2file.shk http://web.archive.org/web/20120726132356/http://www.dwheeler.com/6502/oneelkruns/dsk2file.zip
|
||||||
|
fi
|
||||||
nulib2 -x -s dsk2file.shk &> /dev/null
|
nulib2 -x -s dsk2file.shk &> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ ! -f DSK2FILE58 ]]; then
|
if [[ ! -f DSK2FILE58 ]]; then
|
||||||
@@ -733,17 +751,15 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
|
|
||||||
unset safeUrl samUrl snapUrl safeVer samVer snapVer
|
unset safeUrl samUrl snapUrl safeVer samVer snapVer
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
html=$(wget -qO- http://speccie.co.uk/speccie/Site/Download_Centre_files/widget1_markup.html)
|
safeUrl=$(wget -qO- http://speccie.uk/software/safe2/ | grep -i 'safe2.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
||||||
safeUrl=$(echo "$html" | grep -i 'safe2.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
samUrl=$(wget -qO- http://speccie.uk/software/sam2/ | grep -i 'sam2.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
||||||
samUrl=$(echo "$html" | grep -i 'sam2.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
snapUrl=$(wget -qO- http://speccie.uk/software/snap/ | grep -i 'snap.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
||||||
snapUrl=$(echo "$html" | grep -i 'snap.*bxy' | tr '<>' '\n' | grep href | cut -d '=' -f 2 | tr -d '"')
|
safeVer=$(echo $safeUrl | rev | cut -d '/' -f 1 | cut -d '.' -f 2 | rev | cut -c 5- | sed 's/./.&/g' | cut -c 2-)
|
||||||
safeVer=$(echo $safeUrl | rev | cut -d '/' -f 1 | cut -d '.' -f 2 | rev | cut -c 5- | sed 's/./.&/g' | cut -c 2-)
|
samVer=$(echo $samUrl | rev | cut -d '/' -f 1 | cut -d '.' -f 2 | rev | cut -c 4- | sed 's/./.&/g' | cut -c 2-)
|
||||||
samVer=$(echo $samUrl | rev | cut -d '/' -f 1 | cut -d '.' -f 2 | rev | cut -c 4- | sed 's/./.&/g' | cut -c 2-)
|
snapVer=$(echo $snapUrl | rev | cut -d '/' -f 1 | cut -d '.' -f 2 | rev | cut -c 5- | sed 's/./.&/g' | cut -c 2-)
|
||||||
snapVer=$(echo $snapUrl | rev | cut -d '/' -f 1 | cut -d '.' -f 2 | rev | cut -c 5- | sed 's/./.&/g' | cut -c 2-)
|
|
||||||
spectrumVer=$(echo "$html" | grep 'Spectrum.*Gold.2mg' | tr '<>' '\n' | grep '^Spectrum.*2mg$' | cut -d ' ' -f 2)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Spectrum $spectrumVer"
|
echo -n "Spectrum"
|
||||||
# get Spectrum
|
# get Spectrum
|
||||||
if [[ -f $commDir/Spectrum/Spectrum ]]; then
|
if [[ -f $commDir/Spectrum/Spectrum ]]; then
|
||||||
echo " is already installed."
|
echo " is already installed."
|
||||||
@@ -757,7 +773,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
mkdir -p /tmp/netboot/spectrum
|
mkdir -p /tmp/netboot/spectrum
|
||||||
cd /tmp/netboot/spectrum
|
cd /tmp/netboot/spectrum
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -qO spectrum_gold_2mg.zip http://www.speccie.co.uk/speccie/software/spectrum_gold_2mg.zip
|
wget -qO spectrum_gold_2mg.zip http://speccie.uk/speccie/downloads/spectrum_gold_2mg.zip
|
||||||
unzip spectrum_gold_2mg.zip Spectrum.Gold.2mg &> /dev/null
|
unzip spectrum_gold_2mg.zip Spectrum.Gold.2mg &> /dev/null
|
||||||
fi
|
fi
|
||||||
if [[ ! -f Spectrum.Gold.2mg || $(wc -c < Spectrum.Gold.2mg) -eq 0 ]]; then
|
if [[ ! -f Spectrum.Gold.2mg || $(wc -c < Spectrum.Gold.2mg) -eq 0 ]]; then
|
||||||
@@ -805,6 +821,9 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
# TCP/IP update (3.0b8)
|
# TCP/IP update (3.0b8)
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -qO Marinetti3.0b8.po http://www.a2retrosystems.com/downloads/Marinetti3.0b8.po
|
wget -qO Marinetti3.0b8.po http://www.a2retrosystems.com/downloads/Marinetti3.0b8.po
|
||||||
|
if (( $? != 0 )); then
|
||||||
|
wget -qO Marinetti3.0b8.po http://web.archive.org/web/20171105043713/http://a2retrosystems.com/downloads/Marinetti3.0b8.po
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $? != 0 || ! -f Marinetti3.0b8.po || $(wc -c < Marinetti3.0b8.po) != "819200" ]]; then
|
if [[ $? != 0 || ! -f Marinetti3.0b8.po || $(wc -c < Marinetti3.0b8.po) != "819200" ]]; then
|
||||||
wget -qO Marinetti3.0b8.po ${binaryURL}external/appleii/Marinetti3.0b8.po
|
wget -qO Marinetti3.0b8.po ${binaryURL}external/appleii/Marinetti3.0b8.po
|
||||||
@@ -816,6 +835,9 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -qO PPPX.1.3d4.SHK http://www.apple2.org/marinetti/PPPX.1.3d4.SHK
|
wget -qO PPPX.1.3d4.SHK http://www.apple2.org/marinetti/PPPX.1.3d4.SHK
|
||||||
fi
|
fi
|
||||||
|
if (( $? != 0 )); then
|
||||||
|
wget -qO PPPX.1.3d4.SHK http://web.archive.org/web/20160331231844/http://www.apple2.org/marinetti/PPPX.1.3d4.SHK
|
||||||
|
fi
|
||||||
if [[ $? != 0 || ! -f PPPX.1.3d4.SHK || $(wc -c < PPPX.1.3d4.SHK) != "22068" ]]; then
|
if [[ $? != 0 || ! -f PPPX.1.3d4.SHK || $(wc -c < PPPX.1.3d4.SHK) != "22068" ]]; then
|
||||||
wget -qO PPPX.1.3d4.SHK ${binaryURL}external/appleii/PPPX.1.3d4.SHK
|
wget -qO PPPX.1.3d4.SHK ${binaryURL}external/appleii/PPPX.1.3d4.SHK
|
||||||
fi
|
fi
|
||||||
@@ -829,7 +851,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
|
|
||||||
# Uthernet Link Layer
|
# Uthernet Link Layer
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -qO uthernetll.bxy http://www.speccie.co.uk/speccie/software/uthernetll.bxy
|
wget -qO uthernetll.bxy http://speccie.uk/speccie/downloads/uthernetll.bxy
|
||||||
fi
|
fi
|
||||||
if [[ $? != 0 || ! -f uthernetll.bxy || $(wc -c < uthernetll.bxy) -eq 0 ]]; then
|
if [[ $? != 0 || ! -f uthernetll.bxy || $(wc -c < uthernetll.bxy) -eq 0 ]]; then
|
||||||
wget -qO uthernetll.bxy ${binaryURL}external/appleii/uthernetll.bxy
|
wget -qO uthernetll.bxy ${binaryURL}external/appleii/uthernetll.bxy
|
||||||
@@ -838,7 +860,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
|
|
||||||
# Uthernet II Link Layer
|
# Uthernet II Link Layer
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
wget -qO uthernet2ll.bxy http://www.speccie.co.uk/speccie/software/uthernet2ll.bxy
|
wget -qO uthernet2ll.bxy http://speccie.uk/speccie/downloads/uthernet2ll.bxy
|
||||||
fi
|
fi
|
||||||
if [[ $? != 0 || ! -f uthernet2ll.bxy || $(wc -c < uthernet2ll.bxy) -eq 0 ]]; then
|
if [[ $? != 0 || ! -f uthernet2ll.bxy || $(wc -c < uthernet2ll.bxy) -eq 0 ]]; then
|
||||||
wget -qO uthernet2ll.bxy ${binaryURL}external/appleii/uthernet2ll.bxy
|
wget -qO uthernet2ll.bxy ${binaryURL}external/appleii/uthernet2ll.bxy
|
||||||
@@ -860,7 +882,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
mkdir -p /tmp/netboot/safe2
|
mkdir -p /tmp/netboot/safe2
|
||||||
cd /tmp/netboot/safe2
|
cd /tmp/netboot/safe2
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
[[ ! $safeUrl ]] && safeUrl="http://www.speccie.co.uk/speccie/software/safe229.bxy"
|
[[ ! $safeUrl ]] && safeUrl="http://speccie.uk/speccie/downloads/safe230.bxy"
|
||||||
wget -qO safe2.bxy "$safeUrl"
|
wget -qO safe2.bxy "$safeUrl"
|
||||||
cppo -s -ad safe2.bxy . &> /dev/null
|
cppo -s -ad safe2.bxy . &> /dev/null
|
||||||
fi
|
fi
|
||||||
@@ -894,7 +916,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
mkdir -p /tmp/netboot/sam2
|
mkdir -p /tmp/netboot/sam2
|
||||||
cd /tmp/netboot/sam2
|
cd /tmp/netboot/sam2
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
[[ ! $samUrl ]] && samUrl="http://www.speccie.co.uk/speccie/software/sam205.bxy"
|
[[ ! $samUrl ]] && samUrl="http://speccie.uk/speccie/downloads/sam206.bxy"
|
||||||
wget -qO sam2.bxy "$samUrl"
|
wget -qO sam2.bxy "$samUrl"
|
||||||
cppo -s -ad sam2.bxy . &> /dev/null
|
cppo -s -ad sam2.bxy . &> /dev/null
|
||||||
fi
|
fi
|
||||||
@@ -931,7 +953,7 @@ if [[ ! $autoAnswerYes || -f /tmp/a2server-setupNetBoot ]]; then
|
|||||||
mkdir -p /tmp/netboot/snap
|
mkdir -p /tmp/netboot/snap
|
||||||
cd /tmp/netboot/snap
|
cd /tmp/netboot/snap
|
||||||
if [[ $useExternalURL ]]; then
|
if [[ $useExternalURL ]]; then
|
||||||
[[ ! $snapUrl ]] && snapUrl="http://www.speccie.co.uk/speccie/software/snap118.bxy"
|
[[ ! $snapUrl ]] && snapUrl="http://speccie.uk/speccie/downloads/snap118.bxy"
|
||||||
wget -qO snap.bxy "$snapUrl"
|
wget -qO snap.bxy "$snapUrl"
|
||||||
cppo -s -ad snap.bxy . &> /dev/null
|
cppo -s -ad snap.bxy . &> /dev/null
|
||||||
fi
|
fi
|
||||||
|
@@ -14,7 +14,7 @@ password="your password"
|
|||||||
[[ $isRaspberryPw ]] && password="'raspberry'"
|
[[ $isRaspberryPw ]] && password="'raspberry'"
|
||||||
|
|
||||||
isDebian=
|
isDebian=
|
||||||
[[ ( -f /etc/debian_version ) && ( $(cut -c 1-2 < /etc/debian_version) == "7." ) && ( $(uname -m) == "i686" ) ]] && isDebian=1
|
b_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ ( -f /etc/debian_version ) && ( $(cut -d . -f 1 < /etc/debian_version) -ge "7" ) ]] && isDebian=1
|
||||||
|
|
||||||
if [[ $isDebian ]]; then
|
if [[ $isDebian ]]; then
|
||||||
if { lspci 2> /dev/null | grep -q VirtualBox; }; then
|
if { lspci 2> /dev/null | grep -q VirtualBox; }; then
|
||||||
|
@@ -2,17 +2,17 @@
|
|||||||
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
||||||
|
|
||||||
alias a2server-help="more /usr/local/etc/a2server-help.txt"
|
alias a2server-help="more /usr/local/etc/a2server-help.txt"
|
||||||
alias a2server-setup='wget -q -O /tmp/a2server-setup ${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current/}setup/index.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/a2server-setup'
|
alias a2server-setup='wget -q -O /tmp/a2server-setup ${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current/}setup/index.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/a2server-setup'
|
||||||
|
|
||||||
alias a2server-version="cat /usr/local/etc/A2SERVER-version"
|
alias a2server-version="cat /usr/local/etc/A2SERVER-version"
|
||||||
alias a2server-update='wget -q -O /tmp/a2server-update ${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current/}update/index.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/a2server-update'
|
alias a2server-update='wget -q -O /tmp/a2server-update ${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current/}update/index.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/a2server-update'
|
||||||
|
|
||||||
alias system-shutdown='sudo shutdown -h now'
|
alias system-shutdown='sudo shutdown -h now'
|
||||||
alias system-restart='sudo shutdown -r now'
|
alias system-restart='sudo shutdown -r now'
|
||||||
|
|
||||||
|
|
||||||
alias raspi-config='[[ -f /usr/bin/raspi-config ]] && sudo /usr/bin/raspi-config || echo "raspi-config not found. Are you using a Raspberry Pi with Raspbian?"'
|
alias raspi-config='[[ -f /usr/bin/raspi-config ]] && sudo /usr/bin/raspi-config || echo "raspi-config not found. Are you using a Raspberry Pi with Raspbian?"'
|
||||||
alias raspbian-update='wget -qO /tmp/raspbian-update ${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current/}scripts/raspbian-update.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/raspbian-update'
|
alias raspbian-update='wget -qO /tmp/raspbian-update ${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current/}scripts/raspbian-update.txt || { echo "Can'"'"'t download A2SERVER setup scripts. Do you has internet?"; false; } && source /tmp/raspbian-update'
|
||||||
alias rasppleii-update='raspbian-update a2cloud a2server'
|
alias rasppleii-update='raspbian-update a2cloud a2server'
|
||||||
|
|
||||||
alias welcome-message-edit='sudo nano /etc/motd'
|
alias welcome-message-edit='sudo nano /etc/motd'
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
||||||
|
|
||||||
export A2SERVER_SCRIPT_URL="${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current/}"
|
export A2SERVER_SCRIPT_URL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current/}"
|
||||||
export A2SERVER_BINARY_URL="${A2SERVER_BINARY_URL:-http://ivanx.com/a2server/files/}"
|
export A2SERVER_BINARY_URL="${A2SERVER_BINARY_URL:-http://ivanx.com/a2server/files/}"
|
||||||
source /usr/local/etc/a2server-aliases
|
source /usr/local/etc/a2server-aliases
|
||||||
|
@@ -158,7 +158,7 @@ readchars () {
|
|||||||
&& ( $3 -ge 0 ) ]] || return 23; }
|
&& ( $3 -ge 0 ) ]] || return 23; }
|
||||||
# args are valid
|
# args are valid
|
||||||
dd if="$1" bs=1 skip=$(($2)) $([[ $3 ]] && echo -n "count=$3") \
|
dd if="$1" bs=1 skip=$(($2)) $([[ $3 ]] && echo -n "count=$3") \
|
||||||
2> /dev/null
|
2> /dev/null | tr -d ' \0'
|
||||||
}
|
}
|
||||||
|
|
||||||
readcharDec () {
|
readcharDec () {
|
||||||
@@ -175,7 +175,7 @@ readcharDec () {
|
|||||||
&& ( $2 -ge 0 ) ]] || return 22; }
|
&& ( $2 -ge 0 ) ]] || return 22; }
|
||||||
# args are valid
|
# args are valid
|
||||||
charX="$(dd if="$1" bs=1 skip=$(($2)) \
|
charX="$(dd if="$1" bs=1 skip=$(($2)) \
|
||||||
count=1 2> /dev/null; echo -n X)"
|
count=1 2> /dev/null | tr -d '\0'; echo -n X)"
|
||||||
[[ ${#charX} -gt 1 ]] || { echo -n 0; return 0; }
|
[[ ${#charX} -gt 1 ]] || { echo -n 0; return 0; }
|
||||||
echo -n "${charX:0:1}" | od -t u1 | \
|
echo -n "${charX:0:1}" | od -t u1 | \
|
||||||
head -1 | sed 's/[0\ ]*//' | tr -d ' \n'
|
head -1 | sed 's/[0\ ]*//' | tr -d ' \n'
|
||||||
@@ -195,7 +195,7 @@ readcharHex () {
|
|||||||
&& ( $2 -ge 0 ) ]] || return 22; }
|
&& ( $2 -ge 0 ) ]] || return 22; }
|
||||||
# args are valid
|
# args are valid
|
||||||
charX="$(dd if="$1" bs=1 skip=$(($2)) \
|
charX="$(dd if="$1" bs=1 skip=$(($2)) \
|
||||||
count=1 2> /dev/null; echo -n X)"
|
count=1 2> /dev/null | tr -d '\0'; echo -n X)"
|
||||||
[[ ${#charX} -gt 1 ]] || { echo -n "00"; return 0; }
|
[[ ${#charX} -gt 1 ]] || { echo -n "00"; return 0; }
|
||||||
printf %02X $(echo -n "${charX:0:1}" | od -t u1 | \
|
printf %02X $(echo -n "${charX:0:1}" | od -t u1 | \
|
||||||
head -1 | sed 's/[0\ ]*//' | tr -d ' \n')
|
head -1 | sed 's/[0\ ]*//' | tr -d ' \n')
|
||||||
|
@@ -750,9 +750,9 @@ def quitNow(exitCode=0):
|
|||||||
"If the directory")
|
"If the directory")
|
||||||
print("is shared by Netatalk, please type 'afpsync' now.")
|
print("is shared by Netatalk, please type 'afpsync' now.")
|
||||||
if g.SHK: # clean up
|
if g.SHK: # clean up
|
||||||
for file in os.listdir(tempfile.gettempdir()):
|
for file in os.listdir('/tmp'):
|
||||||
if file.startswith("cppo-"):
|
if file.startswith("cppo-"):
|
||||||
shutil.rmtree(tempfile.gettempdir() + "/" + file)
|
shutil.rmtree('/tmp' + "/" + file)
|
||||||
sys.exit(exitCode)
|
sys.exit(exitCode)
|
||||||
|
|
||||||
def usage(exitcode=1):
|
def usage(exitcode=1):
|
||||||
@@ -1176,11 +1176,27 @@ if (g.SHK or
|
|||||||
if (len(args) == 4):
|
if (len(args) == 4):
|
||||||
g.extractFile = args[2]
|
g.extractFile = args[2]
|
||||||
|
|
||||||
|
if g.extractFile:
|
||||||
|
targetPath = args[3]
|
||||||
|
if os.path.isdir(targetPath):
|
||||||
|
g.targetDir = targetPath
|
||||||
|
elif (targetPath.rsplit("/", 1) > 1):
|
||||||
|
g.targetDir = targetPath.rsplit("/", 1)[0]
|
||||||
|
g.targetName = targetPath.rsplit("/", 1)[1]
|
||||||
|
if not os.path.isdir(g.targetDir):
|
||||||
|
print("Target directory not found.")
|
||||||
|
quitNow(2)
|
||||||
|
else:
|
||||||
|
if not g.CAT:
|
||||||
|
if not os.path.isdir(args[2]):
|
||||||
|
print("Target directory not found.")
|
||||||
|
quitNow(2)
|
||||||
|
|
||||||
if g.SHK:
|
if g.SHK:
|
||||||
g.PNAME = 0
|
g.PNAME = 0
|
||||||
if not g.CAT:
|
if not g.CAT:
|
||||||
targetDir = (args[3] if g.extractFile else args[2])
|
targetDir = (args[3] if g.extractFile else args[2])
|
||||||
unshkdir = (tempfile.gettempdir() + "/cppo-" + str(uuid.uuid4()))
|
unshkdir = ('/tmp' + "/cppo-" + str(uuid.uuid4()))
|
||||||
makedirs(unshkdir)
|
makedirs(unshkdir)
|
||||||
result = os.system("/bin/bash -c 'cd " + unshkdir + "; " +
|
result = os.system("/bin/bash -c 'cd " + unshkdir + "; " +
|
||||||
"result=$(nulib2 -xse " + os.path.abspath(g.imageFile) +
|
"result=$(nulib2 -xse " + os.path.abspath(g.imageFile) +
|
||||||
@@ -1202,7 +1218,7 @@ if g.SHK:
|
|||||||
extractPath = (unshkdir + "/" + g.extractFile)
|
extractPath = (unshkdir + "/" + g.extractFile)
|
||||||
extractPathDir = os.path.dirname(extractPath)
|
extractPathDir = os.path.dirname(extractPath)
|
||||||
# move the extracted file to the root
|
# move the extracted file to the root
|
||||||
newunshkdir = (tempfile.gettempdir() + "/cppo-" + str(uuid.uuid4()))
|
newunshkdir = ('/tmp' + "/cppo-" + str(uuid.uuid4()))
|
||||||
makedirs(newunshkdir)
|
makedirs(newunshkdir)
|
||||||
for filename in os.listdir(extractPathDir):
|
for filename in os.listdir(extractPathDir):
|
||||||
shutil.move(extractPathDir + "/" + filename, newunshkdir)
|
shutil.move(extractPathDir + "/" + filename, newunshkdir)
|
||||||
@@ -1341,22 +1357,6 @@ if (not g.SHK and
|
|||||||
(slyce(args[2],0,1) != ":")):
|
(slyce(args[2],0,1) != ":")):
|
||||||
usage()
|
usage()
|
||||||
|
|
||||||
if g.extractFile:
|
|
||||||
targetPath = args[3]
|
|
||||||
if os.path.isdir(targetPath):
|
|
||||||
g.targetDir = targetPath
|
|
||||||
else:
|
|
||||||
g.targetDir = targetPath.rsplit("/", 1)[0]
|
|
||||||
g.targetName = targetPath.rsplit("/", 1)[1]
|
|
||||||
if not os.path.isdir(g.targetDir):
|
|
||||||
print("Target directory not found.")
|
|
||||||
quitNow(2)
|
|
||||||
else:
|
|
||||||
if not g.CAT:
|
|
||||||
if not os.path.isdir(args[2]):
|
|
||||||
print("Target directory not found.")
|
|
||||||
quitNow(2)
|
|
||||||
|
|
||||||
if g.D33:
|
if g.D33:
|
||||||
diskName = os.path.basename(g.imageFile)
|
diskName = os.path.basename(g.imageFile)
|
||||||
if (diskName[-4:].lower() == ".dsk" or
|
if (diskName[-4:].lower() == ".dsk" or
|
||||||
|
113
setup/index.txt
113
setup/index.txt
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
# vim: set tabstop=4 shiftwidth=4 expandtab filetype=sh:
|
||||||
|
|
||||||
# A2SERVER master setup script, last update 17-Nov-15
|
# A2SERVER master setup script, last update 15-Jul-20
|
||||||
# it downloads and executes several scripts related to the setup of
|
# it downloads and executes several scripts related to the setup of
|
||||||
# netatalk configured for Apple II use on Debian or Raspbian.
|
# netatalk configured for Apple II use on Debian or Raspbian.
|
||||||
# more info is at http://ivanx.com/a2server
|
# more info is at http://ivanx.com/a2server
|
||||||
@@ -9,12 +9,12 @@
|
|||||||
# to download and execute, type:
|
# to download and execute, type:
|
||||||
# wget ivanx.com/a2server/setup; source setup
|
# wget ivanx.com/a2server/setup; source setup
|
||||||
|
|
||||||
a2serverVersion="150"
|
a2serverVersion="153"
|
||||||
|
|
||||||
# Ensure URL we'll use ends in a /
|
# Ensure URL we'll use ends in a /
|
||||||
case "$A2SERVER_SCRIPT_URL" in
|
case "$A2SERVER_SCRIPT_URL" in
|
||||||
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
||||||
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current}/" ;;
|
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current}/" ;;
|
||||||
esac
|
esac
|
||||||
case "$A2SERVER_BINARY_URL" in
|
case "$A2SERVER_BINARY_URL" in
|
||||||
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
*/) binaryURL="$A2SERVER_BINARY_URL" ;;
|
||||||
@@ -27,15 +27,17 @@ isRpi=
|
|||||||
[[ -f /usr/bin/raspi-config ]] && isRpi=1
|
[[ -f /usr/bin/raspi-config ]] && isRpi=1
|
||||||
|
|
||||||
isDebian=
|
isDebian=
|
||||||
lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ ( -f /etc/debian_version ) && ( $(cut -c 1 < /etc/debian_version) -ge "7" ) ]] && isDebian=1
|
lsb_release -a 2> /dev/null | grep -q 'Distributor ID:.Debian' && [[ ( -f /etc/debian_version ) && ( $(cut -d . -f 1 < /etc/debian_version) -ge "7" ) ]] && isDebian=1
|
||||||
|
|
||||||
if [[ -f /usr/local/etc/A2SERVER-version ]]; then
|
installedVersion=
|
||||||
echo "A2SERVER version available: $a2serverVersion"
|
if [ -f /usr/local/etc/A2SERVER-version ]; then
|
||||||
echo "A2SERVER version installed: $(cat /usr/local/etc/A2SERVER-version)"
|
installedVersion="$(cat /usr/local/etc/A2SERVER-version)"
|
||||||
fi
|
fi
|
||||||
|
echo "A2SERVER version available: $a2serverVersion"
|
||||||
|
echo "A2SERVER version installed: ${installedVersion:=None}"
|
||||||
|
|
||||||
echo
|
echo
|
||||||
[[ $scriptURL != *"ivanx.com"* && $scriptURL != *"rawgit.com/RasppleII/a2server"* ]] && echo "Using script URL: $scriptURL"
|
[[ $scriptURL != *"ivanx.com"* && $scriptURL != *"raw.githubusercontent.com/RasppleII/a2server"* ]] && echo "Using script URL: $scriptURL"
|
||||||
[[ $binaryURL != *"ivanx.com"* ]] && echo "Using binary URL: $binaryURL"
|
[[ $binaryURL != *"ivanx.com"* ]] && echo "Using binary URL: $binaryURL"
|
||||||
[[ ! $useExternalURL ]] && echo -e "Not using external URLs. Downloads must be available from:\n ${binaryURL}external/appleii/\n ${binaryURL}external/source/\n (See the A2SERVER developer page for more information.)"
|
[[ ! $useExternalURL ]] && echo -e "Not using external URLs. Downloads must be available from:\n ${binaryURL}external/appleii/\n ${binaryURL}external/source/\n (See the A2SERVER developer page for more information.)"
|
||||||
|
|
||||||
@@ -45,7 +47,6 @@ installAll=
|
|||||||
setupNetBoot=
|
setupNetBoot=
|
||||||
setupWindowsSharing=
|
setupWindowsSharing=
|
||||||
compileAlways=
|
compileAlways=
|
||||||
updateRasppleII=
|
|
||||||
rm /tmp/a2server-* 2> /dev/null
|
rm /tmp/a2server-* 2> /dev/null
|
||||||
while [[ $1 ]]; do
|
while [[ $1 ]]; do
|
||||||
if [[ $1 == "-r" ]]; then
|
if [[ $1 == "-r" ]]; then
|
||||||
@@ -71,16 +72,9 @@ while [[ $1 ]]; do
|
|||||||
shift
|
shift
|
||||||
compileAlways="-c"
|
compileAlways="-c"
|
||||||
touch /tmp/a2server-compileAlways
|
touch /tmp/a2server-compileAlways
|
||||||
elif [[ $1 == "-os" || $1 == "os" ]]; then
|
|
||||||
# elif [[ ${1,,} == "rasppleii" || ${1,,} == "raspple" || ${1,,} == "rasappleii" || ${1,,} == "rasapple" || ${1,,} == "raspple2" || ${1,,} == "rasapple2" ]]; then
|
|
||||||
shift
|
|
||||||
updateRasppleII=1
|
|
||||||
elif [[ $1 == "-v" ]]; then
|
elif [[ $1 == "-v" ]]; then
|
||||||
shift
|
shift
|
||||||
if [[ ! -f /usr/local/etc/A2SERVER-version ]]; then
|
# Version was already printed
|
||||||
echo "A2SERVER version available: $a2serverVersion"
|
|
||||||
echo "A2SERVER version installed: none"
|
|
||||||
fi
|
|
||||||
[[ $0 == "-bash" ]] && return 1 || exit 1
|
[[ $0 == "-bash" ]] && return 1 || exit 1
|
||||||
elif [[ $1 ]]; then
|
elif [[ $1 ]]; then
|
||||||
echo "options:"
|
echo "options:"
|
||||||
@@ -91,20 +85,10 @@ while [[ $1 ]]; do
|
|||||||
echo "-b: auto-setup network boot (use with -y)"
|
echo "-b: auto-setup network boot (use with -y)"
|
||||||
echo "-w: auto-setup Windows file sharing (use with -y)"
|
echo "-w: auto-setup Windows file sharing (use with -y)"
|
||||||
echo "-c: compile non-package items, rather than downloading binaries"
|
echo "-c: compile non-package items, rather than downloading binaries"
|
||||||
if [[ $isRpi ]]; then
|
|
||||||
echo "-os: update Raspbian OS, A2CLOUD, A2SERVER, and Apple II Pi"
|
|
||||||
fi
|
|
||||||
[[ $0 == "-bash" ]] && return 1 || exit 1
|
[[ $0 == "-bash" ]] && return 1 || exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $updateRasppleII ]]; then
|
|
||||||
echo "A2SERVER: Updating Raspple II (takes up to an hour)..."
|
|
||||||
wget -qO /tmp/raspbian-update "${A2SERVER_SCRIPT_URL}scripts/raspbian-update.txt"
|
|
||||||
source /tmp/raspbian-update a2cloud a2server $autoAnswerYes $skipRepoUpdate
|
|
||||||
[[ $0 == "-bash" ]] && return 0 || exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if { [[ -f /usr/local/etc/A2SERVER-version ]] && (( $(head -c 3 /usr/local/etc/A2SERVER-version) < 110 )); }; then
|
if { [[ -f /usr/local/etc/A2SERVER-version ]] && (( $(head -c 3 /usr/local/etc/A2SERVER-version) < 110 )); }; then
|
||||||
echo
|
echo
|
||||||
echo "WARNING: The current A2SERVER installer scripts haven't been tested for"
|
echo "WARNING: The current A2SERVER installer scripts haven't been tested for"
|
||||||
@@ -116,7 +100,7 @@ fi
|
|||||||
a2server_update=0
|
a2server_update=0
|
||||||
doSetup=1
|
doSetup=1
|
||||||
|
|
||||||
if { [[ -f /usr/local/etc/A2SERVER-version ]] && (( $(head -c 3 /usr/local/etc/A2SERVER-version) < 150 )); }; then
|
if { [[ -f /usr/local/etc/A2SERVER-version ]] && (( $(head -c 3 /usr/local/etc/A2SERVER-version) < 152 )); }; then
|
||||||
a2server_update=1
|
a2server_update=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -126,23 +110,25 @@ if [[ $isRpi ]]; then #supported Raspbian? (16-Feb-15, 20-Jun-14, 09-Jan-14, etc
|
|||||||
fwsupported="-8aca5762- -462f3e3f476f7b6- -c32bc633039cd9- -9d34d0475f9-
|
fwsupported="-8aca5762- -462f3e3f476f7b6- -c32bc633039cd9- -9d34d0475f9-
|
||||||
-d4f5315cfac4e- -6f4a90c8cb8817f- -5dd9b4962e- -17c8799375-
|
-d4f5315cfac4e- -6f4a90c8cb8817f- -5dd9b4962e- -17c8799375-
|
||||||
-960832a6c2590635216c296b6ee0bebf67b21d50-
|
-960832a6c2590635216c296b6ee0bebf67b21d50-
|
||||||
-2a329e0c7d8ea19c085bac5633aa4fccee0f21be-"
|
-2a329e0c7d8ea19c085bac5633aa4fccee0f21be-
|
||||||
|
-b2420fc150ae4616f5d9ec24bdaedc630586a529-"
|
||||||
[[ "$fwsupported" == *-$fwhash-* ]] && unsupportedOS=
|
[[ "$fwsupported" == *-$fwhash-* ]] && unsupportedOS=
|
||||||
# [[ ($fwhash == "8aca5762") || ($fwhash == "462f3e3f476f7b6") || ($fwhash == "c32bc633039cd9") || ($fwhash == "9d34d0475f9") || ($fwhash == "d4f5315cfac4e") || ($fwhash == "6f4a90c8cb8817f") || ($fwhash == "5dd9b4962e") || ($fwhash == "17c8799375") ]] && unsupportedOS=
|
# [[ ($fwhash == "8aca5762") || ($fwhash == "462f3e3f476f7b6") || ($fwhash == "c32bc633039cd9") || ($fwhash == "9d34d0475f9") || ($fwhash == "d4f5315cfac4e") || ($fwhash == "6f4a90c8cb8817f") || ($fwhash == "5dd9b4962e") || ($fwhash == "17c8799375") ]] && unsupportedOS=
|
||||||
elif [[ $isDebian ]]; then # supported Debian?
|
elif [[ $isDebian ]]; then # supported Debian?
|
||||||
debianVersion=$(cat /etc/debian_version)
|
debianVersion=$(cat /etc/debian_version)
|
||||||
debianSupported="-8.2- -7.9- -7.8- -7.6- -7.3-"
|
debianSupported="-10.4- -9.2- -8.2- -7.9- -7.8- -7.6- -7.3-"
|
||||||
[[ $debianSupported == *-$debianVersion-* ]] && unsupportedOS=
|
[[ $debianSupported == *-$debianVersion-* ]] && unsupportedOS=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $unsupportedOS && $isRpi ]]; then
|
if [[ $unsupportedOS && $isRpi ]]; then
|
||||||
echo
|
echo
|
||||||
echo "A2SERVER and its installer scripts have been tested on Raspbian Wheezy and"
|
echo "A2SERVER and its installer scripts have been tested on Raspbian Buster,"
|
||||||
echo "Jessie, though not this specific firmware version ($fwhash). Just FYI."
|
echo "Stretch, Jessie, and Wheezy, though not this specific firmware version"
|
||||||
|
echo "(${fwhash:0:7}). Just FYI."
|
||||||
unsupportedOS=
|
unsupportedOS=
|
||||||
elif [[ $unsupportedOS && $isDebian ]]; then
|
elif [[ $unsupportedOS && $isDebian ]]; then
|
||||||
echo
|
echo
|
||||||
echo "A2SERVER and its installer scripts have been tested on Debian 7 and 8,"
|
echo "A2SERVER and its installer scripts have been tested on Debian 7/8/9/10,"
|
||||||
echo "though not this specific point release ($debianVersion). Just FYI."
|
echo "though not this specific point release ($debianVersion). Just FYI."
|
||||||
unsupportedOS=
|
unsupportedOS=
|
||||||
fi
|
fi
|
||||||
@@ -182,34 +168,38 @@ if (( $doSetup )); then
|
|||||||
|
|
||||||
if (( $doSetup )); then
|
if (( $doSetup )); then
|
||||||
|
|
||||||
userPw=$(sudo grep "^$USER" /etc/shadow | cut -f 2 -d ':')
|
checkPw=1
|
||||||
[[ $userPw == "$(echo 'apple2' | perl -e '$_ = <STDIN>; chomp; print crypt($_, $ARGV[0])' "${userPw%"${userPw#\$*\$*\$}"}")" ]] && isApple2Pw=1 || isApple2Pw=
|
while [[ $checkPw ]] ; do
|
||||||
[[ $userPw == "$(echo 'raspberry' | perl -e '$_ = <STDIN>; chomp; print crypt($_, $ARGV[0])' "${userPw%"${userPw#\$*\$*\$}"}")" ]] && isRaspberryPw=1 || isRaspberryPw=
|
userPw=$(sudo grep "^$USER" /etc/shadow | cut -f 2 -d ':')
|
||||||
|
[[ $userPw == "$(echo 'apple2' | perl -e '$_ = <STDIN>; chomp; print crypt($_, $ARGV[0])' "${userPw%"${userPw#\$*\$*\$}"}")" ]] && isApple2Pw=1 || isApple2Pw=
|
||||||
password="your password"
|
[[ $userPw == "$(echo 'raspberry' | perl -e '$_ = <STDIN>; chomp; print crypt($_, $ARGV[0])' "${userPw%"${userPw#\$*\$*\$}"}")" ]] && isRaspberryPw=1 || isRaspberryPw=
|
||||||
[[ $isApple2Pw ]] && password="'apple2'"
|
|
||||||
[[ $isRaspberryPw ]] && password="'raspberry'"
|
password="your password"
|
||||||
|
[[ $isApple2Pw ]] && password="apple2"
|
||||||
|
[[ $isRaspberryPw ]] && password="raspberry"
|
||||||
[[ $isRpi ]] && a2server="your Raspberry Pi" || a2server="A2SERVER"
|
checkPw=
|
||||||
if [[ ! $isApple2Pw && ! -f /usr/local/etc/A2SERVER-version ]]; then
|
|
||||||
if [[ ! $autoAnswerYes ]]; then
|
[[ $isRpi ]] && a2server="your Raspberry Pi" || a2server="A2SERVER"
|
||||||
echo
|
if [[ ! $isApple2Pw && ! -f /usr/local/etc/A2SERVER-version ]]; then
|
||||||
echo "To ensure that all client computers are able to connect to"
|
if [[ ! $autoAnswerYes ]]; then
|
||||||
echo "${a2server} using the same password, you probably want"
|
echo
|
||||||
echo "to change your user password to 'apple2'."
|
echo "To ensure that all client computers are able to connect to"
|
||||||
echo
|
echo "${a2server} using the same password, you probably want"
|
||||||
echo -n "Do you want to change the password for user '$USER' to 'apple2' now? "
|
echo "to change your user password to 'apple2'."
|
||||||
read
|
echo
|
||||||
|
echo -n "Do you want to change the password for user '$USER' to 'apple2' now? "
|
||||||
|
read
|
||||||
|
fi
|
||||||
|
if [[ $autoAnswerYes || ${REPLY:0:1} == "Y" || ${REPLY:0:1} == "y" ]]; then
|
||||||
|
echo "A2SERVER: changing password for user '$USER' to 'apple2'..."
|
||||||
|
echo "$USER:apple2" | sudo chpasswd
|
||||||
|
checkPw=1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $autoAnswerYes || ${REPLY:0:1} == "Y" || ${REPLY:0:1} == "y" ]]; then
|
done
|
||||||
echo "A2SERVER: changing password for user '$USER' to 'apple2'..."
|
|
||||||
echo "$USER:apple2" | sudo chpasswd
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "During this installation, enter ${password} if prompted for passwords."
|
echo "During this installation, enter '${password}' if prompted for passwords."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
sudo true
|
sudo true
|
||||||
@@ -282,9 +272,10 @@ if (( $doSetup )); then
|
|||||||
echo "via the AppleShare control panel."
|
echo "via the AppleShare control panel."
|
||||||
if [[ -f /srv/A2SERVER/A2FILES/System/Start.GS.OS ]]; then
|
if [[ -f /srv/A2SERVER/A2FILES/System/Start.GS.OS ]]; then
|
||||||
echo
|
echo
|
||||||
echo "You can network boot GS/OS. On a ROM 01 IIgs, set slot 1 or 2, and slot 7,"
|
echo "You can network boot GS/OS."
|
||||||
echo 'to AppleTalk, and Startup Slot to 7 or "Scan". On a ROM 3 IIgs, set'
|
echo "On a ROM 01 IIgs, set slot 1 (printer port), or slot 2 (modem port)"
|
||||||
echo "slot 1 or 2, and Startup Slot, to AppleTalk."
|
echo "to Your Card, and slot 7 to AppleTalk, and Startup Slot to 7 or Scan."
|
||||||
|
echo "On a ROM 3 IIgs, set slot 1 or 2, and Startup Slot, to AppleTalk."
|
||||||
fi
|
fi
|
||||||
if [[ -f /srv/A2SERVER/A2FILES/BASIC.System ]]; then
|
if [[ -f /srv/A2SERVER/A2FILES/BASIC.System ]]; then
|
||||||
echo
|
echo
|
||||||
|
@@ -95,3 +95,26 @@
|
|||||||
[unannounced] -i installer option reinstalls A2SERVER
|
[unannounced] -i installer option reinstalls A2SERVER
|
||||||
|
|
||||||
1.5.0: Jan 2016: defaults to GitHub for location of installer scripts
|
1.5.0: Jan 2016: defaults to GitHub for location of installer scripts
|
||||||
|
[unannounced]
|
||||||
|
|
||||||
|
1.5.1: May 2016: changed URLs from rawgit.com to raw.githubusercontent.com
|
||||||
|
to resolve https problems during install; OS X temp dir
|
||||||
|
path corrected; added getexternal.sh to repo;
|
||||||
|
cppo changes; minor text changes (JTC); better Debian
|
||||||
|
version checking (JTC)
|
||||||
|
[unannounced]
|
||||||
|
|
||||||
|
1.5.1r2: Oct 2017: set internal version to 1.5.1; expanded version history
|
||||||
|
[unannounced]
|
||||||
|
|
||||||
|
1.5.2: Nov 2017: support for Stretch; suppress null byte read warnings in
|
||||||
|
Bash 4.4; enable SSH server on Raspberry Pi if disabled;
|
||||||
|
use Internet Archive backup URL's for external downloads if
|
||||||
|
possible; compile AppleTalk kernel if -c flag is
|
||||||
|
specified (rather than downloading); better cleanup after
|
||||||
|
AppleTalk kernel compile; notification if AppleTalk kernel
|
||||||
|
module doesn't load; fixed download links for comm software;
|
||||||
|
bug fixes when compiling macipgw and ciopfs;
|
||||||
|
os option (Raspbian update) removed from a2server-setup
|
||||||
|
|
||||||
|
1.5.3a1: July 2020: initial support for Debian/Raspbian Buster
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
# Ensure URL we'll use ends in a /
|
# Ensure URL we'll use ends in a /
|
||||||
case "$A2SERVER_SCRIPT_URL" in
|
case "$A2SERVER_SCRIPT_URL" in
|
||||||
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
*/) scriptURL="$A2SERVER_SCRIPT_URL" ;;
|
||||||
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://rawgit.com/RasppleII/a2server/current}/" ;;
|
*) scriptURL="${A2SERVER_SCRIPT_URL:-https://raw.githubusercontent.com/RasppleII/a2server/current}/" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
currentVersion=$(wget -qO- "${scriptURL}setup/index.txt" | grep '^a2serverVersion' | cut -d '"' -f 2)
|
currentVersion=$(wget -qO- "${scriptURL}setup/index.txt" | grep '^a2serverVersion' | cut -d '"' -f 2)
|
||||||
|
@@ -67,6 +67,18 @@
|
|||||||
for current date; install from any host URL for development;
|
for current date; install from any host URL for development;
|
||||||
source code at GitHub (thanks Joseph)
|
source code at GitHub (thanks Joseph)
|
||||||
|
|
||||||
|
1.5.1: Jan 2016: fixed GitHub URLs to prevent https errors during installation
|
||||||
|
(thanks to http://blogs.yahoo.co.jp/ushi_cow/57459736.html);
|
||||||
|
bug fixes and minor text changes
|
||||||
|
|
||||||
|
1.5.1r2: Oct 2017: corrected version number
|
||||||
|
|
||||||
|
1.5.2: Nov 2017: support for Debian/Raspbian Stretch; fixes minor bugs during
|
||||||
|
install; enable SSH server if disabled on Raspberry Pi; fixes
|
||||||
|
changed download links for GS/OS communication software
|
||||||
|
|
||||||
|
1.5.3a2: July 2020: initial support for Debian/Raspbian Buster
|
||||||
|
|
||||||
Big thanks to: Anthony Martino, Henry Courbis, Joseph Carter, Jason King,
|
Big thanks to: Anthony Martino, Henry Courbis, Joseph Carter, Jason King,
|
||||||
Andy McFadden, Steven Hirsch, Geoff Body, Peter Wong, Tony Diaz, David Schmidt,
|
Andy McFadden, Steven Hirsch, Geoff Body, Peter Wong, Tony Diaz, David Schmidt,
|
||||||
David Schmenk, Ewen Wannop, Andrew Roughan, Antoine Vignau, Martin Haye,
|
David Schmenk, Ewen Wannop, Andrew Roughan, Antoine Vignau, Martin Haye,
|
||||||
|
Reference in New Issue
Block a user