LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 08-31-2011, 02:18 PM   #1
cooluyo
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
Trying to Install D-link router


I just switched from windows to kubuntu and I am so confused on how to install the router (DWA - 130c). I went to the website and downloaded the linux driver for it but i am still confused on what to do. Here is what it says i should do:

Release Date: 2008-10-31, ver 0.06
RTL8192U Linux driver version 0.06
--This driver supports RealTek rtl8192U USB Wireless LAN NIC
for
2.6 kernel:
Fedora Core 2/3/4/5, Debian 3.1, Mandrake 10.2/Mandriva 2006,
SUSE 9.3/10.1/10.2, Gentoo 3.1, Ubuntu 7.10/8.04, etc.
2.4 kernel:
Redhat 9.0/9.1

===============================================================================
Component
===============================================================================
The driver is composed of several parts:
1. Firmare to make nic work
1.1 firmare/RTL8192U

2. Module source code
2.1 ieee80211
2.2 HAL/rtl8192u
2.3 wpa_supplicant-0.5.10 (User can download the latest version from
internet also, but it is suggested to use default package contained
in the distribution because there should be less compilation issue.)

3. Script to build the modules
3.1 Makefile

4. Script to load/unload modules
4.1 wlan0up
4.2 wlan0down

5. Script and configuration for DHCP
5.1 wlan0dhcp
5.2 ifcfg-wlan0

6. Example of supplicant configuration file:
6.1 wpa1.conf

===============================================================================
Installation
===============================================================================
<<Method 1>>
Runing the scripts accomplish all operations including building up modules
from the source code, installing driver to the kernel and starting up the nic.
1. Build up the drivers from the source code
make

2. Install the driver to the kernel
make install
reboot

3. bring up wlan if nic is not brought up by GUI, such as NetworkManager
ifconfig wlan0 up
Note: use ifconfig to check whether wlan0 is brought up and use iwconfig to check your wlan interface name,
since it may change wlan0 to wlan1,etc.

<<Method 2>>
Or only load the driver module to kernel and start up nic.
1. Build up the drivers from the source code
make
2. Copy firmware to /lib/firmware/ or /lib/firmware/(KERNEL_VERSION)/
cp -rf firmware/RTL8192U /lib/firmware
or
cp -rf firmware/RTL8192U /lib/firmware/(KERNEL_VERSION)
Note: This depends on whether (KERNEL_VERSION) subdirectory exists under /lib/firmware

3. Load driver module to kernel and start up nic.
./wlan0up
Note: when "insmod: error inserting 'xxxx.ko': -1 File exists" comes out
after run ./wlan0up, please run ./wlan0down first, then it should
be ok..
Note: If you see the message of "unkown symbol" during ./wlan0up, it
is suggested to build driver by <<Method 1>>.

===============================================================================
Set wireless lan MIBs
===============================================================================
This driver uses Wireless Extension as an interface allowing you to set
Wireless LAN specific parameters.

Current driver supports "iwlist" to show the device status of nic
iwlist wlan0 [parameters]
where
parameter explaination [parameters]
----------------------- -------------
Show available chan and freq freq / channel
Show and Scan BSS and IBSS scan[ning]
Show supported bit-rate rate / bit[rate]

For example:
iwlist wlan0 channel
iwlist wlan0 scan
iwlist wlan0 rate

Driver also supports "iwconfig", manipulate driver private ioctls, to set
MIBs.

iwconfig wlan0 [parameters] [val]
where
parameter explaination [parameters] [val] constraints
----------------------- ------------- ------------------
Connect to AP by address ap [mac_addr]
Set the essid, join (I)BSS essid [essid]
Set operation mode mode {Managed|Ad-hoc}
Set keys and security mode key/enc[ryption] {N|open|restricted|off}

For example:
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX
iwconfig wlan0 essid "ap_name"
iwconfig wlan0 mode Ad-hoc
iwconfig wlan0 mode essid "name" mode Ad-hoc
iwconfig wlan0 key 0123456789 [2] open
iwconfig wlan0 key off
iwconfig wlan0 key restricted [3] 0123456789
Note: Better to set these MIBS without GUI such as NetworkManager and be sure that our
nic has been brought up before these settings. WEP key index 2-4 is not supportted by
NetworkManager.

===============================================================================
Getting IP address
===============================================================================
After start up the nic, the network needs to obtain an IP address before
transmit/receive data.
This can be done by setting the static IP via "ifconfig wlan0 IP_ADDRESS"
command, or using DHCP.

