LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cannot setup wifi (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-setup-wifi-4175552974/)

goldduo 09-08-2015 06:50 PM

cannot setup wifi
 
i just installed ubuntu server, and tried to connect to wifi (using my wireless usb adapter)

i tried:
sudo iwlist wlan1 .. and see my network Home-072
sudo iwconfig wlan1 essid "HOME-072" key 43242E5D23423C

I also tried
sudo iwconfig wlan1 essid "HOME-072" key s:43242E5D23423C

either way, i get "set failed on device wlan1: invalid argument"

I suppose the driver is already installed since i can see network available?

I also tried
sudo dhclient -v wlan1
and got repeatedly:
DHCPDISCOVER on wlan1 to 255.255.255.255 port 67....


any help?

Ztcoracat 09-08-2015 07:23 PM

Hi & Welcome to Linux Questions.

You might want to post what wifi usb adapter you have.
That way someone could help you find the driver for it if it's not already installed.

The usb wifi adapter should show in the output of the command:
Code:

lsusb

Soadyheid 09-08-2015 07:31 PM

Welcome to LinuxQuestions!

Did you plug in your usb WiFi adapter before or after you installed Ubuntu?

Play Bonny!

:hattip:

goldduo 09-08-2015 08:13 PM

i plugged in the usb adapter before installation, but i passed.

lsusb give me:
Bus007 Device 001 ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus005 Device 001 ID 1d6b: 0001 Linux Foundation 2.0 root hub
............
7 lines.

the adapter is WiBee 802.11g, it does have a MAC and S/N. i dont have the CD anymore.

i thought if i can detect available wireless network, the adapter is already working, thus a driver is already installed?

Ztcoracat 09-08-2015 08:25 PM

Quote:

Originally Posted by goldduo (Post 5417765)
i plugged in the usb adapter before installation, but i passed.

lsusb give me:
Bus007 Device 001 ID 1d6b: 0001 Linux Foundation 1.1 root hub
Bus005 Device 001 ID 1d6b: 0001 Linux Foundation 2.0 root hub
............
7 lines.

the adapter is WiBee 802.11g, it does have a MAC and S/N. i dont have the CD anymore.

i thought if i can detect available wireless network, the adapter is already working, thus a driver is already installed?

When you run "lsusb" does the WiBee show up in the output at all?

If the kernel is already loading a module/driver for the WiBee usb device it would show in that output.

If you can see your network but can't connect it's probably a driver issue or you need to click on your network and type in your passphrase that you ISP gave you.

Is this your adapter?
http://www.premiertek.net/products/n...XS-2204-S.html

goldduo 09-08-2015 08:38 PM

Quote:

Originally Posted by Ztcoracat (Post 5417770)
When you run "lsusb" does the WiBee show up in the output at all?

If the kernel is already loading a module/driver for the WiBee usb device it would show in that output.

If you can see your network but can't connect it's probably a driver issue or you need to click on your network and type in your passphrase that you ISP gave you.

Is this your adapter?
http://www.premiertek.net/products/n...XS-2204-S.html

no, wiBee does not show up in lsusb. so i guess i need to install the driver?

yes, exactly that's my adapter. so if i get the driver, i burn it onto a CD. then how do i install it? i found that the driver is an .exe file?

Ztcoracat 09-08-2015 09:12 PM

Quote:

Originally Posted by goldduo (Post 5417776)
no, wiBee does not show up in lsusb. so i guess i need to install the driver?

yes, exactly that's my adapter. so if i get the driver, i burn it onto a CD. then how do i install it? i found that the driver is an .exe file?

If you can find the driver for Linux download it and put it in your Downloads directory.
The file extention for Linux is tar.gz- .exe is for Windows.

It should have a INSTALL file or a ReadMe file to tell you how to install it.
Use the tar xvf (name of driver.gz)
<OR> you could use the dpkg command to install the driver with apt-get.

yancek 09-08-2015 09:21 PM

The link below is to the driver page. Scroll down to Linux, click on the link and select Save File to download. Extract it and there is a README file included with instructions. Good luck.

http://www.premiertek.net/top/download.html

ardvark71 09-08-2015 10:15 PM

Hi all...

The fact that the adapter is not showing up in lsusb at all is a bit disconcerting. Installing the driver first may work but I wouldn't be surprised if it didn't. :(

Regards...

goldduo 09-08-2015 10:16 PM

i burned the driver files onto a data CD, but i cannot mount the cdrom?

sudo -i
mount /dev/cdrom /mnt/cdrom

i got:
blk_update_request i/o error, dev sr0
buffer i/o error on dev sr0?

Ztcoracat 09-08-2015 10:37 PM

Quote:

Originally Posted by goldduo (Post 5417805)
i burned the driver files onto a data CD, but i cannot mount the cdrom?

sudo -i
mount /dev/cdrom /mnt/cdrom

i got:
blk_update_request i/o error, dev sr0
buffer i/o error on dev sr0?

Sorry I've never mounted a CD in the terminal because it has always shown on the desktop for me.
Try here:
http://www.cyberciti.biz/faq/mounting-cdrom-in-linux/

ardvark71 09-08-2015 11:38 PM

Quote:

Originally Posted by goldduo (Post 5417805)
i burned the driver files onto a data CD, but i cannot mount the cdrom?

sudo -i
mount /dev/cdrom /mnt/cdrom

i got:
blk_update_request i/o error, dev sr0
buffer i/o error on dev sr0?

Hi...

It might be a lot easier to use a program with a gui for this task. ;)

Regards...

goldduo 09-09-2015 02:56 AM

i reinstalled ubuntu server, this time version 15.

when i plugin the usb adapter, i see it listed in "lsusb" as RTL8187.
i do "lsmod | grep rtl" and i see rtl8187. doesn't that mean the driver is automatically installed?

still i got the same error "set failed on device wlan0: invalid argument"

now i am able to mount the cdrom, but unable to copy or even view the contents of the cdrom..

Ztcoracat 09-09-2015 02:09 PM

Quote:

Originally Posted by goldduo (Post 5417869)
i reinstalled ubuntu server, this time version 15.

when i plugin the usb adapter, i see it listed in "lsusb" as RTL8187.
i do "lsmod | grep rtl" and i see rtl8187. doesn't that mean the driver is automatically installed?

still i got the same error "set failed on device wlan0: invalid argument"

now i am able to mount the cdrom, but unable to copy or even view the contents of the cdrom..


Yes, according to this link the RTL8187 is the driver for the adapter.
https://wireless.wiki.kernel.org/en/...rivers/rtl8187

Maybe try:
sudo modprobe rtl8187 like in this thread.
http://ubuntuforums.org/showthread.php?t=1904757&page=5


All times are GMT -5. The time now is 02:12 PM.