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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-25-2009, 11:11 AM
|
#1
|
LQ Newbie
Registered: Jul 2009
Posts: 21
Rep:
|
Installation
Do I need to put the files in a specific folder before installing it from the terminal?It keeps telling me that the file is not in the directory
|
|
|
12-25-2009, 11:14 AM
|
#2
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
What are you trying to do? (e.g.: Installing what from the terminal?)
If you are installing software, there are often install scripts that must be run in the directory where other key files are.
Please also tell us what version of Linux you are using.
|
|
|
12-25-2009, 11:17 AM
|
#3
|
LQ Newbie
Registered: Jul 2009
Posts: 21
Original Poster
Rep:
|
i am using ubuntu 9.04!
And it happens every time i try to install a .bin file or a tar file
|
|
|
12-25-2009, 11:42 AM
|
#4
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,158
|
Quote:
It keeps telling me that the file is not in the directory
|
Is the file in the directory referred to? Are you in the directory the file refers to in the terminal? Are you doing this in a terminal? What is the "IT" you are referring to that is telling you things?
As requested above, specific information would be helpful. If it happens every time, you should be able to remember one program that failed in this manner.
|
|
|
12-25-2009, 11:55 AM
|
#5
|
LQ Newbie
Registered: Jul 2009
Posts: 21
Original Poster
Rep:
|
ok, i'm trying to install jre-6u17-linux-i586-rpm.bin and the file is on the desktop.
can you tell me what the commands that i should type to install it?
|
|
|
12-25-2009, 12:16 PM
|
#6
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
Your probably need to change to the desktop directory, e.g.:
then run the file to install it:
Code:
chmod +x jre-6u17-linux-i586-rpm.bin
./jre-6u17-linux-i586-rpm.bin
However, there are a couple problems. I don't think Ubuntu supports RPM well so you should have gotten the regular .bin and not the rpm.bin. Secondly, at least with Ubuntu 9.10. The JRE is in the repositories so you can just install it with apt-get/aptitude/synaptic which is the preferred method. I am not sure if this is the case with 9.04, but you may want to browse through Synaptic and see, and consider upgrading to 9.10 while you're at it.
|
|
|
12-25-2009, 12:16 PM
|
#7
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
First, isn't jre available using the package manager? (Always install SW using the package manager if possible.)
Second, if you get jre for Ubuntu, you don't want RPM (I don't remember all the options)
Finally, there are many kinds of installers, but there are some common principles:
1. If there is an extension like .tar, .gz, .bz2, etc. then you have to extract first.
2. A file ending in .bin is typically expected to be executed, but you often have to set the permissions first. Example--for your case:
3. Instructions are typically available where you got the file, or in something like a README file.
Going back to one of your original questions: Commands are sometimes run in directories that are not listed in the PATH variable. This means that the full path must be given. Suppose, for example, you have that file in /home/username/downloads. That directory would not normally be in PATH, so if you simply type the file name, the system does not know where to look. You can:
a. cd to the directory and enter " ./filename"
b. enter /home/username/downloads/filename
|
|
|
12-25-2009, 12:23 PM
|
#8
|
Member
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Rep:
|
Quote:
Originally Posted by AeonX
ok, i'm trying to install jre-6u17-linux-i586-rpm.bin and the file is on the desktop.
can you tell me what the commands that i should type to install it?
|
Open a terminal window and type the following if you want to install just the Java Runtime Environment:
Code:
sudo apt-get install sun-java6-jre
If you want to install the JDK as well then type the following:
Code:
sudo apt-get install sun-java6-jdk
You might also want to do this after installing Sun Java:
Running Java under Ubuntu
Hope this helps...
Last edited by anand.arumug; 12-25-2009 at 12:27 PM.
Reason: added a
|
|
|
12-25-2009, 01:40 PM
|
#9
|
LQ Newbie
Registered: Jul 2009
Posts: 21
Original Poster
Rep:
|
cd ~/Desktop "~" do i need to type this or "~" replace it with the file name?
my keyboard isn't doing these special characters
sorry for this stupid question
|
|
|
12-25-2009, 03:27 PM
|
#10
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
Tilda is the literal tilds character, which is shift+` (top left of the US English keyboard). Did you read the rest of my post and the other posts in this thread? There are better and easier ways of doing what you want to do than installingthat bin file.
|
|
|
12-25-2009, 04:59 PM
|
#11
|
Member
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Rep:
|
Quote:
Originally Posted by AeonX
cd ~/Desktop "~" do i need to type this or "~" replace it with the file name?
my keyboard isn't doing these special characters
sorry for this stupid question
|
The tilda character is a short notation for your home directory which is /home/<your-user-name>. Desktop is a subdirectory underneath that. Instead of typing the path of the home directory you can use the '~'. If you are not able to type ~ then simply type cd <press-enter> and that should take you to your home directory.
|
|
|
All times are GMT -5. The time now is 04:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|