Portal 2 > General Discussions > Topic Details
LtWorf Apr 2 @ 3:31am
Portal 2 linux fail (there is no linux executable)
So I've tried to run portal2 on linux and it doesn't start.

I've located a file portal2.sh that is supposed to start it and found a few problems with it:

it uses \r\n line terminators (like on windows) rather than \n (like on linux) so the script can't run for this reason.
Fixing this, the way it uses to determine the directory of the script is wrong. It should do this:

pushd `dirname $0` > /dev/null
GAMEROOT=`pwd`
popd > /dev/null

But this is not enough because the variable pointing at the executable file is only set on OsX but not on linux.

But also this is not enough because THERE IS NO LINUX EXECUTABLE THERE!!!!!!

From a beta version I'd expect at least the executable file to be present, you know... so that it can do at least something.
Showing 1-3 of 3 comments
< >
istvan_v Apr 2 @ 7:22am 
You need to opt into the beta. If you have a broken portal2.sh (MS-DOS line endings) and no executable, that means the beta is not enabled. To fix this, right click on Portal 2 in the library, open "Properties", then on the "Betas" tab opt into "beta - Beta" instead of "NONE".
Last edited by istvan_v; Apr 2 @ 7:27am
LtWorf Apr 2 @ 1:03pm 
Thanks. It's a bit counter-intuitive given that the item is already called Portal 2 (Beta)
cort7612 Apr 3 @ 7:25am 
ikr, i don't see the point of having Portal 2 (Beta) [Beta]
it seems redundant. But it doesn't break anything other than a visual thing, so personally for me I don't mind, especially since i get to play the game on Linux, YAY
Showing 1-3 of 3 comments
< >
Per page: 15 30 50
Date Posted: Apr 2 @ 3:31am
Posts: 3