1
<?xml version="1.0" encoding="utf-8"?>
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="net-adhoc">
4
<link type="guide" xref="net#wireless"/>
5
<revision pkgversion="3.0" date="2011-04-05" status="final"/>
6
<revision pkgversion="3.0" version="3.0.1" date="2011-04-06" status="outdated"/>
10
<email>philbull@gmail.com</email>
13
<desc>You can connect computers together by forming an <em>ad-hoc</em> wireless network.</desc>
14
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
17
<title>Connect directly to another computer with a wireless connection</title>
19
<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 wireless 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>
21
<p>To set-up an ad-hoc wireless network:</p>
24
<p>On one of the computers, click the network icon on the top bar and select <gui>Edit Connections</gui>.</p>
28
<p>Go to the <gui>Wireless</gui> tab and click <gui>Add</gui>.</p>
32
<p>In the window that appears, choose a name for the wireless network and then look at the <gui>Wireless</gui> tab.</p>
36
<p>Choose an <gui>SSID</gui>. This is the name of the network that other people will be able to see.</p>
40
<p>Change the <gui>Mode</gui> to <gui>Ad-hoc</gui> and leave the other settings at their defaults. Click <gui>Save</gui>.</p>
44
<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>
45
<p>Click it to connect to the ad-hoc network. 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>
49
<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>
51
<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>
53
<section id="security">
54
<title>Bảo vệ mạng ad-hoc</title>
55
<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>
57
<p>Để thêm mật khẩu:</p>
61
<p>Click the network icon on the top bar and click <gui>Edit Connections</gui>.</p>
65
<p>Go to the <gui>Wireless</gui> tab, select the ad-hoc wireless network and click <gui>Edit</gui>.</p>
69
<p>Go to the <gui>Wireless Security</gui> tab and change the <gui>Security</gui> from <gui>None</gui>.</p>
73
<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>