### This is a procedure for setting up a DJGGP + NASM + MBLDR build environment ### under DJGPP + dosemu, under Ubuntu. ### There are some additional settings you need to do, see here: ### http://tinkering-is-fun.blogspot.com/2010/01/building-for-dos-part-1-setting-up.html sudo apt-get install dosemu #### this whole section can be cut-n-pasted at once #### mkdir -p ~/.dosemu/drive_c/djgpp cd ~/.dosemu/drive_c/djgpp wget ftp://ftp.delorie.com/pub/djgpp/current/unzip32.exe wget ftp://ftp.delorie.com/pub/djgpp/current/v2/copying.dj wget ftp://ftp.delorie.com/pub/djgpp/current/v2/djdev203.zip wget ftp://ftp.delorie.com/pub/djgpp/current/v2/readme.1st wget ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/bnu2211b.zip wget ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/gcc462b.zip wget ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/mak3791b.zip wget ftp://ftp.delorie.com/pub/djgpp/current/v2gnu/txi412b.zip for i in *.zip; do unzip $i -d djgpp; done rm *.zip # cd ~/.dosemu/drive_c mkdir mbldr cd mbldr wget http://downloads.sourceforge.net/project/mbldr/mbldr%20%28MS-DOS%29/1.46/mbldr146.zip unzip mbldr146.zip rm mbldr146.zip # mkdir nasm cd nasm wget http://www.nasm.us/pub/nasm/releasebuilds/2.10/dos/nasm-2.10-dos.zip unzip nasm-2.10-dos.zip mv nasm-2.10 nasm rm nasm-2.10-dos.zip # echo -e 'set DJGPP=C:\DJGPP\DJGPP.ENV\r' >> ~/.dosemu/drive_c/autoexec.bat echo -e 'set PATH=C:\DJGPP\BIN;C:\NASM;%PATH%\r' >> ~/.dosemu/drive_c/autoexec.bat