LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-23-2007, 06:25 PM   #1
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Rep: Reputation: 30
How do I install this .run from a terminal??


The nvidia drivers come in .run format, so I ran it in terminal, it said I had to close the X server, so I hit CTRL + Alt + F1, typed ' init 3 ' to close the X server, then I used the cd command to get to where the drivers are, and I can't figure out how to actually make it try to install them, 'run', 'install', etc. does nothing.

If I just type the name of the file it says it's an invalid file/directory.
 
Old 01-23-2007, 06:31 PM   #2
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
You need to use ./run, to tell your shell to look in the current directory instead of the usual places.
 
Old 01-23-2007, 06:33 PM   #3
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
--bash: ./run: No such file or directory
 
Old 01-23-2007, 06:45 PM   #4
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
bah...
how hard was it to tell me just to use the sh command?
 
Old 01-23-2007, 06:47 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
RIGHT

Fron init 3 (run level 3)
sh NVIDIA...........run
 
Old 01-23-2007, 07:02 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Allow me to clarify for others who look at this thread needing the same answer.

Make sure to install kernel-devel, or kernel-headers (or both), or kernel-source packages from CD or web site matching current running kernel version, needed for compiling drivers.

To install NVIDIA drivers from Nvidia's site that have .run extension, you are best to log out of the session you are in and log into failsafe terminal/terminal session. Then issue command as root:

#telinit 3

To shutdown X server and take you out of graphical mode. From the directory where your NVIDIA........run file is stored, run command:

sh NVIDIA............run

To avoid typing the entire name of the file in the command you can just type a few of the first letters of the name of the file (case sensitive) and click "Tab" on the keyboard and bash will complete the command if you only have one file by that name. Then hit enter. Follow instructions, when it says it is complete, either hit Ctrl. + Alt. + Del. to re-boot or (better yet), issue command:

telinit 5

To put you back in graphical mode, log out of failsafe terminal/terminal session and log back into user account, Nvidia splash should flash quickly showing it was successful.

Last edited by Junior Hacker; 01-24-2007 at 05:00 AM.
 
Old 01-23-2007, 07:09 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
For debian (and others) gnome users:

Logout and hit CTL-ALT-F1 to get you to a console login.

login to root and enter password (Yeah, I know, but root is easier for this task)

/etc/init.d/gdm stop

./NVIDIAblahblahblah.run (or sh, whichever you like)

/etc/init.d/gdm start

You should get the gdm greeter/login screen
 
Old 01-23-2007, 07:20 PM   #8
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
didn't help, exact same error

what did help was directing it to the kernel path by using the --kernel-source-patch='xx' command

it got a lot farther, then said...

'Building Kernel Module'... all the way to 100%.

Then...

'ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s).'

using an asus p5pl2 mobo with nforce chipset, and using onboard network card... fedora core 6

Last edited by Virtuality; 01-23-2007 at 07:24 PM.
 
Old 01-23-2007, 07:34 PM   #9
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Could you tell us exactly what you're trying to do and just in one thread, please? We really will try to get you going, but it's hard to tell exactly what you need. What distribution did you load? What doesn't work that you are trying to fix by installing the nvidia driver? If you have an onboard nvidia ethernet port that doesn't work, most likely you just need to run "modprobe forcedeth".
 
Old 01-23-2007, 07:47 PM   #10
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Quakeboy02
Could you tell us exactly what you're trying to do and just in one thread, please? We really will try to get you going, but it's hard to tell exactly what you need. What distribution did you load? What doesn't work that you are trying to fix by installing the nvidia driver? If you have an onboard nvidia ethernet port that doesn't work, most likely you just need to run "modprobe forcedeth".
the two threads had different questions, which eventually lead to the same problem anyhow

already said (and is right under my name) fedora core 6.

im trying to install my nvidia drivers which would allow my network to work, that command didnt do anything (or give an error)... probably i don't know how to use it.

at the moment i have the internet, just put in a realtek PCI card which it detects easily.



so the problem is that i can't install my onboard nvidia drivers to make my onboard network card work.
 
Old 01-23-2007, 07:50 PM   #11
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"im trying to install my nvidia drivers which would allow my network to work, that command didnt do anything (or give an error)... probably i don't know how to use it."

If it didn't do anything, it probably worked. Now, please run "ifconfig" and give us the response from that. It would also be nice to see the output from "lspci" and "lsmod" so we can see exactly what's on your machine and what's enabled.
 
Old 01-23-2007, 07:52 PM   #12
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
Most nvidia cards(all?) are supported by the forcedeth.c kernel driver. You shouldn't have to install the nvidia drivers.
 
Old 01-23-2007, 08:06 PM   #13
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
OK. Lets assume this is the problem:

Quote:
with a version of gcc that differs from the one used to build the target kernel
Have a look at dmesg:

Code:
dmesg | less
The first line should print the kernel, host system and the version of gcc it was compiled with.

Then type:

Code:
gcc --version
To see what you are currently using.

IF they differ.........


You need to find a package for your distro for that specific gcc version and install that. If its anything like debian, the different versions coexist peacefully. Usually the binaries are renamed gcc-4.1 or gcc-3.4 etc. So thats fine.

Now back to the NVIDIA installer:

Everything the same except

Code:
CC=/path/to/the/gcc/you/want sh NVIDIA...run
Most like to be in /usr/bin/gcc-x.y
 
Old 01-23-2007, 08:08 PM   #14
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
ok i ran the commands, here's the results...

