Hard Light Productions Forums

General FreeSpace => FreeSpace Discussion => Topic started by: zonination on February 16, 2008, 08:15:06 pm

Title: Freespace on Linux?
Post by: zonination on February 16, 2008, 08:15:06 pm
I tried installing through the .jar installer (which said it had linux capabilities) by Turey, and, of course, the material downloaded to my fs2_open folder. This was a success. However, I've yet to have the "fs2_open" file run properly on Linux. Can anyone give some pointers, let me what I'm doing wrong, or at least tell me that FS2 Open doesn't have Linux support?

Currently running Ubuntu 7.10 (gutsy). I already have OpenAL downloaded.

Much thanks in advance.

[I had this game on my Windows partition (which got messed up recently) and it ruled. I'd just like to say: kudos to everyone who worked hard on this game to make it what it was.]
Title: Re: Freespace on Linux?
Post by: castor on February 17, 2008, 03:35:37 am
:welcome: zonination :)

So.. what happens when you try to run the file?
Title: Re: Freespace on Linux?
Post by: colecampbell666 on February 17, 2008, 03:22:40 pm
Make sure to run fs2_open_3_6_9.bin and not the retail .EXEs.
Title: Re: Freespace on Linux?
Post by: zonination on February 17, 2008, 11:35:39 pm
Make sure to run fs2_open_3_6_9.bin and not the retail .EXEs.

I've tried that, and when I try to execute the binary, it won't let me...
Code: [Select]
zonination@zonination-laptop:~/fs2_open$ ./fs2_open.bin
bash: ./fs2_open.bin: cannot execute binary file
I've tried looking around Google, and nothing helpful is coming up.


:welcome: zonination :)

So.. what happens when you try to run the file?

Well, to cite some examples with various files I've tried...
Code: [Select]
zonination@zonination-laptop:~/fs2_open$ sh fs2_open.bin
fs2_open.bin: 1: ELF: not found
fs2_open.bin: 1: 1�: not found
fs2_open.bin: 1: 8�: not found
fs2_open.bin: 1: 8��8���P��: not found
fs2_open.bin: 1: ������@@: not found
fs2_open.bin: 1: cannot open ���: No such file
fs2_open.bin: 1: }~���jnGu��¹�ñØ─X␤¦Š˜,: ┼⎺├ °⎺┤┼␍
°⎽2_⎺⎻␊┼.␉␋┼: 1: É�: ┼⎺├ °⎺┤┼␍
°⎽2_⎺⎻␊┼.␉␋┼: 2: S≤┼├▒│ ␊⎼⎼⎺⎼: ")" ┤┼␊│⎻␊␌├␊␍
≥⎺┼␋┼▒├␋⎺┼@≥⎺┼␋┼▒├␋⎺┼-┌▒⎻├⎺⎻:·/°⎽2_⎺⎻␊┼$

and...
Code: [Select]
zonination@zonination-laptop:~/fs2_open$ ./fs2_open
./fs2_open.bin: 1: ELF: not found
./fs2_open.bin: 1: 1�: not found
./fs2_open.bin: 1: 8�: not found
./fs2_open.bin: 1: 8��8���P��: not found
./fs2_open.bin: 1: ������@@: not found
./fs2_open.bin: 1: cannot open ���: No such file
./fs2_open.bin: 1: }~���jnGu��¹�ñØ─X␤¦Š˜,: ┼⎺├ °⎺┤┼␍
./°⎽2_⎺⎻␊┼.␉␋┼: 1: É�: ┼⎺├ °⎺┤┼␍
./°⎽2_⎺⎻␊┼.␉␋┼: 2: S≤┼├▒│ ␊⎼⎼⎺⎼: ")" ┤┼␊│⎻␊␌├␊␍
≥⎺┼␋┼▒├␋⎺┼@≥⎺┼␋┼▒├␋⎺┼-┌▒⎻├⎺⎻:·/°⎽2_⎺⎻␊┼$

...it always ends up messing with the terminal. And I can't execute it in the GUI either. Any advice?
Title: Re: Freespace on Linux?
Post by: Turey on February 17, 2008, 11:51:09 pm
try doing a sudo chmod +x ./fs2_open.bin first.
Title: Re: Freespace on Linux?
Post by: zonination on February 18, 2008, 12:00:03 am
try doing a sudo chmod +x ./fs2_open.bin first.

Did that... I got this as a result:

