Перейти к содержанию

Навигация

Wi-Fi Old/en: различия между версиями

Новая страница: «# 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…»
(Новая страница: «=== 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.
#: Для этого в файле <code>/etc/default/hostapd</code> закомментируйте строку (то есть добавьте знак '''#''' в начало строки)<syntaxhighlight lang="bash">#DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight>
#: 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>
# Отредактируйте <code>/etc/network/interfaces</code>:
# Edit <code>/etc/network/interfaces</code>:
#* закомментируйте строки, относящиеся к настройке в режиме точки доступа: <syntaxhighlight lang="bash">
#* 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>
#* раскомментируйте и отредактируйте строки (или добавьте, если их не было):<syntaxhighlight lang="bash">
#* 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} # вместо {ssid} подставьте имя точки доступа
                 wpa-ssid {ssid} # replace {ssid} with the name of the hotspot
                 wpa-psk  {password} # вместо {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
12 063

правки