Jump to content

TheBB

Moderators
  • Posts

    2,411
  • Joined

  • Last visited

  • Days Won

    51

Posts posted by TheBB

  1. 8 часов назад, progmaster90 сказал:

    Подскажите пожалуйста, кто в теме, что это постоянно выходит?

    Дублирование записей. Исправьте (удалите лишние записи) в файле "/opt/etc/opkg.conf". Удалите всё в "/opt/var/opkg-lists"  (`rm /opt/var/opkg-list/*`) и обновите списки пакетов (`opkg update`).

    • Thanks 1
  2. 8 часов назад, Meccep45 сказал:

    и вот в 8 снова она.

    Тут можно меня смело пинать и дать в глаз... подготовил, но пропустил-забыл. Если не критично - можно подождать до следующей синхронизации. Или?

    Будет так:

     ~  # file Example1.png 
    Example1.png: PNG image data, 1337 x 1067, 8-bit/color RGB, non-interlaced
     ~  # 
     ~  # php fileinfo.php; echo
    image/png
     ~  # 

     

    • Upvote 1
  3. KN-2110:

    root@Keenetic_Duo:~# ndmc -c show version | grep -E '(release|title)'
              release: 4.02.A.3.0-0
                title: 4.2 Alpha 3
    root@Keenetic_Duo:~#

    disabled

    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# curl -s localhost:79/rci/show/rc/ppe
    [
      {
        "engine": "software"
      },
      {
        "enabled": false,
        "engine": "hardware"
      }
    root@Keenetic_Duo:~# ndmc -c show rc ppe | grep -B1 hard | grep enabled
                  enabled: no
    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# if [ -z "$(ndmc -c show rc ppe | grep -B1 hard | grep enabled)" ]; then echo "hardware enabled"; else echo "hardware disabled"; fi
    hardware disabled
    root@Keenetic_Duo:~#

    enabled

    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# curl -s localhost:79/rci/show/rc/ppe
    [
      {
        "engine": "software"
      },
      {
        "engine": "hardware"
      }
    ]root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# ndmc -c show rc ppe | grep -B1 hard | grep enabled
    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# if [ -z "$(ndmc -c show rc ppe | grep -B1 hard | grep enabled)" ]; then echo "hardware enabled"; else echo "hardware disabled"; fi
    hardware enabled
    root@Keenetic_Duo:~# 

     

    • Thanks 1
  4. 3 часа назад, Santus сказал:

    Viva 1910, Entware на встроенной памяти, не запускается - не видит либу:

    на встроенной не тестировал (кажись, не помню)

    3 часа назад, Santus сказал:

    arti: error while loading shared libraries: libsqlite3.so.0: cannot open shared object file: No such file or directory

    запустить `ldconfig` для обновления кеша библиотек.

  5. Надо owrt`шникам "в глаз плюнуть", версии обновляют, а за содержимым не следят.

    https://github.com/openwrt/packages/blob/master/utils/mariadb/Makefile#L464-L467

    ---

    собрано

    ➜ ls -l *check* | cut -d' ' -f-2,4-
    -rwxr-xr-x 1 3620128 фев 23 11:32 innochecksum
    -rwxr-xr-x 1 3861704 фев 23 11:32 mariadb-check
    lrwxrwxrwx 1      13 фев 23 11:36 mysqlcheck -> mariadb-check

    упаковано

    ➜ ls -l *check* | cut -d' ' -f-2,4-
    lrwxrwxrwx 1      10 фев 23 11:36 mariadbcheck -> mysqlcheck
    -rwxr-xr-x 1 3730088 фев 23 11:36 mysqlcheck

     

    • Upvote 1
  6. 3 минуты назад, batonskij сказал:

    Что-то можно предпринять? 

    Не оно?

     ~  # opkg list | grep zigpy
    python3-bellows - 0.38.1-1 - bellows is a Python 3 library implementation for the zigpy project to add Zigbee radio support for Silicon Labs EM35x ("Ember") and EFR32 ("Mighty Gecko") based Zigbee coordinator devices using the EZSP (EmberZNet Serial Protocol) interface.
    python3-zigpy - 0.63.4-1 - zigpy is a hardware independent Zigbee protocol stack integration project to implement Zigbee standard specifications as a Python 3 library.
    python3-zigpy-deconz - 0.23.1-1 - zigpy-deconz is a Python 3 implementation for the Zigpy project to implement deCONZ based Zigbee radio devices.
    python3-zigpy-xbee - 0.20.1-1 - zigpy-xbee is a Python implementation for the Zigpy project to implement XBee based Zigbee radio devices from Digi.
    python3-zigpy-zigate - 0.12.0-1 - zigpy-zigate is a Python 3 implementation for the Zigpy project to implement ZiGate based Zigbee radio devices.
    python3-zigpy-znp - 0.12.1-1 - zigpy-znp is a Python library that adds support for common Texas Instruments ZNP (Zigbee Network Processors) Zigbee radio modules to zigpy, a Python Zigbee stack project.
     ~  # 

    или метапак

    ha-component-zha - 2024.3.1-1 - Zigbee Home Automation

     

    • Thanks 1
  7. из телеги https://t.me/entware

    screen_2024-03-21_18:42:00-ssh.png

    Скрытый текст
    #!/bin/sh
    
    . /opt/etc/profile
    
    # PROMPT
    # colors
    
    blk="\033[1;30m"   # Black
    red="\033[1;31m"   # Red
    grn="\033[1;32m"   # Green
    ylw="\033[1;33m"   # Yellow
    blu="\033[1;34m"   # Blue
    pur="\033[1;35m"   # Purple
    cyn="\033[1;36m"   # Cyan
    wht="\033[1;37m"   # White
    clr="\033[0m"      # Reset
    
    # Set the prompt.
    
    sh_prompt() {
        PS1=${cyn}' \w '${grn}' \$ '${clr}
    }
    
    sh_prompt
    
    ### opkg update
    opkg update > /dev/null 2>&1
    
    ### deps: coreutils-df procps-ng-free procps-ng-uptime
    
    ### processor type
    _CPU_TYPE="$(cat /proc/cpuinfo | awk -F: '/(model|system)/{print $2}' | head -1 | sed 's, ,,')"
    
    if [ "$(uname -m)" = "aarch64" ]; then
        CPU_TYPE="$_CPU_TYPE"
    else
        CPU_TYPE="$_CPU_TYPE$(cat /proc/cpuinfo | awk -F: '/cpu model/{print $2}' | head -1)"
    fi
    
    printf "\n"
    printf "   ${wht} %-10s ${ylw} %-30s ${wht} %-10s ${ylw}    %-30s ${clr}\n" \
        "Date:" "📆$(date)" \
        "Uptime:" "🕐 $(uptime -p)"
    printf "   ${wht} %-10s ${blu} %-30s ${wht} %-10s ${blu}  %-30s ${clr}\n" \
        "Hostname:" "$(hostname -f)" \
        "Accessed IP:" "$(hostname -i)"
    printf "   ${wht} %-10s ${grn} %-30s ${wht}   %-10s ${grn}    %-30s ${clr}\n" \
        "OS:" "$(uname -s) 🐧" \
        "CPU:" "$CPU_TYPE"
    printf "   ${wht} %-10s ${grn} %-30s ${wht} %-10s ${grn} %-30s ${clr}\n" \
        "Kernel:" "$(uname -r)" \
        "Architecture:" "$(uname -m)"
    printf "   ${wht} %-10s ${pur} %-30s ${clr}\n" \
        "Disk:" "$(df -h | grep '/opt' | awk '{print $2" (size) / "$3" (used) / "$4" (free) / "$5" (used %) : 💾 "$6}')"
    printf "   ${wht} %-10s ${pur} %-30s ${clr}\n" \
        "Memory:" "$(free -h --mega | awk '/Mem/{print $2" (всего) / "$3" (использовано) / "$4" (свободно)"}')"
    printf "   ${wht} %-10s ${pur} %-30s ${ctl}\n" \
        "Swap:" "$(free -h --mega | awk '/Swap/{print $2" (total) / "$3" (used) / "$4" (free)"}')"
    printf "   ${wht} %-10s ${pur} %-30s ${clr}\n" \
        "LA:" "$(cat /proc/loadavg | awk '{print $1" (1m) / "$2" (5m) / "$3" (15m)"}')"
    printf "   ${wht} %-10s ${red} %-30s ${wht}\n" \
        "User:" "🤵 $(echo $USER)"
    if [ -f "/opt/etc/entware_release" ]; then
        printf "   ${wht} %-10s ${grn} %-30s ${crl}\n" \
            "Dist:" "$(grep ^PRETTY /opt/etc/entware_release | cut -d'"' -f2)"
    else
        printf "   ${wht} %-10s ${grn} %-30s ${crl}\n" \
            "Dist:" "Entware"
    fi
    printf "   ${wht} %-10s ${cyn} %-30s ${wht}     %-10s ${cyn} %-30s ${clr}\n" \
        "Installed:" "📦📦 $(opkg list-installed | wc -l)" \
        "Upgrade:" "📦 $(opkg list-upgradable | wc -l)"
    printf "\n"
    

     

    установить пакеты: `opkg install coreutils-df procps-ng-free procps-ng-uptime`

    править по вкусу (удалить, добавить, изменить вывод)

  8. Пакеты собраны для изучения процесса сборки (кросс-компиляции) проектов, написанных на языке программирования Rust, на официально не поддерживаемых архитектурах, и тестирования в различных конфигурациях.

    Для тестирования нужно установить пакет

    aarch64 - `opkg install http://bin.entware.net/aarch64-k3.10/test/arti_1.2.0-1_aarch64-3.10.ipk`

    mips - `opkg install http://bin.entware.net/mipssf-k3.4/test/arti_1.2.0-1_mips-3.4.ipk`

    mipsel - `opkg install http://bin.entware.net/mipselsf-k3.4/test/arti_1.2.0-1_mipsel-3.4.ipk`

    и настроить кофиг, активировав действующие мосты (bridges) (самостоятельно) и др. параметры, напр.,

    для запуска от root`a - allow_running_as_root = true

    или указать путь к каталогу кэша - cache_dir = "/opt/var/cache/arti"

    Для того, чтобы вывести требуемые параметры запуска, необходимо запустить с ключом "help", или "-h", или "--help" (последние две также и для подпрограмм).

    Пример запуска (после настройки)

    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# arti proxy -c /opt/etc/arti/arti-config.toml
    2024-04-02T10:20:08Z  INFO arti: Starting Arti 1.2.0 in SOCKS proxy mode on localhost port 9150 ...
    2024-04-02T10:20:08Z  INFO arti_client::client: Using keystore from "/opt/var/lib/arti/keystore"
    2024-04-02T10:20:35Z  INFO tor_dirmgr: Marked consensus usable.
    2024-04-02T10:20:37Z  INFO tor_dirmgr: Loaded a good directory from cache.
    2024-04-02T10:20:37Z  INFO arti: Sufficiently bootstrapped; system SOCKS now functional.
    2024-04-02T10:20:37Z  INFO arti::socks: Listening on [::1]:9150.
    2024-04-02T10:20:37Z  INFO arti::socks: Listening on 127.0.0.1:9150.
    2024-04-02T10:20:40Z  INFO tor_guardmgr::guard: We have found that guard [185.x.x.x:9001+ ed25519:Bf…] is usable.
    2024-04-02T10:20:42Z  INFO tor_guardmgr::guard: We have found that guard [5.x.x.x:143 ed25519:ty…] is usable.
    2024-04-02T10:20:43Z  INFO tor_dirmgr: Marked consensus usable.
    2024-04-02T10:20:44Z  INFO tor_dirmgr: Directory is complete. attempt=1
    ...

    или запуск в фоне

    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# arti proxy -c /opt/etc/arti/arti-config.toml > /dev/null 2>&1 &
    root@Keenetic_Duo:~# 

    или написать стартовый скрипт.

    Пример проверки (с интервалом 5-10 минут)

    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# curl -x socks5h://127.0.0.1:9150 -s https://check.torproject.org/api/ip; echo
    
    root@Keenetic_Duo:~# curl -x socks5h://127.0.0.1:9150 -s https://check.torproject.org/api/ip; echo
    {"IsTor":true,"IP":"171.25.193.80"}
    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# curl -x socks5h://127.0.0.1:9150 -s https://check.torproject.org/api/ip; echo
    {"IsTor":true,"IP":"171.25.193.80"}
    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# curl -x socks5h://127.0.0.1:9150 -s https://check.torproject.org/api/ip; echo
    {"IsTor":true,"IP":"109.70.100.70"}
    root@Keenetic_Duo:~# 
    root@Keenetic_Duo:~# curl -x socks5h://127.0.0.1:9150 -s https://check.torproject.org/api/ip; echo
    {"IsTor":true,"IP":"192.42.116.220"}
    root@Keenetic_Duo:~# 
    
    

     

  9. 30 минут назад, BYNC сказал:

    Я в этом деле новичок, не очень понимаю ваш код, но вроде как это на вашем устройство оно есть, а в репозитории я не увидел.

    Расшифровка - запустить программу opkg с командой info для вывода информации о пакете polipo

    Ищите на своё устройство

    screen_2024-02-29_18:48:37-pol-a64.png

    screen_2024-02-29_18:47:23-pol-mb.png

    • Thanks 1
  10. 7 минут назад, BYNC сказал:

    По крайней мере пакета polipo в entware нет.

    root@Keenetic-6065: /opt/root $ 
    root@Keenetic-6065: /opt/root $ opkg info polipo
    Package: polipo
    Version: 1.1.1-2
    Depends: libc, libssp, librt, libpthread
    Status: unknown ok not-installed
    Section: net
    Architecture: mipsel-3.4
    Size: 96074
    Filename: polipo_1.1.1-2_mipsel-3.4.ipk
    Description: Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy,
     a proxy server). While Polipo was designed to be used by one person or a
     small group of people, there is nothing that prevents it from being used
     by a larger group.
    
    root@Keenetic-6065: /opt/root $

     

  11. 1 час назад, Anvar Zalibekov сказал:

    Installing python3-fnvhash (0.1.0-3) to root...

    Пакет python-fnvhash (как и нек-рые другие) завезли в OpenWrt, у него PKG_RELEASE:=1

    Удалить пакет и установить снова:

    opkg remove python3-fnvhash --force-depends
    opkg install python3-fnvhash

    В "тяжелых" случаях, когда запись о пакете осталась в /opt/lib/opkg/status, а сам пакет уже удалён:

    root@Keenetic-6065: /opt/root $ 
    root@Keenetic-6065: /opt/root $ opkg install python3-fnvhash --force-reinstall
    Removing package python3-fnvhash from root...
    Installing python3-fnvhash (0.1.0-3) to root...
    Collected errors:
     * opkg_download_pkg: Package python3-fnvhash is not available from any configured src.
     * opkg_install_pkg: Failed to download python3-fnvhash. Perhaps you need to run 'opkg update'?
     * opkg_install_cmd: Cannot install package python3-fnvhash.
    root@Keenetic-6065: /opt/root $ 

    найти и удалить полностью запись (от пустой строки до пустой)

    Package: python3-fnvhash
    Version: 0.1.0-3
    Depends: libc, libssp, librt, libpthread, python3-light
    Status: install user installed
    Architecture: mipsel-3.4
    Installed-Time: 1709053150
    
    

    ^ установить пакет

    root@Keenetic-6065: /opt/root $ 
    root@Keenetic-6065: /opt/root $ opkg install python3-fnvhash
    Installing python3-fnvhash (0.1.0-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-fnvhash_0.1.0-1_mipsel-3.4.ipk
    Configuring python3-fnvhash.
    root@Keenetic-6065: /opt/root $

    или изменить версию

    было

    Package: python3-fnvhash
    Version: 0.1.0-3
    

    стало

    Package: python3-fnvhash
    Version: 0.0.0.0-0000
    

    ^ установит пакет

    root@Keenetic-6065: /opt/root $ 
    root@Keenetic-6065: /opt/root $ opkg install python3-fnvhash
    Upgrading python3-fnvhash on root from 0.0.0.0-0000 to 0.1.0-1...
    Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-fnvhash_0.1.0-1_mipsel-3.4.ipk
    Configuring python3-fnvhash.
    root@Keenetic-6065: /opt/root $

    или установить старый пакет, удалить его корректно, установить пакет

    root@Keenetic-6065: /opt/root $ 
    root@Keenetic-6065: /opt/root $ opkg install http://bin.entware.net/mipselsf-k3.4/test/HA/prev/python3-fnvhash_0.1.0-3_mipsel-3.4.ipk
    Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/prev/python3-fnvhash_0.1.0-3_mipsel-3.4.ipk
    Installing python3-fnvhash (0.1.0-3) to root...
    Configuring python3-fnvhash.
    root@Keenetic-6065: /opt/root $ opkg remove python3-fnvhash --force-depends
    Removing package python3-fnvhash from root...
    root@Keenetic-6065: /opt/root $ opkg install python3-fnvhash
    Installing python3-fnvhash (0.1.0-1) to root...
    Downloading http://bin.entware.net/mipselsf-k3.4/test/HA/python3-fnvhash_0.1.0-1_mipsel-3.4.ipk
    Configuring python3-fnvhash.
    root@Keenetic-6065: /opt/root $ 

     

  12. В 26.02.2024 в 03:42, Илья Ганжин сказал:

    Интергации SSH Command и Stream тоже отвалились, подскажите какие папки надо заменить из полного бэкапа entware чтобы вернуть старую версию? 

    https://github.com/openwrt/packages/commit/0fe10114208e2c5cd572df043945a52e3ebeb6dd

    /opt/lib/python3.11

    или переустановить все пакеты, относящиеся к python (см. в теме)

  13. 3 часа назад, Nvid Pro сказал:

    что-то не так..

    Скрин снят с ZKUII, после обновления.

    Смотреть в режиме отладки, на что ругается и исправлять

    hass -c /opt/var/lib/homeassistant --debug --verbose

    Удалить всего python3-* и поставить снова:

    удалить НА с зависимостями (frontend, scapy, ...)

    opkg remove --autoremove --force-depends homeassistant

    удалить пакеты

    for p in $(opkg list-installed | grep python | cut -d' ' -f1); do opkg remove --autoremove --force-depends $p; done

    удалить каталог

    rm -rf /opt/lib/python3.11

    поставить снова НА

    NB если есть пакеты, зависимые от python3-*, напр., deluge, fail2ban, ... , возможно потребуется переустановка (но ЭТО не точно ы-ы-ы ).

    • Thanks 1
  14. немного в продолжение темы...

    owrt`шники, в борьбе за каждый свободный бит, кастрируют всё и вся. Первое подозрение, что это не так (оптимизация на размер), закралось после втягивания go, но, после rust`a... Теперь, на их вопрос: "На кой нам включать ту или иную опцию? Она же жрёт место драгоценное!" или "Нафига нам добавлять пакет? Места мало!", их можно смело посылать в долгое пешее эротическое

    root@Keenetic-6065: /opt/tmp $ 
    root@Keenetic-6065: /opt/tmp $ ls -al *entw *owrt 
    -rwxr-xr-x 1 root root 3053652 Aug 8 11:53 btm-entw 
    -rwxr-xr-x 1 root root 4425756 Jan 2 16:40 btm-owrt 
    -rwxr-xr-x 1 root root 1899104 Nov 6 16:15 dysk-entw 
    -rwxr-xr-x 1 root root 2443872 Jan 2 16:40 dysk-owrt 
    -rwxr-xr-x 1 root root 3552408 Nov 16 23:52 procs-entw 
    -rwxr-xr-x 1 root root 5111472 Jan 2 16:50 procs-owrt 
    -rwxr-xr-x 1 root root 3141476 Oct 7 21:37 rg-entw 
    -rwxr-xr-x 1 root root 4050452 Jan 2 16:48 rg-owrt 
    root@Keenetic-6065: /opt/tmp $ 
    root@Keenetic-6065: /opt/tmp $ ./btm-entw -V 
    bottom 0.9.4 
    root@Keenetic-6065: /opt/tmp $ ./btm-owrt -V 
    bottom 0.9.4 
    root@Keenetic-6065: /opt/tmp $ 
    root@Keenetic-6065: /opt/tmp $ du btm-entw 
    2988 btm-entw 
    root@Keenetic-6065: /opt/tmp $ du btm-owrt 
    4336 btm-owrt 
    root@Keenetic-6065: /opt/tmp $

     

×
×
  • Create New...