Running PokerTH_Server on Linux

Have Problems with PokerTH Installation? Here you will find Help.
Post Reply
ubguest11
Posts: 2
Joined: Wed Oct 19, 2022 12:33 pm

Hi all.

I spun up an Ubuntu 22.04.1 VM and tried to do a

sudo apt-get install pokerth-server

but despite the successful installation, when I try to run it with

pokerth_server

command in the Terminal, nothing happens.

Thinking I had better just compile it from scratch, I followed the Wiki.

Installing all the dependencies. But then at the point where they say

"Unpack the source release:
tar xjf PokerTH-0.9.src.tar.bz2"

I noticed that the latest release is actually 1.1.2, so these instructions have not been updated apparently.

The next steps read:

"
Enter the pokerth source directory:
cd pokerth

Edit pokerth dot pro and remove the pokerth_game dot pro entry.
"

But when I go into the source directory, I don't see pokerth dot pro

There is a pokerth dot sh and a pokerth, the latter is an executable.

Am I just not looking in the right places, or is the Wiki just out of date?

FYI, a quick google search of the dot pro extension yields the following result:

"
A PRO file is a website or mobile application mockup created by Adobe Proto, a discontinued Adobe Touch app.
"

So I don't know if 1.1.2 maybe got rid of that.

Any help would be appreciated.

Has anyone been able to recently install and get the server to work?

Thanks.

Ubguest11
User avatar
sp0ck
Posts: 162
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg

Hi Ubguest11,
I spun up an Ubuntu 22.04.1 VM and tried to do a

sudo apt-get install pokerth-server

but despite the successful installation, when I try to run it with

pokerth_server

command in the Terminal, nothing happens.
What did you expect to happen? Server seems to be succesfully installed and started. You should be able to connect to it with the pokerth client 1.1.2.
tar xjf PokerTH-0.9.src.tar.bz2"
Where did you download this source archive? The correct download for the current version source is here:

https://github.com/pokerth/pokerth/releases


With the 1.1.2 Version there will be a .pro file as mentioned in the wiki.


... please be aware that the server version from the debian repositories is compiled without a database connection. If you want your pokerth server incl. a running database in the background please compile the current version from source. The wiki should contain all necessary information.

Kind regards.
ubguest11
Posts: 2
Joined: Wed Oct 19, 2022 12:33 pm

sp0ck wrote: Sat Oct 29, 2022 5:57 pm
What did you expect to happen? Server seems to be succesfully installed and started. You should be able to connect to it with the pokerth client 1.1.2.
Hi Sp0ck,

Thanks for replying. I'm not sure what I expected. Maybe I thought that there would be some sort of GUI, but apparently not.

I see that in my windows client, under "Internet Game Setting > Manual Configuration", there are spaces for Server Address, Port, and Password.

Could you kindly guide me on how I can acquire such information from my Linux Server?

I did try to read the Wiki. I got to the point where it says:

"Run the dedicated server using the full path:
/home/username/pokerth/pokerth_server"

But when I input this command (of course substituting username for "Carn"), I get

"
carn@Carn-VirtualBox:~$ /home/Carn/pokerth/pokerth_server

bash: /home/Carn/pokerth/pokerth_server: No such file or directory
"

Trying to move the binary yields this error:

"
carn@Carn-VirtualBox:~$ mv bin/pokerth_server .

mv: cannot stat 'bin/pokerth_server': No such file or directory
"

I'm lost and confused at the moment.
User avatar
sp0ck
Posts: 162
Joined: Mon Mar 15, 2021 12:54 pm
Location: Flensburg

Hi ubuguest11,

sorry for late reply - I'm having a lot of night-shifts these days ...

Can you attach your output of the make command - esp. the first 20 and last ~50 lines of output? It might be that you compiled the client instead of the pokerth_server.

For manual configuration with IP and Port, there is a config.xml in the ~/.pokerth dir which can be edited after first start/execution of server binary. You can set or check the Port used for connection there. The IP should be 127.0.0.1/localhost if you start the server on the same machine as the client.

Regards.
Post Reply