LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   KDE Distros (Kubuntu, Knoppix) won't run Binary files (https://www.linuxquestions.org/questions/linux-newbie-8/kde-distros-kubuntu-knoppix-wont-run-binary-files-574724/)

bookerg 08-04-2007 01:02 PM

KDE Distros (Kubuntu, Knoppix) won't run Binary files
 
Hi.

I've tried a couple of distributions which use KDE as its window manager (namely Knoppix and Kubuntu).

The Gnome-based distros (such as Ubuntu) run binary files just fine, but the ones which use KDE (such as Kubuntu) keep giving me the following message:-


http://geocities.com/gurzyb/kubuntu_binary_err.jpg


Does anybody know what I should do about this?

jay73 08-04-2007 03:18 PM

I'm not much of a KDE users but I would suspect that KDE simply doesn't make any default binary-applications associations. Have you tried right-clicking the binary and selecting the application that you want to set as a default for that specific type of binaries?

mcmillan 08-04-2007 03:26 PM

That's just asking to open the file with some other program. What kind of binary are you trying to run and are you sure the permissions are set to allow it to be executable?

Nylex 08-04-2007 03:27 PM

Use the terminal?

bookerg 08-04-2007 04:05 PM

Hi all.

The program in question happens to be "Mupen 64" (a standard Linux/N64 emulator).

I've run it on Ubuntu/Gnome distros in the past without any troubles (just by double-clicking it).


How would I go about running it in the terminal? Also, how do I set the permissions? (please note I'm currently running Kubuntu/Knoppix from live CDs, but will eventually install it when my new hardware arrives)


Many thanks!!!!!!!

bookerg 08-04-2007 04:08 PM

Quote:

Originally Posted by jay73
I'm not much of a KDE users but I would suspect that KDE simply doesn't make any default binary-applications associations. Have you tried right-clicking the binary and selecting the application that you want to set as a default for that specific type of binaries?

That's what I'm asking - what (type of) program *would* it be? I didn't see any on the list in the screenshot that I thought would be applicable......

mcmillan 08-04-2007 07:02 PM

If it's a binary it shouldn't need another program to open it, it should just run. That's why I was wondering if maybe somehow the permissions got altered so it wasn't executable. You can look at it by right clicking and looking under properties.

The terminal should be listed somewhere in the KDE menu, for mine it's under system but I don't remember if that's the default or not. Once it's open type:
cd [location of file] <to change to the directory you want>
./[file name] <executes the binary>
You can also check the permissions from the terminal with the command
ls -l [file name]
The first column will be a series of letters, the first three positions tell the permission for the owner, the second tells for users in the group it belongs to, and the third is for anyone else. so
rwxrwxrwx means everyone has all (read,write,execute) permission
rwxrw-r-- would mean the owner has permission, the group has read and write, while anyone else can only read the file.

jschiwal 08-04-2007 09:09 PM

KDE will launch an executable binary file if the executable bit is set and the partition isn't mounted with the noexec option. A binary file could be a binary data file as well (as opposed to a text file). You can also create a link to a binary file and configure the options and Icon as you wish.

bookerg 08-05-2007 07:38 AM

Hi all.

Well I tried the "./" method in the terminal - this worked a treat in Knoppix, and allowed me to run the binary files I was unable to before :)

The interesting thing is that once I'd used that method for the first time, Konquerer was then able to open *all* binary files by itself! (with no terminal/bash intervention)


I was still unable to get it to work in Kubuntu, however (even when I tried the 'su' and 'sudo' methods) - the terminal gave me a "Permission Denied" message or something along those lines....


Some Googling around seemed to indicate that *ubuntu distributions have some kind of built in defence against root priveleges or something.... maybe that was the problem?


All times are GMT -5. The time now is 11:38 PM.