Themabewertung:
		
			
				- 0 Bewertungen - 0 im Durchschnitt
 
				- 1
 
				- 2
 
				- 3
 
				- 4
 
				- 5
 
			
		 
 
	
		
			| 
				
				 
					OpenTTD auf Raspberry PI 4B installieren ?
				 
			 | 
		
		
			| Verfasser | 
			Nachricht | 
		
	
	
		
	
		
		Bender3k 
		
			Gleisarbeiter 
			  
			
			 
			
	Beiträge: 14 
	Registriert seit: Sep 2005
	
		
	 | 
	
		
			
OpenTTD auf Raspberry PI 4B installieren ? 
			 
			
				Hi! 
Ich versuche mich gerade daran auf meinem neuen Raspberry PI 4B Openttd als Dedicated Server zu installieren. 
Ich bekomme es allerdings nicht hin. Ich bin nach folgender Anleitung vorgegangen:
 https://www.tobias-schwarz.com/en/posts/4/#motivation
Dies habe ich folgendermaßen an die aktuelle Version 1.9.3 angepasst:
 Zitat:cd~ 
wget https://cdn.openttd.org/openttd-releases...rce.tar.xz 
tar -xvf openttd-1.9.3-source.tar.xz 
sudo apt-get update 
sudo apt-get install build-essential pkg-config libsdl1.2-dev subversion patch zlib1g-dev liblzo2-dev liblzma-dev libfontconfig-dev libicu-dev 
cd openttd-1.9.3/ 
./configure --enable-dedicated 
make --jobs=4 
getconf _NPROCESSORS_ONLN 
sudo make install 
Bis hierhin kein Problem. Alles läuft nach Plan und die aktuelle Version von OpenTTD scheint kompiliert zu sein.
 
Dann folgen bei Tobias Schwarz folgende Zeilen:
 Zitat:Setup and configure the dedicated server 
Install init script for OpenTTD server 
To automatically start and stop the OpenTTD server I use the OpenTTD Init Script written by Frode Woldsund: 
 
Download and extract the script 
cd ~ 
wget https://bitbucket.org/frodus/openttd-ini...-1.2.1.zip 
unzip openttd-init-1.2.1.zip 
Install dependencies 
sudo apt-get install screen 
Install the script 
sudo ln -s ~/openttd-init/openttd /etc/init.d/openttd 
chmod 755 ~/openttd-init/openttd 
sudo update-rc.d openttd defaults 
Rename and edit the init config file 
mv openttd-init/config.example openttd-init/config 
nano openttd-init/config 
In the config file I only changed the username: 
 
USERNAME="pi" 
Install zBase 32bit graphics set 
The old OpenTTD graphics don’t look good. There is a 32bit replacement called zBase and I like it a lot. The install can be done like this: 
 
wget http://binaries.openttd.org/bananas/base...588.tar.gz 
gunzip zBase-v5588.tar.gz 
mkdir -p .openttd/baseset 
mv zBase-v5588.tar .openttd/baseset 
Note: If you don’t install a graphics set at this point the server won’t start! You won’t see an error message because of the startup script! If you don’t like zBase you need to install another graphics set instead! 
 
Create a config file for the OpenTTD server 
To create a config file I just created an empty config file and started and stopped the OpenTTD server to fill it with the default values: 
 
touch ~/.openttd/openttd.cfg 
Zitat:sudo service openttd start 
sudo service openttd stop 
Bis zum Punkt: 
 Zitat:touch ~/.openttd/openttd.cfg 
klappt alles. Aber wenn ich dann versuche den Server zu starten mit dem script:
 Zitat:sudo service openttd start 
bekomme ich folgende Fehlermeldung:
 Zitat:Job for openttd.service failed because the control process exited with error code. 
See "systemctl status openttd.service" and "journalctl -xe" for details. 
Dann habe ich mal beide Befehle ausgeführt und das ist das Ergebnis:
 Zitat:pi@raspberrypi:~/openttd-1.9.3/bin $ systemctl status openttd.service 
