Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Gamers & Players
  • Search

[SOLVED] Isolated Steam installation in no-multilib system

Having problems getting your favorite Linux game to work? Want to discuss strategies? This is the place!
Post Reply
  • Print view
Advanced search
13 posts • Page 1 of 1
Author
Message
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

[SOLVED] Isolated Steam installation in no-multilib system

  • Quote

Post by g-virus » Wed Apr 05, 2023 7:26 pm

Hello there!

This is 2023, almost nobody uses multilib environments in their Desktop builds, however we still have Steam client 32bit only for Linux. While Apple can say "we don't support 32bit apps anymore" and Steam answers "Yes, sir", the Linux community can't say that and we'd have to use multilib builds if we want to use Steam.

I don't use 32bit apps for a very long time as well as I've disabled 32bit binaries support in kernel. I'm mostly gaming on Windows, but sometimes I need Steam on Linux.

Is that possible to have a fully isolated Steam installation on a no-multilib system with 32bit binaries support enabled only? I'm thinking of either Docker or chroot-like directory where I could put libc and other 32bit dependencies. Flatpak is not my option, I think, because it pulls libfuse and other things that I don't use (I keep my system as minimal as possible, like most of us).
Last edited by g-virus on Mon Apr 10, 2023 3:21 pm, edited 1 time in total.
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

Re: Isolated Steam installation in no-multilib system

  • Quote

Post by Hu » Wed Apr 05, 2023 8:28 pm

g-virus wrote:This is 2023, almost nobody uses multilib environments in their Desktop builds,
Do you have a citation for this? Multilib is still commonly supported and, as far as I know, fairly often chosen as a defensive measure, since switching to it later is hard, so people enable it speculatively. Its cost is fairly low if you only enable it for the core development packages.
g-virus wrote:however we still have Steam client 32bit only for Linux.
If only there were some way to rebuild Steam with native amd64 support...
g-virus wrote:I don't use 32bit apps for a very long time as well as I've disabled 32bit binaries support in kernel.
You will need to enable IA32_EMULATION if you want to run a 32-bit application on Linux. This applies whether you want multilib or an x86 chroot.
g-virus wrote:Is that possible to have a fully isolated Steam installation on a no-multilib system with 32bit binaries support enabled only?
I expect so. I maintain an x86 chroot in order to build for a legacy IA32-native system. Such a chroot can run graphical programs, including 32-bit Wine games.
Top
spica
Guru
Guru
Posts: 382
Joined: Fri Jun 04, 2021 6:12 pm

Re: Isolated Steam installation in no-multilib system

  • Quote

Post by spica » Thu Apr 06, 2023 3:59 am

g-virus wrote:I'm thinking of either Docker
I run crossover as a docker container and I think this approach is also possible for steam.
Top
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

Re: Isolated Steam installation in no-multilib system

  • Quote

Post by g-virus » Thu Apr 06, 2023 1:25 pm

Hu wrote:Do you have a citation for this? Multilib is still commonly supported and, as far as I know, fairly often chosen as a defensive measure, since switching to it later is hard, so people enable it speculatively. Its cost is fairly low if you only enable it for the core development packages.
Yeah, it still definitely widely used, but I actually don't understand why. I use my Gentoo setup on my desktop as a development environment, but I have all the software required to live and even extra, and everything is 64bit. Steam is the only thing that is not 64bit and, in my opinion, the only software that requires us to have our systems multilib.
Hu wrote:If only there were some way to rebuild Steam with native amd64 support...
It's easy for them, they just don't care. They already did it for macOs, and everything works fine, I don't see any reason at all to not have both 32bit and 64bit support for Linux, because it isn't a problem to have less games on your 64bit only environment, if you have chosen it yourself.
Hu wrote:I expect so. I maintain an x86 chroot in order to build for a legacy IA32-native system. Such a chroot can run graphical programs, including 32-bit Wine games.
Good! It's really good for me to have just a directory with Steam only environment, I'm going to enable IA32 in kernel and attempt to install Steam like this. Thank you for advices! I will get back with results
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

  • Quote

Post by g-virus » Mon Apr 10, 2023 2:57 pm

Hi again!

I decided to try with chroot and I followed the Gentoo Wiki's guide to install Steam from overlay, however it can't reach X server, despite the xhost installed. What could I miss?
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Mon Apr 10, 2023 3:06 pm

g-virus wrote:Hi again!

I decided to try with chroot and I followed the Gentoo Wiki's guide to install Steam from overlay, however it can't reach X server, despite the xhost installed. What could I miss?
Is the "xhost" installed inside chroot or outside? What xhost command you used to give permission for remote access?

How is you chroot setup? do you have /tmp bind mount to chroot's /tmp?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Mon Apr 10, 2023 3:11 pm

Reasonable guide here -> https://www.funtoo.org/32_bit_chroot_en ... t_for_Wine
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

  • Quote

Post by g-virus » Mon Apr 10, 2023 3:15 pm

pingtoo wrote:
g-virus wrote:Hi again!

I decided to try with chroot and I followed the Gentoo Wiki's guide to install Steam from overlay, however it can't reach X server, despite the xhost installed. What could I miss?
Is the "xhost" installed inside chroot or outside? What xhost command you used to give permission for remote access?

How is you chroot setup? do you have /tmp bind mount to chroot's /tmp?
xhost is installed outside of chroot. I added a user for steam with the same UID as my user, so I expected it to work automatically. After a failure I entered command

Code: Select all

xhost +
, but it didn't help. The temp directory is bound to chroot's one
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

  • Quote

Post by g-virus » Mon Apr 10, 2023 3:21 pm

Anon-E-moose wrote:Reasonable guide here -> https://www.funtoo.org/32_bit_chroot_en ... t_for_Wine
Thanks a lot, buddy! Got it work now. It is only needed to set DISPLAY variable for steam user in my case
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Mon Apr 10, 2023 3:27 pm

OK, Let's try this.

chroot into your setup.

Code: Select all

ls -lad /tmp/.X11-unix
/tmp/.X11-unix is a directory your stream user should have permission to go into this directory. Inside there should have socket file X0. and your stream user need to have read/write permission to the X0 file.

Now try export DISPLAY=:0.0

after the export, try command xterm, you should see a new xterm show up.

If not try "xhost +local:" than back to chroot and try xterm again. If this still not working we need to know what is the error messages for failed xterm.
Top
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

  • Quote

Post by g-virus » Mon Apr 10, 2023 5:41 pm

pingtoo wrote: Now try export DISPLAY=:0.0
This is was the reason why I couldn't run, thank you. I marked the topic as solved, however I still have a problem

Code: Select all

glXChooseVisual failedsrc/steamUI/Main.cpp (425) : Assertion Failed: Error: glXChooseVisual failed
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Mon Apr 10, 2023 5:51 pm

g-virus wrote:

Code: Select all

glXChooseVisual failedsrc/steamUI/Main.cpp (425) : Assertion Failed: Error: glXChooseVisual failed
I am sorry, I am not able to help in this area. I know little about application program. Hopefully Someone else who have better experience in this area can help.

Suggest you open a new topic for this in case this one got ignored because it is marked solved.
Top
g-virus
Tux's lil' helper
Tux's lil' helper
Posts: 113
Joined: Sat Aug 26, 2017 8:14 pm

  • Quote

Post by g-virus » Mon Apr 10, 2023 5:53 pm

Thank you anyway! I think I know the problem, will post here if it will help
"A computer is like air conditioning: it becomes useless when you open windows" - Linus Torvalds.
Top
Post Reply
  • Print view

13 posts • Page 1 of 1

Return to “Gamers & Players”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic