LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-20-2010, 03:36 PM   #1
SeZen
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Rep: Reputation: 0
How to run executable files ?


I have a Nvidia driver that i need to run from the console.
How do i do it and how do i find the file (to run it) from the console ?

Thanks for your answer,
 
Old 10-20-2010, 03:39 PM   #2
Amdx2_x64
Member
 
Registered: Jun 2008
Distribution: Left LQ. Mods are too Rude!
Posts: 598

Rep: Reputation: 50
You might want to clarify your question a bit. In Linux when using Nvidia there are no .exe files to use. Unless you mean like .bin or something.

So the questions that I have before I or anyone else can answer you is this.

1 - What Distribution are you using? Ubuntu, Suse, Slackware, etc?
2 - What are you trying to do with Nvidia, install drivers? Access the Nvidia settings manager?

Last edited by Amdx2_x64; 10-20-2010 at 03:42 PM.
 
Old 10-20-2010, 03:41 PM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Navigate to the directory in which you stored the file. Usually, the directory you're in is your home directory and presumably you know where you saved the file. You can use the cd command to change directories, e.g.

cd stuff

will change to the directory "stuff" in the current directory and

cd /some/other/dir

will change to the directory "dir", which is in "other", which is in "some", which is in "/" (i.e. the top of the filesystem tree).

You can use the command ls to list the files in a given directory (e.g. "ls" will list the files in the current directory).

As for specifics on the NVIDIA drivers, did you read their installation instructions? They should tell you what you need to do.
 
Old 10-20-2010, 03:42 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by SeZen View Post
I have a Nvidia driver that i need to run from the console.
How do i do it and how do i find the file (to run it) from the console ?

Thanks for your answer,
Well, you could look at the instructions that nVidia provides on their website, where you downloaded the driver.

First thing you'll need to know, is where you saved the file when you downloaded it. That we can't tell you, since you chose the location when you downloaded it.

From there, get to a console, and you should be logged in as root too. Type in "cd <whatever directory name you downloaded the file to>", and press enter. Type in "ls", and you'll see the file. Then type in "chmod 755 <file name>", then type in "./<file name>".
 
Old 10-20-2010, 04:05 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
first

1)
what is your operating system ???
some have the opensource nouveau installed by default
and if so you need to black list it

2)
Why can you NOT use the nvidia driver already provided BY whatever distro it is
almost all distros have a nvidia driver in there software repos
Using that one makes running a software "update" way much easier -- you will not have to REINSTALL that *.run driver BY HAND for EVERY and ALL
kernel , x11/xorg updates


also if you use that .run driver
you MUST HAVE installed the kernel source , for the current running kernel. The gcc compiler ,a bunch of "development" software source code.
-- in short - a long list of things JUST to install the .run driver

Last edited by John VV; 10-20-2010 at 04:11 PM.
 
Old 10-20-2010, 08:39 PM   #6
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Rep: Reputation: 25
If your a linux user try to install wine-door to run .exe files.

Correct me if im wrong.
 
Old 10-20-2010, 11:50 PM   #7
SeZen
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I Have a Mandriva flash (2010) USB key that i use on a Macbook Pro. I need to install the NVIDIA driver of the soundcard because i have no sound (and this driver isn't include in mandriva).

The file of the driver is a .run . I said it was an "executable file" because i don't know how it's called (i don't speak english really well,sorry).

I followed the instructions of the NVIDIA site to install the driver but i encounter a problem (with the message "you appear to be running an x server please exit x before installing") that force me to run the file from the console (i used the comand "telinit 3" to shutdown the server x, and it worked).

I know where the driver is and i know a to find it, but i don't know how to find it (and run it) FROM THE CONSOLE.

Thanks for your time,
 
Old 10-21-2010, 12:09 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the sound and the video are DIFFERENT things

the 260 nvidia.run IS FOR YOUR 3d card
i am guessing this one "NVIDIA-Linux-x86-260.19.12.run"
http://www.nvidia.com/object/linux-d...12-driver.html
is the video driver

not for the sound card
-- the sound is alsa or pulse-audio , i am not sure what one Mandriva uses.
and should be supported by the kernel( already installed)

and to install it ( the 3d card driver) you need to boot into TEXT ONLY mode
the Mandriva help pages should tell you how to do that
there are a few different ways
but running this in the terminal should do it
AS ROOT
Code:
telinit 3
or as a normal user
Code:
su -
telinit 3
or
Code:
su -
/sbin/init 3
then reloggin AS ROOT
-- this will be the text only
 
Old 10-21-2010, 01:28 AM   #9
tailinlinux
Member
 
Registered: Oct 2010
Location: Paudpod, Botolan, Zambales, Philippines
Distribution: Mandriva, Ubuntu, Mint, Open Suse, Meego
Posts: 390
Blog Entries: 3

Rep: Reputation: 25
i think linux are have already installed video and sound driver
when you istalled the os
 
Old 10-21-2010, 11:20 PM   #10
SeZen
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
it's that one : NVIDIA-Linux-x86-256.53.run and i was thinking it was both a video and soundcard. Because there is nohing said, nowhere about a soundcard on macbook pro 13". So i'm still with my "no sound problem" and i really don't know where to begin to fix it.
 
Old 10-22-2010, 12:01 AM   #11
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by SeZen View Post
it's that one : NVIDIA-Linux-x86-256.53.run and i was thinking it was both a video and soundcard. Because there is nohing said, nowhere about a soundcard on macbook pro 13". So i'm still with my "no sound problem" and i really don't know where to begin to fix it.
Using a terminal navigate to the directory which has the NVIDIA-Linux-x86-256.53.run file. Assuming this file is executable, then run this command as root or using sudo
Code:
./NVIDIA-Linux-x86-256.53.run
To find out what sound card you have run this command:
Code:
lspci |grep Audio
Report the results back to the forum.
ciao,
jdk
 
Old 10-23-2010, 09:28 AM   #12
SeZen
LQ Newbie
 
Registered: Oct 2010
Posts: 10

Original Poster
Rep: Reputation: 0
jdkaye : i did what you told me (i hope i did right).this is what i found :


[frdeni@localhost ~]$ lspci grep audio
Usage: lspci [<switches>]

Basic display modes:
-mm Produce machine-readable output (single -m for an obsolete format)
-t Show bus tree

Display options:
-v Be verbose (-vv for very verbose)
-k Show kernel drivers handling each device
-x Show hex-dump of the standard part of the config space
-xxx Show hex-dump of the whole config space (dangerous; root only)
-xxxx Show hex-dump of the 4096-byte extended config space (root only)
-b Bus-centric view (addresses and IRQ's as seen by the bus)
-D Always show domain numbers

Resolving of device ID's to names:
-n Show numeric ID's
-nn Show both textual and numeric ID's (names & numbers)
-q Query the PCI ID database for unknown ID's via DNS
-qq As above, but re-query locally cached entries
-Q Query the PCI ID database for all ID's via DNS

Selection of devices:
-s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]] Show only devices in selected slots
-d [<vendor>]:[<device>] Show only devices with specified ID's

Other options:
-i <file> Use specified ID database instead of /usr/share/pci.ids
-p <file> Look up kernel modules in a given file instead of default modules.pcimap
-M Enable `bus mapping' mode (dangerous; root only)

PCI access options:
-A <method> Use the specified PCI access method (see `-A help' for a list)
-O <par>=<val> Set PCI access parameter (see `-O help' for a list)
-G Enable PCI access debugging
-H <mode> Use direct hardware access (<mode> = 1 or 2)
-F <file> Read PCI configuration dump from a given file
[frdeni@localhost ~]$
 
Old 10-23-2010, 09:48 AM   #13
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need a | (it's called a pipe) between lspci and grep. Also, you might want to use grep's -i option to do case-insensitive matching.
 
Old 10-23-2010, 11:31 PM   #14
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by SeZen View Post
jdkaye : i did what you told me (i hope i did right).this is what i found :

[frdeni@localhost ~]$ lspci grep audio
No, you did not do what I said. As Nylex said you need a pipe. Try to copy and past this command to a terminal such as konsole or xterm.
Code:
lspci |grep -i audio
jdk
 
Old 10-24-2010, 12:53 AM   #15
mikabrown85
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
Navigate to the directory in which you stored the file. Usually, the directory you're in is your home directory and presumably you know where you saved the file. You can use the cd command to change directories, e.g.

cd stuff

will change to the directory "stuff" in the current directory and

cd /some/other/dir

will change to the directory "dir", which is in "other", which is in "some", which is in "/" (i.e. the top of the filesystem tree).

You can use the command ls to list the files in a given directory (e.g. "ls" will list the files in the current directory).

As for specifics on the NVIDIA drivers, did you read their installation instructions? They should tell you what you need to do.


I have ubuntu but when i tried to run that it says invalid input.If i am not msiatken Ubuntu is a live cd?.

Last edited by Tinkster; 10-24-2010 at 04:31 PM.
 
  


Reply



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 run executable files? Kelley Linux - Newbie 34 07-06-2017 09:31 PM
[SOLVED] can not run executable files in slackware 13 seflyer Slackware 8 04-26-2010 05:01 PM
Cant't run executable files on Mandrake 9.1 alex101 Mandriva 4 10-14-2003 10:36 AM
run executable files ZeRo69er Linux - Software 4 08-07-2003 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 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
Open Source Consulting | Domain Registration