Skip to content

Instantly share code, notes, and snippets.

@TechnicallyUnsure
Created March 27, 2024 14:36
Show Gist options
  • Save TechnicallyUnsure/5dfe36e7c7eb99bb6dd6add715d44f6f to your computer and use it in GitHub Desktop.
Save TechnicallyUnsure/5dfe36e7c7eb99bb6dd6add715d44f6f to your computer and use it in GitHub Desktop.
Install Steam on Rock5A/Rock5B (should work on similar RK3588/RK3588S boards)
#!/bin/bash
sudo dpkg --add-architecture armhf
sudo add-apt-repository ppa:liujianfeng1994/panfork-mesa
sudo add-apt-repository ppa:liujianfeng1994/rockchip-multimedia
sudo apt update
sudo apt 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 python3-pip python3-apt python3-debian pandoc -y
cd ~
git clone https://gitlab.com/volian/nala.git
cd nala
sudo make install
sudo nala update && sudo nala upgrade -y
cd ~
sudo mv /usr/share/doc/linux-libc-dev/changelog.Debian.gz /usr/share/doc/linux-libc-dev/changelog.Debian.gz.old
sudo nala update && sudo nala install libgtk2.0-0:armhf libsdl2-image-2.0-0:armhf libsdl1.2debian:armhf libopenal1:armhf libvorbisfile3:armhf libgl1:armhf libjpeg62:armhf libcurl4:armhf libasound2-plugins:armhf libc6-dev-armhf-cross git cmake gcc-arm-linux-gnueabihf libncurses6:armhf libc6:armhf libx11-6:armhf libgdk-pixbuf2.0-0:armhf libstdc++6:armhf libsdl2-2.0-0:armhf libsdl-mixer1.2:armhf libpng16-16:armhf libcal3d12v5:armhf libsdl2-net-2.0-0:armhf libvorbis-dev:armhf libudev1:armhf libgl1-mesa-dev:armhf libx11-dev:armhf libsmpeg0:armhf libsdl2-mixer-2.0-0:armhf cabextract libappindicator1 libnm0 libtcmalloc-minimal4 binfmt-support liblttng-ust-dev libcairo2:armhf libgmp10:armhf libvulkan1:armhf libudev-dev:armhf libsdl2-dev libpng-dev:armhf libcups2:armhf libcups2 -y && sudo nala upgrade -y
git clone --depth 1 https://github.com/ptitSeb/box64
mkdir -p box64/build; cd box64/build
cmake .. -DRK3588=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc)
sudo make install
cd ~
git clone --depth 1 https://github.com/ptitSeb/box86
mkdir -p box86/build; cd box86/build
cmake .. -DRK3588=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j$(nproc) #automatically uses all your cores
sudo make install
sudo apt install mali-g610-firmware rockchip-multimedia-config kodi -y
echo 'export STEAMOS=1
export STEAM_RUNTIME=1
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
export PAN_MESA_DEBUG=gofaster,gl3' | sudo tee /etc/profile.d/steam.sh
source /etc/profile.d/steam.sh
cd /usr/lib/arm-linux-gnueabihf/
sudo ln -s libpng16.so libpng12.so.0
cd ~/box86
./install_steam.sh
### NOW RUN just `steam` and enjoy gaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment