Jump to content

TheBB

Moderators
  • Posts

    2,410
  • Joined

  • Last visited

  • Days Won

    51

Posts posted by TheBB

  1. 6 минут назад, SigmaPlus сказал:

    -sh: ldd: not found

    хорошо, тогда без ldd, раз не установлен

    ~ # /opt/lib/ld-2.27.so --list /opt/bin/grep 
    	linux-vdso.so.1 (0x77123000)
    	libpcre2-8.so.0 => /opt/lib/libpcre2-8.so.0 (0x77048000)
    	libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x77024000)
    	libc.so.6 => /opt/lib/libc.so.6 (0x76e2d000)
    	libpthread.so.0 => /opt/lib/libpthread.so.0 (0x76dfb000)
    	/opt/lib/ld.so.1 => /opt/lib/ld-2.27.so (0x770f1000)
    ~ #

     

  2. ~ # ldd /opt/bin/grep 
    	linux-vdso.so.1 (0x77495000)
    	libpcre2-8.so.0 => /opt/lib/libpcre2-8.so.0 (0x773ba000)
    	libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x77396000)
    	libc.so.6 => /opt/lib/libc.so.6 (0x7719f000)
    	libpthread.so.0 => /opt/lib/libpthread.so.0 (0x7716d000)
    	/opt/lib/ld.so.1 (0x77463000)
    ~ # 
    ~ # /opt/sbin/modprobe -c | grep -i v${usb_vendor}p${usb_model}d | cut -f3 -d " "
    scsi_mod
    scsi_mod
    scsi_mod
    ~ # 

    ???

  3. В 17.08.2023 в 13:29, Heinrich сказал:

    свободны десятки гигбайт

    проблема с ФС или закончились inodes?

    В 17.08.2023 в 13:29, Heinrich сказал:

    Но не хочет устанавливаться ни один пакет

    opkg честно говорит, что 0kb свободно.

    В 17.08.2023 в 13:29, Heinrich сказал:

    df показывает

    нужно смотреть вывод `df -i`, но апплет busybox`a такого ключа не знает (пакет "coreutils-df")

    ~ # df /dev/sdd1 
    Filesystem     1K-blocks    Used Available Use% Mounted on
    /dev/sdd1       26595480 5397756  19844460  22% /opt
    ~ # df -i /dev/sdd1 
    Filesystem      Inodes  IUsed   IFree IUse% Mounted on
    /dev/sdd1      1692432 136832 1555600    9% /opt
    ~ #

     

    В 17.08.2023 в 13:29, Heinrich сказал:

    И куда-то делся dropbear

    старый удалился, а новый не встал.

  4. В 06.08.2023 в 20:20, insellium сказал:

    требуется Node.js версии выше 19

    это сильно вряд ли, по крайней мере, пока owrt`шники не обновят.

    В 06.08.2023 в 20:20, insellium сказал:

    там последняя версия node - 16

    "подлечить" удалось, будет

    ~ # node -v
    v18.17.1
    ~ # npm -v
    9.6.7
    ~ #

     

  5. В 07.07.2023 в 13:49, OvaLev сказал:

    как вылечить автозапуск НА

    В 10.07.2023 в 09:48, Великий Кукурузо сказал:

    По поводу автозагрузки -  видимо никак.

    похоже на рабочее окружение.

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

    export LANG="C"
    Скрытый текст
    ~ # cat /opt/etc/init.d/S99hass 
    #!/bin/sh
    
    ENABLED=yes
    PROCS=hass
    ARGS="-c /opt/var/lib/homeassistant"
    PREARGS=""
    DESC="Home Assistant (HASS)"
    PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    
    [ -d /opt/var/lib/homeassistant ] || mkdir -p /opt/var/lib/homeassistant
    
    export LANG="C"
    
    . /opt/etc/init.d/rc.func
    ~ # 

     

     

    • Upvote 1
  6. owrt`шники изменили структуру Makefile`a, ну-у-у, потерялся конфиг, дело-то житейское, за всем не уследить...

    https://www.nginx.com/resources/wiki/start/topics/examples/full/

    или

    Скрытый текст
    user nobody;
    worker_processes  1;
    
    #error_log  /opt/var/log/nginx/error.log;
    #error_log  /opt/var/log/nginx/error.log  notice;
    #error_log  /opt/var/log/nginx/error.log  info;
    
    #pid        /opt/var/run/nginx.pid;
    
    
    events {
        worker_connections  64;
    }
    
    
    http {
        include       mime.types;
        default_type  application/octet-stream;
    
        #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
        #                  '$status $body_bytes_sent "$http_referer" '
        #                  '"$http_user_agent" "$http_x_forwarded_for"';
    
        #access_log  /opt/var/log/nginx/access.log main;
    
        sendfile        on;
        #tcp_nopush     on;
    
        #keepalive_timeout  0;
        keepalive_timeout  65;
    
        #gzip  on;
    
        server {
            listen       80;
            server_name  localhost;
    
            #charset koi8-r;
    
            #access_log  /opt/var/log/nginx/host.access.log;
    
            location / {
                root   /opt/share/nginx/html;
                index  index.html index.htm;
            }
    
            #error_page  404              /404.html;
    
            # redirect server error pages to the static page /50x.html
            #
            error_page   500 502 503 504  /50x.html;
            location = /50x.html {
                root   html;
            }
    
            # proxy the PHP scripts to Apache listening on 127.0.0.1:80
            #
            #location ~ \.php$ {
            #    proxy_pass   http://127.0.0.1;
            #}
    
            # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
            #
            #location ~ \.php$ {
            #    root           html;
            #    fastcgi_pass   127.0.0.1:9000;
            #    fastcgi_index  index.php;
            #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
            #    include        fastcgi_params;
            #}
    
            # deny access to .htaccess files, if Apache's document root
            # concurs with nginx's one
            #
            #location ~ /\.ht {
            #    deny  all;
            #}
        }
    
    
        # another virtual host using mix of IP-, name-, and port-based configuration
        #
        #server {
        #    listen       8000;
        #    listen       somename:8080;
        #    server_name  somename  alias  another.alias;
    
        #    location / {
        #        root   html;
        #        index  index.html index.htm;
        #    }
        #}
    
    
        # HTTPS server
        #
        #server {
        #    listen       443 ssl;
        #    server_name  localhost;
    
        #    ssl_certificate      cert.pem;
        #    ssl_certificate_key  cert.key;
    
        #    ssl_session_cache    shared:SSL:1m;
        #    ssl_session_timeout  5m;
    
        #    ssl_ciphers  HIGH:!aNULL:!MD5;
        #    ssl_prefer_server_ciphers  on;
    
        #    location / {
        #        root   html;
        #        index  index.html index.htm;
        #    }
        #}
    
    }
    

     

     

    • Thanks 2
  7. В 14.07.2023 в 00:26, Botsmall сказал:

    Я так понимаю, это все в эту корзину?

    Можно и так )))

    В 14.07.2023 в 00:26, Botsmall сказал:

    .т.к. один из пакетов затребовал rust компилятор

    Не проблема совсем. Есть собранные и rustc, и maturin...

    ~ # maturin -V
    maturin 1.1.0
    ~ # 
    ~ # maturin list-python
    🐍 1 python interpreter found:
     - CPython 3.11 at /opt/bin/python3.11
    ~ # 
    ~ # rustc -vV
    rustc 1.70.0-nightly (90c541806 2023-05-31) (built from a source tarball)
    binary: rustc
    commit-hash: 90c541806f23a127002de5b4038be731ba1458ca
    commit-date: 2023-05-31
    host: mipsel-openwrt-linux-gnu
    release: 1.70.0-nightly
    LLVM version: 16.0.2
    ~ #

     

  8. 15 минут назад, ZBX сказал:

    Здравствуйте!   по ссылке https://bin.entware.net/mipssf-k3.4/ присутствует zabbix-server-frontend_6.2.3-3a_mips-3.4.ipk . А в  https://bin.entware.net/mipselsf-k3.4/  zabbix-server-frontend_6.2.3 отсутствует. Планируется ли его размещение для mipsel? И подскажите обновление на  6.4  есть в планах?

    Доброго! Всё будет, процесс заливки идёт... Новая версия появится, когда owrt`шники её затянут.

  9. 4 часа назад, MDP сказал:

    но ещё лучше бы было если только нужная (заранее выбранная служба) записывала бы сообщения в лог

    ))) служба?

    ~ # ndmc -c show log | cut -d' ' -f5 | grep -E '[a-z]' | cut -d: -f1 | cut -d'[' -f1 | sort -u
    avahi-daemon
    cron
    crond
    dropbear
    kernel
    mini_snmpd
    ndhcpc
    ndm
    root
    sshd
    telnetd
    ~ # 

    если выкинуть Entware, остаётся не так уж и много.

    4 часа назад, MDP сказал:

    места в файле лога совсем мало

    ну, в файле места полно, сгрузите и посмотрите

    [C] May  8 04:07:47 ndm: Mutex:   Cloud::UhpService::Impl_::DoControlListener_()+0x408 
    [C] May  8 04:07:47 ndm: Mutex:   Cloud::UhpService::Impl_::DoActive_()+0x250 
    [C] May  8 04:07:47 ndm: Mutex:   Cloud::UhpService::Impl_::Run()+0x368 
    [C] May  8 04:07:47 ndm: Mutex:   Thread::StartRoutine_(void*)+0x420
    ...
    [E] May 30 13:15:43 ndm: Core::Ndss: [23271] cannot connect to the server. 
    [E] May 30 13:16:42 ndm: Core::Ndss: [23276] HTTP error: 504 (Gateway Time-out). 
    [I] May 30 13:48:59 ndm: Network::Interface::Mtk::WifiMonitor: "WifiMaster0/AccessPoint0": STA(00:11:22:33:44:55) GTK rekey done, group cipher AES. 
    [I] May 30 14:45:01 ndhcpc: Bridge0: received ACK for 123.456.789.0 from 098.765.432.1 lease 25200 sec.

    а в журнале, видимо, ограничение на кол-во отображаемых строк.

×
×
  • Create New...