sharing an wierd internet connection over wireless wifi ad-hoc

Asked by raptor222 on 2008-01-25

Hi, I want to move to Ubuntu for some time now, and while checking that every thing on my computer will work i got stuck on a problem concerning setting up an ad-hoc network between my windows running laptop and the desktop pc (it is worth mentioning that i don't have Ubuntu installed but i tried to activate the ad-hoc network form the live CD).
never what i tried i couldn't make it work, Ubuntu recognized the wi-fi card but was unable establish a connection even when i tried to set up an ad hoc network on the laptop side.
so my question is does anyone knows how to set up an ad hoc wireless network with internet sharing between an Ubuntu machine and a windows (XP Pro sp2) without installing Ubuntu (using live CD). it is crucial that i make this work if I'm to switch to Ubuntu.

several thing you need to know:
i use an tp-link 54m wireless adapter model: TL-WN550G.
Ive already looked at:
https://help.ubuntu.com/community/WifiDocs/Adhoc?highlight=%28ad-hoc%29 and
https://help.ubuntu.com/community/WifiDocs/ShareEthernetConnectionThroughWireless?highlight=%28ad-hoc%29
none of those worked for me.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-nettool Edit question
Assignee:
No assignee Edit question
Last query:
2008-01-25
Last reply:
2009-06-24
naufal (musp-student) said : #1

Hello,
can you post 'lspci' result?

raptor222 (shaulliv) said : #2

ubuntu@ubuntu:~$ lspci
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corporation 82945G/GZ/P/PL PCI Express Root Port (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation G71 [GeForce 7300 GS] (rev a1)
03:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5789 Gigabit Ethernet PCI Express (rev 11)
04:00.0 Ethernet controller: Atheros Communications, Inc. AR2413 802.11bg NIC (rev 01)
04:06.0 RAID bus controller: Integrated Technology Express, Inc. IT/ITE8212 Dual channel ATA RAID controller (rev 13)
ubuntu@ubuntu:~$

sorry it took so long, i was working on win and it took some time to boot the livecd

naufal (musp-student) said : #3

Try this command in terminal and post the result:
lspci | grep Broadcom\ Corporation

raptor222 (shaulliv) said : #4

ubuntu@ubuntu:~$ lspci | grep Broadcom\ Corporation
03:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5789 Gigabit Ethernet PCI Express (rev 11)
ubuntu@ubuntu:~$

 i did some progress on my own. still the computers cant "talk" to each other but now the windows computr recognizes the Linux wifi ad hoc network

here is a link to some pics of what i did: http://picasaweb.google.com/shaulliv/Linpic

naufal (musp-student) said : #5

hello,
this link will show you supported wireless card:
https://help.ubuntu.com/community/WifiDocs/WirelessCardsSupported

pablitofuerte (pablitofuerte) said : #6

Requirements

In order to share your wired connection and create an ad-hoc wireless network you will need the following:

    * An active wired network connection
    * Functional wireless network device
    * Network Manager 0.7 or later
    * dnsmasq-base package installed

Installation and Configuration

The requirements above are pretty easy to come by. Network Manager 0.7 or later should be installed by default on any Ubuntu version past 8.10 (Intrepid, Jaunty and later). The dnsmasq-base package can be installed using the command (or clicking the link):

    sudo aptitude install dnsmasq-base

At this point you should have all of your requirements met and we can move on to creating the ad-hoc wireless network.

Click on the Network Manager icon and select “Create New Wireless Network”.

You’ll be prompted to define a Network Name and optional Wireless Security Level. Once you define these values and activate you should be able to see a new SSID listed and begin sharing your connection. Enjoy!

This is just a copy&paste from: http://ubuntu-tutorials.com/2009/06/13/how-to-share-your-internet-connection/

pablitofuerte (pablitofuerte) said : #7

The trick is just install dnsmasq-base. DNSmasq provides two services, either of which can be used independently.

    * DNS service
    * DHCP service (including features relating to network boot)

A local DNS cache can speed up internet browsing because your browser will not need to go to another server, or across the internet, when it looks up a domain name you've used before, e.g. google.com

DHCP allows your computer to allocate network addresses to other computers on your wired or wireless network. A computer needs a network address in order to do things like access the internet.

If you need more info about dnsmasq-base you can read this: https://help.ubuntu.com/community/Dnsmasq

You can see how to create your ad-hoc wireless network in gnome (in this case in fedora, though it is the same way) on this video: http://magazine.redhat.com/2008/10/16/video-fedora-10-connection-sharing/

Hope that helps.
Regards from Pablo

Can you help with this problem?

Provide an answer of your own, or ask raptor222 for more information if necessary.

To post a message you must log in.