LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-02-2004, 12:09 AM   #16
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0

You just have to do
Code:
su -
on the command line to switch to the root user.
Then you can do your mkdir.
 
Old 09-03-2004, 09:59 PM   #17
smoothfive04
LQ Newbie
 
Registered: Sep 2004
Location: United States of America
Distribution: 2.6.5-1.358
Posts: 1

Rep: Reputation: 0
I still get problems

I used source directory as /lib/modules/2.6.5-1.358/build as someone specified.

after I try do "make all" I get the following errors:


cp: cannot stat 'lib/modules/2.6.5-1.358/build/.tmp_versions': no such file or directory
make[2]: *** [default] error 1
make[2]: leaving directory: '/user/src/wlan/src/p80211'
make[1]: *** [all] error 2
make[1]: leaving directory: '/user/src/wlan/src'
make: *** [all] error2


I'm a real newbie to Fedora Linux. Can anyone please explain to me using detailed step by step instruction on
how to fix this problem? Thank you. Your response is greatly appreciated
 
Old 09-03-2004, 11:13 PM   #18
sonik.bhoom
LQ Newbie
 
Registered: Aug 2003
Location: Ottawa, Canada
Distribution: Fedora30
Posts: 10

Rep: Reputation: 0
welcome to 'sudo'

Quote:
Originally posted by zerogood
i wanna make a folder in my /usr/src but i can't because its been restricted i know the password and i'm the admin but where do i put in the password to get access to file creation in that folder
first you will have to 'su' to the admin (or root, as it is known) user as you said:
Code:
$ su -  # note the 'minus' sign, this executes the 'root' users profile
Password:
#
Now you can really do everthing you want to from here but you should go the extra step and use 'sudo'

you will need to do is edit the /etc/sudoers file, type 'visudo'
mine looks something like this:

Code:
# sudoers file.
# User privilege specification
root    ALL=(ALL) ALL
sonik   ALL=(ALL) ALL  # my local user
add a line for your user (if you are the only one on your system you should be able to get away with 'ALL=(ALL) ALL')

save the file and out of the root user

now you can perform elevated privilege commands by typing:

Code:
$ sudo <command>
and entering you local users passwd not the root users...

...
 
Old 09-20-2004, 05:59 AM   #19
orbitalistic
LQ Newbie
 
Registered: Apr 2003
Location: Valencia (Spain)
Posts: 18

Rep: Reputation: 0
I have gone through all the kernel-compiling steps, but I'll get this when compiling the wlan-ng driver (doing make install):

