LinuxQuestions.org
Help answer threads with 0 replies.
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 11-19-2004, 04:17 PM   #1
rfk
LQ Newbie
 
Registered: Sep 2004
Posts: 16

Rep: Reputation: 0
how to execute program in Gnome


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?

TIA

- Rolf.
 
Old 11-19-2004, 04:27 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I don't know if you changed permissions so it can execute already.

Code:
chmod +x /path/
Then you can run it with
Code:
./path/
 
Old 11-19-2004, 04:33 PM   #3
rfk
LQ Newbie
 
Registered: Sep 2004
Posts: 16

Original Poster
Rep: Reputation: 0
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.
 
Old 11-19-2004, 05:17 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
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.
 
Old 11-19-2004, 06:05 PM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
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 11:09 PM.
 
Old 11-19-2004, 06:15 PM   #6
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
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 06:35 PM.
 
Old 11-19-2004, 11:01 PM   #7
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
See http://www.linuxquestions.org/questi...hreadid=257035
 
  


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
How to execute c++ program Daz_Man2803 Programming 8 06-09-2005 12:28 PM
execute program only once during login tcma Linux - General 6 11-03-2004 09:55 AM
How do I execute a program? erick99 Linux - Software 1 10-11-2004 08:56 AM
C function to execute a program and return the output of the program ryan.n Programming 4 08-14-2004 11:11 PM
execute a program athenerx Programming 3 05-23-2002 05:45 PM


All times are GMT -5. The time now is 03:46 PM.

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