If using DHCP, setting steps is as below:
(1)connect to an AP via "iwconfig" settings
iwconfig wlan0 essid [name] or
iwconfig wlan0 ap XX:XX:XX:XX:XX:XX

(2)run the script which run the dhclient
./wlan0dhcp
or
dhcpcd wlan0
(Some network admins require that you use the
hostname and domainname provided by the DHCP server.
In that case, use
dhcpcd -HD wlan0)


===============================================================================
WPAPSK/WPA2PSK
===============================================================================
Wpa_supplicant helps to secure wireless connection with the protection of
WPAPSK/WPA2PSK mechanism.

If the version of Wireless Extension in your system is equal or larger than 18,
WEXT driver interface is recommended. Otherwise, IPW driver interface is advised.
Note: Wireless Extension is defined us "#define WIRELESS_EXT" in Kernel
Note: To check the version of wireless extension, please type "iwconfig -v"


If IPW driver interface is used, it is suggested to follow the steps from 1 to 6.
If wpa_supplicant has been installed in your system, only steps 5 and 6 are required
to be executed for WEXT driver interface.

To see detailed description for driver interface and wpa_supplicant, please type
"man wpa_supplicant".

(1)Download latetest source code for wpa supplicant or use wpa_supplicant-0.5.10
attached in this package. (It is suggested to use default package contained
in the distribution because there should less compilation issue.)

Unpack source code of WPA supplicant:

tar -zxvf wpa_supplicant-0.5.10.tar.gz (e.g.)
cd wpa_supplicant-0.5.10

(2)Create .config file:
cp defconfig .config

(3)Edit .config file, uncomment the following line if ipw driver interface
will be applied:
#CONFIG_DRIVER_IPW=y.

(4)Build and install WPA supplicant:
make
cp wpa_cli wpa_supplicant /usr/local/bin

If make error for lack of <include/md5.h>, install the openssl lib(two ways):
1. Install the openssl lib from corresponding installation disc:
Fedora Core 2/3/4/5(openssl-0.9.71x-xx),
Mandrake10.2/Mandriva10.2(openssl-0.9.7x-xmdk),
Debian 3.1(libssl-dev), Suse 9.3/10.0/10.1(openssl_devl),
Gentoo(dev-libs/openssl), etc.
2. Download the openssl open source package from www.openssl.org, build and
install it.

(5)Edit wpa_supplicant.conf to set up SSID and its passphrase.
For example, the following setting in "wpa1.conf" means SSID
to join is "BufAG54_Ch6" and its passphrase is "87654321".

Example 1: Configuration for WPA-PWK
network={
ssid="BufAG54_Ch6"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="87654321"
priority=2
}

Example 2: Configuration for LEAP
network={
ssid="BufAG54_Ch6"
key_mgmt=IEEE8021X
group=WEP40 WEP104
eap=LEAP
identity="user1"
password="1111"
}

Example 3: Linking to hidden ssid given AP's security policy exactly.(see note 3 below)
ap_scan=2
network={
ssid="Hidden_ssid"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="12345678"
}

Example 4: Linking to ad-hoc (see note 4 below)
ap_scan=2
network={
ssid="Ad-hoc"
mode=1
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
psk="12345678"
}
Note: 1. proto=WPA for WPA, proto=RSN for WPA2.
2. If user needs to connect an AP with WPA or WPA2 mixed mode, it is suggested
to set the cipher of pairwise and group to both CCMP and TKIP unless you
know exactly which cipher type AP is configured.
3. When connecting to hidden ssid, explicit security policy should be given with
ap_scan=2 being setted.
4. It is suggested setting ap_scan to 2 and mode to 1 when linking to or creating an ad-hoc. Group and pairwise
cipher type should also be explicit, always with group setted to TKIP or CCMP and pairwise setted
to NONE. Lower version wpa_supplicant may not allow setting group to CCMP with pairwise setting to NONE.
So if any problem, you may try to set both group and pairwise to CCMP, leaving other setting unchanged, when
connecting to an CCMP-encrypted ad-hoc.
5. More config setting option, please refer to wpa_supplicant.conf in wpa_supplicant.tar.gz that we provide.

(6)Execute WPA supplicant (Assume rtl8192U and related modules had been
loaded):
wpa_supplicant -D wext -c wpa1.conf -i wlan0 (recommended)
wpa_supplicant -D ipw -c wpa1.conf -i wlan0

Note: At first, user sholud check Wireless Extension by typing "iwconfig -v"
on the comment line. If the version of Wireless Extension is equal or
larger than 18, the option of "-D wext" is suggested. If the version
of Wireless extension is less than 18, the option of "-D ipw" is
suggested.
 