find . -name .depend -exec rm {} \;
set -e; for d in src doc man etc; do make -C $d install ; done
make[1]: Entering directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src'
set -e; for d in p80211 prism2 shared wlanctl wland nwepgen mkmeta wlancfg; do make -C $d install ; done
make[2]: Entering directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src/p80211'
mkdir -p /usr/share/lib/modules/2.6.5-1.358/linux-wlan-ng/net
cp p80211.ko /usr/share/lib/modules/2.6.5-1.358/linux-wlan-ng
cp: no se puede efectuar `stat' sobre «p80211.ko»: No existe el fichero o el directorio
make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src/p80211'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src'
make: *** [install] Error 2



I've tried the pre20 and pre21 too, and I'll get the same message. What am I doing wrong?

Thanks in advance
 
Old 09-20-2004, 11:19 AM   #20
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
IMHO, the problem is before the make install. The message is pretty self explanatory, it can't find one of the files generated when you compile the driver (p80211.ko).
Check the output of make all and see what kind of error you got there.
 
Old 09-21-2004, 01:32 PM   #21
orbitalistic
LQ Newbie
 
Registered: Apr 2003
Location: Valencia (Spain)
Posts: 18

Rep: Reputation: 0
Ok I had forgotten the "make all" step. Anyway, I get another error whe doing make all, this is it:


[root@localhost linux-wlan-ng-0.2.1pre22]# make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do make -C $d ; done
make[2]: Entering directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src/mkmeta'
ngcc -E -M -I../include -I/lib/modules/2.6.5-1.358/build/include -D__LINUX_WLAN__ ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../shared/p80211meta.c mkmetastruct.c > .depend
/bin/sh: line 1: ngcc: command not found
make[2]: *** [.depend] Error 127
make[2]: Leaving directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src/mkmeta'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/pablarribas/untarred/linux-wlan-ng-0.2.1pre22/src'
make: *** [all] Error 2



I am sorry but I don't know what's wrong. Does any of you?

Thanks in advance
 
Old 09-23-2004, 02:56 AM   #22
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
You need all the C/C++ compilers and developpement tools to be installed (I suppose you do) and you need to run make config in the linux-wlan-ng-0.2.x directory before doing the make all.
Then the makefile should use gcc instead of ngcc and everything should (hopefully) work fine. (everything is explained in the README file RTFM ;-)
 
Old 10-01-2004, 12:22 PM   #23
motor26
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
I'm also joining the ranks of ppl having problems with installing the driver. I'm not sure if I have what I need to compile the driver. I'm running the "make config" command from /usr/src/linux-wlan-ng.0.1.2.1pre22 and it is pointing to /lib/modules/<kernel name>/build but I get error message and don't know if I should continue, so I ctl+c to break the process. Also the default does not select _usb and I am selecting it over the default "n". Is it appropriate to post the text of the error msg here? I'm new to the forums also, but I'm trying and learning
 
Old 10-02-2004, 05:24 AM   #24
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
When then kernel has been compiled on your machine, it seems that the /lib/modules/<kernel>/build directory contains all the files needed to compile the driver (there are a lot of hidden files generated there).
My experience is that these files don't exist when you install the system, and so you can't compile the driver unless you did a full kernel compile on the machine and you are running the newly generated kernel.
So you have to get the kernel source package, the developpement tools and follow the steps as shown at the beginning of this thread.
The README file of the linux-wlan-ng might be useful too.

I compiled the usb driver alone without any problem (yes you can override the default ;-) and you can also post the error messages here, it will help.

Have fun
 
Old 10-04-2004, 11:53 AM   #25
motor26
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
Thanks for the reply. Sound like I have a little work to do. Is there a way to identify the current kernel options? Since I've never done one before, I want to make sure I don't leave anything out that I currently have. Or, is that just not a problem I need to worry about. I'm going to pull some more docs about re-compiling the kernel then give it a go because I really want to use the usb wireless adapter, AND it sounds like it would be a good thing to learn.

I'll try to post the code of the err message below to see if it helps further diagnose the problem/s I'm having.

Quote:
-------------- Linux WLAN Configuration Script -------------

The default responses are correct for most users.

Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]:
Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [n]:
Build Prism2.5 native PCI (_pci) driver? (y/n) [n]:
Build Prism2.5 USB (_usb) driver? (y/n) [n]: y

Linux source directory [/lib/modules/2.6.8-1.521/build]:
make[1]: cc: Command not found
make[1]: *** [get_version] Error 127
./Configure: line 246: scripts/make.opts: No such file or directory

The kernel source tree is version .
Kernel 2.5/2.6 support is highly experimental.
WARNING: the current running kernel is actually version 2.6.8-1.521.
The current kernel build date is Mon Aug 16 09:01:18 2004.
./Configure: line 299: [: too many arguments

./Configure: line 337: scripts/make.opts: No such file or directory
Alternate target install root directory on host []:
 
Old 10-04-2004, 01:27 PM   #26
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
First, your system doesn't find cc, which is necessary for compiling anything, so I think you didn't install gcc and the developpment tools. Try
Code:
rpm -q gcc
and see what the message is. It should return the package version number.
Second, you are using a 2.6.8 kernel, which is not the stock kernel of Fedora Core 2 (I assume that you are running this distribution, but correct me If I'm wrong). That means that you have to install the corresponding kernel sources and follow the procedure from there.
Third, the default kernel config files are in the configs subdirectory in the kernel source tree, you should copy the one corresponding to you kernel as .config as explained at the begining of this thread to get the exact same options as these of the kernel you are running (assuming you got the kernel from an official Fedora source). Doing this, you don't have to do the make config (or make xconfig) when you compile the kernel.
 
Old 10-04-2004, 07:32 PM   #27
motor26
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
I checked and I do not have gcc (package gcc is not installed). And what exactly does Gnu Compiler Collection do? I gather is is part of the tools needed to create the driver, or modules, amoung other things.

As far a the kernel goes, I installed fc2 from an iso disk set which first had the 2.6.5-1.358 kernel. Then the "up2date" program offered me the 2.6.8-1.521 which I promptly installed. I'm not sure if the original kernal source was included in the initial installation. So, will I have to re-compile the wlan driver each time I update the kernel? I am assuming (ok shoot me...) that the up2date process would take into account the current kernel configuration and include anything pre-existing.

Re. "Third" I think I'll have to get the source tree on my system first. I don't see the configs subdir you refer to, unless I'm looking in the wrong the place, /lib/modules/<kernel name>. If you are referring to /usr/src/<kernel name> noted at the beginning of the thread, I don't have anything there. My /usr/src directory was empty until I put the source for the wlan module there.

Thanks again, I'm off to pull more info.

Last edited by motor26; 10-04-2004 at 07:48 PM.
 
Old 10-05-2004, 12:04 AM   #28
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
So before posting any further message in this thread, here's what you've got to do :
- install the developpement tools and the kernel developpement tools (you can use the graphical applet system-config-packages=add/remove applications in the menus). gcc is part of the developpement tools (it contains the C compiler). Kernel sources are in the package kernel-source.
- find a kernel compiling how-to
- compile the kernel and run the newly compiled kernel (sources in /usr/src/llinux, config files in /usr/src/linux/configs).
I won't help you in this field, I really don't have that much time, you have to do your homework before you can mess with these kernel modules.

As for the linux-wlan-ng module, yes, you'll have to do all this each time you change your kernel version (which is the reason I'm still running the stock kernel).
It will be so as long as this driver is not part of the kernel source tree.

Good luck
 
Old 10-05-2004, 12:48 AM   #29
motor26
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
Waaaa Hoooo! I got it working. I did some more research and found a way to bring down the kernel source and install the driver. In FC1 I used the up2date program to download the source tree for my currently running kernel. I then followed the instructions for compiling the wlan driver, configured the adapter and I'm on it now. Didn't even have to compile the kernel, just the wlan module. I'm going to give FC2 a try next.

Thanks for all your help.
 
Old 10-05-2004, 11:22 AM   #30
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
Glad you managed to do it with FC1. It's easier because the 2.4 kernel is less picky about "foreign" modules.
It went also like a breeze for me with RH9 and FC1, FC2 and linux 2.6 is another story
 
  


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
wlan-ng on Fedora Core 4 rid00z Linux - Hardware 1 06-27-2005 05:09 PM
Freeze on splash with "Fedora Core-up (2.6.5-1.358)" Prouder Fedora 1 10-14-2004 09:52 AM
USB Problem with Kodak CX6230 digital camera at Fedora Core 2 with kernel 2.6.5-1.358 RedAhead Linux - Software 2 10-02-2004 05:17 AM
sftp and scp problems on kernel 2.6.5-1.358(fedora core 2) nikhil.hegde Linux - Software 0 09-21-2004 02:08 PM
Asus wlan for Fedora Core? shamgar03 Linux - Hardware 1 09-02-2004 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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