● openttd.service - LSB: OPENTTD server 
   Loaded: loaded (/etc/init.d/openttd; generated) 
   Active: failed (Result: exit-code) since Fri 2020-03-27 14:07:33 CET; 10s ago 
     Docs: man:systemd-sysv-generator(8) 
  Process: 16630 ExecStart=/etc/init.d/openttd start (code=exited, status=1/FAIL 
 
Mär 27 14:07:30 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FI 
Mär 27 14:07:30 raspberrypi openttd[16630]: „grep --help“ liefert weitere Inform 
Mär 27 14:07:31 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FI 
Mär 27 14:07:31 raspberrypi openttd[16630]: „grep --help“ liefert weitere Inform 
Mär 27 14:07:32 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FI 
Mär 27 14:07:32 raspberrypi openttd[16630]: „grep --help“ liefert weitere Inform 
Mär 27 14:07:33 raspberrypi openttd[16630]: Failed to start, aborting. 
Mär 27 14:07:33 raspberrypi systemd[1]: openttd.service: Control process exited, 
Mär 27 14:07:33 raspberrypi systemd[1]: openttd.service: Failed with result 'exi 
Mär 27 14:07:33 raspberrypi systemd[1]: Failed to start LSB: OPENTTD server. 
und 
 Zitat:pi@raspberrypi:~ $ journalctl -xe 
Mär 27 14:07:19 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:20 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:20 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:21 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:21 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:22 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:22 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:23 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:23 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:24 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:24 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:25 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:25 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:27 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:27 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:28 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:28 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:29 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:29 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:30 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:30 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:31 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:31 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:32 raspberrypi openttd[16630]: Usage: grep [OPTION]... PATTERNS [FILE]... 
Mär 27 14:07:32 raspberrypi openttd[16630]: „grep --help“ liefert weitere Informationen. 
Mär 27 14:07:33 raspberrypi openttd[16630]: Failed to start, aborting. 
Mär 27 14:07:33 raspberrypi systemd[1]: openttd.service: Control process exited, code=exited, status=1/FAILURE 
-- Subject: Unit process exited 
-- Defined-By: systemd 
-- Support: https://www.debian.org/support 
--  
-- An ExecStart= process belonging to unit openttd.service has exited. 
--  
-- The process' exit code is 'exited' and its exit status is 1. 
Mär 27 14:07:33 raspberrypi systemd[1]: openttd.service: Failed with result 'exit-code'. 
-- Subject: Unit failed 
-- Defined-By: systemd 
-- Support: https://www.debian.org/support 
--  
-- The unit openttd.service has entered the 'failed' state with result 'exit-code'. 
Mär 27 14:07:33 raspberrypi systemd[1]: Failed to start LSB: OPENTTD server. 
-- Subject: A start job for unit openttd.service has failed 
-- Defined-By: systemd 
-- Support: https://www.debian.org/support 
--  
-- A start job for unit openttd.service has finished with a failure. 
--  
-- The job identifier is 3001 and the job result is failed. 
Mär 27 14:07:33 raspberrypi sudo[16602]: pam_unix(sudo:session): session closed for user root 
Mär 27 14:08:23 raspberrypi dhcpcd[414]: eth0: Router Advertisement from fe80::e228:6dff:fe5a:c8de 
lines 1439-1488/1488 (END) 
Und jetzt weiß ich einfach nicht weiter...
 
Kennt sich einer von Euch damit aus ? Irgendwo mus ja noch nen Fehler drin sitzen ?
 
Bin für jeden Tip dankbar.
 
Beste Grüße
 
Bender3k
			  
			
			
			
		 |  
	 
 | 
	| 27.03.2020 14:12 | 
	
		
	 | 
	
		
		Bender3k 
		
			Gleisarbeiter 
			  
			
			 
			
	Beiträge: 14 
	Registriert seit: Sep 2005
	
		
	 | 
	
		
			
RE: OpenTTD auf Raspberry PI 4B installieren ? 
			 
			
				Mahlzeit. 
Ja, also ich bekomme openTTD mit openttd -d gestartet... das läuft wunderbar. 
Da ich absolut keine Ahnung von Linux habe weiß ich leider nicht wie ich raus bekommen kann, wo der Fehler im script liegt.
 
Daher erhoffte ich mir hier ein wenig hilfe    
Grüße
			  
			
			
			
		 |  
	 
 | 
	| 30.03.2020 10:23 | 
	
		
	 | 
	
		
		Eddi 
		
			Tycoon 
			      
			
			
 
 
			
	Beiträge: 4.066 
	Registriert seit: Aug 2008
	
		
	 | 
	
		
			
RE: OpenTTD auf Raspberry PI 4B installieren ? 
			 
			
				ich fürchte da mußt du den Autor des Skriptes fragen, oder einfach den Server manuell starten. 
mit init-skripten kenn ich mich nicht wirklich aus. du könntest mal mit
 
Code: 
 bash -x -c ~/openttd-init/openttd start
  
versuchen das skript zu debuggen, das sollte jede einzelne Kommandozeile ausführlich auflisten, die das Skript ausführen möchte.
			  
			
			
			
		 |  
	 
 | 
	| 31.03.2020 01:22 | 
	
		
	 | 
	 
	
	
		
	
	
		
 
	 
	
	
	
	
	
	
	
		
		
	
	
	
Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste