HowTo/Installing Trainz at Linux: Debian based Distributions

From TrainzOnline
< HowTo(Difference between revisions)
Jump to: navigation, search
(Created page with "==Ubuntu 24.4 LTS noble== See Trainz Forum Thread "[https://forums.auran.com/threads/installing-and-running-trainz-at-linux-here-ubuntu-24-04-lts-noble.180950/post-2051072 I...")
 
 
Line 1: Line 1:
==Ubuntu 24.4 LTS noble==
+
==Ubuntu 24.4 LTS noble (Original posted as forum thread)==
 
See Trainz Forum Thread   
 
See Trainz Forum Thread   
 
"[https://forums.auran.com/threads/installing-and-running-trainz-at-linux-here-ubuntu-24-04-lts-noble.180950/post-2051072 Installing and running Trainz at Linux, here Ubuntu 24.04 LTS noble - post #1 and #3]"
 
"[https://forums.auran.com/threads/installing-and-running-trainz-at-linux-here-ubuntu-24-04-lts-noble.180950/post-2051072 Installing and running Trainz at Linux, here Ubuntu 24.04 LTS noble - post #1 and #3]"
 +
 +
==Ubuntu 24.4 LTS noble (Coy&pasted as source code from forum post as suggested in the forum thread)==
 +
[HEADING=3]The idea[/HEADING]
 +
This is a very old idea and often discussed. I searched for a systematic instruction, but I didn't find one. So I tried to test it and how it runs. Here's my personal systematic for Debian based Linux systems.
 +
For my knowledge such systems aren't able to execute windows programs (*.exe) out of the box. We need some helper apps. In my case I will use WineHQ from an external repository.
 +
[HEADING=3]Install WineHQ[/HEADING]
 +
A useful instruction to do so is here (in German):[URL='https://wiki.ubuntuusers.de/Wine/#Fertige-Pakete']ubuntuusers.de Wine Fertige-Pakete[/URL] in sub chapter "Methode 2 - Wine-Fremdquelle". Maybe you want to use this script:
 +
[SPOILER=Installation of WineHQ][CODE]
 +
sudo dpkg --add-architecture i386    # Nur auf 64-Bit-Systemen notwendig.
 +
sudo mkdir -pm755 /etc/apt/keyrings  # Ab 22.04 nicht mehr nötig.
 +
sudo wget -nc -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
 +
sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -c | grep -o '\w*$')/winehq-$(lsb_release -c | grep -o '\w*$').sources"
 +
sudo apt update
 +
sudo apt install --install-recommends winehq-stable
 +
[/CODE][/SPOILER]
 +
The following chapter handles the installation of Trainz instances. The paths in the later following scripts are based on a collecting folder "Wine" in $USER.
 +
[HEADING=3]Download and unpack the Trainz install files[/HEADING]
 +
After downloading the full installer zip files
 +
[LIST]
 +
[*]TANE-SP4-Offline-Installer-105766.zip
 +
[*]TRS19-SP4-Offline-Installer-114800.zip
 +
[*]TRS22-Offline-Installer-126273.zip
 +
[*]TrainzPlus-Offline-Installer-128486.zip
 +
[/LIST]
 +
and unpacking it into the sub folder looks like this:
 +
[SPOILER=Folder structure][CODE]
 +
$HOME/Wine/TRSDL/
 +
+-- TANESP4_105766
 +
|  +-- ...
 +
|  +-- install.exe
 +
|  +-- ...
 +
+-- TRS19PE_114800
 +
|  +-- ...
 +
|  +-- install.exe
 +
|  +-- ...
 +
+-- TRS22PE_126273
 +
|  +-- ...
 +
|  +-- install.exe
 +
|  +-- ...
 +
+-- TRSPLUS_128486
 +
    +-- ...
 +
    +-- install.exe
 +
    +-- ...
 +
[/CODE][/SPOILER]
 +
[HEADING=3]Install the Trainz instances[/HEADING]
 +
We install every Trainz instance in its own wine prefix. The install statements of the following scripts create the wine prefixes ".TANESP4", ".TRS19PE", ".TRS22PE respective ".TRSPLUS" as hidden same named folders.
 +
Every installation process creates two links at the desktop. I don't currently know the purpose of the link with the purple circle and a white arrow. The launch link for the Trainz instance with a Trainz icon and a small red dot with a white cross is blocked. By right-clicking it and using the "Allow launching" entry, it will be possible to launch Trainz.
 +
Maybe you want to use one of this scripts to install a Trainz instance:
 +
[SPOILER=Installation of TANESP4][CODE]
 +
#!/bin/bash
 +
#===============================================================================
 +
# Installation of TANESP4 in Wine on Ubuntu
 +
#-------------------------------------------------------------------------------
 +
WINEPREFIX=$HOME/Wine/.TANESP4 wine $HOME/Wine/TRSDL/TANESP4_105766/install.exe
 +
#===============================================================================
 +
[/CODE][/SPOILER]
 +
[SPOILER=Installation of TRS19PE][CODE]
 +
#!/bin/bash
 +
#===============================================================================
 +
# Installation TRS19PE in Wine on Ubuntu
 +
#-------------------------------------------------------------------------------
 +
WINEPREFIX=$HOME/Wine/.TRS19PE wine $HOME/Wine/TRSDL/TRS19PE_114800/install.exe
 +
#===============================================================================
 +
[/CODE][/SPOILER]
 +
[SPOILER=Installation of TRS22PE][CODE]
 +
#!/bin/bash
 +
#===============================================================================
 +
# Installation TRS22PE in Wine on Ubuntu
 +
#-------------------------------------------------------------------------------
 +
WINEPREFIX=$HOME/Wine/.TRS22PE wine $HOME/Wine/TRSDL/TRS22PE_126273/install.exe
 +
#===============================================================================
 +
[/CODE][/SPOILER]
 +
[SPOILER=Installation of TRSPLUS][CODE]
 +
#!/bin/bash
 +
#===============================================================================
 +
# Installation TRSPLUS in Wine on Ubuntu
 +
#-------------------------------------------------------------------------------
 +
WINEPREFIX=$HOME/Wine/.TRSPLUS wine $HOME/Wine/TRSDL/TRSPLUS_128486/install.exe
 +
#===============================================================================
 +
[/CODE][/SPOILER]
 +
Good luck and have fun!
 +
 +
==Ubuntu 24.4 LTS noble (Coy&pasted as text from forum post as suggested in the forum thread)==
 +
The idea
 +
This is a very old idea and often discussed. I searched for a systematic instruction, but I didn't find one. So I tried to test it and how it runs. Here's my personal systematic for Debian based Linux systems.
 +
 +
For my knowledge such systems aren't able to execute windows programs (*.exe) out of the box. We need some helper apps. In my case I will use WineHQ from an external repository.
 +
 +
Install WineHQ
 +
A useful instruction to do so is here (in German):ubuntuusers.de Wine Fertige-Pakete in sub chapter "Methode 2 - Wine-Fremdquelle". Maybe you want to use this script:
 +
 +
[SPOILER=Installation of WineHQ][CODE]
 +
 +
sudo dpkg --add-architecture i386    # Nur auf 64-Bit-Systemen notwendig.
 +
 +
sudo mkdir -pm755 /etc/apt/keyrings  # Ab 22.04 nicht mehr nötig.
 +
 +
sudo wget -nc -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
 +
 +
sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -c | grep -o '\w*$')/winehq-$(lsb_release -c | grep -o '\w*$').sources"
 +
 +
