Search the Community
Showing results for tags 'ubuntu'.
-
Hi everyone! 🖐️ Today I was a reading the "Getting started running a server" guide when I thought about putting the stuff in Docker, to be minimal as possible. Then, I came here to show you how to do it. You will need to create a folder with the name of your project, and inside it, we'll put only three files. You need to have Docker Desktop installed already. Step 1 - Dockerfile Create a file with the name Dockerfile, and without an extension. Inside it, paste the code below: FROM ubuntu:latest WORKDIR /opt/app COPY ./app /opt/app RUN chmod +x ragemp-server CMD ["./ragemp-server"] This will be our base system, based on Ubuntu 20.04 LTS (Linux dist). We are going to create an app folder inside opt (default by the system) and give permission to a file that we are going to add later. At the end, the Dockerfile starts the server with the command provided in the CMD directive. Step 2 - docker-compose.yml Create a file with the name docker-compose.yml, this will be our orchestrator: the file that manage all the services that the server needs in order to run properly. Paste the code below: version: "3.9" services: ragemp_server: build: . hostname: "ragemp_server" container_name: "ragemp_server" ports: - "22005:22005/udp" - "22006:22006" tty: true networks: default: external: name: ragemp_network This will add only one service called ragemp_server, and it'll contain the server files. The file will map the ports between the container and your PC. You will need to create the network with the following command: docker network create ragemp_network Step 3 - app folder Finally, you need to download the linux server files and extract them into the app folder. Once you got the files inside the app folder (you need to have the bin and dotnet folders, and the ragemp-server executable) you can run the following command in the root of the project: docker-compose up. This will create the container and run the server. Then, you can go to RageMP > Direct Connect > 127.0.0.1 : 22005 In my case, I'm running the server on a Macbook Pro and testing it on a Windows machine, so in that case you will need to run the ifconfig or ipconfig command to know your IP address, and then connect to it (i.e: 192.168.0.102:22005). Your machines need to be in the same network. Step 4 - (Optional) Get into the container If you need to get into the Ubuntu machine to run some commands, you can do it with the following cmd: docker exec -it container_name bash Replace container_name by the name of your container. Once inside, you can run whatever you want because you'll be the root user. If you have questions, please leave a comment and I'll be answering ASAP. I'm new at RageMP so I don't have a great knowledge about it, but I'm a programmer anyway 🤷♂️ Goodbye! 🖐️
-
Привет Попросили в комментарии показать как залить сервер на Linux. Что ж, раз тутеров на эту тему хватает пройдемся по одному из них Ссылка на гайд по установке сервера на Linux: https://wiki.rage.mp/index.php?title=Getting_Started_with_Server Команды Git: Скопировать удаленный репозиторий как локальный: git clone https://github.com/SirEleot/server Добавить все измененные файлы в список изменений: git add * Зафиксировать изменения с комментарием git commit -m "Какаой то комментарий" Загрузить изменения в удаленный репозиторий на GitHub git push Обновить локальный репозиторий из удаленного git pull Содержимое моего файла .gitignore bridge/runtime *.txt maps packages plugins vs_project bt.dat LICENSE node.dll README.md server.exe conf.json Daemon Папка в которой нужно создать файл конфигурации для работы сервера в фоновом режиме cd /etc/systemd/system Название файла до .service является именем для запуска вашего фонового процесса. Допустим имя файла будет filename.service Тогда со с командами нужно использовать имя filename . Например: systemctl start filename
-
I've been trying to get grpc running, because of the depency in @google-cloud/firestore and other packages. I've tried the normal installation of grpc and the build-from-source method, both didn't work unfortunately. When I run it with Node v11.1.0 without the RAGE MP server there are no issues. When I start the server and start to save data to Firestore (which triggers the grpc module) I get this error: Error: /home/me/ragemp-srv/packages/firetest/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node: undefined symbol: deflate at Object.Module._extensions..node (internal/modules/cjs/loader.js:736:18) at Module.load (internal/modules/cjs/loader.js:605:32) at tryModuleLoad (internal/modules/cjs/loader.js:544:12) at Function.Module._load (internal/modules/cjs/loader.js:536:3) at Module.require (internal/modules/cjs/loader.js:643:17) at require (internal/modules/cjs/helpers.js:22:18) at Object.<anonymous> (/home/me/ragemp-srv/packages/firetest/node_modules/grpc/src/grpc_extension.js:32:13) at Module._compile (internal/modules/cjs/loader.js:707:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:718:10) at Module.load (internal/modules/cjs/loader.js:605:32) I'm running on Unbutu 18.04. I've tried it in Windows 10 also, which gave a different kind of error. Any chance this is going to work? Would be awesome to create integrations with Google Cloud.