Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How is steam normally ran?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 1:02 am    Post subject: How is steam normally ran? Reply with quote

Hello everyone, I wonder if my query is a bit too simple for this forum, but I have been following all the steps on the Gentoo Wiki in order to install steam, and have found myself a problem.
The steps say to gather installation files, which involves creating an executable steam file and then running it, which seems to install the application. However, whenever I close down the instance of steam that came up with the installer, I can't seem to find how to launch my installed steam. I tried running the same steam file, which made me reinstall it.
Is this how steam is normally ran?
Surely it must have actually installed somewhere - how do I run this installed version of steam?
Does it have a name that I can enter into the terminal?
Finally, is it safe to remove the files that were used for installation?
Thanks in advance for your help.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Mon Apr 06, 2015 6:36 am    Post subject: Reply with quote

Check out, where steam is installed (e.g. /bin, /usr/bin) and then execute ./steam.
Back to top
View user's profile Send private message
Linubie
Guru
Guru


Joined: 11 Jun 2004
Posts: 365

PostPosted: Mon Apr 06, 2015 9:43 am    Post subject: Reply with quote

Code:
whereis steam
steam: /usr/bin/steam /usr/lib64/steam /usr/share/man/man6/steam.6.bz2

_________________
Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 11:48 am    Post subject: Reply with quote

I've tried searching through those locations, but I haven't found anything steam-related. I tried running
Code:
whereis steam
but it just gave me
Code:
steam:
What does this mean?
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 2:05 pm    Post subject: Reply with quote

I think I've found where steam installs, which would be ~/.steam. I guess I forgot to use the -a option the first time I was searching. However, there are many versions of the steam executable, and even a steam.sh executable. None of these locations show with whereis steam. I should also note that whenever I try to run any, I always get "FatalError: Failed to load steamui.so".
The script steam installation script works when I'm running it as root, and manages to launch the program. I'll post it incase it offers any clues as to where my steam executable is:
Code:
#!/bin/sh

# these variables can be overridden on commandline
WORKDIR="$(pwd)"
DESKTOPFILE="$WORKDIR/steam.desktop"
LAUNCHSTEAMDIR=${XDG_DATA_HOME:-~/.local/share}/Steam
LAUNCHSTEAMPLATFORM=ubuntu12_32
LAUNCHSTEAMBIN=$LAUNCHSTEAMDIR/$LAUNCHSTEAMPLATFORM
LAUNCHSTEAMBOOTSTRAP=$LAUNCHSTEAMDIR/steam.sh
LAUNCHSTEAMBOOTSTRAPFILE="$WORKDIR/bootstraplinux_$LAUNCHSTEAMPLATFORM.tar.xz"
EXELINK=~/.steampath # full path of steam (~/Steam/ubuntu12_32/steam)
STEAMROOTLINK=~/.steam/root # used by games to find the steam install directory (~/Steam)

if ! [ -x "$LAUNCHSTEAMBOOTSTRAP" ]; then
   # user does not have steam set up yet, do some sanity checks and set it up
   echo "Setting up steam platform in $LAUNCHSTEAMDIR"
   mkdir -p "$LAUNCHSTEAMDIR"
   cd "$LAUNCHSTEAMDIR"
   tar -xvJf "$LAUNCHSTEAMBOOTSTRAPFILE" ||
      { echo "Failed to extract $LAUNCHSTEAMBOOTSTRAPFILE, aborting installation."
      exit 1 ;}

   # create the symlinks in the user's home directory
   [ -e ~/.steam ] || mkdir ~/.steam

   # copy steam bootstrap archive to STEAMROOT
   cp "${LAUNCHSTEAMBOOTSTRAPFILE}" "${LAUNCHSTEAMDIR}"/bootstrap.tar.xz

   rm -f ${EXELINK} && ln -s "${LAUNCHSTEAMBIN}"/steam ${EXELINK}
   rm -f ${STEAMROOTLINK} && ln -s "${LAUNCHSTEAMDIR}" ${STEAMROOTLINK}

   # put the Steam icon on the user's desktop
   # try to read ~/.config/user-dirs.dirs to get the current desktop directory
   # http://www.freedesktop.org/wiki/Software/xdg-user-dirs
   test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && . ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
   DESKTOP_DIR=${XDG_DESKTOP_DIR:-$HOME/Desktop}

   cp "${DESKTOPFILE}" "${DESKTOP_DIR}"
   chmod +x "${DESKTOP_DIR}/steam.desktop"
fi

# go to the install directory and run the client
LAUNCHSTEAMDIR=`readlink -e $STEAMROOTLINK`
cd $LAUNCHSTEAMDIR
exec "$LAUNCHSTEAMDIR/steam.sh" $*
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Apr 06, 2015 2:24 pm    Post subject: Reply with quote

I guess you chose the manual installation route? I recommend steam-overlay, it works very well here.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 2:41 pm    Post subject: Reply with quote

