Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portal 2 failing missing library in sniper runtime when running from terminal from steamcmd install #421

Open
snooper3012 opened this issue Jan 27, 2024 · 0 comments

Comments

@snooper3012
Copy link

Your system information

  • Steam client version (build number or date): Steam cmd from https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz downloaded at 26.01.24
  • Distribution (e.g. Ubuntu): debian:bookworm (OCI Docker image running with podman)
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes by the Containerfile (more information in reproduction step)
  • Steam Logs: Steamcmd does not generate this as far as I am aware
  • GPU: AMD

Please describe your issue in as much detail as possible:

I expect Portal 2 to launch inside of the Steam Linux Runtime Sniper. But Then I got a missing library that looks like is not in the debian repos, nor trying to compile to source worked.

Steps for reproducing this issue:

  1. Generate the following Podman Image:
FROM debian:bookworm
USER root

RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get install -y --no-install-recommends ca-certificates
RUN apt-get install -y --no-install-recommends systemd systemd-sysv
RUN apt-get install -y --no-install-recommends coreutils
RUN apt-get install -y --no-install-recommends lsof
RUN apt-get install -y --no-install-recommends sudo
RUN apt-get install -y --no-install-recommends curl
RUN apt-get install -y --no-install-recommends lib32gcc-s1
RUN apt-get install -y --no-install-recommends libdrm2:i386 libgl1-mesa-glx:i386
RUN apt-get install -y --no-install-recommends pciutils
RUN apt-get install -y --no-install-recommends pkexec
RUN apt-get install -y --no-install-recommends dbus
RUN apt-get install -y --no-install-recommends dbus-x11

RUN echo >> /etc/sudoers && echo '%steam ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN rm /usr/bin/pkexec
RUN ln -s /usr/bin/sudo /usr/bin/pkexec
RUN echo 'root:root' | chpasswd

RUN curl -sqLO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
RUN apt-get install -y ./steam.deb
RUN rm "steam.deb"

RUN mkdir /steam /data
RUN useradd steam -d /steam
RUN chown steam:steam /steam /data
WORKDIR /steam
USER steam

RUN curl -sqLO "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"
RUN tar zxvf "steamcmd_linux.tar.gz"
RUN rm "steamcmd_linux.tar.gz"

USER root
RUN apt-get clean
RUN echo >> /etc/bash.bashrc
RUN echo export TERM=xterm-256color >> /etc/bash.bashrc
VOLUME [ "/sys/fs/cgroup", "/data" ]
CMD [ "/sbin/init" ]

  1. Generate container with the following command: podman run -d --volume "${DIR}/steamdata:/data:rw" --tmpfs /tmp --tmpfs /run -v /sys/fs/cgroup:/sys/fs/cgroup:ro --volume "$XAUTHORITY:/steam/.Xauthority:rw" --volume /tmp/.X11-unix:/tmp/.X11-unix:ro --device /dev/kfd --device /dev/dri --userns keep-id -e "DISPLAY" --shm-size=1g --cap-add SYS_ADMIN --privileged --name "${CONTAINER_NAME}" "${IMAGE_NAME}"
    Where "${DIR}" is a directory of choice, configured such that ${DIR}/steamdata is case insensitive.
  2. run the following steamcmd script in the container:
@ShutdownOnFailedCommand 1
force_install_dir /data/portal2
set_steam_guard_code AUTH_CODE
login USER_NAME
app_update 1628350 validate
app_update 620 validate
quit
  1. Finally try to run podman exec -it CONTAINER_NAME /data/portal2/run-in-sniper --filesystem=/data/portal2 -- /data/portal2/portal2.sh where CONTAINE_NAME is the name given to the container
@kisak-valve kisak-valve transferred this issue from ValveSoftware/steam-for-linux Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant