Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Looking for help getting steam-chroot to work.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Massaker
n00b
n00b


Joined: 14 Apr 2005
Posts: 23

PostPosted: Fri Sep 30, 2022 1:50 am    Post subject: Looking for help getting steam-chroot to work. Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Sep 30, 2022 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Massaker
n00b
n00b


Joined: 14 Apr 2005
Posts: 23

PostPosted: Mon Oct 03, 2022 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum