The online racing simulator
Linux. help with commands.
(4 posts, started )
#1 - CSU1
Linux. help with commands.
First off, im very new to it and imo linux is pretty cool, I like it's repository's, it's 'immunity' to malicious scripts and viruses and so on, it's just so sterile compared to MS.

Im posting on a racing forum yes I know it seems odd but I know for a fact there's a lot of intelligent folk around here, and tbh linux forums seem very 'cloak & dagger' compared to the(imo)vast knowledgebase of MS, or maybe I just won't get answers to MS related questions on Linux boards. example

Im having trouble understanding commands, their abbreviations and just about everything to do with command line based input. Any help on what books or tutorials I could get would be greatly appreciated.

ATM i'm trying to integrate the .amr codecs into ffmpeg, I follow this guide below and get stuck on line three. it sayes 'libfaac-dev not found' so, i apt-get install libfaac-dev and it runs through and installs, but still the result is 'libfaac-dev not found' when I try to run line three???

What are conflags? and what does it mean by Add the following lines to debian/rules, under the other confflags lines:

confflags += --enable-mp3lame --enable-faad
confflags += --enable-faac --enable-xvid
???





sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev \
libfaac-dev libxvidcore4-dev checkinstall fakeroot
apt-get source ffmpeg
cd ffmpeg-0.cvs*
vi debian/rules

Add the following lines to debian/rules, under the other confflags lines:

confflags += --enable-mp3lame --enable-faad
confflags += --enable-faac --enable-xvid

Continuing in the terminal:

fakeroot debian/rules binary
sudo checkinstall

The "third" line is actually the continuation of the second one as denoted by the "\".

By confflags it means configuration flags - they're handy when compiling stuff, they tell the compiler what capabilities are to be integrated in the item being compiled - in your case ffmpeg.
Yep, xaotik is right. you basically need to install all those packages :

liblame-dev
libfaad2-dev
libfaac-dev
libxvidcore4-dev
checkinstall
fakeroot


you can do it all with one apt-get command.. all in one line.. Line 2 and 3 are one line..
Good luck
#4 - samjh
As others have said, the third line is actually a part of the second line.

It should read like this:
sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev checkinstall fakeroot
apt-get source ffmpeg
cd ffmpeg-0.cvs*
vi debian/rules

Add the following lines to debian/rules, under the other confflags lines:

confflags += --enable-mp3lame --enable-faad
confflags += --enable-faac --enable-xvid

Continuing in the terminal:

fakeroot debian/rules binary
sudo checkinstall

Another possible snag is the "vi". Vi is actually a text-editing program. However, if you're new to Linux/Unix I'd strongly recommend something easier to use than vi. The learning curve for vi is VERY steep.

If you are using the Gnome desktop environment, then just after the "cd ffmpeg-0.cvs*" part, replace the vi debian/rules with gedit debian/rules. Gedit is the standard text editor for Gnome. If you are using KDE, try kate debian/rules (Kate is the editor for KDE).

Add these options under all the other lines starting with confflags:
confflags += --enable-mp3lame --enable-faad
confflags += --enable-faac --enable-xvid

Then save the file, close the text editor, which will drop you back into the terminal. Continue with these commands, per instructions:
fakeroot debian/rules binary
sudo checkinstall

Good luck.




By the way, I just read your thread at UbuntuForums.org and the posters there are right. There is no need for a command like sfc on Linux. Remember than on Linux you're generally running as a user with restricted privileges and your applications will normally not be able to overwrite system files unless you allow them to. The "sudo" command is one such way of allowing an application access to read/write system files, which is why you shouldn't run anything as "sudo" unless you absolutely must (eg. Synaptic and other system software need to be run under "sudo"). On Windows, any program can overwrite system files, hence the need for sfc.


For more help on how to admin your Linux system, take a look at the Ubuntu community documentation: https://help.ubuntu.com/community/ and also the Debian documentation: http://www.debian.org/doc/ (Ubuntu is built upon Debian, almost everything in Debian applies to Ubuntu too).

Linux. help with commands.
(4 posts, started )
FGED GREDG RDFGDR GSFDG