Quote:
[root@localhost ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:0E:2E:70:6C:8B
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:2eff:fe70:6c8b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10099 errors:0 dropped:0 overruns:0 frame:0
TX packets:8789 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10936719 (10.4 MiB) TX bytes:1033510 (1009.2 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2329 errors:0 dropped:0 overruns:0 frame:0
TX packets:2329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7676352 (7.3 MiB) TX bytes:7676352 (7.3 MiB)

peth1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:10106 errors:0 dropped:0 overruns:0 frame:0
TX packets:8832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:10937711 (10.4 MiB) TX bytes:1043978 (1019.5 KiB)
Interrupt:20 Base address:0x8c00

vif0.1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:8789 errors:0 dropped:0 overruns:0 frame:0
TX packets:10099 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1033510 (1009.2 KiB) TX bytes:10936719 (10.4 MiB)

xenbr1 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14156 (13.8 KiB) TX bytes:0 (0.0 b)

Quote:
[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:01.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
04:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GT] (rev a1)

Quote:
[root@localhost ~]# lsmod
Module Size Used by
forcedeth 45381 0
bridge 60381 0
netloop 11073 0
netbk 79845 0 [permanent]
blktap 386789 2 [permanent]
blkbk 22753 0 [permanent]
autofs4 25413 2
hidp 24129 2
rfcomm 46041 0
l2cap 31681 10 hidp,rfcomm
bluetooth 58917 5 hidp,rfcomm,l2cap
sunrpc 158332 1
ip_conntrack_netbios_ns 7105 0
ipt_REJECT 9665 1
xt_state 6337 6
ip_conntrack 56992 2 ip_conntrack_netbios_ns,xt_state
nfnetlink 11353 1 ip_conntrack
iptable_filter 7233 1
ip_tables 17669 1 iptable_filter
ip6t_REJECT 9537 1
xt_tcpudp 7361 21
ip6table_filter 7105 1
ip6_tables 18821 1 ip6table_filter
x_tables 18501 6 ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
nls_utf8 6337 1
vfat 16833 1
fat 55773 1 vfat
dm_mirror 33041 0
dm_multipath 22601 0
dm_mod 61529 2 dm_mirror,dm_multipath
video 21061 0
sbs 20225 0
i2c_ec 9281 1 sbs
button 10961 0
battery 14405 0
asus_acpi 20697 0
ac 9541 0
ipv6 267489 17 ip6t_REJECT
parport_pc 31205 1
lp 17033 0
parport 40841 2 parport_pc,lp
snd_cmipci 39009 0
gameport 20169 1 snd_cmipci
snd_seq_dummy 8133 0
snd_seq_oss 37185 0
snd_seq_midi_event 11841 1 snd_seq_oss
snd_seq 57137 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
sg 38493 0
snd_hda_intel 22741 0
snd_hda_codec 154049 1 snd_hda_intel
snd_pcm_oss 46561 0
snd_usb_audio 78785 2
snd_mixer_oss 20545 1 snd_pcm_oss
pcspkr 7361 0
snd_pcm 80453 5 snd_cmipci,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_usb_audio
snd_opl3_lib 14913 1 snd_cmipci
snd_page_alloc 14409 2 snd_hda_intel,snd_pcm
snd_timer 27077 3 snd_seq,snd_pcm,snd_opl3_lib
snd_mpu401_uart 13249 1 snd_cmipci
snd_usb_lib 21057 1 snd_usb_audio
snd_rawmidi 28737 2 snd_mpu401_uart,snd_usb_lib
snd_seq_device 12621 5 snd_seq_dummy,snd_seq_oss,snd_seq,snd_opl3_lib,snd_rawmidi
snd_hwdep 13637 2 snd_usb_audio,snd_opl3_lib
snd 57029 19 snd_cmipci,snd_seq_oss,snd_seq,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_usb_audio,snd_mixer_oss,s nd_pcm,snd_opl3_lib,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_hwdep
soundcore 14113 1 snd
8139too 31425 0
8139cp 29377 0
ide_cd 42337 2
i2c_i801 11853 0
mii 9665 2 8139too,8139cp
sn9c102 93773 0
i2c_core 25537 2 i2c_ec,i2c_i801
videodev 27073 1 sn9c102
cdrom 38625 1 ide_cd
v4l1_compat 16453 1 videodev
v4l2_common 26305 2 sn9c102,videodev
serio_raw 11205 0
ata_piix 18121 0
libata 103385 1 ata_piix
sd_mod 24897 8
scsi_mod 138729 3 sg,libata,sd_mod
ext3 135369 1
jbd 63209 1 ext3
ehci_hcd 35917 0
ohci_hcd 25437 0
uhci_hcd 27725 0
 
Old 01-23-2007, 08:15 PM   #15
Virtuality
Member
 
Registered: Jan 2007
Distribution: Debian Etch
Posts: 193

Original Poster
Rep: Reputation: 30
@Daws - the versions match perfectly.
 
  


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
run mail from terminal kg4ysy Linux - Software 7 04-04-2006 11:07 AM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 09:49 PM
How do I run a browser in a terminal? Ultwe Linux - Newbie 5 06-30-2005 04:55 PM
How to run a program on another terminal SharpyWarpy Linux - General 2 02-10-2005 02:09 PM
I'm using Mandrake 9.1 and I'm a newbie, how do I install and run programs; Terminal? sirquixote Mandriva 5 10-20-2003 06:52 PM

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

All times are GMT -5. The time now is 04:11 AM.

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