LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission Denied (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-662567/)

poboxjosh 08-13-2008 02:44 PM

Permission Denied
 
I will start off by apologizing for being a noob but... I am trying to install the wireless drivers to get my laptop up and running but i have to install a subsystem first. I am having problems doing so and am running into a permission denied error.


Here is the code
Code:

% wget \
  intellinuxwireless.org/mac80211/downloads/mac80211-10.0.4.tgz[/url]
% tar xvf mac80211-10.0.4.tgz
mac80211-10.0.4/origin/GIT
mac80211-10.0.4/origin/net/mac80211/Makefile

mac80211-10.0.4/origin/GIT
bash: mac80211-10.0.4/origin/GIT: Permission denied






This probably a simple problem but....

TB0ne 08-13-2008 02:58 PM

Quote:

Originally Posted by poboxjosh (Post 3246437)
I will start off by apologizing for being a noob but... I am trying to install the wireless drivers to get my laptop up and running but i have to install a subsystem first. I am having problems doing so and am running into a permission denied error.


Here is the code
Code:

% wget \
  intellinuxwireless.org/mac80211/downloads/mac80211-10.0.4.tgz[/url]
% tar xvf mac80211-10.0.4.tgz
mac80211-10.0.4/origin/GIT
mac80211-10.0.4/origin/net/mac80211/Makefile

mac80211-10.0.4/origin/GIT
bash: mac80211-10.0.4/origin/GIT: Permission denied

Looks like you're trying to execute a directory-name. If that GIT is a file, it probably doesn't have execute permissions. Doing a chmod 755 on it will fix that. If it's a directory, you want to do a:

cd ./mac80211-10.0.4/origin/GIT

Then run whatever command you want in that directory.

keratos 08-13-2008 03:01 PM

cd mac80211-10.0.4/origin/GIT
make
make install

(make sure gcc package is installed)

makuyl 08-13-2008 03:10 PM

Make sure you have write permission to the directory you're untarring to. Become root, use sudo or untar somewhere in your home dir.

poboxjosh 08-14-2008 02:31 PM

Quote:

Originally Posted by TB0ne (Post 3246463)
Looks like you're trying to execute a directory-name. If that GIT is a file, it probably doesn't have execute permissions. Doing a chmod 755 on it will fix that. If it's a directory, you want to do a:

cd ./mac80211-10.0.4/origin/GIT

Then run whatever command you want in that directory.


This is what happend next

root@HP-dv2000:/home/joshua# chmod 755 mac80211-10.0.4/origin/GIT
root@HP-dv2000:/home/joshua# mac80211-10.0.4/origin/GIT
mac80211-10.0.4/origin/GIT: line 1: cb00e99c0abd844b884c64c6b54aa3b7d345ebb1: command not found
root@HP-dv2000:/home/joshua#
root@HP-dv2000:/home/joshua#

Any ideas??


Thanks in advance.

makuyl 08-14-2008 02:55 PM

Code:

:~/temp/test$wget intellinuxwireless.org/mac80211/downloads/mac80211-10.0.4.tgz

<snip>

:~/temp/test$tar xzf mac80211-10.0.4.tgz
:~/temp/test$cd mac80211-10.0.4/
:~/temp/test/mac80211-10.0.4$ls
CHANGES  FILES  Makefile  origin  ORIGIN_FILES  patches  pending  README  scripts  stubs  TODO

Read the README file. Most sources have this file with instructions.

garyg007 08-14-2008 02:58 PM

In the tarball you downloaded (mac80211-10.0.4.tgz) there is a file named "README"

Did you read it?

It explains how to install the package.

The file you tried to execute is a text file that contains a single line that looks like a hex string; it is not a a script.

Installing this package is going to be a lot more than just running a script.

poboxjosh 08-15-2008 07:52 PM

Quote:

Originally Posted by garyg007 (Post 3247762)
In the tarball you downloaded (mac80211-10.0.4.tgz) there is a file named "README"

Did you read it?

It explains how to install the package.

The file you tried to execute is a text file that contains a single line that looks like a hex string; it is not a a script.

Installing this package is going to be a lot more than just running a script.

I have read it about 9 times but it is not exact which is about all I can understand.


Here are my problems now.

NOTE: As of mac80211-2.0.0 you must also enable CONFIG_CFG80211 and rebuild your main kernel image. This is because the latest mac80211 changes re-implement the kernel built-in from net/core/wireless.c as part of the net/wireless/ sources.

How do I go about doing this?

keratos 08-17-2008 04:10 PM

for a n00b your getting into very deep water now.

what is required here is a change to your linux kernel. not a difficult task but some knowledge of what the essentials are is probably prudent.

basically the steps are:
1. install kernel source and header tree
2. install kernel development packages.
3. install compiler toolchain: gcc, make etc.
4. create a kernel conf file
5. edit the conf file , manually or with tools
6. rebuild
7. install new kernel and attach to GRUB menu.

the process can differ between distros (not sure which one you are using - you dont state this)

this topic is WIDELY documented on the internet and in numerous forums. google is your friend !!


All times are GMT -5. The time now is 05:44 AM.