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?
#How can I run two instances of Steam?
118 messages · Page 1 of 1 (latest)
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
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''
wow mb
then how bout source ~/.bashrc or something for berker after login as berker
Why would sourcing bashrc help?
to incorporate berker environment variables
its not the most direct way to deal with it, but if you just do it...
Okay
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?
I think you missed the point a little bit
I am the only one who uses this computer
oh
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.
oh, thank you
i was so wrong
sorry
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
Okay let me sign in and out
am outside right now and it's a bit inconvenient, so ill be back later
Okay.
Edit: Nothing changed. Same errors.
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
maybe you can run it in 2 docker containers? (just bouncing ideas because this thread looked interesting)
Really sorry for the late response, forgot to turn on notifications for the thread. Now trying this.
Same.
I haven't done anything special with X settings. It's as it is.
Yeah this may be a solution but wouldn't that be really not logical since it won't be really performent?
how bout not using su and using login to login to the berker and start steam
maybe after deletion of above .X authority and .Xresource
login berker or login doesn't do anything.
Oh my bad, it needed super user permissions. When I type one of these commands, Konsole and Yakuake just crashes.
theres something wrong
show me cat /etc/passwd | prep berker
you can snip hash val
how did you add berker?
did you remember command used to create user?
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.
does /home/berker exist?
Yep
which permission
drwx------ 1 berker berker 316 Mar 5 21:53 berker/
seems okay
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?
that nice
if not work, you can just restore from backup
Okay give me a minute to try out then
LFG
Endeavour
GUI default, right?
am on arch and dk about it
i mean, u start GUI after starting pc, u need to do some command to start-up GUI
or, by default, GUI start
Yeah it auto starts with GUI
then how bout login to berker from the GUI login
What shall I do next?
re-start pc, then, when loging-GUI started, login to berker there
and try to start steam
Do you mean I should just use Steam at user berker?
Or just to give it a try? (To create files etc.)
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?
Yeah.
that
Okay switching.
yep
Did it, writing from my phone rn
just start steam
Yep it's creating .steam files and updating steam
u mean, steam now starting?
Yes
that nice
yeah, if ur bro says "yes" (this is better senario)
if not, next, u need to copy some authority-related steam file
Okay he is signing in rn
GG
Now am I supposed to just change users when I want to play that game?
yeah
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.
okay
so the problem was twofold
- start steam as another user (on os)
- 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"
I actually didn't try running another GUI apps. Let's try that to see what happens
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
thats nice
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.
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)
xhost +
access control disabled, clients can connect from any host
nice
ye
I thought we would need to configure lots of env variables. Lol
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 thexhostcommand, your display is now accessible to everyone
so, now the berker has access to your display
so the problem is solved
GG
np, have a nice game-life