12 063
правки
(Новая страница: «=== Setup in client mode ===») |
(Новая страница: «# Disable hotspot mode. #: To do this, in the <code>/etc/default/hostapd</code> file, comment out the line (that is, add the '''#''' sign to the beginning of the…») |
||
Строка 58: | Строка 58: | ||
=== Setup in client mode === | === Setup in client mode === | ||
# | # Disable hotspot mode. | ||
#: | #: To do this, in the <code>/etc/default/hostapd</code> file, comment out the line (that is, add the '''#''' sign to the beginning of the line) <syntaxhighlight lang="bash">#DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight> | ||
# | # Edit <code>/etc/network/interfaces</code>: | ||
#* | #* comment out the lines related to the setting in access point mode: <syntaxhighlight lang="bash"> | ||
#iface wlan0 inet static | #iface wlan0 inet static | ||
# address 192.168.42.1 | # address 192.168.42.1 | ||
# netmask 255.255.255.0 | # netmask 255.255.255.0 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
#* | #* uncomment and edit the lines (or add them if there were none): <syntaxhighlight lang="bash"> | ||
auto wlan0 | auto wlan0 | ||
iface wlan0 inet dhcp | iface wlan0 inet dhcp | ||
wpa-ssid {ssid} # | wpa-ssid {ssid} # replace {ssid} with the name of the hotspot | ||
wpa-psk {password} # | wpa-psk {password} # replace {password} with your own password | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# | # To apply the changes, run the following commands | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ifdown wlan0 | ifdown wlan0 |
правки