More
referral
Increase your income with Hive. Invite your friends and earn real cryptocurrency!

WiFi setup

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.

9 Likes
2 Likes

These devices fully work:

148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter Realtek RTL8188CUS

DOES NOT WORK: TP-LINK TL-WN725N works with options described in comment below.

Работают:

  1. https://ru.aliexpress.com/item/Original-Xiaomi-Portable-Mini-USB-Wireless-Router-wifi-adapter-150Mbps-2-4GHz-WI-FI-emitter-Internet/32788155518.html
  2. https://ru.aliexpress.com/item/Factory-Supply-EDUP-EP-N8553-150Mbps-Nano-Network-Adapter-Wireless-USB-Adapter-USB-WiFi-Adapter/32577120512.html

ASUSTek Computer, Inc. N10 Nano 802.11n Network Adapter [Realtek RTL8192CU]

TP-LINK TL-WN725N
http://www.tp-linkru.com/products/details/cat-11_TL-WN725N.html

Заработал отлично, после того как руками поправил файл:
/lib/systemd/system/[email protected]

Исправил ExecStart на:

ExecStart=/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i %i -Dnl80211,wext

TP-LINK TL-WN727N
Status: WORKS PROPER

1 Like

[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

Отлично заработал USB WiFi адаптер Tenda W311M

I had an issue with Tenda W311M, it didn’t work properly until I changed Channel on WiFI Router: from 20/40Mhz to 20Mhz

Having some issues reconnecting to wifi network upon restart (shutdown -r now). Anyone having the same issue?

2 Likes

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.

2 Likes

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.

I fixed the issue by manually adding an entry for my device (wlan0) into

/etc/network/interfaces.d/wlan0

with something like:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid MY_NETWORK
wpa-psk hashed-value-of-passphrase

You can get the hashed-value-of-passphrase via the output of:

wpa_passphrase MY_NETWORK passphrase
2 Likes

Спасибо за подсказку :wink:
Только немного в другом месте изменил настройки.
Свисток TP-Link TL-WN823N.
Не подхватывался при старте.
По команде WIFI запускался.
В директории etc/network/ файл interfaces немного подкорректировал.
Прописал своего wlan0 и добавил значения wpa - ssid и wpa - PSK
Все завелось !
Глядишь кому и понадобится :wink:

Спасибо, помог!

Hi, hiveos is amazing! But i can’t made work my TL-WN821N V6 http://www.tp-link.com.au/download/TL-WN821N.html.

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.

I handle it in lubuntu 16.04 with:

sudo apt-get install build-essential linux-headers-generic dkms git
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0

But in hiveos apt-get install fail:

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.

root@rig:~# iwconfig
wlan0 unassociated Nickname:“WIFI@REALTEK
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.

lo no wireless extensions.

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

Thanks!

Detected bug:

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.

Currently:
1 - flashing HiveOS to USB again.

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.

I can made work wifi without wifi setup, but i have same issue than mungiu, when system reboot wifi not connect.

root@rig:/hive-config/network# wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0

Successfully initialized wpa_supplicant

wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1