Code: [Select]
zonination@zonination-laptop:~/fs2_open$ sudo chmod +x fs2_open.bin
[sudo] password for zonination:
zonination@zonination-laptop:~/fs2_open$ ./fs2_open.bin
bash: ./fs2_open.bin: cannot execute binary file
zonination@zonination-laptop:~/fs2_open$ sh fs2_open.bin
fs2_open.bin: 1: ELF: not found
fs2_open.bin: 1: 1�: not found
fs2_open.bin: 1: 8�: not found
fs2_open.bin: 1: 8��8���P��: not found
fs2_open.bin: 1: ������@@: not found
fs2_open.bin: 1: cannot open ���: No such file
fs2_open.bin: 1: }~���jnGu��¹�ñØ─X␤¦Š˜,: ┼⎺├ °⎺┤┼␍
°⎽2_⎺⎻␊┼.␉␋┼: 1: É�: ┼⎺├ °⎺┤┼␍
°⎽2_⎺⎻␊┼.␉␋┼: 2: S≤┼├▒│ ␊⎼⎼⎺⎼: ")" ┤┼␊│⎻␊␌├␊␍
≥⎺┼␋┼▒├␋⎺┼@≥⎺┼␋┼▒├␋⎺┼-┌▒⎻├⎺⎻:·/°⎽2_⎺⎻␊┼$
Title: Re: Freespace on Linux?
Post by: castor on February 18, 2008, 11:00:16 am
What does it say, if you do:
file fs2_open.bin
Title: Re: Freespace on Linux?
Post by: zonination on February 18, 2008, 04:30:15 pm
What does it say, if you do:
file fs2_open.bin
here's what it gives me:
Code: [Select]
zonination@zonination-laptop:~/fs2_open$ file fs2_open.bin
fs2_open.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
Title: Re: Freespace on Linux?
Post by: colecampbell666 on February 18, 2008, 04:32:04 pm
Do you have a 64-bit processor?
Title: Re: Freespace on Linux?
Post by: zonination on February 18, 2008, 04:43:03 pm
Do you have a 64-bit processor?

I'm going to say no. I have an AMD Sempron mobile processor for a Dell Inspiron laptop, but I can't be sure of the "64-bit" thing.
Title: Re: Freespace on Linux?
Post by: colecampbell666 on February 18, 2008, 04:51:02 pm
You're trying to run the 64-bit FS2 BIN. Download the 32-bit BIN.

Download CPU-Z (Google it) to see about the 64-bit thing.
Title: Re: Freespace on Linux?
Post by: zonination on February 18, 2008, 04:53:56 pm
You're trying to run the 64-bit FS2 BIN. Download the 32-bit BIN.

Download CPU-Z (Google it) to see about the 64-bit thing.
AWESOME!
Thank you.

Now, where do I go about obtaining the 32-bit BIN?
Title: Re: Freespace on Linux?
Post by: colecampbell666 on February 18, 2008, 05:15:24 pm
The FSO Installer.

And I forgot, you need Wine or Windoze to run it.
Title: Re: Freespace on Linux?
Post by: Jeff Vader on February 18, 2008, 11:56:36 pm
The FSO Installer.

And I forgot, you need Wine or Windoze to run it.
Isn't the Java version cross-platform?
Title: Re: Freespace on Linux?
Post by: S-99 on February 19, 2008, 04:07:20 am
Yes it is cross platform. To get rid of onfusion turey should just get rid of the windows version of the java installer since it's just the same thing and does the same thing but is more integrated into windows which wont let you run the windows version of the java installer on a different platform. Other than that, the 20kb cross platform installer is the same on all machines and just requires java installed, which is easy to do in windows, linux, and osx. If you run linux, look for something in the repositories call sun-java-bin6 or whatever. Just start up a search in the repos for "sun" and you'll find sun java crap and install the latest version of java from there in linux (it's easier than installing java in windows). After java is installed, make sure to choose the program preference for jar files (that way jar files are being opened by java runtime as opposed to opening it up as a compressed archive in the linux archiving programs).
Title: Re: Freespace on Linux?
Post by: castor on February 19, 2008, 10:34:25 am
Yea, be sure to select the "32bit executable" when running the Turey's Installer.
Even if your  CPU is a 64bit one, your OS might be built for 32bit only.
Title: Re: Freespace on Linux?
Post by: colecampbell666 on February 19, 2008, 01:16:05 pm
The FSO Installer.

And I forgot, you need Wine or Windoze to run it.
Isn't the Java version cross-platform?
I meant CPU-Z.