Установка и настройка сервера на VDS

Сообщения
66
Реакции
1
thx but still the same error. i changed the - to + of what you wrote. but i also cannot see in lgsm docs that i must change that. is ubuntu 22 not compatible ?
 
Сообщения
66
Реакции
1
same error. i followed exactly this guide. its written there ./csserver start even before changing the config file. so these settings should not be the problem. i also cannot find any help in google. i will now reinstall ubuntu 18

Код:
./hlds_run -game cstrike -strictportbind +ip 0.0.0.0 -port 27015 +clientport 27005 +map de_dust2 +servercfgfile server.cfg -maxplayers 16 -pingboost 3 -debug -debug

Use for identifying server issues only!
Press CTRL+c to drop out of debug mode.
Warning! If csserver is already running it will be stopped.

continue? [Y/n] Y
[ INFO ] Debugging csserver: Stopping any running servers
 is already stoppedserver: Counter-Strike 1.6 Server
[ OK ] Debugging csserver: Starting debug
Enabling debug mode
Auto-restarting the server on crash

Console initialized.
Using breakpad crash handler
Setting breakpad minidump AppID = 10
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
malloc(): invalid size (unsorted)
Aborted (core dumped)
email debug.log to [email protected]
Wed Nov 30 20:52:02 UTC 2022: Server restart in 10 seconds
 
Сообщения
3,353
Реакции
1,474
Помог
124 раз(а)
kaktuspo, https://linuxgsm.com/servers/csserver/ did you check ubuntu dependencies?
for Ubuntu => 20.10
Bash:
sudo dpkg --add-architecture i386; sudo apt update; sudo apt install curl wget file tar bzip2 gzip unzip bsdmainutils python3 util-linux ca-certificates binutils bc jq tmux netcat lib32gcc-s1 lib32stdc++6 libsdl2-2.0-0:i386 steamcmd
 
Сообщения
66
Реакции
1
so now i tried ubuntu 18, and now the error is

FATAL ERROR (shutting down): W_LoadWadFile: couldn't load gfx.wad

i now assume that in both cases the steamcmd does not fully install CS, and for 1 day i could not install steamcmd successfully...the files are incomplete. i already tried adding the manifest manually https://github.com/dgibbs64/HLDS-appmanifest

what else can i try?

