LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Set up a computer-to-computer (ad hoc) network with Debian (https://www.linuxquestions.org/questions/debian-26/set-up-a-computer-to-computer-ad-hoc-network-with-debian-4175478621/)

Xeratul 09-26-2013 07:04 AM

Set up a computer-to-computer (ad hoc) network with Debian
 
HI,

For instance on Windows, it is quite simple to do:

ex: http://windows.microsoft.com/en-us/w...ad-hoc-network

On Linux it can be done too. Here ex.
https://wiki.archlinux.org/index.php/Ad-hoc_networking

Would you know some cli (console) tool that help
in making it from the repos?

There was ceni for setting up a network in the past, but, it does differ
from this aim.

Kind reggards

TobiSGD 09-26-2013 09:37 AM

All you need is a tool that can set a static IP for your network card. Any distro I know comes with ifconfig by default, which is totally suitable for that job. If you need a more GUI like experience wicd (wicd-cli for the cli and wicd-gtk) can do it also.

Xeratul 09-26-2013 11:28 AM

Quote:

Originally Posted by TobiSGD (Post 5035281)
All you need is a tool that can set a static IP for your network card. Any distro I know comes with ifconfig by default, which is totally suitable for that job. If you need a more GUI like experience wicd (wicd-cli for the cli and wicd-gtk) can do it also.

- For the client it is :

I scan first and know the ESSID (open)

Code:

    iwconfig wlan0 essid  MYESSID
    dhclient wlan0

- What about the server?

TobiSGD 09-26-2013 01:27 PM

Sorry, I didn't notice that you want to setup a wireless network. It would help to know at which point you have problems following the guide in the Arch Wiki, I think it is pretty clear.

Xeratul 09-29-2013 04:15 AM

Hi,

This would mean that my usb dongle cannot do :
server ad-hoc? is it right?

Code:

# iwconfig wlan0 mode ad-hoc
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Operation not permitted.

thank you




I run without this above error message.
Code:


ifconfig wlan0 up
ifconfig
iwconfig mode ad-hoc
iwconfig wlan0 mode ad-hoc
ifconfig wlan0 down
cat net.sh
iwconfig  wlan0 essid fredo
iwconfig wlan0 key dsfdasfdasfdasfafds
ifconfig wlan0 up



but the problem is when I scan with another pc the wifi's, I see NO freedo essid server wifi :(




when I try this, I see no wifi from another pc scanning:
Code:

shell@a:/ # ip link set dev wlan0 down
shell@a:/ # iwconfig wlan0 mode ad-hoc
shell@a:/ # iwconfig wlan0 channel 6
shell@a:/ # iwconfig wlan0 essid 'Test1'
shell@a:/ # ip link set dev wlan0 up
shell@a:/ # ifconfig wlan0 192.168.2.100



All times are GMT -5. The time now is 10:35 PM.