Welcome, Guest. Please login or register.
+  Linux Soft Forum
|-+  Cercetează» Reţele, servere» Server de counter-striker pe Ubuntu
[Picture 161] [Picture 160] [Picture 159]
Username:
Password:
 
Pages: [1]   Go Down
  Print  
Author Topic: Server de counter-striker pe Ubuntu  (Read 2464 times)
0 Members and 1 Guest are viewing this topic.
ciapsadm
Membru
*

« on: March 08, 2007, 02:07:33 PM »

Salutare,

Mi-am reinstalat Ubuntu, mi-am facut un server de cs pe el aseara, a mers totul bine si l-am stinis.
Dimineata pornesc calculatorul, aprind serverul, si surpriza nu mergea! wallbash
Acuma am zis, hai ca pun pe forum ca poate ati mai intalnit problema asta careva si sa ma ajutati si pe mine sa o rezolv.

Code:
marius@ciapsadm:~$ sudo su
Password:
root@ciapsadm:/home/marius# cd /usr/hlds
root@ciapsadm:/usr/hlds# ./hlds_run -game cstrike +89.42.98.39 +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
Auto detecting CPU
Using AMD Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/usr/hlds/./valve/SAVE
scandir failed:/usr/hlds/./platform/SAVE
Protocol version 47
Exe version 1.1.2.5/Stdio (cstrike)
Exe build: 02:38:45 Jul  7 2004 (2738)
STEAM Auth Server
couldn't exec language.cfg
WARNING: UDP_OpenSocket: port: 27015  bind: Address already in use
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
joi 8 martie 2007, 14:00:49 +0200: Server restart in 10 seconds
Logged
pghoratiu
Expert
***


« Reply #1 on: March 08, 2007, 03:02:16 PM »

Quote
WARNING: UDP_OpenSocket: port: 27015  bind: Address already in use
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Portul respectiv era deja ocupat de o alta aplicatie (aceeasi cel mai probabil) de aceea ai primit aceasta eroare, doua comenzi care-ti pot fi de ajutor:
1. sudo netstat -tnp
Afiseaza toate conexiunile TCP/IP existente, inclusiv procesele care au realizat legatura.
2.  sudo netstat -tnlp
Afiseaza aplicatiile server care au deschis un port.
De asemenea cred ca trebuie sa pornesti serverul cu sudo deoarece nu l-ai instalat in directorul propriu (/home/...).
Logged
ciapsadm
Membru
*

« Reply #2 on: March 08, 2007, 03:09:31 PM »

Nu vad imic la care sa fie cauza problemei:

Code:
marius@ciapsadm:~$ sudo netstat -tnp
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 89.42.98.39:52594       209.85.135.104:80       ESTABLISHED4651/firefox-bin   
tcp        0      0 89.42.98.39:42950       216.155.193.155:5050    ESTABLISHED4673/gaim           
tcp        0      0 89.42.98.39:39953       209.85.137.104:80       ESTABLISHED4651/firefox-bin   
marius@ciapsadm:~$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 127.0.0.1:2208          0.0.0.0:*               LISTEN     4061/hpiod         
tcp        0      0 127.0.0.1:44214         0.0.0.0:*               LISTEN     4064/python         
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     4042/cupsd         
marius@ciapsadm:

Apoi am pornit serverul, tot nu merge:

Code:
marius@ciapsadm:~$ cd /usr/hlds
marius@ciapsadm:/usr/hlds$ sudo ./hlds_run -game cstrike +89.42.98.39 +sv_lan 1 -nomaster +maxplayers 18 +map de_dust2
Auto detecting CPU
Using AMD Optimised binary.
Auto-restarting the server on crash

Console initialized.
scandir failed:/usr/hlds/./valve/SAVE
scandir failed:/usr/hlds/./platform/SAVE
Protocol version 47
Exe version 1.1.2.5/Stdio (cstrike)
Exe build: 02:38:45 Jul  7 2004 (2738)
STEAM Auth Server
couldn't exec language.cfg
WARNING: UDP_OpenSocket: port: 27015  bind: Address already in use
FATAL ERROR (shutting down): Couldn't allocate dedicated server IP port 27015.
Add "-debug" to the ./hlds_run command line to generate a debug.log to help with solving this problem
joi 8 martie 2007, 15:10:23 +0200: Server restart in 10 seconds
« Last Edit: March 08, 2007, 03:11:24 PM by ciapsadm » Logged
gheorghe
Veteran
**


« Reply #3 on: March 08, 2007, 03:21:53 PM »

De fapt ar fi netstat -ulp . Cstrike functioneaza pe udp.
Logged
ciapsadm
Membru
*

« Reply #4 on: March 08, 2007, 06:08:04 PM »

Şi ce-i de facut?
Logged
oblio
Admini
**


WWW
« Reply #5 on: March 08, 2007, 06:13:39 PM »

Rulezi ce-a zis gheorghe, şi pui aici rezultatul. Dacă e ceva pe acel port, ar fi util să-l īnchizi Wink
Logged

Distribuţie: ubuntu | Localitate: Bucureşti | Vārstă: 24

Oh! Everything has a point, and if it doesn't, then there's a point to it.

Oblio's
ciapsadm
Membru
*

« Reply #6 on: March 10, 2007, 05:31:58 PM »

Pun tot rezultatul?
Mi se pare ca atat ii destul.
Ca nu mai ii ceva important.

Code:
marius@ciapsadm:~$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State     
tcp        0      0 89.42.98.39:1125        cs42.msg.dcn.yahoo:mmcc ESTABLISHED
tcp        0      0 89.42.98.39:3554        fg-in-f104.google.c:www ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ]         DGRAM                    4408     @/com/ubuntu/upstart
unix  2      [ ]         DGRAM                    4543     @/org/kernel/udev/udevd
unix  2      [ ]         DGRAM                    9080     @/org/freedesktop/hal/udev_event
unix  9      [ ]         DGRAM                    8680     /dev/log
unix  3      [ ]         STREAM     CONNECTED     12790   
unix  3      [ ]         STREAM     CONNECTED     12789   
unix  3      [ ]         STREAM     CONNECTED     12787    /tmp/.esd-1000/socket
« Last Edit: March 10, 2007, 05:37:27 PM by ciapsadm » Logged
ciapsadm
Membru
*

« Reply #7 on: March 10, 2007, 06:51:08 PM »

Cred ca stiu care-i problema.
Amu mi-am adus aminte, si am si vazut.
Am uitat ca am pus acolo sa porneasca serverul cand aprind calculatorul.
Deasta tot imi dadea erroarea aia de mai sus.
N-am stiut pentru ca nu mi sa deschis Terminalul cu serverul si am crezut ca nu-i buna faza aia sa ti se deschida serverul cand pornesti calculatorul. Sad
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: