Jump to content

TheBB

Moderators
  • Posts

    2,424
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by TheBB

  1. 1. угу, перед этим ядерный модуль загружать 2. нет, если не хотите логировать 3. пересобрал, залил ~ # iptables -L -t filter | grep LOG ~ # ~ # iptables -w -t filter -I INPUT 2 -j NFLOG iptables: No chain/target/match by that name. ~ # ~ # lsmod | grep LOG ~ # ~ # insmod /lib/modules/4.9-ndm-4/xt_NFLOG.ko ~ # ~ # lsmod | grep LOG xt_NFLOG 720 0 - Live 0x877f5000 nfnetlink_log 6322 1 xt_NFLOG, Live 0x872da000 ~ # ~ # iptables -w -t filter -I INPUT 2 -j NFLOG ~ # ~ # iptables -L -t filter | grep LOG NFLOG all -- anywhere anywhere ~ #
  2. create a startup script, e.g.: cat > /opt/etc/init.d/S90zerotier <<EOF #!/bin/sh ENABLED=yes PROCS=zerotier-one ARGS="-d" PREARGS="" DESC=$PROCS PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin . /opt/etc/init.d/rc.func EOF and make it executable chmod +x /opt/etc/init.d/S90zerotier ~ # /opt/etc/init.d/S90zerotier start Starting zerotier-one... done. ~ # /opt/etc/init.d/S90zerotier check Checking zerotier-one... alive. ~ # /opt/etc/init.d/S90zerotier stop Checking zerotier-one... alive. Shutting down zerotier-one... done. ~ # /opt/etc/init.d/S90zerotier check Checking zerotier-one... dead. ~ # /opt/etc/init.d/S90zerotier start Starting zerotier-one... done. ~ # /opt/etc/init.d/S90zerotier restart Shutting down zerotier-one... done. Starting zerotier-one... done. ~ # /opt/etc/init.d/S90zerotier check Checking zerotier-one... alive. ~ #
  3. Буквально. Создать файл "ftpd" в каталоге "/opt/etc/xinet.d/" со следующим содержимым: service tftp { flags = REUSE socket_type = dgram protocol = udp instances = 30 wait = yes user = root server = /opt/sbin/tftpd-hpa server_args = -s /tmp/mnt/1TB/tftpboot cps = 100 2 log_on_success = HOST PID log_on_failure = HOST disable = no } естественно, "server_args=" будет свой (в примере, "1ТВ" - метка диска/флешки) Нет, не обязательно, можно выдернуть нужные файлы из архива syslinux (версия на выбор) Из примера выше - "/opt/tftpboot/"
  4. Если cross, Makefile выше, если нативно (на устройстве), тогда начинать отсюда.
  5. https://forum.keenetic.net/topic/1288-самостоятельная-сборка-пакетов
  6. Да, "хотели как лучше, а получилось как всегда"... В OpenWrt завезли таки adguarghome, но... Подход к сборке go-пакетов в OpenWrt отличается от сборки go-пакетов в Entware. Собсна, пакет переименован, адаптирован(?) для сборки под разн. архитектуры (arm, x86, ... ). В репах версия одна - 0.104.3 (`opkg install --force-overwrite adguardhome-go`)
  7. см. https://github.com/mysteriumnetwork/node/blob/master/install.sh#L99 (надо исправить)
  8. скрипт запуска кривой. можно и "классический" SysV слепить при желании ))) типа:
  9. угу, можно добавить в сборку (пакет есть в OpenWrt) выполнить https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules и (если пропустили) https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation (для mipsel - `wget -qO- http://bin.entware.net/mipselsf-k3.2/include/include.tar.gz | tar xvz -C /opt/include`) ~ # pip3 install bcrypt Collecting bcrypt Downloading bcrypt-3.2.0.tar.gz (42 kB) |████████████████████████████████| 42 kB 155 kB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Requirement already satisfied: cffi>=1.1 in /opt/lib/python3.9/site-packages (from bcrypt) (1.14.4) Requirement already satisfied: six>=1.4.1 in /opt/lib/python3.9/site-packages (from bcrypt) (1.15.0) Requirement already satisfied: pycparser in /opt/lib/python3.9/site-packages (from cffi>=1.1->bcrypt) (2.20) Building wheels for collected packages: bcrypt Building wheel for bcrypt (PEP 517) ... done Created wheel for bcrypt: filename=bcrypt-3.2.0-cp39-cp39-linux_mips.whl size=30606 sha256=5867d826400dc12ad6437152f26c6c9a19c4d442efd4172bbc92071e9992e3bd Stored in directory: /opt/root/.cache/pip/wheels/9a/0b/a2/2c559982bbee4bd184557267e5760e114de3e9ba826fe8d691 Successfully built bcrypt Installing collected packages: bcrypt ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts. We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default. homeassistant 2020.12.0 requires bcrypt==3.1.7, but you'll have bcrypt 3.2.0 which is incompatible. Successfully installed bcrypt-3.2.0 WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available. You should consider upgrading via the '/opt/bin/python3 -m pip install --upgrade pip' command. ~ #
  10. opkg install http://bin.entware.net/mipselsf-k3.4/test/HA/python3-bcrypt_3.1.7-4_mipsel-3.4.ipk
  11. CLI => copy (config)> copy Usage template: copy {source} ({destination} | {destination}) Choose: flash:/ temp:/ proc:/ sys:/ ndm:/ debug:/ storage:/ ... (config)> copy default-config hdd:/tmp/df-cnf (config)> exit Core::Configurator: Bye. ~ # ls -1 /opt/tmp/df-cnf /opt/tmp/df-cnf ~ #
  12. не все пакеты обновились после смены версии python (надо было переустановить: `opkg list-installed | grep ^pyt | cut -f1 -d' ' | xargs opkg install --force-reinstall`) пересобрать?
  13. GCC - https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation Python3 - https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules
  14. opkg install nginx php7-fastcgi php7-mod-ctype php7-mod-curl php7-mod-dom \ php7-mod-exif php7-mod-fileinfo php7-mod-gd php7-mod-gettext php7-mod-iconv \ php7-mod-intl php7-mod-json php7-mod-mbstring php7-mod-mysqli php7-mod-pdo \ php7-mod-pdo-mysql php7-mod-session php7-mod-simplexml php7-mod-sockets \ php7-mod-xml php7-mod-xmlreader php7-mod-xmlwriter php7-mod-zip \ php7-pecl-mcrypt mariadb-server-extra mariadb-client-extra
  15. нет больше пакета "php7-mod-hash", расширение (модуль) "hash" теперь является частью бинарника php.
  16. НА хранит настройки в `/opt/var/lib/homeassistant/ `, при удалении НА (`opkg remove homeassistant`) они не затрагиваются. Останется решить вопрос с зависимостями, к-рые установили интеграции или сам НА (`/opt/var/lib/homeassistant/deps/{bin,lib}`)
  17. Можно! ))) `opkg update && opkg upgrade` (я, для экономии времени, НА сносил и ставил заново ( 0.116.* => 0.117.* => 0.118.* )). Посмотреть на "масштаб разрушений" обновления можно так: `opkg list-upgradable | sort`. Возможно надо ("для страховки") переустановить всего python`a, типа: `opkg list-installed | sort | grep ^pyt | cut -f1 -d' ' | xargs opkg install --force-reinstall` скорее всего. Адресуйте вопрос разработчикам прошивки.
  18. HA ещё не пересобран новой версией python (3.8 => 3.9).
  19. ~ # opkg install usbutils Installing usbutils (007-11) to root... Downloading http://nas4free.local/entware/devel/mipssf-4.9/usbutils_007-11_mips-4.9.ipk Installing libusb-1.0 (1.0.22-2) to root... Downloading http://nas4free.local/entware/devel/mipssf-4.9/libusb-1.0_1.0.22-2_mips-4.9.ipk Configuring libusb-1.0. Configuring usbutils. ~ # ~ # lsusb Bus 001 Device 004: ID 0781:5583 SanDisk Corp. Ultra Fit Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard Bus 001 Device 003: ID 214b:7000 Huasheng Electronics 4-port hub [Maxxter ACT-HUB2-4P, HS8836, iSoul ultra-slim] Bus 001 Device 002: ID 214b:7000 Huasheng Electronics 4-port hub [Maxxter ACT-HUB2-4P, HS8836, iSoul ultra-slim] Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub ~ # ~ # ls /dev/bus/usb/* /dev/bus/usb/001: 001 002 003 004 005 /dev/bus/usb/002: 001 ~ #
×
×
  • Create New...