Hi! I'm a software engineer and programmer. Linux, shell, java. I like game Half-life 2 and all around.

RSS My Blogs

Installation the Source SDK Base 2013 Singleplayer for Linux

When I saw Half-Life 2 that works on Linux natively, I decided to learn more. I have Ubuntu Linux 22.04 LTS. I began from installation of Steam. Steam is a standard packet that ships with Ubuntu out of box.

sudo apt install steam

The Steam is 32 bit application and Installed with nesessary dependencies, that is with a lot of 32 bit shared libraries. It is good. I had not to do something more. I just signed in Steam and that was enough to install the Source SDK Base 2013 Singleplayer for Linux (or simply the SDK).

I installed by Steam a free Half-Life 2 game mod 'Transmission Element 120' that works natively on Linux. I examined the mod and understood that the mod cat be installed as standalone resource out of Steam bindings. I decided to install the SDK as standalone and became free to research it. Also, try to run hl2, episodic, ep2 as mods and learn from it. Why not? That was a good point to start learning Half-Life 2.

Make the SDK standalone

I copied the SDK into '~/Games/HL2':

mkdir ~/Games
cp -r ~/.steam/steam/steamapps/common/'Source SDK Base 2013 Singleplayer' ~/Games/HL2

The name of SDKROOT directory is '~/Games/HL2'

Then add two missed, but required shared libraries:

cp ~/.steam/debian-installation/ubuntu12_32/steam-runtime/lib/i386-linux-gnu/libgcrypt.so.11.7.0 ~/Games/HL2/bin
cp ~/.steam/debian-installation/ubuntu12_32/steam-runtime/lib/i386-linux-gnu/libpng12.so.0.46.0 ~/Games/HL2/bin
cd ~/Games/HL2/bin
ln -s libgcrypt.so.11.7.0 libgcrypt.so.11
ln -s libpng12.so.0.46.0 libpng12.so.0

Test if h2_linux starts

cd ~/Games/HL2
LD_LIBRARY_PATH=bin ./hl2_linux -game sourcetest -windowed

Regards,

Lnxfan

Hi there!

Hi there!

lnxfan Blog
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

X