Server Installieren (Starten auf Linux Debian)

Hakushi
Hallo zusammen,

ich habe folgendes Problem: Ich habe einen Linux Debian Server. Ich habe alles so gemacht wie in dem Tutorial beschrieben. Jedoch wenn ich zb den Befehl
screen -dmS cod2 oder ./cod2_lnxded +set dedicated 2 +exec ./config.cfg +map_rotate
eingebe sagt er immer: -bash command not found. Wäre wirklich super wenn mir da einer helfen könnte.
yoda
./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate

So muss das aussehen, Fehler in der Anleitung, war hier aufgefallen: KLICK - das ./ vor dem config.cfg ist falsch. Nighthawk, Du wirst alt... Augenzwinkern

Yippie, kann mal was zu Linux sagen grosses Grinsen
Hakushi
Antwort meines lieben Servers war dann:

/cod2# ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate -bash: ./cod2_lnxded: Keine Berechtigung

Ich bin ein noob, habt erbarmen smile
yoda
Autsch - das hat was mit den Zugriffsrechten zu tun glaub ich - muss Dir einer der Linux-Fuzzies hier was zu sagen smile Keine Ahnung, wie da die Rechte gesetzt werden müssen (oder gar wie das geht).
SoulJah
chmod 754 cod2_lnxded
Hakushi
chmod: Zugriff auf ,,cod2_Inxded" nicht möglich: Datei oder Verzeichnis nicht gefunden jemand ne idee ?
SoulJah
hast du den befehl im verzeichnis ausgeführt, in dem die datei liegt?
oder du gibst den kompletten pfad an,
z.b. chmod 754 /opt/cod_srv/cod2_lnxded

das wird auch der fehler in der zeile in deinem ersten posting sein. die screen session startet nicht in dem verzeichnis, aus dem du sie aufrufst. du mußt noch ins richtige verzeichnis springen. so müßte sie funzen:
screen "cd <serververzeichnis>; -dmS cod2 oder ./cod2_lnxded +set dedicated 2 +exec ./config.cfg +map_rotate"
yoda
screen "cd <serververzeichnis>; -dmS cod2 oder ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate"

Das ./ vor config.cfg ist falsch, hab das auch eben mal schnell in der Anleitung korrigiert.
SoulJah
ne, ist es nicht
es ist aber auch nicht notwendig
yoda
In dem Thread, den ich oben gepostet habe, war es aber das Problem, also scheint es nicht bei allen zu funktionieren, vielleicht abhängig von der Linux-Distribution?
Nighthawk
Nee, ist abhängig, von wo (welches Verzeichnis) Du den Server startest.(Bin also doch nicht so alt grosses Grinsen ) Aber screen hast Du installiert ???

Schreib ruhig, bin morgen früh ab 4:30 wieder im Forum unterwegs. Frau hat Frühschicht. Dann steh ich gleich mit auf ... hab da noch was zu coden grosses Grinsen
SoulJah
ganz so einfach ist es nicht. ich starte meinen server im hauptverzeichnis, die cfg liegt aber im main verzeichnis. und andere pfade als . akzeptiert mein server auch nicht.

zur fehlermeldung bei screen hatte ich weiter oben eine erklären geschrieben, er findet nicht screen nicht sondern den server.
Nighthawk
Ui Ui, das mit dem ./ hat Yoda recht ... meine Fresse ich werde alt. Man sollte solche Sachen halt nur noch beantworten wenn man wirklich wach ist grosses Grinsen

Also nochmal:

Wenn Du Dich auf deinen Server via Putty verbindest, startest Du eine Session mit Screen.
screen -dmS cod2

dann findest Du die Screensession namens cod2 in Deiner Prozessliste wieder. Um diese Session aufzunehmen:
screen -r cod2

Dann hast du einen netten schwarzen Bildschirm und hängst in einer jungfräulichen Session. Jetzt navigierst Du zu deinem Main-Ordner n... wo auch immer der liegen mag. Wenn Du in deinem Main-Ordner bist, startest Du den Server mit
./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate

