📜 ⬆️ ⬇️

Using Yota Driver for Linux

Since the beginning of the beta testing of the Yota network and to date, the only officially supported OS is Windows. You can bypass this obstacle with VirtualBox or VMware, but in this article you will find a guide to using the more economical option - the madwimax driver.

First of all, install the libusb-1.0 library, dhcpcd and the atd scheduler on the system. Make sure the latter is running as a service. If you want to use another DHCP client, change the last line of wimax.sh.

This implies that all manipulations are performed as root in his home directory:
wget madwimax.googlecode.com/files/madwimax-0.0.2.tar.gz #
tar -xzf madwimax-0.0.2.tar.gz #
mv madwimax-0.0.2 wimax
make -C wimax #


Then the most interesting thing is how to make the Internet work when you connect the device without additional efforts. For this you need to create a couple of files.
')
/root/wimax/wimax.sh:
#!/bin/sh
/root/wimax/wimax -qd
sleep 10
ip l set dev tap0 mtu 1386
dhcpcd -q --noipv4ll tap0 &> /dev/null


/etc/udev/rules.d/99-madwimax.rules:
# udev rules file for madwimax supported devices
SUBSYSTEM!="usb|usb_device", GOTO="madwimax_rules_end"
ACTION!="add", GOTO="madwimax_rules_end"
ATTRS{idVendor}=="04e9", ATTRS{idProduct}=="6761", ATTR{bInterfaceNumber}=="01", RUN+="/bin/sh -c '/bin/echo -n $kernel > /sys/$devpath/driver/unbind'"
ATTRS{idVendor}=="04e9", ATTRS{idProduct}=="6761", ATTR{bInterfaceNumber}=="00", RUN+="/usr/bin/at -f /root/wimax/wimax.sh +1minute"
LABEL="madwimax_rules_end"


Now after connecting the device, communication will be established within a minute. Repeated connections are not provided, so in the case of disconnect just drag the device. As far as I know, the driver continues to be actively developed, and most likely these instructions will be useless for the next versions, but they work “here and now”.

PS I wrote this post in the sandbox, do not judge strictly.

Source: https://habr.com/ru/post/50504/


All Articles