LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-26-2013, 07:04 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,653

Rep: Reputation: 255Reputation: 255Reputation: 255
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
 
Old 09-26-2013, 09:37 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 09-26-2013, 11:28 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,653

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by TobiSGD View Post
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?
 
Old 09-26-2013, 01:27 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 09-29-2013, 04:15 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,653

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
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

Last edited by Xeratul; 09-29-2013 at 04:29 AM.
 
  


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
[SOLVED] how to send mails on local network from one computer to another computer suresh.k Linux - Server 21 05-03-2013 02:02 AM
How to set up network to a computer running windows? Edstorm Zenwalk 3 11-25-2007 02:09 AM
How do I set up a home network with a Linspire and Windows XP computer? wollycleaver Linux - Networking 2 06-20-2007 01:55 AM
How do I set up a home network with a Linspire and Windows XP computer? wollycleaver Linux - Networking 1 06-19-2007 01:44 AM
How to setup computer to computer network between Mandriva and Mac? ssass21 Mandriva 3 01-18-2007 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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