This is guide for how to get the game Star Trek TNG: A final unity working on a GNU/Linux system.
First download the game from myabandonware.com.
Unzip the file:
unzip Star-Trek-The-Next-Generation---A-Final-Unity_DOS_EN_ISO-Version.zip
Now you need to convert the file from the .nrg
format to the more standard .iso
format:
sudo apt install nrg2iso
nrg2iso "Star Trek The Next Generation - A Final Unity.nrg" st_tng_afu.iso
Create the directory where you want to install, and move the iso there:
mkdir -p ~/games/st_tng_afu
mv st_tng_afu.iso ~/games/st_tng_afu
Install dosbox:
sudo apt install dosbox
cd into the dir:
cd ~/games/st_tng_afu
Create the file install.conf
with the following contents:
[cpu]
core=simple
cycles=max
[autoexec]
# mount the iso as drive D:
imgmount d ./st_tng_afu.iso -t iso
# mount the current directory as drive C:
mount c ./
Run dosbox with the install config:
dosbox -conf install.conf
WARNING: When you run the installer dosbox will grab your mouse curser and you will not be able to alt-tab away from the window. Hitting ctrl+F10 will give you your cursor back.
Change to drive D:
and run installer:
d:
install
Select Install and Install optimal version, then install to drive E:
. Accept the default installation location of C:\STTNG
. This installation will take a few minutes.
Run exit
to quit dosbox.
Installation and setup is now done!
Edit the file ~/games/st_tng_afu/STTNG/STTNG.INI
replacing all contents with this:
; Star Trek: The Next Generation, IBM Version.
Audio=SB16
Port=0x220
IRQ=0x7
DMA=0x5
Video=HI16
Sound=ON
Music=ON
Voices=ON
Movies=ON
Advice=0x2
VolMusic=0x7fff
VolSound=0x7fff
Dialogs=ON
Scale=ON
DPixel=ON
Path=C:\STTNG\
CD=D:\
UniVESA=OFF
Create a new file in the ~/games/st_tng_afu
directory called dosbox.conf
with the following content:
[sdl]
fullscreen=true
fulldouble=true
fullresolution=desktop
output=overlay
[render]
scaler=hq2x
[cpu]
core=simple
cycles=max
[autoexec]
# Do not change anything below this line!
mount c "./"
imgmount d "st_tng_afu.iso" -t iso
c:
cd STTNG
cls
sttng
Create a new file called run.sh
with the following contents:
#!/bin/sh
dosbox -conf dosbox.conf
Then make it executable:
chmod 755 ./run.sh
and run the game!
./run.sh
You can always exit dosbox using ctrl+F9
or switch away from fullscreen mode using alt-enter
.
HINT: Hold down shift to make people walk faster on away missions!