Sollten jetzt irgendwelche Fehler wegen "permission denied" auftauchen, solltest Du den Dateien die entsprechenden Rechte geben. Findet er z.B. die Configdatei nicht, prüfe auch mal derern Existenz im richtigen Verzeichnis.

Hoffe mal das hilft dir weiter.
Hakushi
ja erstmal vielen Dank, leider klappt dies nicht. Ich habe Debian auf dem Server, ich denke ich erwähne es einmal. Folgendes gebe ich ein:

84-16-224-58:~# screen -dmS cod2
-bash: screen: command not found
84-16-224-58:~# ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate
-bash: ./cod2_lnxded: Datei oder Verzeichnis nicht gefunden

dann wechsle ich in das cod2 verzeichnis mit
cd cod2

84-16-224-58:~/cod2# ls
cod2_lnxded cod.bmp gfx_d3d_mp_x86_s.dll main README.linux
CoD2MP_s.exe codlogo.bmp gfx_d3d_x86_s.dll miles
COD2SP_s.exe dedicated.cfg localization.txt mss32.dll

84-16-224-58:~/cod2# ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate -bash: ./cod2_lnxded: Keine Berechtigung

Also ich komm da irgendwie nicht weiter smile Zur not würde ich gerne Yoda oder Dir Nighthawk das root pw geben. Danke schonmal (erneut)
Jg511 Schakal
Auf deinem Server ist kein screen installiert.

Als root einloggen und "apt-get install screen" eintippen.

Danach sollte es klappen.
Hakushi
Ich hoffeich stehe nicht als voll noob da aber dieses passierte jetzt :


