[Guide] Steam for Khadas Edge 2 Ubuntu

Steam Installation Tutorial

You can avoid nala by replacing it with apt. I prefer nala so first open the terminal type:

sudo apt install nala -y && sudo nala update && sudo nala upgrade -y

Installing Dependencies

First we need to install some dependencies that are required by Steam. Use the following lines:

sudo dpkg --add-architecture armhf
sudo nala update && sudo nala install build-essential git cmake gcc-arm-linux-gnueabihf libc6-dev-armhf-cross libappindicator1 libnm0 libtcmalloc-minimal4 binfmt-support liblttng-ust-dev libcairo2:armhf libgmp10:armhf libvulkan1:armhf libudev-dev:armhf -y

Next we’re going to install Box64. Paste the following lines in your terminal:

git clone --depth 1 https://github.com/ptitSeb/box64
mkdir -p box64/build; cd box64/build
# build for rk3588 
cmake .. -DRK3588=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
sudo make install

We also need Box86:

cd ~
git clone --depth 1 https://github.com/ptitSeb/box86
mkdir -p box86/build; cd box86/build
# build for rk3588
cmake .. -DRK3588=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
sudo make install

Fixing missing packages:

sudo nala install libsdl2-dev libpng-dev:armhf libncurses6:armhf libncurses6 libcups2:armhf libcups2 -y
cd /usr/lib/arm-linux-gnueabihf/
sudo ln -s  libpng16.so libpng12.so.0

That’s it for the dependencies! Before you continue you should reboot the device with:

sudo reboot

Starting Steam

First we need to configure the environment for Steam. Use the following lines to add two environment variables to your Linux environment:

echo 'export STEAMOS=1
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1' | sudo tee /etc/profile.d/steam.sh

#if you have a high resolution screen use this instead
#echo 'export GDK_SCALE=2' | sudo tee -a /etc/profile.d/steam.sh
source /etc/profile.d/steam.sh

Next we’re going to use Box86’s install_steam.sh script like this:

cd ~/box86
steam #just wait.

Installation is now finished EnJoy!


Counter Strike Source runs at 27 fps which is… incredible :joy:

Half Life 2 Deathmatch at a ‘steady’ 30 fps

khadas@Khadas:~$ steam
steam.sh[11435]: Running Steam on ubuntu 22.04 64-bit
steam.sh[11435]: STEAM_RUNTIME is enabled by the user
setup.sh[11497]: Steam runtime environment up-to-date!
steam.sh[11435]: Can't find 'steam-runtime-check-requirements', continuing anyway
/home/khadas/.local/share/Steam/steam.sh: line 792: /home/khadas/.local/share/Steam/ubuntu12_32/steam: cannot execute binary file: Exec format error

i get this error when trying to open it

You most likely failed some step. Did this yesterday and it was working.
Edit: Try again if you need help join here Discord