#How can I run two instances of Steam?

118 messages · Page 1 of 1 (latest)

carmine copper
#

I am trying run my brother's account on my laptop since the game we bought doesn't allow family sharing. Just can't figure out how since he doesn't want to share his password. (As plain text, no problem with him signing in once) Tried creating another user and running su - user -c steam but it says can't connect to display, can not open connection to X etc. Any idea on how it could be done?

slim rivet
#

just # su ur_bros_username (as root) and you can login to their user without pass

#

then, start steam

#

"-" means inherit environment variables
might not be needed now

carmine copper
# slim rivet just `# su ur_bros_username` (as root) and you can login to their user without ...

Same result with this too. To be exact:

# su berker
Password: 
[berker@ALPER alper]$ steam

steam.sh[4529]: Running Steam on endeavouros rolling 64-bit
steam.sh[4529]: STEAM_RUNTIME is enabled automatically
setup.sh[4601]: Updating Steam runtime environment...
Authorization required, but no authorization protocol specified


(zenity:4609): Gtk-WARNING **: 16:24:26.905: cannot open display: :1
steam.sh[4529]: Can't find 'steam-runtime-check-requirements', continuing anyway
[2023-03-03 16:24:27] Startup - updater built Jun  7 2022 03:18:19
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
Installing breakpad exception handler for appid(steam)/version(0)
Authorization required, but no authorization protocol specified

src/steamexe/updateui_xwin.cpp (339) : Could not open connection to X
src/steamexe/updateui_xwin.cpp (339) : Could not open connection to X
Installing breakpad exception handler for appid(steam)/version(1.0)
assert_20230303162427_4.dmp[4654]: Uploading dump (out-of-process)
/tmp/dumps/assert_20230303162427_4.dmp
src/steamexe/main.cpp (1009) : failed to initialize update status ui, or create initial window
src/steamexe/main.cpp (1009) : failed to initialize update status ui, or create initial window
[berker@ALPER alper]$ Authorization required, but no authorization protocol specified


(zenity:4651): Gtk-WARNING **: 16:24:27.158: cannot open display: :1
assert_20230303162427_4.dmp[4654]: Finished uploading minidump (out-of-process): success = yes
assert_20230303162427_4.dmp[4654]: response: CrashID=bp-f597c2d9-55d6-4f75-8144-f1ddb2230303
assert_20230303162427_4.dmp[4654]: file ''/tmp/dumps/assert_20230303162427_4.dmp'', upload yes: ''CrashID=bp-f597c2d9-55d6-4f75-8144-f1ddb2230303''

slim rivet
#

wow mb
then how bout source ~/.bashrc or something for berker after login as berker

carmine copper
#

Why would sourcing bashrc help?

slim rivet
#

to incorporate berker environment variables
its not the most direct way to deal with it, but if you just do it...

carmine copper
#

Okay

slim rivet
#

the point is, you can be root, so you should be able to do what berker should be able to do

#

are you sure that berker can run steam without any problems?

carmine copper
#

I think you missed the point a little bit

#

I am the only one who uses this computer

slim rivet
#

oh

carmine copper
#

