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

TheBB

Модераторы
  • Постов

    2 491
  • Зарегистрирован

  • Посещение

  • Победитель дней

    54

Весь контент TheBB

  1. прикручена одна база - sqlite3 (mysql, postgresql, redis, mongodb - идут тёмным лесом, широким полем), конфиг править под свои нужды (приведённый - для теста на работу), серты - генерить... в общем - читать доки.
  2. coturn libevent2-extra_2.1.11-2_mipsel-3.4.ipk libsocket_2.5.0-1_mipsel-3.4.ipk coturn_4.5.2-1_mipsel-3.4.ipk
  3. bump to 2021.1.4 для желающих поковырять(ся), проект слил на github
  4. ~ # pip install --upgrade pip==20.2.4 Collecting pip==20.2.4 Downloading pip-20.2.4-py2.py3-none-any.whl (1.5 MB) |████████████████████████████████| 1.5 MB 292 kB/s Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 20.2.3 Uninstalling pip-20.2.3: Successfully uninstalled pip-20.2.3 Successfully installed pip-20.2.4 ~ # ~ # pip -V pip 20.2.4 from /opt/lib/python3.9/site-packages/pip (python 3.9) ~ #
  5. экранирование для "$" затерялось, исправил.
  6. Построчно: 1. echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf - добавляем репу, можно и не нужно, но ставить руками, с учетом зависимомтей - не того; 2. opkg update - обновляем список пакетов, т.к. новый реп добавили; 3. opkg install gcc ldd make gawk sed patch diffutils coreutils-install libffi - для нативной сборки, "голый" НА нам не нужен, а для установки интеграций пригодится; 4. opkg install python3-pip - подтянется само, во время установки НА, можно смело пропустить; 5. pip3 install --upgrade pip setuptools - см. 4, можно выполнить после установки НА; 6. opkg list-installed | grep ^pyt | cut -f1 -d' ' | xargs opkg install --force-reinstall - нужно для ранних установок (python-3.8.x => python-3.9.x) (т.к. owrt`шники ленивы, не подняли "PKG_RELEASE" y python`овских пакетов, а "opkg" тупой и считает, что обновлять не надо); 7. opkg install python3-home-assistant-frontend - не нужно, т.к. "прибито гвоздями" к пакету "homeassistant"; 8. pip3 install homeassistant - совсем не нужно, не взлетит, надо патчить как самого, так и зависимости; 9. opkg install homeassistant - собсна, установка самого НА; 10. /opt/etc/init.d/S99hass start - запуск сервиса...
  7. Запустить руками и посмотреть, что не так /opt/bin/hass -c /opt/var/lib/homeassistant Какая версия прошивки?
  8. echo "src/gz ha http://bin.entware.net/mipselsf-k3.4/test/HA" >> /opt/etc/opkg.conf opkg update opkg install homeassistant /opt/etc/init.d/S99hass start всё (почти всё, кроме https://github.com/Entware/Entware/wiki/Self-installation-of-python-modules и https://github.com/Entware/Entware/wiki/Using-GCC-for-native-compilation) засунуто в пакет "homeassistant"
  9. т.к. индекс отсутствует для тестовых пакетов, всё ставится руками, в том числе и зависимости ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/ulogd-mod-nflog_2.0.7-9999_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/ulogd-mod-nflog_2.0.7-9999_mipsel-3.4.ipk Unknown package 'ulogd-mod-nflog'. Collected errors: * pkg_hash_fetch_best_installation_candidate: Packages for ulogd-mod-nflog found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package ulogd-mod-nflog. ~ # ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/libnetfilter-log_1.0.1-3_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/libnetfilter-log_1.0.1-3_mipsel-3.4.ipk Installing libnetfilter-log (1.0.1-3) to root... Installing libnfnetlink (1.0.1-3) to root... Downloading http://bin.entware.net/mipselsf-k3.4/libnfnetlink_1.0.1-3_mipsel-3.4.ipk Installing libmnl (1.0.4-2) to root... Downloading http://bin.entware.net/mipselsf-k3.4/libmnl_1.0.4-2_mipsel-3.4.ipk Configuring libmnl. Configuring libnfnetlink. Configuring libnetfilter-log. ~ # opkg install http://bin.entware.net/mipselsf-k3.4/test/ulogd-mod-nflog_2.0.7-9999_mipsel-3.4.ipk Downloading http://bin.entware.net/mipselsf-k3.4/test/ulogd-mod-nflog_2.0.7-9999_mipsel-3.4.ipk Installing ulogd-mod-nflog (2.0.7-9999) to root... Installing ulogd (2.0.7-6) to root... Downloading http://bin.entware.net/mipselsf-k3.4/ulogd_2.0.7-6_mipsel-3.4.ipk Configuring ulogd. Configuring ulogd-mod-nflog. ~ #
  10. 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 ~ #
  11. Буквально. Создать файл "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/"
  12. Если cross, Makefile выше, если нативно (на устройстве), тогда начинать отсюда.
  13. Выбирете что-то одно, или owncloud, или nextcloud.
  14. https://forum.keenetic.net/topic/1288-самостоятельная-сборка-пакетов
  15. Да, "хотели как лучше, а получилось как всегда"... В OpenWrt завезли таки adguarghome, но... Подход к сборке go-пакетов в OpenWrt отличается от сборки go-пакетов в Entware. Собсна, пакет переименован, адаптирован(?) для сборки под разн. архитектуры (arm, x86, ... ). В репах версия одна - 0.104.3 (`opkg install --force-overwrite adguardhome-go`)
  16. Makefile: pkg: dnsproxy_v0.33.7-1_mipsel-3.4.ipk
  17. basic minimal ownCloud+lihgttpd+sqlite3 nextcloud+lighttpd+sqlite3
  18. см. https://github.com/mysteriumnetwork/node/blob/master/install.sh#L99 (надо исправить)
  19. скрипт запуска кривой. можно и "классический" SysV слепить при желании ))) типа:
  20. угу, можно добавить в сборку (пакет есть в 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. ~ #
×
×
  • Создать...

Важная информация

На этом сайте используются файлы cookie. Нажимая "Я принимаю" или продолжая просмотр сайта, вы разрешаете их использование: Политика конфиденциальности.