LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Device Driver Install PCIe card (https://www.linuxquestions.org/questions/linux-newbie-8/device-driver-install-pcie-card-815425/)

blackmagic010216 06-21-2010 09:07 AM

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?

prodigy0987 06-21-2010 10:02 AM

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.

Nylex 06-21-2010 10:02 AM

Does the install_driver script/program have executable permissions? Is the filesystem it resides on mounted with noexec?

blackmagic010216 06-22-2010 06:49 AM

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

blackmagic010216 06-30-2010 04:30 AM

we have to use the follwing command

sudo chmod --recursive 777 dir_name


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