Just created another user (didn't even login with X11 or Wayland) to be able to switch between Steam accounts

#

Why I did that is to have another .config folder and Steam credentials stored in there to not being have to request him signing in every time

#

But looks like Steam just doesn't run if the user is not running with a graphic interface.

slim rivet
#

oh, thank you
i was so wrong
sorry

carmine copper
#

Np

#

Still, thx for the help. Any other ideas?

slim rivet
#

then i guess the problem is that the newly created user is not set up for x11(or wayland)
i think right now it's still a problem before steam authentication

carmine copper
#

Okay let me sign in and out

slim rivet
#

am outside right now and it's a bit inconvenient, so ill be back later

carmine copper
#

Okay.
Edit: Nothing changed. Same errors.

slim rivet
#

back
what happens if you copy the your(not berker) ~/.Xauthority & ~/.Xresources file to ~/ of berker?

#

or, if you did something in your settings regarding X that only applies to that (non-root)user until you can get steam to work with your original user, you might want to try doing the same thing with berker

tiny geyser
#

maybe you can run it in 2 docker containers? (just bouncing ideas because this thread looked interesting)

carmine copper
carmine copper
carmine copper
slim rivet
carmine copper
#

Oh my bad, it needed super user permissions. When I type one of these commands, Konsole and Yakuake just crashes.

slim rivet
#

how did you add berker?
did you remember command used to create user?

carmine copper
#
berker:x:1001:1003:berker:/home/berker:/bin/bash
#

I have used System Settings for that.

#

May create with useradd too if that makes any difference.

slim rivet
#

does /home/berker exist?

carmine copper
#

Yep

slim rivet
#

which permission

carmine copper
#
drwx------ 1 berker berker 316 Mar  5 21:53 berker/
slim rivet
#

seems okay

carmine copper
#

I have an alternative idea.

#

How would it be if I just changed my .config/steam to .config/steam.bak

#

Then make my brother login which I guess will create another config

#

Then just rename folders depending on which account I want to login. Would that make any sense?

slim rivet
#

that nice
if not work, you can just restore from backup

carmine copper
#

Okay give me a minute to try out then

slim rivet
#

LFG

carmine copper
#

Looks like there is no .config/steam lol

#

It has it's own .steam directly at ~

slim rivet
#

lol

#

wait which os r u usin

carmine copper
#

Endeavour

slim rivet
#

GUI default, right?
am on arch and dk about it

carmine copper
#

Just KDE

#

If you meant that?

slim rivet
#

i mean, u start GUI after starting pc, u need to do some command to start-up GUI

#

or, by default, GUI start

carmine copper
#

Yeah it auto starts with GUI

slim rivet
#

then how bout login to berker from the GUI login

carmine copper
#

What shall I do next?

slim rivet
#

re-start pc, then, when loging-GUI started, login to berker there

#

and try to start steam

carmine copper
#

Do you mean I should just use Steam at user berker?

#

Or just to give it a try? (To create files etc.)

slim rivet
#

yea, after login to berker
i mean, login to berker using GUI

#

KDE has login-GUI, right?
and you can choose which user to login, right?

carmine copper
#

Yeah.

slim rivet
#

that

carmine copper
#

Okay switching.

slim rivet
#

yep

carmine copper
#

Did it, writing from my phone rn

slim rivet
#

just start steam

carmine copper
#

Yep it's creating .steam files and updating steam

slim rivet
#

u mean, steam now starting?

carmine copper
#

Yes

slim rivet
#

that nice

carmine copper
#

It started

#

Asking user pass

#

Shall I get my bro to login?

slim rivet
carmine copper
#

Okay he is signing in rn

slim rivet
#

GG

carmine copper
#

Now am I supposed to just change users when I want to play that game?

slim rivet
#

yeah

carmine copper
#

Makes sense but wouldn't there be a way to just achieve this without changing users?

#

I have lots of things setup on my user. It wouldn't really be nice to copy those to this user.

slim rivet
#

okay

#

so the problem was twofold

  1. start steam as another user (on os)
  2. logging into steam as another user (on steam)
    for 1. you got over it by switching users on the GUI
    for 2. you got over it by having your brother log in
    now you want to make method 1. a bit more convenient
#

then,

#

i guess that's not a steam-specific problem
i mean, more succinctly, "you want to run GUI apps as another user on endevour os"

carmine copper
slim rivet
#

ye

#

try as "su" method, as u first posted
u will get same error

carmine copper
#
su berker -c brave
Password: 
Authorization required, but no authorization protocol specified

[31625:31625:0305/222612.997009:ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY
[31625:31625:0305/222612.997049:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.
 ✘  ~  su berker -c firefox
Password: 
Authorization required, but no authorization protocol specified

Error: cannot open display: :1
#

Yeah same

slim rivet
#

thats nice

carmine copper
#

So the problem is since user berker doesn't have any communication with display APIs, it can't render any GUI elements I understood, right? I think it wouldn't be really efficient to try to solve this problem.

slim rivet
#

So the problem is since user berker doesn't have any communication with display APIs, it can't render any GUI elements I understood, right?
yeah
I think it wouldn't be really efficient to try to solve this problem.
u should realize that u r very close to the answer
i mean, now u know why steam didnt start

#

try xhost + as your user(not berker)

carmine copper
#
xhost +
access control disabled, clients can connect from any host
slim rivet
#

nice

carmine copper
#

Wow

#

It just worked lol

slim rivet
#

ye

carmine copper
#

I thought we would need to configure lots of env variables. Lol

slim rivet
#

nah
ill explain

#

i mean,

#

the following you say is roughly correct, that you could not run a GUI app as a berker
To put it bluntly, X is in charge of the GUI

So the problem is since user berker doesn't have any communication with display APIs, it can't render any GUI elements I understood, right?
this X is running as a set of server and client
the app accesses the display
if there is only a single user, the server and client are run by that same user
the reason you couldn't run steam as a berker is because "steam, running as a berker," couldn't access "your display"
with the xhost command, your display is now accessible to everyone
so, now the berker has access to your display
so the problem is solved

#

GG

carmine copper
#

Thanks for the explanation really helped a lot

#

Thanks for taking your time too

slim rivet
#

np, have a nice game-life

carmine copper
#

Thanks :)

#

Have a nice day!