Old 08-31-2011, 02:58 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

it looks like you've messed up something or taken a wrong turn somewhere, because a router usually doesn't require installation of any driver or extra software. The documentation you quoted sounds more like a WLAN interface.

Quote:
Originally Posted by cooluyo View Post
RTL8192U Linux driver version 0.06
--This driver supports RealTek rtl8192U USB Wireless LAN NIC
There you go. A wireless network interface. Not a router.
So what is it actually that you want to install?

[X] Doc CPU
 
Old 08-31-2011, 03:02 PM   #3
bplis
Member
 
Registered: May 2011
Distribution: Fedora
Posts: 39

Rep: Reputation: Disabled
go with method 1;
Open Terminal (or Konsole) and go to the directory in which you have the driver saved.
say you have the driver saved in ex. /home/User/Downloads/driver
Type into your terminal code: cd /(directory)
ex. cd /home/User/Downloads/driver
Then type code: make
ex. make
A bunch of text should appear, you can usually ignore this unless an error message comes up.
the type code: make install
ex. make install
should show similar things to the make command
then type code: reboot
ex. reboot
**WARNING** this will restart your computer, save all data before typing reboot
when your computer comes back up, open Terminal/Konsole back upo, and type code: ifconfig wlan0 up ex. ifconfig wlan0 up

then you should be free to use/administrate the router. Feel free to post back any errors!


*EDIT*
And I do agree with DOC:
You're probably installing a wireless network card/reciever. Unless you are administrating the router for a server of some sort?

Last edited by bplis; 08-31-2011 at 03:04 PM.
 
Old 08-31-2011, 04:20 PM   #4
cooluyo
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
right now i am stuck the program says "The program 'make' is currently not installed. You can install it by typing: sudo apt-get install make" i type exactly what it says but it says the make is currently not installed


fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ /home/fun/Downloads
bash: /home/fun/Downloads: Is a directory
fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ make
The program 'make' is currently not installed. You can install it by typing:
sudo apt-get install make
fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ sudo apt-get install make
[sudo] password for fun:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'make' has no installation candidate
fun@fun-RE473AA-ABA-SR2020NX-NA680:~$

Last edited by cooluyo; 08-31-2011 at 04:32 PM.
 
Old 09-01-2011, 11:17 AM   #5
bplis
Member
 
Registered: May 2011
Distribution: Fedora
Posts: 39

Rep: Reputation: Disabled
Quote:
Originally Posted by cooluyo View Post
right now i am stuck the program says "The program 'make' is currently not installed. You can install it by typing: sudo apt-get install make" i type exactly what it says but it says the make is currently not installed


fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ /home/fun/Downloads
bash: /home/fun/Downloads: Is a directory
fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ make
The program 'make' is currently not installed. You can install it by typing:
sudo apt-get install make
fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ sudo apt-get install make
[sudo] password for fun:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'make' has no installation candidate
fun@fun-RE473AA-ABA-SR2020NX-NA680:~$


ok, first of all, you didn't type
cd
before your directory. You may want to try to try to install one of several variants of make, such as kmake or gmake instead, they sghould do the same thing. Did you type in your password after the sudo? you may need to do that at the beginning anyway. And you may want to try installing make again, to see if there was just a temporary mixup.

Last edited by bplis; 09-01-2011 at 11:19 AM.
 
Old 09-01-2011, 12:13 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
With the 'buntu's (and you are running kubuntu) make is part of the package build-essential so the commands you need to install make (and all the other stuff you'll need to compile from source) is
Code:
sudo apt-get install build-essential linux-headers-$(uname -r)
 
Old 09-03-2011, 10:00 PM   #7
cooluyo
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
every time i type in ifconfig wlan0 up it tells me the resources are temporarily unavailable

fun@fun-RE473AA-ABA-SR2020NX-NA680:~$ sudo ifconfig wlan0 up
SIOCSIFFLAGS: Resource temporarily unavailable
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
How to install D-Link ADSL Router in Red Hat 9.0 through USB?? ankur.mehta Linux - Hardware 4 11-23-2006 07:58 AM
WPA works with D-Link Router, but not Belkin Router Bladesonfire Linux - Wireless Networking 0 10-07-2006 04:15 PM
D-Link Router webwolf70 Linux - Networking 2 05-02-2005 04:14 PM
OpenBSD 3.6 install D-Link 300T / D-Link DFE 528TX lesleyb *BSD 2 04-01-2005 06:29 PM


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