How to install something from .x executable files

Asked by DeusExM1

Hey everyone,

I have a file that is .x executable. If i right click it and look at file type it says: "executable (application/x-executable)".
Any ideas how to run this thing? I am rather new to Ubuntu.

Dom

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

mark it as executable:

chmod +x <file>

then execute with:

./<file>

you MUST use / before it so the shell executes the file in the pwd rather than the $PATH

HTH

Revision history for this message
DeusExM1 (beartrapinc) said :
#2

It seems to have worked. But then it says

"only the root can install this app!"

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

ok then use

sudo ./<file>

simple.

Revision history for this message
Robert Di Gioia (digioiar) said :
#4

try

sudo ./<file>

The system will ask you for your password, type it in and press enter even though you won't see anything while typing, it is ok.

Revision history for this message
DeusExM1 (beartrapinc) said :
#5

Thank you very much, all of this has worked so far. However, then the terminal asked where the sound card was;

Where is your sound card ? [/dev/dsp]

How would i find that out? and how should i respond?

Revision history for this message
kernowyon (kernowyon) said :
#6

Use sudo before the command

i.e sudo ./<file>

Sudo gives you what is basically root powers. Always be wary of using sudo to run an executable file - make sure you know what the file does before attempting to run it.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

i'd imagine the default is fine.

/dev/dsp

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

by the way, in Linux and BSD, file extensions mean very little. you could rename the file

script.awesomescript

and it will still do the same thing. Linux looks at the data structure to know what it is

Windows is retarded and still clings for dear life to its old DOS 8.3 filename crap, you can even remove all your file extensions from your MP3s and images and they will still open the same.

They are handy for marking scripts though, like adding .sh to shell script and .py to python scripts just so YOU know what it is, the system couldn't care less.

Revision history for this message
DeusExM1 (beartrapinc) said :
#9

Thank you for excellent information so far. I am really starting to learn how everything works.

during the installation process i made a mistake and did not indicate what my hardware was correctly. To make it short, i want to reinstall the program.

The program comes with an uninstaller which is in the same place as the installer. I tried to run it the same way as the installer, but it says;

sudo: ./uninst.linux: command not found

What to do ?

Revision history for this message
DeusExM1 (beartrapinc) said :
#10

I might also add that the uninstaller, is different than the installer. it says it is;

shell script (application/x-shellscript)

Does this make a difference?

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#11

if you type

ls

(ell ess)

can you see the file? If not you will need to navigate in terminal to the location of the file

cd <folder name> will enter the named folder
cd .. will move you up to the current folders containing folder

Revision history for this message
DeusExM1 (beartrapinc) said :
#12

Well this is strange. Yes it shows up. Both the installer and uninstaller are in the same directory. For some reason it will not let me use the uninstaller. If i try to run the installer again it says that the app is already installed, so it does not go through with the reinstallation.

However i think there might be another way to fix this. I went into usr directory and found the application. Then i found the .conf file. The conf file contains all the information i put in during the installation. If i could modify this im sure it would work. The only problem is that if i try to modify the file it says "permission denied".

How to get around this? Im the only user on this computer so i should have all the clearance i thought?

Revision history for this message
DeusExM1 (beartrapinc) said :
#13

Thanks Robert Di Gioia, that solved my question.

Revision history for this message
DeusExM1 (beartrapinc) said :
#14

.

Revision history for this message
DeusExM1 (beartrapinc) said :
#15

Thanks actionparsnip, that solved my question.