LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-21-2010, 10:07 AM   #1
blackmagic010216
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Device Driver Install PCIe card


hello Everyone,

I am trying to install a PCIe card for data compression in Linux ubuntu 9.10(karmic Koala). As you can see in the following code although I have the root access I can not get permission to install the device driver.As I have the root access I suppose to get access to install the driver. I checked around and got the procedure from a web site
----------------------------------------------------------------------
Enabling root access in unbuntuBasically in almost all linux machines we will be having

root access for login.but in ubuntu by default that option was not enabled.

If u want to have root login in ubuntu then u have to do some changes in ur Ubuntu machinesSteps to follow

1.First enter into ubuntu as your user login.

2.Then open the terminal and type the command sudo -s,it will ask for root access and type the password.

3.Then type passwd root it will ask for new password
4.Open terminal and go to the path /etc/gdm/
5.Open gdm.conf
6.search for AllowRoot=false

7.and then change AllowRoot=true
8.now restart ur machine
9.now u can enjoy with root access
------------------------------------------------------------------------The funny part is when I search for the file which is gdm.conf in the prescribed location, I can not find it.

Code:
root@faisal-desktop:/home/faisal/Desktop# cd AHA/
root@faisal-desktop:/home/faisal/Desktop/AHA# ls
ahagz_config          create_bin             install_everything  unload_module
compile_ahazip        create_prog_files      load_module         zlib
compile_everything    doc                    README
compile_module        install_and_reprogram  reprogram
compile_reprogrammer  install_driver         src
root@faisal-desktop:/home/faisal/Desktop/AHA# ./install_everything
-bash: ./install_everything: Permission denied
root@faisal-desktop:/home/faisal/Desktop/AHA# ./install_driver
-bash: ./install_driver: Permission denied
Let me know what to do?
 
Old 06-21-2010, 11:02 AM   #2
prodigy0987
LQ Newbie
 
Registered: Dec 2006
Location: United States
Distribution: Arch
Posts: 6

Rep: Reputation: 0
This is probably just a permissions problem. Try marking the executable bit on the file you're trying to run by doing this:

Code:
chmod a+x install_everything
sudo ./install_everything
Do the same for install_driver.

Also, try to stick with sudo, because it's much less dangerous than using the root account directly.
 
Old 06-21-2010, 11:02 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Does the install_driver script/program have executable permissions? Is the filesystem it resides on mounted with noexec?
 
Old 06-22-2010, 07:49 AM   #4
blackmagic010216
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
The problem exists

the code
Code:
root@faisal-desktop:/home/faisal/Desktop/AHA# chmod a+x install_everything
root@faisal-desktop:/home/faisal/Desktop/AHA# sudo ./install_everything
Please specify the type of driver being installed
	For AHA363PCIe boards, enter "363"
	For AHA364PCIe boards, enter "364"
	For AHA367PCIe boards, enter "367"

363
./install_driver: line 53: ./compile_module: Permission denied
Exiting install_driver with errors.
Exiting install_everything with errors.
root@faisal-desktop:/home/faisal/Desktop/AHA#
The problem exists.

Then I tried to do the following

Code:
root@faisal-desktop:/home/faisal/Desktop/AHA# sudo su -
root@faisal-desktop:~# cd ..
root@faisal-desktop:/# ls
bin    dev   initrd.img  media  proc  selinux  tmp  vmlinuz
boot   etc   lib         mnt    root  srv      usr
cdrom  home  lost+found  opt    sbin  sys      var
root@faisal-desktop:/# cd home
root@faisal-desktop:/home# ls
faisal
root@faisal-desktop:/home# cd faisal/
root@faisal-desktop:/home/faisal# la
la: command not found
root@faisal-desktop:/home/faisal# ls
Desktop    Downloads         Music     Public     Videos
Documents  examples.desktop  Pictures  Templates
root@faisal-desktop:/home/faisal# cd Desktop/
root@faisal-desktop:/home/faisal/Desktop# ls
AHA  help.bmp  recent help.odt
root@faisal-desktop:/home/faisal/Desktop# cd AHA
root@faisal-desktop:/home/faisal/Desktop/AHA# la
la: command not found
root@faisal-desktop:/home/faisal/Desktop/AHA# ls
ahagz_config          create_bin             install_everything  unload_module
compile_ahazip        create_prog_files      load_module         zlib
compile_everything    doc                    README
compile_module        install_and_reprogram  reprogram
compile_reprogrammer  install_driver         src
root@faisal-desktop:/home/faisal/Desktop/AHA# ./install_everything
Please specify the type of driver being installed
	For AHA363PCIe boards, enter "363"
	For AHA364PCIe boards, enter "364"
	For AHA367PCIe boards, enter "367"

363
./install_driver: line 53: ./compile_module: Permission denied
Exiting install_driver with errors.
Exiting install_everything with errors.
root@faisal-desktop:/home/faisal/Desktop/AHA#

THE PROBLEM EXISTS1!!!!!!!!!
I think the problem is with the location of the files? Do I need to change any system file?

Any ideas?

Thanks
 
Old 06-30-2010, 05:30 AM   #5
blackmagic010216
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
we have to use the follwing command

sudo chmod --recursive 777 dir_name
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PCIe re-enumation in linux driver question (pcie hotplug doesn't work) blavo Programming 5 08-02-2012 03:12 PM
add correct ati driver in xorg.conf for my pcie card esteeven Linux - Hardware 3 06-13-2010 04:42 AM
Writing PCIe device driver pythonarms Linux - Kernel 0 02-23-2009 02:45 PM
Doubts about PCIe device driver rwpa Linux - Newbie 4 12-10-2008 09:25 AM
What is the Linux difference between PCIE and PCI device driver? jbreaka4lyfe Linux - General 0 06-04-2008 03:54 PM


All times are GMT -5. The time now is 02:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration