Skip to content

Commit

Permalink
Added steam target; verified to work in bullseye
Browse files Browse the repository at this point in the history
  • Loading branch information
myelin committed Oct 29, 2022
1 parent aa90be9 commit a7e7907
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ for game testing. Things I care about:
Feel free to send pull requests or file bugs relating to any of the above.

The installer now works, I think! To install this fork, try the following:

* Download [https://github.com/myelin/crouton/raw/main/installer/crouton](https://github.com/myelin/crouton/raw/main/installer/crouton)
* Open crosh with Ctrl-Alt-T
* `shell`
Expand All @@ -21,6 +20,9 @@ The installer now works, I think! To install this fork, try the following:
* `sudo enter-chroot -n test-bullseye`
* `startxfce4`

If you're doing this to test games, use the `steam` target instead of `xfce`:
* `sudo crouton -t steam -r bullseye -n test-bullseye`

Testing notes from Oct 2022:
* `startxfce4` brings up an apparently-working UI on bullseye.
* `startxfce4` looks similar on focal but the display is laggy and flickers.
Expand Down
46 changes: 46 additions & 0 deletions targets/steam
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/sh -e
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
REQUIRES='xfce'
DESCRIPTION="Valve's Steam game store and launcher."
. "${TARGETSDIR:="$PWD"}/common"

### Append to prepare.sh:

install_steam() {

# Auto-accept the license
echo steam steam/license note '' | debconf-set-selections
echo steam steam/question select 'I AGREE' | debconf-set-selections
# Install Steam and dependencies.
# This works on bullseye; YMMV anywhere else.
apt -y install bubblewrap steam
if [ -f /etc/lsb-release ]; then
if grep -q ubuntu /etc/lsb-release; then
# On focal we need:
apt -y install libc6:amd64 libc6:i386 \
libegl1:amd64 libegl1:i386 \
libgbm1:amd64 libgbm1:i386 \
libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 \
libgl1:amd64 libgl1:i386 \
steam-libs-amd64:amd64 steam-libs-i386:i386 \
xdg-desktop-portal xdg-desktop-portal-gtk
fi
fi
# Make bubblewrap suid, so it can run inside a chroot.
chmod u+s /usr/bin/bwrap
# Bump the max open file descriptor limit.
echo "* hard nofile 1048576" >> /etc/security/limits.conf
}
install_steam
TIPS="$TIPS
If running Steam brings up an empty black window, try: steam -no-cef-sandbox
"

0 comments on commit a7e7907

Please sign in to comment.