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 06-08-2007, 11:29 AM   #1
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Rep: Reputation: 16
Using chmod


I am new to linux, and I just download a nvidia-glx driver for debian. How would I use chmod to let me access the file?
 
Old 06-08-2007, 11:33 AM   #2
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
you do not need to chmod it. its will be a .run file. so as root just navigate to the directory you saved the .run file in and type:

sh NVI.....run

FYI, tab is your friend here. you can just type in the first NV of the file name, then hit tab and it will auto-fill in the rest of the file name correctly so you do not have to worry about typos.

BEFORE you install the nvidia drivers make sure nothing involving X is running. so no kdm or gdm, or xdm, no gnome or kde, or what ever GUI you are running can be up.
 
Old 06-08-2007, 11:33 AM   #3
jaymoney
Member
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87

Rep: Reputation: 16
chmod 777 /path-to-file will give the owner, people in the group, and all other users read, write, and execute permission
 
Old 06-08-2007, 11:35 AM   #4
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by jaymoney
chmod 777 /path-to-file will give the owner, people in the group, and all other users read, write, and execute permission
Thanks

The file is a .deb file so I would have to chmod. I tried without doing it already.
 
Old 06-08-2007, 11:47 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
if it is a .deb then you are running debian based distro, it is even easier...

as ROOT

deb-pkg -i NV (hit the tab) and off you go.

again in order to install drivers you will need to be root, so no need to muck around with chmod and chmod 777 is a bad idea for drivers. this gives everyone read/write/execue permissions to the file even guest accounts have full access to that file. bad idea.

the easy way to install the nvidia drivers on your debian box will be as follows:

go here:

http://www.nvidia.com/object/unix.html

grab the drivers for your flavor 32bit or 64bit

this is the direct link to the 32bit vs:

http://us.download.nvidia.com/XFree8...-9755-pkg1.run

read this link:

http://us.download.nvidia.com/XFree8...DME/index.html

that is the detailed HOWTO guide for the nvidia drivers... very easy to follow.

apt-get install sysv-rc-conf ksysv

both of those tools are easy ways to configure your startup. in runlevel 3 remove everything that has to do with the GUI, also you can do this for runlevel 4. only runlevel 5 should have anything to do with the GUI. do not touch runlevel 1 or 2.

then set the default runlevel to 3. reboot the system.

http://qref.sourceforge.net/Debian/r...tombootscripts

read that link for more details on debian runlevels.

after you have those steps done, should not take but a few mn. longer to download the drivers then to do the runlevel steps. you can log into the CLI as root and navigate to the directory you downloaded the nvidia drivers from above.

type in sh NV (then hit the tab) and you will be set. follow the directions and make sure you have the proper headers installed for your kernel.

debian uses some odd name schemes from time to time to get things done but still a fast apt-cache search linux | grep 2.6.x.* to match your kernel vs will not take long.

with the .deb file you have you can also just do as i stated above and as ROOT from the CLI just type dpkg -i NV (hit the tab) and away you go.

sorry i goofed on the command earlier. been about 6 months since i did any debian work.
 
Old 06-08-2007, 11:51 AM   #6
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Ok, I used the wrong chmod before I asked on here and when I try and execute it, it gives me a syntax error. I tried downloading it and overwriting it, but it does the same thing. Is there a way to reverse this or delete it and start over?
 
Old 06-08-2007, 12:12 PM   #7
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Sorry, I am new to linux and I am not really understanding anything your saying.
 
Old 06-08-2007, 06:32 PM   #8
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
me? follow the steps in my above post. list them in order as you follow them and post the exact error you are getting.
 
Old 06-08-2007, 06:38 PM   #9
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
I got everything working now, thanks.
 
Old 06-09-2007, 10:37 AM   #10
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
glad to hear it.
 
  


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
chmod, external usb, vfat - can't chmod a directory itsjustme Slackware 2 04-02-2006 04:23 PM
chmod bruse Linux - Newbie 4 08-31-2005 09:43 AM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
what does chmod mean? tedist_god Linux - Software 1 10-05-2003 10:53 PM

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

All times are GMT -5. The time now is 02:24 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