Wifi and adapters and Linux have tough relations. Though some of them are supported and you can try to use it.
In general, it’s simple. On your first run, you’ll be asked for a rig password but since you have no internet connection open a new terminal tab and run wifi command there. You will be prompted for SSID and password. If everything is ok then it just works.
Later if you really know that your adapter is working you could use /hive-config/network/wifi.txt which is also visible under Windows to set your SSID and password.
There are some useful commands iwconfig - to show you wireless adapters ifconfig - to check assigned IP address
You really never know will it work until you plug it in. I’ve seen some expensive adapters that did not work out of the box or required additional or patched drivers. At the same time, the cheapest Chinese $5 shit just works.
What to do if your adapter does not work but you bloody need it.
Use Wifi repeater with LAN port like this, so it will be your wifi client and you plug rig to it’s LAN.
Other option and my strong advise is to use Powerline, that’s a really cool technology. It gives your LAN access over a 220V wire in your apartment or building. Though it’s a bit more expensive. I found some cheaper ones on the aftermarket.
[quote=“ivankia;64”]TP-LINK TL-WN727N
Status: WORKS PROPER[/quote]
У меня не работает
root@rig_1:~# wifi
=== WiFi setup ===
wlxc025e91558a1 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
root@rig_1:~# lsusb
Bus 002 Device 002: ID 8564:1000 Transcend Information, Inc. JetFlash
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I have a strange problem. My wi-fi adapter TL-WN727N is working fine. iwconfig shows what interface is up, but it doesn’t connect to my network. wifi.txt is in place and ready. I don’t know what to do. I’ve tried to start wpa_supplicant instead of running wifi command and it works fine. But after reboot everything is lost.
I’ve got the solution! First of all i,ve connect to wi-fi using wifi command. Then i got internet working i’ve just download network-manager tool amd rebooted. After rebooting rig doesn’t connet to the internet automatically as i write before, BUT network manager worked already. I open tray icon, connect to my network and boom! Everything works fine! Try several reboots - no problems.
Спасибо за подсказку
Только немного в другом месте изменил настройки.
Свисток TP-Link TL-WN823N.
Не подхватывался при старте.
По команде WIFI запускался.
В директории etc/network/ файл interfaces немного подкорректировал.
Прописал своего wlan0 и добавил значения wpa - ssid и wpa - PSK
Все завелось !
Глядишь кому и понадобится
root@rig:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 2357:0107
Bus 001 Device 003: ID 046d:c22d Logitech, Inc. G510 Gaming Keyboard
Bus 001 Device 002: ID 046d:c05b Logitech, Inc. M-U0004 810-001317 [B110 Optical USB Mouse]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
This Bus 001 Device 004: ID 2357:0107 is tl-wn821n.
Setting up linux-headers-4.4.0-109 (4.4.0-109.132) …
Setting up linux-headers-4.4.0-109-generic (4.4.0-109.132) …
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-109-generic /boot/vmlinuz-4.4.0-109-generic
: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.
Setting up linux-headers-generic (4.4.0.109.114) …
root@rig:~#
I can install driver anyway and then adapter wlan appear in iwconfig, but can’t assosiate with my router.
I try hiveos wifi setup but not work for TL-WN821N V6.
kernel log:
Jan 14 14:02:05 rig kernel: [ 611.642398] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=7c:8b:ca:05:c8:2f
Jan 14 14:02:05 rig kernel: [ 611.643915] usbcore: registered new interface driver rtl8192eu
Jan 14 14:02:05 rig kernel: [ 611.643917] RTL871X: module init ret=0
Jan 14 14:02:06 rig kernel: [ 613.135724] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jan 14 14:02:08 rig kernel: [ 615.137167] RTL871X: nolinked power save enter
Jan 14 14:05:30 rig kernel: [ 816.863657] RTL871X: nolinked power save leave
Jan 14 14:05:32 rig kernel: [ 818.285198] RTL871X: nolinked power save enter
Jan 14 14:05:38 rig kernel: [ 824.772178] RTL871X: nolinked power save leave
Jan 14 14:05:39 rig kernel: [ 826.189118] RTL871X: nolinked power save enter
1 - Flashed fresh image to USB (16GB usb3.0)
2 - On first boot everything is ok, connected to wifi via “wifi” + credentials
3 - did a “sudo reboot”
4 - “wifi” + credentials will not connect anymore
Anybody knows why? I will try to replicate this again if it continues will post down.
Sorry for the double post, I can confirm wifi setup runs the first time only. If the system reboots, or shuts down or crashes “wifi” command with credentials will not work again.
Would be happy to switch all of my rigs to Linux using HiveOS if this could be solved. Thank you, Devs for all the work you already did, will donate if this gets solved.