Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Nuke on January 18, 2006, 03:54:10 pm

Title: what flavor of linux is best to run the scp on?
Post by: Nuke on January 18, 2006, 03:54:10 pm
i managed to resotre my old machine from the scapheap it once was.  but i really dont need a second windows box, and there are a few linux apps id like to be able to run. i still want to be able to run the scp on it though. kaz reccomended fedora but i wanted to get more opinions on the matter first. what linux is the best for the scp? also i seem to lack any means of installing it at the moment, im out of blank cds and it doesnt have a nic. all i have is my cheapy little 512 meg mp3 player to transfer files (il proibly have to do put it into a spanned archive format and make multiple trips). is it possible to install linux from a virtually mounted iso file?
Title: Re: what flavor of linux is best to run the scp on
Post by: Goober5000 on January 18, 2006, 04:07:29 pm
LFS FTW!!!!11
Title: Re: what flavor of linux is best to run the scp on?
Post by: WMCoolmon on January 18, 2006, 04:32:42 pm
Ubuntu/kubuntu should be able to run it without needing anything overly bizarre.
Title: Re: what flavor of linux is best to run the scp on?
Post by: Mr_Maniac on January 18, 2006, 06:50:57 pm
I think any Linux-Distro with OpenAL, OGG Vorbis, OpenGL, SDL and GCC (did I forget something?) should do it...
I use Gentoo and it runs fine there...
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 19, 2006, 12:14:30 pm
could anyne recomend a particular linux, something that isnt too big, less than 500 megs and can run the scp. ive been spending all day looking at linux distros and im stumped by the fact that theres so many of them out there.
Title: Re: what flavor of linux is best to run the scp on?
Post by: taylor on January 19, 2006, 04:00:53 pm
Try to stick with either Fedora, Ubuntu, or Gentoo if at all possible.  Ignore the rest unless you are already pretty familiar with Linux or Unix in general.  And forget 500 megs, it will probably take that just for the build environment, then you still need X and some sort of desktop.  You'll really need to have a least 3gig for everything (all programs, a swap partition, home directory space, and a build location for fs2_open), assuming that you are going to use another partition for actually storing the game files.  The partition that the game is on doesn't have to be writeable, only readable, so that gives you some options for layout.
Title: Re: what flavor of linux is best to run the scp on?
Post by: WMCoolmon on January 19, 2006, 04:19:28 pm
Ahh, in that case...don't use Gentoo. Just, don't. Installation can literally take 24 hours, and when I tried it, there were errors in the installation instructions that were a PITA to figure out how to fix. Use anoyther Linux distro before Gentoo.

As far as small goes, most Linux installations are bigger than 500 MB, but include movie players, office programs, etc.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 19, 2006, 05:02:58 pm
yea i just picked up a few more blank cds. i figured it would be rather large. i think il just stick with fedora for now. thanks for everyone's suggestions.

do i need all 4 fedora cds or just the first one? i remember when i installed mandrake linux a long time ago it said i needed all the cds but it really only asked for the first one. i dont want to really download anything i dont need, seeing as i do have a monthly download cap.
Title: Re: what flavor of linux is best to run the scp on
Post by: taylor on January 19, 2006, 06:37:11 pm
do i need all 4 fedora cds or just the first one?
It depends on what you install.  I think you'll use at least the first two, but in can pick some packages off of any CD and I'm not sure how the layout is setup in current releases to say which CD you'll need to install what.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 19, 2006, 07:10:07 pm
the installer said i only need the first 2, i guess the others are just for server installations.
Title: Re: what flavor of linux is best to run the scp on?
Post by: WMCoolmon on January 19, 2006, 10:05:58 pm
There are cutscenes on all 3.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 20, 2006, 01:51:35 am
i ended up downloaing all 4 cds. even though i only used 2 of them. also had to get me a network card for the machine because not having internet makes installing stuff damn near impossible. im installing it for the second time now. the first time i couldnt get into my former d drive, this time im formatting it all together. im still gonna need to transfer files from my windows machine to my linux machine via a crossover cable. that should be pretty tricky, cause ive disabled so many serveces in windows that the networking wizzards refuse to work, and the fact that i dont know jack about linux networking. they musta did that the night i skipped class to go to a bar :D im rather impressed with the speed increase over xp. i also like the way the linux people name things.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 20, 2006, 04:51:09 am
now im trying to figure out how to install the nvidia drivers for the geforce 4. the driver instructions tell me to close the x server, now if i do that it wont give me a terminal window to run the command. this is quite annoying. how do iboot to a terminal without loading the x server. by now youre all thinking that hes too stupid to be using linux and youre probibly right. but im sure that with youre guys' help i can wing it.
Title: Re: what flavor of linux is best to run the scp on?
Post by: taylor on January 20, 2006, 09:56:51 am
The NVIDIA drivers are actually a pain to install so I don't think anyone can say anything negative about you having trouble with those.

Here is what I do:
1) hit Alt-F1 to switch to the main console
2) log in as the root user
3) type "telinit 3" and press enter then wait a little bit (X will get shut down and you'll see some things happen) before pressing enter again, run the NVIDIA installer and do what it says (it may want to configure X for you, if you haven't done so already then just say ok)
4) back at the prompt type "telinit 5 && exit" which should start X back up

There is another option though and it may be easier for you to manage in the long run, use the livna yum repository and have the packages installed there.  I am assuming you are using Fedora Core 4 since 5 isn't anything but beta right now.  Just go to http://rpm.livna.org/configuration.html and use the FC4 installation instructions for yum (very simple, you shouldn't have a problem).  Then as root do "yum update" to bring your system to current (this might download a lot so be aware), and then do "yum install kernel-module-nvidia-2.6.14-1.1656_FC4 nvidia-glx nvidia-glx-devel" and the driver should be installed for you.  After you have it installed you should just be able to do "yum update" in the future and it will keep it all up to date for you.  I don't really use this method (habit, just never have) but it's no doubt easier than what I normally do, however I can't really give first hand experience on how well this method works between updates.
Title: Re: what flavor of linux is best to run the scp on?
Post by: Nuke on January 20, 2006, 03:35:27 pm
the installer says it needs to have gcc installed to compile the drivers, wich i intalled off of cd3. even then it refused to work, so now im trying the second solution you gave. hopefully it will work.

yep, i think that got it, thanks for your help.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 20, 2006, 04:56:33 pm
ok, next problem, when i go to install fsopen and type ./configure, as the instructions in the xplat forum say, it starts doing stuff but then it sais it cant find a compiler. ive already installed gcc but it cant seem to find it. essentially i get this.

[root@001217570254 fs2_open-3.6.7]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@001217570254 fs2_open-3.6.7]#

Title: Re: what flavor of linux is best to run the scp on?
Post by: taylor on January 20, 2006, 06:04:07 pm
You've got both the gcc and gcc-g++ packages installed?  ("rpm -q -a | grep gcc | sort")
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 20, 2006, 09:58:36 pm
yup, i downloded both of those and used that command but it still refuses to see that its there. is the directory i run the command from mater?
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 22, 2006, 02:12:57 pm
i think i made somre progress, i finqally got the config command to ***** about missing opengl and sdl libs. so where do i get those libs from?

i think i solved that problem. anywqay i went to run the make command and it started doing stuff but gave me error 127 and immedeatly crashed.
Title: Re: what flavor of linux is best to run the scp on?
Post by: taylor on January 22, 2006, 02:56:50 pm
Make sure to run ./autogen.sh again.  If that doesn't help then post the exact error message you got.
Title: Re: what flavor of linux is best to run the scp on?
Post by: CaptJosh on January 22, 2006, 10:27:18 pm
Also, whatever you do, do not try to use the SCP on SuSE 10. It uses new and buggy versions of glibc and the gcc. Even though it might look like it compiles correctly, it won't run. At least, I've not been able to get it to work. SuSE 10 does not seem to be ready for primetime.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 23, 2006, 12:48:38 pm
im using fedora core 4. anyway il poste the whole of the error later when i get on my linux box. i still havent figured out how to do network connection sharing in a multi platform environment, that and i cant afford a network switch. id rather use a hub, cause im paranoid about higher level devices, but i cant find one in this town.

also im getting alot of conflicting instructions about how to compile fs2. not sure which ones to go by.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 24, 2006, 07:31:29 pm
i was able to successfully compile d2x, so at least i know im not a total moron :D
but onto frespace open.

heres the terminal output for ./configure
Code: [Select]
[root@001217570254 fs2_open-3.6.7]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
Using Unix defines (for linux-gnu)
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for socklen_t... yes
checking for std::ios_base... no
checking for glBindBufferARB in -lGL... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.6... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libjpeg/Makefile
config.status: creating code/Makefile
config.status: executing depfiles commands


Configure options:


Networking enabled ..... : yes
Sound enabled .......... : yes
Text-to-speech enabled . : no

Debug build ............ : no
DEMO build ............. : no
SCP Lite ............... : no
Inferno build .......... : no
GProf support .......... : no

[root@001217570254 fs2_open-3.6.7]#

and heres my make output
Code: [Select]
[root@001217570254 fs2_open-3.6.7]# make
Making all in libjpeg
make[1]: Entering directory `/root/Desktop/fs2_open-3.6.7/libjpeg'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/Desktop/fs2_open-3.6.7/libjpeg'
Making all in code
make[1]: Entering directory `/root/Desktop/fs2_open-3.6.7/code'
source='ai/ai.cpp' object='ai.o' libtool=no \
DEPDIR=.deps depmode=none /bin/sh ../depcomp \
g++ -DPACKAGE_NAME=\"fs2_open\" -DPACKAGE_TARNAME=\"fs2_open\" -DPACKAGE_VERSION=\"3.6.7\" -DPACKAGE_STRING=\"fs2_open\ 3.6.7\" -DPACKAGE_BUGREPORT=\"\" -DNO_CD_CHECK=1 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -Dios_base=ios -DHAVE_LIBGL=1 -DSCP_UNIX=1 -DNO_DIRECT3D=1 -DUSE_OPENAL=1  -I. -I.    -g -O2 -Wall -I/usr/include/SDL -D_REENTRANT -fsigned-char -Wno-unknown-pragmas  -Wno-deprecated -Wno-char-subscripts  -c -o ai.o `test -f 'ai/ai.cpp' || echo './'`ai/ai.cpp
../depcomp: line 414: exec: g++: not found
make[1]: *** [ai.o] Error 127
make[1]: Leaving directory `/root/Desktop/fs2_open-3.6.7/code'
make: *** [all-recursive] Error 1
[root@001217570254 fs2_open-3.6.7]#

Title: Re: what flavor of linux is best to run the scp on?
Post by: taylor on January 24, 2006, 09:09:58 pm
It just looks like you are missing the gcc-g++ package.  D2X doesn't need it since it's just C and not C++ so that's probably why it worked.  Just do "su root -c yum install gcc-g++" and then you should be ok, at least as far as the compiler is concerned.
Title: Re: what flavor of linux is best to run the scp on
Post by: Nuke on January 24, 2006, 10:39:43 pm
well that worked, but i get another error. i think it has something to do with open al. i thought i installed tyhe open al packages already. but im gonna doublecheck that and download the packages again.
that  and vorbis
i think i got a compile. i guess the next step is to figure out cvs and seeing if i cant make any usefull code contributions :D
anyway thanks for all your help.