I didn't actually choose manual installation, even though it was somewhat hands-on. From the Gentoo Wiki, I first made a file listing all of steam's dependencies, then followed the steps for installation from the debian package - which involved taking out certain files from it, then running the script I posted above.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 3:29 pm    Post subject: Reply with quote

This whole situation is very confusing - there seems to be a copy of "~/.steam/root" in "~/.local/share/Steam", which the installation script seems to reference. However, I get a different error when I run the steam.sh script contained there:
Code:
tux Steam # ./steam.sh
./steam.sh: line 161: VERSION_ID: unbound variable
./steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  32-bit
./steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
[2015-04-06 16:21:38] Startup - updater built Mar 23 2015 20:05:07
Installing breakpad exception handler for appid(steam)/version(1427176184)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
Installing breakpad exception handler for appid(steam)/version(1427176184)
[2015-04-06 16:21:38] Checking for update on startup
[2015-04-06 16:21:38] Checking for available updates...
Installing breakpad exception handler for appid(steam)/version(1427176184)
[2015-04-06 16:21:39] Download skipped: /client/steam_client_ubuntu12 version 1427176184, installed version 1427176184
[2015-04-06 16:21:39] Nothing to do
[2015-04-06 16:21:39] Verifying installation...
[2015-04-06 16:21:39] Performing checksum verification of executable files
[2015-04-06 16:21:40] Verification complete
Error opening file for reading: Permission denied
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/steamUI/SteamIPC.cpp (55) : Assertion Failed: m_NamedPipe >= 0
Assert( Assertion Failed: m_NamedPipe >= 0 ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/steamUI/SteamIPC.cpp:55

Installing breakpad exception handler for appid(steam)/version(1427176184)
No minidump written, nothing to upload.
No protocol specified
No protocol specified
Unable to open displayNo protocol specified
No protocol specified
./steam.sh: line 765: STEAMSCRIPT_OUTOFDATE: unbound variable

I'm quite new to GNU/Linux in general, but is it even possible to get a permission denied error when using root?
I've also been looking at other, older forum posts, and some people have had success renaming the ubuntu12_32 and ubuntu12_64 to that of their own distro - does this seem like a viable fix? It doesn't really seem to make much sense to me, but apparently it has worked in the past for others.
I don't have much bash experience, but would someone be able to pin point the part of the installation script that launches the steam program? I was thinking that it might have to be edited to successfully launch steam without going through the installation phase again.
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Apr 06, 2015 3:36 pm    Post subject: Reply with quote

I don't think you're supposed to run it as root and that's very dangerous, especially in light of a recent Steam bug that could effectively delete all your files. Seriously, delete ~/.steam and ~/.local/share/Steam and start again using steam-overlay. This method is designed to work on Gentoo and is arguably less hacky.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 3:48 pm    Post subject: Reply with quote

Thanks for the help, I'll try overlay instead - I would've tried it as soon as you suggested it, but I wasn't actually sure how to get rid of the steam I just installed.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 5:31 pm    Post subject: Reply with quote

I hope its not to late to return to this thread, but I'm having trouble with the installation. I installed layman, but when the Gentoo Wiki told me to type "layman-updater -R", the terminal told me that it wasn't a command. I settled on just typing "layman-updater", which didn't prompt me with any errors. So I continued onto the steam-overlay page, and entered "layman -a steam-overlay", which didn't seem to work. I get the feeling that I'm supposed to have the package on my machine already, but I'm not sure how to do so. I'll post the error below:
Code:
tux / # layman-updater
tux / # layman -a steam-overlay

 * Adding overlay,...
 * Warning: an installed db file was not found at: ['/var/lib/layman/installed.xml']
 * Warning: an installed db file was not found at: ['/var/lib/layman/cache_ac494f50f5736be7871962c0dec7b3bb.xml']
 * Exception: Overlay "steam-overlay" does not exist.

 * CLI: Errors occurred processing action add
 * Exception: Overlay "steam-overlay" does not exist.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 7:06 pm    Post subject: Reply with quote

I think I solved my previous problem, but more seem to arise:
Code:
tux / # emerge --ask steam-meta
!!! Invalid PORTDIR_OVERLAY (not a dir): '...'

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! The ebuild selected to satisfy ">=x11-libs/gtk+-3:3" has unmet requirements.
- x11-libs/gtk+-3.14.9::gentoo USE="introspection -X (-aqua) -broadway -cloudprint -colord -cups -debug -examples -test -vim-syntax -wayland -xinerama"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( aqua wayland X )

  The above constraints are a subset of the following complete expression:
    any-of ( aqua wayland X ) xinerama? ( X )

(dependency required by "gnome-extra/zenity-3.14.0" [ebuild])
(dependency required by "games-util/steam-launcher-1.0.0.49-r4::steam-overlay" [ebuild])
(dependency required by "games-util/steam-meta-0-r20131107::steam-overlay" [ebuild])
(dependency required by "steam-meta" [argument])
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Apr 06, 2015 8:35 pm    Post subject: Reply with quote

It is generally useful to have X in your USE flags. This is telling you that you at least need to add it against x11-libs/gtk+. Because you passed --ask, it should have asked you if you wanted it to make this change for you? Admittedly I'm not overly familiar with that feature yet.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Mon Apr 06, 2015 8:58 pm    Post subject: Reply with quote

Thank you very much, it seems to be installing now. Hopefully the overlay works fine.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 12:09 pm    Post subject: Reply with quote

I launched the overlay by typing steam, and it worked the first time - I then closed the window to see if it would go through the initial setup phase like the last method of installation did. However, the program only opened a small loading screen which quickly shut, and I got this as an output:
Code:
fractured@tux / $ steam
/home/fractured/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
/home/fractured/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  32-bit
/home/fractured/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steamwebhelper)/version(20150323200504)
Installing breakpad exception handler for appid(steamwebhelper)/version(1427141104)
Installing breakpad exception handler for appid(steamwebhelper)/version(20150323200504)
Installing breakpad exception handler for appid(steamwebhelper)/version(1427176184)
Installing breakpad exception handler for appid(steamwebhelper)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
FillInMachineIDInfo took a total of 0 milliseconds
Installing breakpad exception handler for appid(steam)/version(1427176184)
Installing breakpad exception handler for appid(steam)/version(1427176184)
assert_20150407130619_1.dmp[5552]: Uploading dump (out-of-process)
/tmp/dumps/assert_20150407130619_1.dmp
/home/fractured/.local/share/Steam/steam.sh: line 757:  5516 Segmentation fault      $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
assert_20150407130619_1.dmp[5552]: Finished uploading minidump (out-of-process): success = yes
assert_20150407130619_1.dmp[5552]: response: CrashID=bp-30e0db91-26dd-4172-9de4-119e72150407
assert_20150407130619_1.dmp[5552]: file ''/tmp/dumps/assert_20150407130619_1.dmp'', upload yes: ''CrashID=bp-30e0db91-26dd-4172-9de4-119e72150407''

