Get Windows 3.1 Running in Dosbox
Based on this tutorial:
https://www.howtogeek.com/230359/how-to-install-windows-3.1-in-dosbox-set-up-drivers-and-play-16-bit-games/
#create directory to put windows in
mkdir win31
cd win31
#get a win31.zip file from an online emulator
#by searching for win3.1 emulator online
#example site
wget "https://www.retrogames.cz/dos/zip/Win31.zip" -O /tmp/Win31.zip
unzip /tmp/Win31.zip
dosbox AUTOEXEC.BAT
#SOUND DRIVERS
mkdir sb
#get sound drivers
#https://www.classicdosgames.com/drivers.html
wget "https://archive.org/download/sb-16-w-3x/SB16W3x.zip" -O /tmp/SB.zip
unzip /tmp/SB.zip -d sb
echo "cd c:\\sb" > sb.bat
echo "install.exe" >> sb.bat
dosbox sb.bat
#interrupt settings should be changed from 5 to 7
#VIDEO DRIVERS
#https://www.classicdosgames.com/drivers.html
mkdir S3
wget "https://archive.org/download/s3drivers/s3drivers.zip" -O /tmp/s3.zip
unzip /tmp/s3.zip -d S3
dosbox AUTOEXEC.BAT
# double-click the “Windows Setup” icon. Click the “Options” menu in the Windows Setup window and select “Change System Settings.”
#select “Other display (Requires disk from OEM).”
#choose C:\S3
#recommend choosing 800×600 with 256 colors
#CLICK OK A BUNCH OF TIMES
#exit out of Windows and at the command prompt
#cd c:\windows
#setup