1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="net-adhoc" xml:lang="nl">
4
<link type="guide" xref="net-wireless"/>
8
<email>philbull@gmail.com</email>
11
<desc>You can connect computers together by forming an <em>ad-hoc</em> wireless network.</desc>
12
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
15
<title>Connect directly to another computer with a wireless connection</title>
18
<cite>philbull@gmail.com</cite>
19
<p>These instructions are outdated - at the moment there doesn't seem to be a way to create a new wireless network that you can then change to being Ad-Hoc. You used to be able to do this. This becomes an issue at step 3 in the steps list below.</p>
23
<cite>jbicha@ubuntu.com</cite>
24
<p>This definitely needs review. nm-connection-editor was not cooperating for me today but I think this comes closer to working. I think we should also integrate the security part into the main instructions.</p>
27
<p>You can connect computers together by forming an <em>ad-hoc</em> wireless network. This is useful if one of the computers has a printer connected to it that you want to share, or if you want to transfer files between them, for example. With a normal (<em>infrastructure</em>) wireless network, you would connect both computers to a network provided by wireless base station or router. If you don't have a base station, however, an ad-hoc network will still allow you to connect the computers to each other.</p>
29
<p>To set-up an ad-hoc wireless network:</p>
32
<p>On one of the computers, click the network icon on the top bar and select <gui>Network Settings</gui>.</p>
36
<p>Select <gui>Wireless</gui> from the list on the left and click <gui>Configure</gui>.</p>
40
<p>In the window that appears, switch to the Wireless tab and click <gui>Add</gui>.</p>
44
<p>Choose an <gui>SSID</gui>. This is the name of the network that other people will be able to see.</p>
48
<p>Change the <gui>Mode</gui> to <gui>Ad-hoc</gui>. You may also want to switch to the <gui>Wireless Security</gui> tab and set the security protocol. Click <gui>Save</gui>.</p>
52
<p>On the other computer, click the network icon on the top bar and look for a network with the SSID you chose. It might take a minute or two to appear in the list.</p>
53
<p>Click it to connect to the ad-hoc network. Once connected, you will be able to access network shares and so on, like you would if both computers were connected to a conventional wireless network.</p>
57
<p>These instructions will be different if one of the computers is not running Linux. You may find it easiest to set-up the ad-hoc network on the Linux computer and connect to it using the other computer.</p>
59
<p>Also note that some wireless network cards do not support ad-hoc networking, so you will not be able to use them to create an ad-hoc network.</p>
61
<section id="security">
62
<title>Securing an ad-hoc network</title>
63
<p>Anyone in the area will be able to connect to your ad-hoc network, so it's not very secure. You can add a <link xref="net-wireless-wepwpa">WEP/WPA password</link> to the network to protect it from unauthorized access.</p>
65
<p>To add a password:</p>
69
<p>Click the network icon on the top bar and click <gui>Network Settings</gui>.</p>
73
<p>Go to the <gui>Wireless</gui> tab, select the ad-hoc wireless network and click <gui>Configure</gui>.</p>
77
<p>Go to the <gui>Wireless Security</gui> tab and change the <gui>Security</gui> from <gui>None</gui>. WPA is a good, secure choice, but some older wireless cards do not support it so you might have to use WEP instead.</p>
81
<p>Choose your own password and then click <gui>Save</gui>. The other computers connected to the ad-hoc connection will have to reconnect and you'll have to enter the password on each of them.</p>