Steam for Linux

Steam for Linux

Steam for Linux > Limited Beta > Topic Details
NekelLuna Dec 7, 2012 @ 9:35pm
Terminal commands for Steam
Commands like:

sudo steam install tf2
sudo steam play tf2
< >
Showing 1-10 of 10 comments
1Samildanach Dec 7, 2012 @ 9:55pm 
Why are you using sudo? If it works as a normal user, then you've discovered a feature, not a bug ;).

Software like Steam should never require root privileges to run, and it's actually more of a good thing if it won't let you run it as root.
NekelLuna Dec 8, 2012 @ 6:29am 
Well, There are no known documented command line operations. I was thinking that it should be a feature.
1Samildanach Dec 8, 2012 @ 11:09pm 
Sorry, I must have misread your post. My focus kinda zoomed straight to the use of "sudo" and I didn't pay sufficient attention. I thought you were saying you were trying to start Steam and it wasn't working.

However, my point still stands: you should never do anything with Steam as root (and using sudo means you are doing it as root), even in pseudo commands. The full list of reasons not to is extensive, but the summary is that it is Very Bad.
Radish Dec 8, 2012 @ 11:17pm 
for installation purposes i see no issue with using sudo. Playing them is definetely a different story. You should never have to use sudo to play games.
gibblets Dec 9, 2012 @ 12:07am 
steam://install/${STEAMAPPIDHERE} in any web browser works. You could also use the command "steam -applaunch ${STEAMAPPIDHERE}", though that will also launch the game once installed. Not sure if there's a way to just download the game through cli. Of course, every option will open up the Steam GUI, as it's mainly a GUI program.
1Samildanach Dec 9, 2012 @ 12:52am 
Originally posted by Radish:
for installation purposes i see no issue with using sudo. Playing them is definetely a different story. You should never have to use sudo to play games.
Except that needing root for installing Steam games does not work in a multi-user environment.
NekelLuna Dec 10, 2012 @ 10:38pm 
True, Steam is a GUI program, but I thought it would be cool, given that this is Linux it's running in, to be able to install and launch programs from the command line individually. It seems that in Linux, the best way to do everything is through the Terminal, so why not steam? You would still get the game overlay, just, you start from the terminal.

Silly thought, but cool if real.
1Samildanach Dec 10, 2012 @ 10:54pm 
I have no objection to launching/installing from the command line -it's a potentially neat idea- only to doing so as root, which would have severe security ramifications (among other things, such as creating a permissions mess).
NekelLuna Dec 10, 2012 @ 11:19pm 
How so? When installing aps, you need to use "sudo apt-get install <blah>", why would needing to do the same for steam be any different?
Edge Dec 10, 2012 @ 11:56pm 
There are command lines for steam.

World of Goo for example can be started with both $./ steam://rungameid/22000 and $./ -applaunch 22000
Opening your friends window without the main one $./ steam://open/friends
Opening your main window at the library $./ steam://nav/games

Steam for linux doesn't seem to exit cleanly when i do these.

Documentation would be good.

Something less cryptic than "22000" might also be good. On steam for wine i always just put these in a script.
< >
Showing 1-10 of 10 comments
Per page: 15 30 50

Steam for Linux > Limited Beta > Topic Details
Date Posted: Dec 7, 2012 @ 9:35pm
Posts: 10