sudo apt update
 +
 +
sudo apt install --install-recommends winehq-stable
 +
 +
[/CODE][/SPOILER]
 +
 +
The following chapter handles the installation of Trainz instances. The paths in the later following scripts are based on a collecting folder "Wine" in $USER.
 +
 +
Download and unpack the Trainz install files
 +
After downloading the full installer zip files
 +
 +
TANE-SP4-Offline-Installer-105766.zip
 +
TRS19-SP4-Offline-Installer-114800.zip
 +
TRS22-Offline-Installer-126273.zip
 +
TrainzPlus-Offline-Installer-128486.zip
 +
and unpacking it into the sub folder looks like this:
 +
 +
[SPOILER=Folder structure][CODE]
 +
 +
$HOME/Wine/TRSDL/
 +
 +
+-- TANESP4_105766
 +
 +
|  +-- ...
 +
 +
|  +-- install.exe
 +
 +
|  +-- ...
 +
 +
+-- TRS19PE_114800
 +
 +
|  +-- ...
 +
 +
|  +-- install.exe
 +
 +
|  +-- ...
 +
 +
+-- TRS22PE_126273
 +
 +
|  +-- ...
 +
 +
|  +-- install.exe
 +
 +
|  +-- ...
 +
 +
+-- TRSPLUS_128486
 +
 +
    +-- ...
 +
 +
    +-- install.exe
 +
 +
    +-- ...
 +
 +