Код:
rm -rf ~/serverfiles/steamapps/*
for i in 10 70 90; do wget -q https://raw.githubusercontent.com/dgibbs64/HLDS-appmanifest/main/CounterStrike/appmanifest_$i.acf -O appmanifest_$i.acf; done
steamcmd +force_install_dir "/home/cs/serverfiles" +login anonymous +app_update 90 +app_set_config 90 mod cstrike validate +quit
 
Сообщения
3,353
Реакции
1,474
Помог
124 раз(а)
kaktuspo, did you use install command or auto-install? If the second one, the script should check the installation of steamcmd itself and restart it in case of errors.
 
Сообщения
66
Реакции
1
ok after one day: cs 1.6 does NOT run on ubuntu 22.04, error above. i now tried ubuntu 18.04, and it works BUT only with steam login (the workaround with manifests did NOT work):

Код:
./csserver install
steam cmd
force_install_dir "/home/cs/serverfiles"
login user pw
app_set_config 90 mod cstrike
app_update 90 validate
i never used auto-install. only install. is anybody running cs on ubuntu 22.04 successfully? 18.04 has no more support soon.
 
Сообщения
66
Реакции
1
i now installed ubuntu 20.04 and it works with steamcmd login like 18.04. server running. i will continue with 20.04. if anybody knows what the solution is for malloc(): invalid size (unsorted) i am interested to hear. thank you everybody
 
Сообщения
66
Реакции
1
can you recommened a best practice for sftp? how to set it up? i was planning on using user "cs" for my server and a new user "csftp" which will only have ftp access, not ssh, to access "/serverfiles"
 
Сообщения
3,353
Реакции
1,474
Помог
124 раз(а)
kaktuspo, my article deals only with sftp access, not ftp. As far as I know, you cannot access sftp without ssh access.
 
Сообщения
66
Реакции
1
im having problems creating core dumps: (ubuntu 20.04)

i managed to enable ulimit -c unlimited ONLY by setting * soft core unlimited in [B]/etc/security/limits.conf[/B] as root. now both root and my user have `

Код:
~$ ulimit -a
core file size (blocks, -c) unlimited
now i crash my server, but i cannot find any core dump
Код:
CRASH: Sun Dec 4 12:35:45 UTC 2022
Start Line: ./hlds_linux -game cstrike -strictportbind +ip 0.0.0.0 -port 27015 +clientport 27005 +map fy_snow +sys_ticrate 1000 +servercfgfile server.cfg -maxplayers 32 -pingboost 3 -timeout 5 -debug -pidfile hlds.655811. pid
End of crash report

cause of crash:
i compiled on my server with gcc
rehlds
Код:
ReHLDS version: 3.12.0.780-dev
Build date: 16:20:56 Sep 19 2022 (3082)
and used precompiled safenamechat 1.2_3 and compiled it myself, both cause the crash (segfault)

Код:
; 1.2_3 fails on self compiled rehlds 3.12.0.780
;linux addons/SafeNameAndChat/SafeNameAndChat_1.2_3_.so
; 1.1 runs with self compiled rehlds 3.12.0.780
linux addons/SafeNameAndChat/SafeNameAndChat_1.1.so
 
Сообщения
66
Реакции
1
alright i now found the core dumps on ubuntu /var/lib/apport/coredump now i opened them with readelf -Wa ... and i can confirm it is caused safenameandchat.

one question: after compiling rehlds, i only copied the engine.so to my server. is that enough?

Код:
        Start         End Page Offset
    0x08048000  0x08059000  0x00000000
        /home/cs2/serverfiles/hlds_linux
    0x08059000  0x0805a000  0x00000010
        /home/cs2/serverfiles/hlds_linux
    0x0805a000  0x0805c000  0x00000011
        /home/cs2/serverfiles/hlds_linux
    0xf248d000  0xf24ad000  0x00000000
        /home/cs2/serverfiles/cstrike/addons/SafeNameAndChat/SafeNameAndChat_1.2_3_.so
    0xf24ad000  0xf24ae000  0x00000020
        /home/cs2/serverfiles/cstrike/addons/SafeNameAndChat/SafeNameAndChat_1.2_3_.so
    0xf24ae000  0xf24af000  0x00000020
        /home/cs2/serverfiles/cstrike/addons/SafeNameAndChat/SafeNameAndChat_1.2_3_.so
    0xf24af000  0xf24b0000  0x00000021
        /home/cs2/serverfiles/cstrike/addons/SafeNameAndChat/SafeNameAndChat_1.2_3_.so
    0xf24b3000  0xf27d9000  0x00000000
        /home/cs2/serverfiles/cstrike/dlls/cs.so
    0xf27d9000  0xf27da000  0x00000325
        /home/cs2/serverfiles/cstrike/dlls/cs.so
    0xf27da000  0xf27f2000  0x00000326
        /home/cs2/serverfiles/cstrike/dlls/cs.so
    0xf2847000  0xf289d000  0x00000000
        /home/cs2/serverfiles/cstrike/addons/metamod/metamod_i386.so
    0xf289d000  0xf289e000  0x00000056
        /home/cs2/serverfiles/cstrike/addons/metamod/metamod_i386.so
    0xf289e000  0xf289f000  0x00000056
        /home/cs2/serverfiles/cstrike/addons/metamod/metamod_i386.so
    0xf289f000  0xf28a2000  0x00000057
        /home/cs2/serverfiles/cstrike/addons/metamod/metamod_i386.so
    0xf50aa000  0xf7295000  0x00000000
        /home/cs2/.steam/sdk32/steamclient.so
    0xf7295000  0xf732b000  0x000021ea
        /home/cs2/.steam/sdk32/steamclient.so
    0xf732b000  0xf734c000  0x00002280
        /home/cs2/.steam/sdk32/steamclient.so
    0xf73c4000  0xf73ee000  0x00000000
 
Сообщения
619
Реакции
130
Предупреждения
5
Помог
10 раз(а)
Пытаюсь установить вэб сервер, прописываю sudo apt install mariadb-server
и вот, что выдает:
Ign:1 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-common all 1:10.3.31-0ubuntu0.20.04.1
Ign:2 http://mirror.yandex.ru/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2
Ign:3 http://mirror.yandex.ru/ubuntu focal-updates/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.2
Ign:4 http://mirror.yandex.ru/ubuntu focal-updates/main amd64 perl amd64 5.30.0-9ubuntu0.2
Ign:5 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-client-core-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
Ign:6 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-client-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
Ign:7 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-server-core-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
Ign:8 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-server-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
Ign:9 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-server all 1:10.3.31-0ubuntu0.20.04.1
Ign:1 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-common all 1:10.3.31-0ubuntu0.20.04.1
Ign:2 http://mirror.yandex.ru/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2
Ign:9 http://mirror.yandex.ru/ubuntu focal-updates/universe amd64 mariadb-server all 1:10.3.31-0ubuntu0.20.04.1
Err:3 http://security.ubuntu.com/ubuntu focal-updates/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.2
404 Not Found [IP: 213.180.204.183 80]
Err:4 http://security.ubuntu.com/ubuntu focal-updates/main amd64 perl amd64 5.30.0-9ubuntu0.2
404 Not Found [IP: 213.180.204.183 80]
Err:5 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-client-core-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
404 Not Found [IP: 213.180.204.183 80]
Err:6 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-client-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
404 Not Found [IP: 213.180.204.183 80]
Err:7 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-server-core-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
404 Not Found [IP: 213.180.204.183 80]
Err:8 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-server-10.3 amd64 1:10.3.31-0ubuntu0.20.04.1
404 Not Found [IP: 213.180.204.183 80]
Ign:1 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-common all 1:10.3.31-0ubuntu0.20.04.1
Ign:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2
Ign:9 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-server all 1:10.3.31-0ubuntu0.20.04.1
Err:1 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-common all 1:10.3.31-0ubuntu0.20.04.1
404 Not Found [IP: 213.180.204.183 80]
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2
404 Not Found [IP: 213.180.204.183 80]
Err:9 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 mariadb-server all 1:10.3.31-0ubuntu0.20.04.1
404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/p...riadb-common_10.3.31-0ubuntu0.20.04.1_all.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/perl/perl-modules-5.30_5.30.0-9ubuntu0.2_all.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/perl/libperl5.30_5.30.0-9ubuntu0.2_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/perl/perl_5.30.0-9ubuntu0.2_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/p...-core-10.3_10.3.31-0ubuntu0.20.04.1_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/p...lient-10.3_10.3.31-0ubuntu0.20.04.1_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/p...-core-10.3_10.3.31-0ubuntu0.20.04.1_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/p...erver-10.3_10.3.31-0ubuntu0.20.04.1_amd64.deb 404 Not Found [IP: 213.180.204.183 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/p...riadb-server_10.3.31-0ubuntu0.20.04.1_all.deb 404 Not Found [IP: 213.180.204.183 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 
Сообщения
2,831
Реакции
1,666
Помог
75 раз(а)
wood-grouse, sudo apt-get update && sudo apt-get upgrade
если не поможет, то в /etc/apt/sources.list нужно добавлять другие локации серверов с дистрибьютивами
 
Сообщения
619
Реакции
130
Предупреждения
5
Помог
10 раз(а)
Прописал apt-get update, все заработало
 
Сообщения
619
Реакции
130
Предупреждения
5
Помог
10 раз(а)
Чет я застрял на Установка PHP.
Все делаю, как написано apt install php-fpm php-mysql, далее идет установка, создаю /var/www/html info.php, ввожу туда
<?php
phpinfo();
?>

в браузере проверяю, введя хост http://адрес_сервера/info.php , и выдает

404 Not Found
nginx/1.18.0 (Ubuntu)

Еще раз пытаюсь установить php, пишет
php-mysql is already the newest version (2:7.4+75).
php-fpm is already the newest version (2:7.4+75).
0 upgraded, 0 newly installed, 0 to remove and 181 not upgraded.
5 Дек 2022
Даже права доступа под рутом к info.php выставил 777, все равно
404 Not Found
nginx/1.18.0 (Ubuntu)
 
Сообщения
619
Реакции
130
Предупреждения
5
Помог
10 раз(а)
Ввожу php -version ,
PHP 7.4.3 (cli) (built: Nov 2 2022 09:53:44) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies

т.е. установлен пхп, но в браузере ошибка 404
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу