Linux - NewbieThis 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.
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.
Hi:
I am using Fedora with Gnome and I downloaded the JDK from Sun into my home directory. When I bring up nautilius I see the file in my home directory, but when I click on it I get a window stating:
Quote:
Cannot open jdk-1_5_0-nb-4_0-beta2-bin-linux.bin
The filename "jdk-1_5_0-nb-4_0-beta2-bin-linux.bin" indicates that this file is of type "unknown".
To open the file, rename the file to the correct extension for "executable", then open the file normally.
When I look at the properties of the file, the "Type" is executable and the "MIME Type" is application/x-executable. The permissions are read/write/execute for owner/group/others (777).
When I execute it in a concole, the InstallShield Wizard starts, then states "The installer is unable to run in graphical mode."
How do I simply double-click on this file so it can run in graphical mode and have it install itself?
nope, my home directory is executable. I think the problem is that Gnome doesn't know what to do with the file (i.e. the file isn't associated with an application). All I want Gnome to do is to exectue the file directly.
You've got to set the permissions on the downloaded file as well. My home directory is executable as well but I always have to set the permissions for new files that I downloaded. Just try it and if it doesn't work come back, don't post that it doesn't work if you haven't tried. Just see where the problem is in the command line and then think if it might be solvable in the GUI but the GUI is off sometimes.
all you need to do is open a console and type
sh dk-1_5_0-nb-4_0-beta2-bin-linux.bin
to install the program. I'm sure if you read the instructions
for java this is what they tell you to do.
if you don't like this or have a problem try to associate the file with /bin/sh
you won't be able to execute the file by double-clicking it, but you
can do this with rightclick->open with.
The problem is that nautilus, compares the extension of the file with
the magic number of the file (man magic).
The magic number is unknown and nautilus won't let you directy execute the file.'
Last edited by perfect_circle; 11-19-2004 at 10:09 PM.
Nautilus determines file types using an API that's in gnome-vfs. There are
three parts to this process in gnome-vfs:
a) "magic number" checking of file contents
b) hard-coded rules in gnome-vfs code
a) mapping file types based on extension
Part (a) is similar to what file(1) does, but it uses a separate database
that's part of gnome-vfs, not the one from file(1). Note that this entire
file typing scheme is not new to gnome-vfs. It was a set of calls from
gnome-libs that was moved into gnome-vfs and enhanced for use with Nautilus.
Last edited by perfect_circle; 11-19-2004 at 05:35 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.