[/CODE][/SPOILER]
 +
 +
Install the Trainz instances
 +
We install every Trainz instance in its own wine prefix. The install statements of the following scripts create the wine prefixes ".TANESP4", ".TRS19PE", ".TRS22PE respective ".TRSPLUS" as hidden same named folders.
 +
 +
Every installation process creates two links at the desktop. I don't currently know the purpose of the link with the purple circle and a white arrow. The launch link for the Trainz instance with a Trainz icon and a small red dot with a white cross is blocked. By right-clicking it and using the "Allow launching" entry, it will be possible to launch Trainz.
 +
 +
Maybe you want to use one of this scripts to install a Trainz instance:
 +
 +
[SPOILER=Installation of TANESP4][CODE]
 +
 +
#!/bin/bash
 +
 +
#===============================================================================
 +
 +
# Installation of TANESP4 in Wine on Ubuntu
 +
 +
#-------------------------------------------------------------------------------
 +
 +
WINEPREFIX=$HOME/Wine/.TANESP4 wine $HOME/Wine/TRSDL/TANESP4_105766/install.exe
 +
 +
#===============================================================================
 +
 +
[/CODE][/SPOILER]
 +
 +
[SPOILER=Installation of TRS19PE][CODE]
 +
 +
#!/bin/bash
 +
 +
#===============================================================================
 +
 +
# Installation TRS19PE in Wine on Ubuntu
 +
 +
#-------------------------------------------------------------------------------
 +
 +
WINEPREFIX=$HOME/Wine/.TRS19PE wine $HOME/Wine/TRSDL/TRS19PE_114800/install.exe
 +
 +
#===============================================================================
 +
 +
[/CODE][/SPOILER]
 +
 +
[SPOILER=Installation of TRS22PE][CODE]
 +
 +
#!/bin/bash
 +
 +
#===============================================================================
 +
 +
# Installation TRS22PE in Wine on Ubuntu
 +
 +
#-------------------------------------------------------------------------------
 +
 +
WINEPREFIX=$HOME/Wine/.TRS22PE wine $HOME/Wine/TRSDL/TRS22PE_126273/install.exe
 +
 +
#===============================================================================
 +
 +
[/CODE][/SPOILER]
 +
 +
[SPOILER=Installation of TRSPLUS][CODE]
 +
 +
#!/bin/bash
 +
 +
#===============================================================================
 +
 +
# Installation TRSPLUS in Wine on Ubuntu
 +
 +
#-------------------------------------------------------------------------------
 +
 +
WINEPREFIX=$HOME/Wine/.TRSPLUS wine $HOME/Wine/TRSDL/TRSPLUS_128486/install.exe
 +
 +
#===============================================================================
 +
 +
[/CODE][/SPOILER]
 +
 +
Good luck and have fun!

Latest revision as of 23:51, 20 April 2025

[edit] Ubuntu 24.4 LTS noble (Original posted as forum thread)

See Trainz Forum Thread "Installing and running Trainz at Linux, here Ubuntu 24.04 LTS noble - post #1 and #3"

[edit] Ubuntu 24.4 LTS noble (Coy&pasted as source code from forum post as suggested in the forum thread)

[HEADING=3]The idea[/HEADING] This is a very old idea and often discussed. I searched for a systematic instruction, but I didn't find one. So I tried to test it and how it runs. Here's my personal systematic for Debian based Linux systems. For my knowledge such systems aren't able to execute windows programs (*.exe) out of the box. We need some helper apps. In my case I will use WineHQ from an external repository. [HEADING=3]Install WineHQ[/HEADING] A useful instruction to do so is here (in German):[URL='https://wiki.ubuntuusers.de/Wine/#Fertige-Pakete']ubuntuusers.de Wine Fertige-Pakete[/URL] in sub chapter "Methode 2 - Wine-Fremdquelle". Maybe you want to use this script: [SPOILER=Installation of WineHQ][CODE] sudo dpkg --add-architecture i386 # Nur auf 64-Bit-Systemen notwendig. sudo mkdir -pm755 /etc/apt/keyrings # Ab 22.04 nicht mehr nötig. sudo wget -nc -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -c | grep -o '\w*$')/winehq-$(lsb_release -c | grep -o '\w*$').sources" sudo apt update sudo apt install --install-recommends winehq-stable [/CODE][/SPOILER] The following chapter handles the installation of Trainz instances. The paths in the later following scripts are based on a collecting folder "Wine" in $USER. [HEADING=3]Download and unpack the Trainz install files[/HEADING] After downloading the full installer zip files [LIST] [*]TANE-SP4-Offline-Installer-105766.zip [*]TRS19-SP4-Offline-Installer-114800.zip [*]TRS22-Offline-Installer-126273.zip [*]TrainzPlus-Offline-Installer-128486.zip [/LIST] and unpacking it into the sub folder looks like this: [SPOILER=Folder structure][CODE] $HOME/Wine/TRSDL/ +-- TANESP4_105766 | +-- ... | +-- install.exe | +-- ... +-- TRS19PE_114800 | +-- ... | +-- install.exe | +-- ... +-- TRS22PE_126273 | +-- ... | +-- install.exe | +-- ... +-- TRSPLUS_128486

   +-- ...
   +-- install.exe
   +-- ...

[/CODE][/SPOILER] [HEADING=3]Install the Trainz instances[/HEADING] We install every Trainz instance in its own wine prefix. The install statements of the following scripts create the wine prefixes ".TANESP4", ".TRS19PE", ".TRS22PE respective ".TRSPLUS" as hidden same named folders. Every installation process creates two links at the desktop. I don't currently know the purpose of the link with the purple circle and a white arrow. The launch link for the Trainz instance with a Trainz icon and a small red dot with a white cross is blocked. By right-clicking it and using the "Allow launching" entry, it will be possible to launch Trainz. Maybe you want to use one of this scripts to install a Trainz instance: [SPOILER=Installation of TANESP4][CODE]

  1. !/bin/bash
  2. ===============================================================================
  3. Installation of TANESP4 in Wine on Ubuntu
  4. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TANESP4 wine $HOME/Wine/TRSDL/TANESP4_105766/install.exe

  1. ===============================================================================

[/CODE][/SPOILER] [SPOILER=Installation of TRS19PE][CODE]

  1. !/bin/bash
  2. ===============================================================================
  3. Installation TRS19PE in Wine on Ubuntu
  4. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TRS19PE wine $HOME/Wine/TRSDL/TRS19PE_114800/install.exe

  1. ===============================================================================

[/CODE][/SPOILER] [SPOILER=Installation of TRS22PE][CODE]

  1. !/bin/bash
  2. ===============================================================================
  3. Installation TRS22PE in Wine on Ubuntu
  4. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TRS22PE wine $HOME/Wine/TRSDL/TRS22PE_126273/install.exe

  1. ===============================================================================

[/CODE][/SPOILER] [SPOILER=Installation of TRSPLUS][CODE]

  1. !/bin/bash
  2. ===============================================================================
  3. Installation TRSPLUS in Wine on Ubuntu
  4. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TRSPLUS wine $HOME/Wine/TRSDL/TRSPLUS_128486/install.exe

  1. ===============================================================================

[/CODE][/SPOILER] Good luck and have fun!

[edit] Ubuntu 24.4 LTS noble (Coy&pasted as text from forum post as suggested in the forum thread)

