-
Постов
2 475 -
Зарегистрирован
-
Посещение
-
Победитель дней
53
Тип контента
Профили
Форумы
Галерея
Загрузки
Блоги
События
Весь контент TheBB
-
От, даже не сумневался, что появиться такой пост. Странно, что Giga не упомянут. ))) Должен появиться, просто обязан, ещё один пост про: "Даёшь памяти, памяти бо-о-ольше! Даёшт флеша, флеша мно-о-ого!"
-
Заинтересованных, просьба проверить nfs-kernel-server_2.4.1-1a_mipsel-3.4.ipk nfs-kernel-server-utils_2.4.1-1a_mipsel-3.4.ipk nfs-utils_2.4.1-1a_mipsel-3.4.ipk nfs-utils-libs_2.4.1-1a_mipsel-3.4.ipk upd отправлено в бинарные репы
-
Вполне штатная ситуация, когда конфигурационные файлы изменены пользователем и находятся под защитой от перезаписи новыми версиями. На "взрослых" системах, в таких случаях, предлагается либо оставить как есть, либо заменить новым, либо объединить, либо... всё зависит от менеджера пакетов ОС. Иногда полезно сравнивать конфиги на добавление/удаление/изменение опций. На примере (кратко) `/opt/etc/passwd`: пользователь сменил пароль по умолчанию. Файл "passwd" принадлежит пакету "opt-ndmsv2". Список защищенных файлов в `/opt/lib/opkg/info/opt-ndmsv2.conffiles`. При обновлении пакета на новую версию, к дефолтному конфигу обновляемого пакета, добавляется суффикс `-opkg`. Пароль пользователя сохранён.
-
Что нужно знать владельцам Keenetic`ов при обновлении (`opkg upgrade`). Добавлен пакет "poorbox" ("обрезанный" busybox из 4-х апплетов: gunzip, gzip, tar, wget): ~ # ls -al /opt/usr/bin/ drwxr-xr-x 2 root root 4096 Oct 7 21:17 . drwxr-xr-x 5 root root 4096 Oct 4 00:10 .. -rwxr-xr-x 1 root root 59316 Oct 4 00:10 busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 gunzip -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 gzip -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 tar -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 wget -> busybox ~ # Upgrade системы следующий: 1. обновить список пакетов - `opkg update` 2. установить пакет "poorbox" - `opkg install poorbox` 3. обновить систему - `opkg upgrade` Это должно сделать систему более устойчивой при обновлении (пример, повторять не надо): ~ # sed -i -e 's,1.31.0-1,0.0.0,g' /opt/lib/opkg/status ~ # opkg list-upgradable busybox - 0.0.0 - 1.31.0-1 poorbox - 0.0.0 - 1.31.0-1 ~ # opkg upgrade Upgrading busybox on root from 0.0.0 to 1.31.0-1... Downloading http://bin.entware.net/mipselsf-k3.4/busybox_1.31.0-1_mipsel-3.4.ipk Upgrading poorbox on root from 0.0.0 to 1.31.0-1... Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/poorbox_1.31.0-1_mipsel-3.4_kn.ipk Configuring busybox. Warning: '/opt/bin/find' is already exists, skipping. Warning: '/opt/bin/xargs' is already exists, skipping. Warning: '/opt/bin/grep' is already exists, skipping. Configuring poorbox. ~ # Пакет уже включен в состав системы для новых установок. --- upd --- Альтернативный shell В bash, zsh система обновляется без проблем. В fish:
-
Что нужно знать владельцам Keenetic`ов при обновлении (`opkg upgrade`). Добавлен пакет "poorbox" ("обрезанный" busybox из 4-х апплетов: gunzip, gzip, tar, wget): ~ # ls -al /opt/usr/bin/ drwxr-xr-x 2 root root 4096 Oct 7 21:17 . drwxr-xr-x 5 root root 4096 Oct 4 00:10 .. -rwxr-xr-x 1 root root 59316 Oct 4 00:10 busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 gunzip -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 gzip -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 tar -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 wget -> busybox ~ # Upgrade системы следующий: 1. обновить список пакетов - `opkg update` 2. установить пакет "poorbox" - `opkg install poorbox` 3. обновить систему - `opkg upgrade` Это должно сделать систему более устойчивой при обновлении (пример, повторять не надо): ~ # sed -i -e 's,1.31.0-1,0.0.0,g' /opt/lib/opkg/status ~ # opkg list-upgradable busybox - 0.0.0 - 1.31.0-1 poorbox - 0.0.0 - 1.31.0-1 ~ # opkg upgrade Upgrading busybox on root from 0.0.0 to 1.31.0-1... Downloading http://bin.entware.net/mipselsf-k3.4/busybox_1.31.0-1_mipsel-3.4.ipk Upgrading poorbox on root from 0.0.0 to 1.31.0-1... Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/poorbox_1.31.0-1_mipsel-3.4_kn.ipk Configuring busybox. Warning: '/opt/bin/find' is already exists, skipping. Warning: '/opt/bin/xargs' is already exists, skipping. Warning: '/opt/bin/grep' is already exists, skipping. Configuring poorbox. ~ # Пакет уже включен в состав системы для новых установок.
-
Что нужно знать владельцам Keenetic`ов при обновлении (`opkg upgrade`). Добавлен пакет "poorbox" ("обрезанный" busybox из 4-х апплетов: gunzip, gzip, tar, wget): ~ # ls -al /opt/usr/bin/ drwxr-xr-x 2 root root 4096 Oct 7 21:17 . drwxr-xr-x 5 root root 4096 Oct 4 00:10 .. -rwxr-xr-x 1 root root 59316 Oct 4 00:10 busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 gunzip -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 gzip -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 tar -> busybox lrwxrwxrwx 1 root root 7 Oct 7 21:17 wget -> busybox ~ # Upgrade системы следующий: 1. обновить список пакетов - `opkg update` 2. установить пакет "poorbox" - `opkg install poorbox` 3. обновить систему - `opkg upgrade` Это должно сделать систему более устойчивой при обновлении (пример, повторять не надо): ~ # sed -i -e 's,1.31.0-1,0.0.0,g' /opt/lib/opkg/status ~ # opkg list-upgradable busybox - 0.0.0 - 1.31.0-1 poorbox - 0.0.0 - 1.31.0-1 ~ # opkg upgrade Upgrading busybox on root from 0.0.0 to 1.31.0-1... Downloading http://bin.entware.net/mipselsf-k3.4/busybox_1.31.0-1_mipsel-3.4.ipk Upgrading poorbox on root from 0.0.0 to 1.31.0-1... Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/poorbox_1.31.0-1_mipsel-3.4_kn.ipk Configuring busybox. Warning: '/opt/bin/find' is already exists, skipping. Warning: '/opt/bin/xargs' is already exists, skipping. Warning: '/opt/bin/grep' is already exists, skipping. Configuring poorbox. ~ # Пакет уже включен в состав системы для новых установок.
-
[offtop] прим. Я не занимаюсь ни прошивкой, ни модулями ядра в составе прошивки, ни приложениями для моб. устройств. Понадобилось мне проверить один пакет, причём на 2.05, а files.keenopt.ru "ласты склеил", модулей ядра нет. Поковырялся и собрал нужное. Дальше решил попробовать и на ядре 3.4, отвлёкся, переключился на др. задачи, "успешно забыл". [/offtop]
-
На сколько помню, их (модулей) было две штуки, один - из "стандартной поставки", второй - из dvb. Первый исчез, второй - не установлен. ))) --- > upd ~ # ndmq -p "show version" -P release 2.11.D.2.0-6 ~ # ls -1 /lib/modules/3.4.113/compat* /lib/modules/3.4.113/compat.ko /lib/modules/3.4.113/compat_xtables.ko ~ # dvb не установлен ))) ---> upd2 в общем, full hard reset надо ))) (развлекался со сборкой модулей и накрутил так, что и сам запутался, откуда ноги растут)
-
В legacy: ~ # ndmq -p "show version" -P release 2.11.D.5.0-0 ~ # ls -1 /lib/modules/3.4.113/compat* /lib/modules/3.4.113/compat_xtables.ko ~ # ... ~ # ndmq -p "show version" -P release 2.16.D.1.0-0 ~ # ls -1 /lib/modules/3.4.113/compat* /lib/modules/3.4.113/compat_xtables.ko ~ # нету
-
http://nginx.org/ru/docs/beginners_guide.html
-
Чем `/opt/share/www/site1 ; /opt/share/www/site2 ; /opt/share/www/siteN` не устраивает?
-
а `/opt/etc/php.ini` `dok_root = "/opt/share/www"`?
-
`opkg` - справка `opkg list-installed` - список установленных пакетов `opkg remove --autoremov ...` - удаление указанных пакетов, включая зависимые ...
-
opkg remove --autoremove $pkg_name где $pkg_name -- имя пакета
-
Включить логирование и смотреть на что жалуется. Без напилинга с пол пинка завелся, палкой потыкал в тушку, прикольно.
-
Для Keenetic III, КО советует установщики, содержащие в своём названии слово `mipsel`, напр.: Debian - debian-buster-10_0-mipsel.tar.gz, Entware - mipsel-installer.tar.gz
-
~ # opkg list | grep '^kmod' kmod - 20-1 - Linux kernel module handling kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases. kmod_ndms - 24-5 - Linux kernel module handling kmod is a set of tools to handle common tasks with Linux kernel modules like insert, remove, list, check properties, resolve dependencies and aliases. ~ # 'kmod_ndms' "заточен" под Keenetic`и, но тянет по зависимостям 'dvb-firmware'
- 55 ответов
-
Справедливо для 2.15 (более ранние версии уже не рассматриваем), но для 3.х путь к ядерным модулям другой. Унифицируем: #!/bin/sh MOD="/lib/modules/`uname -r`" # путь до модулей insmod $MOD/ebtables.ko insmod $MOD/ebtable_filter.ko insmod $MOD/ebt_ip.ko insmod $MOD/ebtable_nat.ko ... # <= ниже, остальной код BusyBox v1.30.1 () built-in shell (ash) ~ # lsmod | grep ebt ~ # ls -1 /lib/modules/4.9-ndm-2/ebt* /lib/modules/4.9-ndm-2/ebt_802_3.ko /lib/modules/4.9-ndm-2/ebt_among.ko /lib/modules/4.9-ndm-2/ebt_arp.ko ... /lib/modules/4.9-ndm-2/ebtable_filter.ko /lib/modules/4.9-ndm-2/ebtable_nat.ko /lib/modules/4.9-ndm-2/ebtables.ko ~ # /opt/etc/init.d/S88eoip start ~ # lsmod | grep ebt ebtable_broute 848 0 ebtable_nat 976 0 ebt_ip 1360 0 ebtable_filter 976 0 ebtables 16917 3 ebtable_filter,ebtable_nat,ebtable_broute ~ #
- 55 ответов
-
- 1
-
-
https://github.com/openwrt/packages/blob/master/net/squid/Makefile#L107 (у меня вся сборка находится на отдельном HDD) `stop` отрабатывает с задержкой, а `restart` - да, не работает. ~ # /opt/etc/init.d/S22squid start Starting squid... done. ~ # ps | grep squid | grep -v grep 18718 root 16560 S squid 18720 squid 20904 S {squid} (squid-1) --kid squid-1 ~ # /opt/etc/init.d/S22squid check Checking squid... alive. ~ # /opt/etc/init.d/S22squid stop Checking squid... alive. Shutting down squid... failed. ~ # /opt/etc/init.d/S22squid check Checking squid... alive. ~ # /opt/etc/init.d/S22squid check Checking squid... dead. ~ # ps | grep squid | grep -v grep ~ #
- 4 ответа
-
- 1
-