Assistance in creating a dedicated CS 1.6 server

Good morning, I would like some help creating a server to play Counter-Strike 1.6.

I’m using an Ugreen DXP2800 to try and do this.

I downloaded some images in Docker, but I’m new to this area and have no programming knowledge.

I did some research online using STEAMCMD containers and some ready-made CS 1.6 containers, but it didn’t work.

I created a container and added some environment variables. The container runs, but when I check the logs, I get this message at the end:

Loading server configs
cp: cannot stat ‘/home/steam/store/cfgs/*’: Permission denied
Starting Counter Strike 1.6 Dedicated Server
Auto-restarting the server on crash
./hlds_linux: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

If anyone can help me or give me any advice, I would be very grateful.

Thank you.

It depends on what base image you are using.

It is just a simple permision issue but what the right permission would be I don’t know. The user that runs processes in the container must have access to the files that the app wants to read or write.

A required library is missing from the base image. If you know what base image you are using and what Linux distribution’s what repository you can use to install or search for packages, you need to find out what package will include that library. You can try packages like libstdc-dev or libstdc++ or a spcific version. If the image is debian based like debian or ubuntu, apt package manager shows what packages are available

apt-get update
apt-get search libstdc++ 

I tried with the latest ubuntu and this worked:

apt-get install libstdc++-16-dev

But there were multiple versions available and I have no idea which one is supported by the cs server.

So you will need to start a container from the image you are using and interactively figure out what package can be installed. Than add the package to your Dockerfile to a RUN instruction.

Questions if you need more help:

  • How do you start the container?
  • What is the base image?
  • Do you build your own image?
  • Do you have a Dockerfile?

Please, also read our formatting guide that you will need if you want to share temrinal outputs, code or logs:

https://forums.docker.com/t/how-to-format-your-forum-posts/127295#p-202628-dockerfiles-compose-files-logs-and-code-4

Sorry to ask, but where should I run these commands? I tried in the container’s own terminal, but it didn’t work.

I’m using the UGOs system on the dxp2800.

As I said, I’m new to Linux and I’m trying to learn some basic things.

Sorry for my ignorance.

You are using Docker Desktop on the Ugreen NAS?

The errors seem to be permission and library related. You should share the compose file you are using, that contains all the settings for running the container from an image.

Just compare your command to mine :slight_smile:

You just executed the package name instead of the full command. That won’t work. But even if you manage to run the commands in that terminal, that will not be persistent and you will lose it when you recreate the containers. That is why I wrote you would need to add it to a Dockerfile.

But until you figure out which command is the right one, it is indeed good to test it in the terminal.

Thank you very much for your help, I will test the commands tomorrow.

And where do I start studying to learn about Dockerfile, containers, and the Ugos terminal?

I really appreciate the help, I only bought the NAS a month ago to use as a file server, and now I’m starting to get interested in Docker and containers.

It’s quite difficult at the beginning kkkkkkk

Recommended links to learn the basics and concepts:

About Dockefile specifically: Dockerfile reference | Docker Docs

But in general, you can always search for “XY Docs” or “XY Reference” where you can replace “XY” with anything you want to learn about.

I know nothing about Ugos. If you want to learn about a NAS or other software, I recommend looking for their support forum or community. Here we are happy to help with Docker-related questions and sometimes you can be lucky and someone knows about a specific platform as well. But that is not the focus on the Docker Community Forum.