Last login: Sat Nov 26 10:44:24 2005 from p50922e40.dip0.t-ipconnect.de
84-16-224-58:~# apt-get install screen
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Die folgenden NEUEN Pakete werden installiert:
screen
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 582kB Archive geholt werden.
Nach dem Auspacken werden 1004kB Plattenplatz zusätzlich benutzt.
Hole:1 http://ftp.de.debian.org stable/main screen 4.0.2-4.1 [582kB]
Es wurden 582kB in 0s geholt (1941kB/s)
Vorkonfigurieren der Pakete ...
Wähle vormals abgewähltes Paket screen.
(Lese Datenbank ... 28372 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke screen (aus .../screen_4.0.2-4.1_i386.deb) ...
Richte screen ein (4.0.2-4.1) ...

84-16-224-58:~# screen -dmS cod2
84-16-224-58:~# screen -r cod2
84-16-224-58:~# screen -r cod2
There is a screen on:
2086.cod2 (Attached)
There is no screen to be resumed matching cod2.
84-16-224-58:~# ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate
bash: ./cod2_lnxded: Datei oder Verzeichnis nicht gefunden
84-16-224-58:~#
84-16-224-58:~# cd cod2
84-16-224-58:~/cod2# ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate
bash: ./cod2_lnxded: Keine Berechtigung
84-16-224-58:~/cod2#
84-16-224-58:~/cod2#
Hakushi
Also ich bedanke mich bei euch allen, anscheinend ist mein TDM Server soeben gestartet, ok wie und wo ich ne ip sehe wie ich mit nem TDM umgehen muss keine Ahnung, aber er rennt, vieln Dank



File Handles:
----------------------
41157 files in iwd files
execing default_mp.cfg
couldn't exec language.cfg
couldn't exec config_mp_server.cfg
dedicated is read only.
Opening IP socket: localhost:28960
Hostname: 84-16-224-58.internetserviceteam.com
Alias: 84-16-224-58
IP: 84.16.224.58
--- Common Initialization Complete ---
dedicated is read only.
couldn't exec config.cfg
map_rotate...

"sv_mapRotation" is:""

"sv_mapRotationCurrent" is:""

No map specified in sv_mapRotation - forcing map_restart.
Server is not running.
Hitch warning: 2449 msec frame time
84.16.224.58
Jg511 Schakal
Also dem Output nach zu urteilen, läuft er noch nicht richtig, da er die config nicht geladen hat, welche im main Verzeichnis liegen muss. Und hinterher nicht vergessen den screen Prozess mit STRG-A +D zu "detachen", sonst isser wieder weg, wenn du Putty beendest.
yoda
Also erst mal Deine IP und Dein Port:
IP: 84.16.224.58
Opening IP socket: localhost:28960

Heisst also: 84.16.224.58:28960 ist die Adresse für CoD2.

---

couldn't exec config.cfg
map_rotate...

"sv_mapRotation" is:""

"sv_mapRotationCurrent" is:""

No map specified in sv_mapRotation - forcing map_restart.
Server is not running.
Hitch warning: 2449 msec frame time
84.16.224.58


Das heisst Dein Server läuft nicht - der kann die config.cfg nicht finden und hat dadurch keine Map-Rotation, die er laden kann.

Entweder liegt es am Namen - benenn die mal um in test.cfg und pass den Startparameter entsprechend an.

Oder die cfg ist keine cfg oder liegt nicht im main-Ordner - kennst Du die Sache mit den Dateiendungen KLICK?
Hakushi
ok cfg umbenannt er erkennt sie nun auch aber folgendes passiert :

84-16-224-58:~/cod2# ./cod2_lnxded +set dedicated 2 +exec config.cfg +map_rotate
CoD2 MP 1.0 build linux-i386 Oct 24 2005
----- FS_Startup -----
Current search path:
/root/.callofduty2/main
/root/cod2/main/iw_14.iwd (4038 files)
/root/cod2/main/iw_13.iwd (22624 files)
/root/cod2/main/iw_12.iwd (1016 files)
/root/cod2/main/iw_11.iwd (1462 files)
/root/cod2/main/iw_10.iwd (1936 files)
/root/cod2/main/iw_09.iwd (2142 files)
/root/cod2/main/iw_08.iwd (2723 files)
/root/cod2/main/iw_07.iwd (3384 files)
/root/cod2/main/iw_06.iwd (990 files)
/root/cod2/main/iw_04.iwd (698 files)
/root/cod2/main/iw_03.iwd (26 files)
/root/cod2/main/iw_01.iwd (16 files)
/root/cod2/main/iw_00.iwd (102 files)
/root/cod2/main
/root/.callofduty2/raw
/root/.callofduty2/raw_shared
/root/.callofduty2/devraw
/root/.callofduty2/devraw_shared
/root/cod2/raw
/root/cod2/raw_shared
/root/cod2/devraw
/root/cod2/devraw_shared

File Handles:
----------------------
41157 files in iwd files
execing default_mp.cfg
couldn't exec language.cfg
execing config_mp_server.cfg
dedicated is read only.
Opening IP socket: localhost:28960
ERROR: UDP_OpenSocket: bind: Address already in use
Opening IP socket: localhost:28961
Hostname: 84-16-224-58.internetserviceteam.com
Alias: 84-16-224-58
IP: 84.16.224.58
--- Common Initialization Complete ---
dedicated is read only.
execing config.cfg
net_ip is write protected.
net_port is write protected.
logfile opened on Sat Nov 26 23:39:57 2005

sv_cheats is write protected.
'0' is not a valid value for dvar 'sv_fps'
Domain is any integer from 10 to 1000
g_gametype will be changed upon restarting.
Hitch warning: 1805 msec frame time
map_rotate...

"sv_mapRotation" is:"gametype tdm map mp_breakout gametype tdm map mp_breakout g ametype tdm map mp_brecourt gametype tdm map mp_burgundy gametype tdm map mp_car entan gametype tdm map mp_dawnville gametype tdm map mp_decoy gametype tdm map m p_downtown gametype tdm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata gametype tdm map mp_railyard gametype tdm map mp_toujane"

"sv_mapRotationCurrent" is:""

Setting g_gametype: tdm.
Setting map: mp_breakout.
------ Server Initialization ------
Server: mp_breakout
----- FS_Startup -----
Current search path:
/root/.callofduty2/main
/root/cod2/main/iw_14.iwd (4038 files)
/root/cod2/main/iw_13.iwd (22624 files)
/root/cod2/main/iw_12.iwd (1016 files)
/root/cod2/main/iw_11.iwd (1462 files)
/root/cod2/main/iw_10.iwd (1936 files)
/root/cod2/main/iw_09.iwd (2142 files)
/root/cod2/main/iw_08.iwd (2723 files)
/root/cod2/main/iw_07.iwd (3384 files)
/root/cod2/main/iw_06.iwd (990 files)
/root/cod2/main/iw_04.iwd (698 files)
/root/cod2/main/iw_03.iwd (26 files)
/root/cod2/main/iw_01.iwd (16 files)
/root/cod2/main/iw_00.iwd (102 files)
/root/cod2/main
/root/.callofduty2/raw
/root/.callofduty2/raw_shared
/root/.callofduty2/devraw
/root/.callofduty2/devraw_shared
/root/cod2/raw
/root/cod2/raw_shared
/root/cod2/devraw
/root/cod2/devraw_shared

File Handles:
handle 1: console_mp_server.log
----------------------
41157 files in iwd files
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Oct 24 2005
-----------------------------------
-----------------------------------
map_rotate...

"sv_mapRotation" is:"gametype tdm map mp_breakout gametype tdm map mp_breakout g ametype tdm map mp_brecourt gametype tdm map mp_burgundy gametype tdm map mp_car entan gametype tdm map mp_dawnville gametype tdm map mp_decoy gametype tdm map m p_downtown gametype tdm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata gametype tdm map mp_railyard gametype tdm map mp_toujane"

"sv_mapRotationCurrent" is:" gametype tdm map mp_breakout gametype tdm map mp_br ecourt gametype tdm map mp_burgundy gametype tdm map mp_carentan gametype tdm ma p mp_dawnville gametype tdm map mp_decoy gametype tdm map mp_downtown gametype t dm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata ga metype tdm map mp_railyard gametype tdm map mp_toujane"

Setting g_gametype: tdm.
Setting map: mp_breakout.
==== ShutdownGame ====
------ Server Initialization ------
Server: mp_breakout
----- FS_Startup -----
Current search path:
/root/.callofduty2/main
/root/cod2/main/iw_14.iwd (4038 files)
/root/cod2/main/iw_13.iwd (22624 files)
/root/cod2/main/iw_12.iwd (1016 files)
/root/cod2/main/iw_11.iwd (1462 files)
/root/cod2/main/iw_10.iwd (1936 files)
/root/cod2/main/iw_09.iwd (2142 files)
/root/cod2/main/iw_08.iwd (2723 files)
/root/cod2/main/iw_07.iwd (3384 files)
/root/cod2/main/iw_06.iwd (990 files)
/root/cod2/main/iw_04.iwd (698 files)
/root/cod2/main/iw_03.iwd (26 files)
/root/cod2/main/iw_01.iwd (16 files)
/root/cod2/main/iw_00.iwd (102 files)
/root/cod2/main
/root/.callofduty2/raw
/root/.callofduty2/raw_shared
/root/.callofduty2/devraw
/root/.callofduty2/devraw_shared
/root/cod2/raw
/root/cod2/raw_shared
/root/cod2/devraw
/root/cod2/devraw_shared

File Handles:
handle 1: console_mp_server.log
----------------------
41157 files in iwd files
------- Game Initialization -------
gamename: Call of Duty 2
gamedate: Oct 24 2005
-----------------------------------
-----------------------------------
Hitch warning: 9996 msec frame time
Resolving cod2master.activision.com
cod2master.activision.com resolved to 63.146.124.40:20710
Sending heartbeat to cod2master.activision.com
Resolving cod2master.activision.com
cod2master.activision.com resolved to 63.146.124.40:20700

???