The idea This is a very old idea and often discussed. I searched for a systematic instruction, but I didn't find one. So I tried to test it and how it runs. Here's my personal systematic for Debian based Linux systems.

For my knowledge such systems aren't able to execute windows programs (*.exe) out of the box. We need some helper apps. In my case I will use WineHQ from an external repository.

Install WineHQ A useful instruction to do so is here (in German):ubuntuusers.de Wine Fertige-Pakete in sub chapter "Methode 2 - Wine-Fremdquelle". Maybe you want to use this script:

[SPOILER=Installation of WineHQ][CODE]

sudo dpkg --add-architecture i386 # Nur auf 64-Bit-Systemen notwendig.

sudo mkdir -pm755 /etc/apt/keyrings # Ab 22.04 nicht mehr nötig.

sudo wget -nc -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key

sudo wget -NP /etc/apt/sources.list.d/ "https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -c | grep -o '\w*$')/winehq-$(lsb_release -c | grep -o '\w*$').sources"

sudo apt update

sudo apt install --install-recommends winehq-stable

[/CODE][/SPOILER]

The following chapter handles the installation of Trainz instances. The paths in the later following scripts are based on a collecting folder "Wine" in $USER.

Download and unpack the Trainz install files After downloading the full installer zip files

TANE-SP4-Offline-Installer-105766.zip TRS19-SP4-Offline-Installer-114800.zip TRS22-Offline-Installer-126273.zip TrainzPlus-Offline-Installer-128486.zip and unpacking it into the sub folder looks like this:

[SPOILER=Folder structure][CODE]

$HOME/Wine/TRSDL/

+-- TANESP4_105766

| +-- ...

| +-- install.exe

| +-- ...

+-- TRS19PE_114800

| +-- ...

| +-- install.exe

| +-- ...

+-- TRS22PE_126273

| +-- ...

| +-- install.exe

| +-- ...

+-- TRSPLUS_128486

   +-- ...
   +-- install.exe
   +-- ...

[/CODE][/SPOILER]

Install the Trainz instances We install every Trainz instance in its own wine prefix. The install statements of the following scripts create the wine prefixes ".TANESP4", ".TRS19PE", ".TRS22PE respective ".TRSPLUS" as hidden same named folders.

Every installation process creates two links at the desktop. I don't currently know the purpose of the link with the purple circle and a white arrow. The launch link for the Trainz instance with a Trainz icon and a small red dot with a white cross is blocked. By right-clicking it and using the "Allow launching" entry, it will be possible to launch Trainz.

Maybe you want to use one of this scripts to install a Trainz instance:

[SPOILER=Installation of TANESP4][CODE]

  1. !/bin/bash
  1. ===============================================================================
  1. Installation of TANESP4 in Wine on Ubuntu
  1. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TANESP4 wine $HOME/Wine/TRSDL/TANESP4_105766/install.exe

  1. ===============================================================================

[/CODE][/SPOILER]

[SPOILER=Installation of TRS19PE][CODE]

  1. !/bin/bash
  1. ===============================================================================
  1. Installation TRS19PE in Wine on Ubuntu
  1. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TRS19PE wine $HOME/Wine/TRSDL/TRS19PE_114800/install.exe

  1. ===============================================================================

[/CODE][/SPOILER]

[SPOILER=Installation of TRS22PE][CODE]

  1. !/bin/bash
  1. ===============================================================================
  1. Installation TRS22PE in Wine on Ubuntu
  1. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TRS22PE wine $HOME/Wine/TRSDL/TRS22PE_126273/install.exe

  1. ===============================================================================

[/CODE][/SPOILER]

[SPOILER=Installation of TRSPLUS][CODE]

  1. !/bin/bash
  1. ===============================================================================
  1. Installation TRSPLUS in Wine on Ubuntu
  1. -------------------------------------------------------------------------------

WINEPREFIX=$HOME/Wine/.TRSPLUS wine $HOME/Wine/TRSDL/TRSPLUS_128486/install.exe

  1. ===============================================================================

[/CODE][/SPOILER]

Good luck and have fun!

Personal tools