Does anyone know what's going on here?
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Tue Apr 07, 2015 12:23 pm    Post subject: Reply with quote

I have found that it's not unusual to see a whole load of scary-looking output, even segmentation faults, while running Steam. Sometimes it fails to launch the first time and I have to fire it up again. You seem to have left the steamruntime USE flag enabled. Although disabling it is not supported by upstream and the README says that only advanced users should disable it, I think doing so makes it work more reliably. You can give it a try at least.

This must seem like a pain but what you have to remember is that Steam is only officially supported on Ubuntu.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 1:25 pm    Post subject: Reply with quote

Will adding -steamruntime to the USE variable at /etc/portage/make.conf work, or do I have to use package.use?
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Tue Apr 07, 2015 1:39 pm    Post subject: Reply with quote

I just set it in make.conf.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 1:57 pm    Post subject: Reply with quote

It's still only showing the "Updating Steam, Verifying Installation" message box, then it closes. I tried adding -steamruntime, then tried steamruntime, and then just nothing - it gives the same result.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 2:07 pm    Post subject: Reply with quote

I also noticed that it always said "STEAM_RUNTIME is enabled automatically", even if I added -steamruntime.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 2:13 pm    Post subject: Reply with quote

I get the same result when disabling the runtime, just a slightly different error message:
Code:
fractured@tux ~ $ STEAM_RUNTIME=0 steam
/home/fractured/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
/home/fractured/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  32-bit
STEAM_RUNTIME is disabled by the user
/home/fractured/.local/share/Steam/steam.sh: line 712: LD_LIBRARY_PATH: unbound variable
fractured@tux ~ $
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Tue Apr 07, 2015 2:24 pm    Post subject: Reply with quote

Did you rebuild anything after adding -steamruntime? emerge -N steam-meta should do this if you haven't. Running out of ideas other than that, maybe try removing ~fractured/.local/share/Steam to give yourself a clean slate. I think the files were installed as root the first time I told you to delete it?
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 2:36 pm    Post subject: Reply with quote

I deleted all of the old files from the last install, but I didn't rebuild at all - I'll try that now.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Tue Apr 07, 2015 2:44 pm    Post subject: Reply with quote

The rebuild didn't work, but I removed the steam folder, ran emerge steam-meta as root, then ran steam as a user - and it told me it couldn't find steam content, and gave me the option of reinstalling. Now I can log into my account like the very first time I installed. Is there any way I should be closing steam? Last time I closed I used Mod+Shift+c, and after that the errors arose every time I tried to launch steam from then on.
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Tue Apr 07, 2015 2:53 pm    Post subject: Reply with quote

Mod+Shift+c? Using xmonad? I dunno, I just click Exit in the menu. :?
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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