View previous topic :: View next topic |
Author |
Message |
Massaker n00b
Joined: 14 Apr 2005 Posts: 23
|
Posted: Fri Sep 30, 2022 1:50 am Post subject: Looking for help getting steam-chroot to work. |
|
|
EDIT: so I've got steam working in chroot, I'm just going to write below what I did, so maybe others might find it useful.
Quote: |
id -u # remember this number for later (tipicaly 1000 or 1001)
su
emerge --ask --noreplace x11-apps/xhost
mkdir /opt/steam
cd /opt/steam
wget FIND_CURRENT_STAGE3_LINK_FROM_https://www.gentoo.org/downloads
tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owne
rm stage*
cp --dereference /etc/resolv.conf /opt/steam/etc/
mount --types proc /proc /opt/steam/proc
mount --rbind /sys /opt/steam/sys
mount --make-rslave /opt/steam/sys
mount --rbind /dev /opt/steam/dev
mount --make-rslave /opt/steam/dev
mount --bind /run /opt/steam/run
mount --make-slave /opt/steam/run
mount -o bind /dev/pts /opt/steam/dev/pts
chroot /opt/steam /bin/bash
source /etc/profile
# set timezone fill in your own info
ls /usr/share/zoneinfo
echo "Europe/Brussels" > /etc/timezone
emerge --config sys-libs/timezone-data
nano /etc/portage/make.conf
# use flags
USE="elogind abi_x86_32 -driver"
# build options
EMERGE_DEFAULT_OPTS="--ask --autounmask-write=y --jobs=32"
MAKEOPTS="-j32 -l32" # set your own
# accepts
ACCEPT_KEYWORDS="~amd64"
ACCEPT_LICENSE="* @EULA"
emerge --sync
eselect news read
emerge --verbose --update --deep --newuse @world
emerge --noreplace app-eselect/eselect-repository dev-vcs/git
eselect repository enable steam-overlay
emaint sync -r steam-overlay
nano /etc/portage/package.accept_keywords/steam
Add this line: */*::steam-overlay
emerge games-util/steam-launcher
Would you like to add these changes to your config files? [Yes/No] Yes
dispatch-conf (u: use-new)
emerge games-util/steam-launcher
emerge nvidia-drivers
# the <UID> comes from "id -u" (the 1st cmd used)
useradd -u <UID> -m -G audio,video steam
# open a new terminal to enter this outside of the chroot enviroment
cp ~/.Xauthority /opt/steam/home/steam/
# I am now able to start steam by this command
su -c 'steam -no-cef-sandbox' steam
|
keywords: gentoo chroot steam install
Last edited by Massaker on Mon Oct 03, 2022 8:59 am; edited 2 times in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3934
|
Posted: Fri Sep 30, 2022 10:44 am Post subject: |
|
|
Have you done this
Quote: |
Now create the Steam user with the same UID (usually 1000) as the local user. The local UID can be determined by running id -u as the local user, outside of the chroot. Using the same UID will simplify the process of granting access to the X server from inside the chroot.
(chroot) root #useradd -u <UID> -m -G audio,video steam
|
? _________________
|
|
Back to top |
|
|
Massaker n00b
Joined: 14 Apr 2005 Posts: 23
|
Posted: Mon Oct 03, 2022 8:56 am Post subject: |
|
|
alamahant wrote: | Have you done this |
Yes, I had done that. If I remember correctly, I had to cp over my Xauthority file in order to solve my original post problem.
cp ~/.Xauthority /opt/steam/home/steam/
However, I've since edited my original post with a list of instructions I used.
thanks |
|
Back to top |
|
|
|