LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .bin file in terminal (https://www.linuxquestions.org/questions/linux-newbie-8/bin-file-in-terminal-400151/)

secret_force 01-06-2006 03:32 AM

.bin file in terminal
 
I have this file jre-1_5_0_06-linux-i586.bin. I need to install this file somehow. The instructions say that I have to do something like
chmod a+x jre-1_5_0_06-linux-i586.bin but it does not work is says, can't find the file

here is what i already did
- I opened the termanial and logged in as root user
- than I typed cd /home /ernst (this is the map where java has to be installed)
- and than I got stuck at chmod a+x jre-1_5_0_06-linux-i586.bin

this is what the terminal says
ernst@ubuntu:~$ su
Password:
root@ubuntu:/home/ernst# cd /usr /java
root@ubuntu:/usr# chmod a+x jre-1_5_0_06-linux-i586.bin
chmod: cannot access `jre-1_5_0_06-linux-i586.bin': Onbekend bestand of map
root@ubuntu:/usr#

jayakrishnan 01-06-2006 03:44 AM

"Onbekend bestand of map" == "No such file or directory"

fancypiper 01-06-2006 03:56 AM

Where is the file jre-1_5_0_06-linux-i586.bin located? Apparently it isn't in /usr, which is your working directory that you are attempting to chmod in. If it is in /usr/java, remove the space in the cd command to read cd /usr/java and use your commands.

If it isn't in /usr/java, then when you know the path to the file, your commands above or do this:

Open an x terminal and command:

su -
(give root password, the - will give full root power and paths)
chmod 755 /path/to/jre-1_5_0_06-linux-i586.bin (makes it executable so that you can run it)
/path/to/jre-1_5_0_06-linux-i586.bin (runs the binary install file, accept the license agreement and it will then install)

I have Linux installed, now how do I do stuff like installing more software?
# I can't figure out what software I want and how to install/uninstall it
The table of equivalents, replacements, analogs of Windows software in Linux
# Find software here
Freshmeat
Sourceforge
rpmfind
# Guides to software management
LNAG: 4.5 Package installation and rpm package manager
Rute Guide's software explanation

Wim Sturkenboom 01-06-2006 04:04 AM

Looks to me that you are not in the correct directory when you do the chmod.
Where is the file located? In a subdir of your home directory or in subdir of /usr?
You do cd /usr /java From the prompt that I see after that, you only ended up in /usr. This is because you have a space between /usr and /java.

secret_force 01-06-2006 07:43 AM

the file is located in home/ernst
but on this site
http://www.java.com/en/download/help...selfextracting
it said (step 3) that i had to fill in the place where i want to install it
so I want to install the software on the cd /usr/java
but the .bin file is located in the home/ernst directory:confused:
Is it possible that i install the software without the terminal
if not, can someone please make clear the steps that I need to take, cause I'm getting a bit confused

fancypiper 01-06-2006 08:35 AM

1. Open an x terminal
2. give command su -
3. give root password
4. command:
chmod 755 /home/ernst/jre-1_5_0_06-linux-i586.bin
5. command:
mv /home/ernst/jre-1_5_0_06-linux-i586.bin /usr/java (if the directory doesn't exist, do mkdir /usr/java first
6. command:
/usr/java/jre-1_5_0_06-linux-i586.bin
7. Read and agree to the license agreement
8. Program should now install and you can close the x terminal.

secret_force 01-06-2006 08:49 AM

it worked
many thanks


All times are GMT -5. The time now is 06:13 PM.