LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2004, 01:35 PM   #1
humblestudent87
LQ Newbie
 
Registered: Jun 2004
Distribution: Fedora Core 2
Posts: 1

Rep: Reputation: 0
executables


hi i'm totally new to linux, and having trouble getting going. I'm currently using fedora core 2, and i have been able to do many things i normally did on windows, but when it comes to installing new programs i am lost. May seem stupid, but there you have it. I do a ./configure and make install, and my understanding is that in general, to use the given program i just need to run the executable... my only problem is figuring out what file is executable. I'd be very thankful for help, linux seems to be lacking nothing i want if only i could figure out how to run progs. Last thing i want is to be part of a demand for Windows, whether it be by pirating or buying it. I am confidant that this particular problem is simple, i just need to be pointed in the right diretion.

thanks
 
Old 07-21-2004, 01:41 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Well generally the executable name is simply the name of the program. For example, if you install XMMS it's a fair bet that the executable will be called xmms (binaries are nearly always exclusively lower case).

However, if you install something and you're just not sure of exactly what it's called but you have a vague idea you can always use the autocomplete feature of the shell to let it make suggestions. For example, let's say you're not quite sure what you need to type to run the xproperties program (it gives window info when you click on a window), so in the shell start typing xpr and then press tab twice... it will suggest all binaries on the system that it could be. Try it...

Alternatively, if you've tried just typing the name and nothing happens, it could be that you've installed it into the default location (/usr/local/bin) but that path isn't in your search path, in which case you can either type the full path to run it, or add that to the search path by adding:
Code:
export PATH=$PATH:/usr/local/bin
to your .bashrc file.

To see your current path type:
Code:
echo $PATH
 
Old 07-21-2004, 01:43 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Oh, should add that if you look in the src or source directory (whichever is present) for the program you've just compiled, an ls --color listing will show executables in green...that will give you an idea of the name of the file as it's installed on the system.

e.g. if you've unpacked the tarball containing the program source to: /home/joe/aterm-0.6 then look in /home/joe/aterm-0.6/src (or source) to see what the executable is.
 
Old 07-21-2004, 01:44 PM   #4
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
fedora is an rpm based distro...so you're best bet is to find the programs you wanna run in the "rpm" format...i.e. gaim.rpm.

http://www.rpmseek.com is a great place to start....most programs are available in an rpm format. once you download them, simply open a terminal, su to root and type rpm -i <packagename>.rpm and it'll install

*edit:

you should also check out http://www.icon.co.za/~psheer/book/index.html

it's an online book that will teach you tons about linux, and rpm...

Last edited by detpenguin; 07-21-2004 at 01:49 PM.
 
Old 07-21-2004, 01:55 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by detpenguin
fedora is an rpm based distro...so you're best bet is to find the programs you wanna run in the "rpm" format...i.e. gaim.rpm.

http://www.rpmseek.com is a great place to start....most programs are available in an rpm format. once you download them, simply open a terminal, su to root and type rpm -i <packagename>.rpm and it'll install

*edit:

you should also check out http://www.icon.co.za/~psheer/book/index.html

it's an online book that will teach you tons about linux, and rpm...
He's got the programs installed, just doesn't know the executable name...and in any case I couldn't disagree more - RPM is a horrible format whose soul purpose is to give a rash of dependency errors whilst putting newbies off linux for a while in frustration.

Stick to source, you'll have far fewer problems, trust me.
 
Old 07-21-2004, 02:24 PM   #6
jdruin
Member
 
Registered: Jul 2003
Location: Louisville aka Derby City
Distribution: WinXP SP2 and SP3, W2K Server, Ubuntu
Posts: 313

Rep: Reputation: 30
I would add that since you are using Fedora, the Apt-get program may be helpful. This is sort of equivalent to Windows Update but it is also capible of getting new software and installing it. There is numerous articles on apt-get but an introduction is at:

http://www.linux-mag.com/2003-10/apt_01.html

In addition to installing source RPM's for you, apt-get can also scan your system to see what updates you need and then install those updates for you.
This is LinuxMagazine article.
 
Old 07-22-2004, 11:42 AM   #7
FiLiY
LQ Newbie
 
Registered: Jul 2004
Location: Toronto, Canada
Distribution: Slackware
Posts: 8

Rep: Reputation: 0
In Slackware you can use whereis which tells you where the binary, source, and man page is for a specific program,
ex; blah@blah:/$ whereis ls
ls: /bin/ls /usr/bin/ls /usr/man/man1/ls.1.gz /usr/share/man/man1/ls.1.gz

Also in Slack you can use whatis which tells you what programs are which is helpful for starting off
ex; blah@blah:/$ whatis whereis
whereis (1) locate the binary, source, and manual page files for a command


I'm not sure if Fedora has these apps installed or not though....

Hope It Helps!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executables dudeman41465 Linux - Software 4 10-09-2005 07:59 PM
executables will not start MikeZila Linux - Newbie 4 07-02-2004 02:09 AM
Executables q64 Linux - Newbie 3 03-29-2004 03:31 AM
Help on executables.... Kit Linux - General 9 12-06-2002 11:24 AM
Where are the executables? rooman Linux - Software 6 06-05-2002 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration