Popular Post Александр Рыжов Posted July 19, 2016 Popular Post Share Posted July 19, 2016 (edited) Предлагаемое решение позволяет использовать среду Debian 8.11 "Jessie" , Debian 9.13 "Stretch" , Debian 10.13 "Buster" , Debian 11.11 "Bullseye" или Debian 12.8 "Bookworm" прямо на роутере. ! Работы над переносом Debian MIPS были прекращены после Debian 10 (Buster) Требования кинетик с USB-портом, прошивка на основе kernel 3.x/4.x. флешка, отформатированная в Ext2/Ext3/Ext4. В Windows для форматирования можно воспользоваться EaseUS Partition Master free. Установка подключите флешку и откройте её содержимое с помощью сетевого окружения или FTP, создайте на флешке папку install, запишите в папку install файл: для Keenetic Peak (KN-2710) - debian-buster, debian-bullseye, debian-bookworm; для Keenetic DSL, DUO, VOX, LTE - debian-jessie , debian-stretch, debian-buster; для остальных - debian-jessie , debian-stretch, debian-buster, debian-bullseye, debian-bookworm; в веб-интерфейсе перейдите на закладку OPKG, выберите в выпадающем списке свою флешку и нажмите кнопку «Применить». Наберитесь терпения: роутер «уйдёт в себя» на время до полутора минут. В это время будет вестись распаковка архива с флешки. Каждый следующий запуск среды будет происходить практически мгновенно. Признаком того, что всё прошло нормально будут следующие события в системном логе: [I] Jul 19 13:24:28 ndm: Opkg::Manager: disk is set to: fb4e34d1-3cab-fd19-b96d-4bb3a2d5ec84: [I] Jul 19 13:24:28 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Jul 19 13:24:28 ndm: kernel: EXT4-fs (sda1): re-mounted. Opts: (null) [I] Jul 19 13:24:28 ndm: Opkg::Manager: /tmp/mnt/FIT8GB/ mounted to /tmp/mnt/FIT8GB/. [I] Jul 19 13:24:28 ndm: Opkg::Manager: /tmp/mnt/FIT8GB/ mounted to /opt/. [I] Jul 19 13:24:28 npkg: inflating "debian-keenetic.tar.gz". [I] Jul 19 13:24:28 ndm: Core::ConfigurationSaver: saving configuration... [I] Jul 19 13:26:10 ndm: Opkg::Manager: /tmp/mnt/FIT8GB/ initialized. [I] Jul 19 13:26:10 ndm: Core::ConfigurationSaver: configuration saved. [I] Jul 19 10:26:10 root: Starting Debian services... [W] Jul 19 13:26:11 ndm: kernel: Algorithmics/MIPS FPU Emulator v1.5 [I] Jul 19 13:26:11 ndm: Opkg::Manager: /opt/etc/initrc: Starting OpenBSD Secure Shell server: sshd. [I] Jul 19 13:26:11 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Jul 19 10:26:11 sshd[448]: Server listening on 0.0.0.0 port 22. [I] Jul 19 10:26:11 sshd[448]: Server listening on :: port 22. Скрытый текст Debian "Stretch" ... [I] Feb 19 12:26:45 ndm: Opkg::Manager: disk is set to: debian:/. [I] Feb 19 12:26:45 ndm: kernel: EXT4-fs (sde): re-mounted. Opts: (null) [I] Feb 19 12:26:45 ndm: Opkg::Manager: /tmp/mnt/bc2a2eb6-f889-4366-83ba-2cc3b93646f9 mounted to /tmp/mnt/bc2a2eb6-f889-4366-83ba-2cc3b93646f9. [I] Feb 19 12:26:45 ndm: Opkg::Manager: /tmp/mnt/bc2a2eb6-f889-4366-83ba-2cc3b93646f9 mounted to /opt/. [I] Feb 19 12:26:45 npkg: inflating "debian-stretch-9_8-mipsel.tar.gz". [I] Feb 19 12:27:13 ndm: Opkg::Manager: /tmp/mnt/bc2a2eb6-f889-4366-83ba-2cc3b93646f9 initialized. [I] Feb 19 12:27:13 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Feb 19 12:27:13 ndm: Core::ConfigurationSaver: saving configuration... [I] Feb 19 12:27:13 ndm: Dns::Manager: RPC-only mode enabled. [I] Feb 19 12:27:13 ndnproxy: ndnproxy stopped. [I] Feb 19 09:27:13 0: Starting Debian services... [I] Feb 19 09:27:14 sshd[8096]: Server listening on 0.0.0.0 port 222. [I] Feb 19 12:27:14 ndm: Opkg::Manager: /opt/etc/initrc: Starting OpenBSD Secure Shell server: sshd. [I] Feb 19 12:27:14 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Feb 19 09:27:14 sshd[8096]: Server listening on :: port 222. [I] Feb 19 12:27:15 ndnproxy: ndnproxy 1.3.0b22 started. [I] Feb 19 12:27:15 ndnproxy: PID file: /var/ndnproxymain.pid. [I] Feb 19 12:27:15 ndnproxy: stats. file: /var/ndnproxymain.stat. [I] Feb 19 12:27:17 ndm: Core::ConfigurationSaver: configuration saved. [I] Feb 19 09:27:55 sshd[8308]: Connection closed by 192.168.1.60 port 48314 [preauth] [I] Feb 19 09:28:34 sshd[8476]: Accepted password for root from 192.168.1.60 port 48318 ssh2 [I] Feb 19 09:28:34 sshd[8476]: pam_unix(sshd:session): session opened for user root by (uid=0) [E] Feb 19 09:28:34 sshd[8476]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory [I] Feb 19 09:29:56 chroot: Hello, World! [I] Feb 19 09:31:13 sshd[8476]: Received disconnect from 192.168.1.60 port 48318:11: disconnected by user [I] Feb 19 09:31:13 sshd[8476]: Disconnected from 192.168.1.60 port 48318 [I] Feb 19 09:31:13 sshd[8476]: pam_unix(sshd:session): session closed for user root [I] Feb 19 12:31:30 ndm: Opkg::Manager: unmount existing /opt disk: debian:/. [I] Feb 19 09:31:30 0: Stopping Debian services... [I] Feb 19 09:31:31 sshd[8096]: Received signal 15; terminating. [I] Feb 19 12:31:31 ndm: Opkg::Manager: /opt/etc/initrc: Stopping OpenBSD Secure Shell server: sshd. [I] Feb 19 12:31:31 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Feb 19 12:31:31 ndm: Opkg::Manager: disk unmounted. [I] Feb 19 12:31:31 ndnproxy: ndnproxy stopped. [I] Feb 19 12:31:31 ndm: Dns::Manager: RPC-only mode disabled. [I] Feb 19 12:31:31 ndm: Opkg::Manager: disk is unset. [I] Feb 19 12:31:31 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Feb 19 12:31:31 ndm: Core::ConfigurationSaver: saving configuration... [I] Feb 19 12:31:33 ndnproxy: ndnproxy 1.3.0b22 started. [I] Feb 19 12:31:33 ndnproxy: PID file: /var/ndnproxymain.pid. [I] Feb 19 12:31:33 ndnproxy: stats. file: /var/ndnproxymain.stat. [I] Feb 19 12:31:34 ndm: Core::ConfigurationSaver: configuration saved. ... Debian "Buster" ... [I] Jul 7 20:43:38 ndm: lib::libndmCore: file "Entware-testing:/install/debian-buster-10_0-mipsel.tar.gz" was uploaded. [I] Jul 7 20:44:12 ndm: Opkg::Manager: disk is set to: Entware-testing:/. [I] Jul 7 20:44:12 ndm: kernel: EXT4-fs (sdc1): re-mounted. Opts: (null) [I] Jul 7 20:44:12 ndm: Opkg::Manager: /tmp/mnt/644ffcba-1c2e-4e7d-b70a-b251e5fb87ed mounted to /tmp/mnt/644ffcba-1c2e-4e7d-b70a-b251e5fb87ed. [I] Jul 7 20:44:12 ndm: Opkg::Manager: /tmp/mnt/644ffcba-1c2e-4e7d-b70a-b251e5fb87ed mounted to /opt/. [I] Jul 7 20:44:12 npkg: inflating "debian-buster-10_0-mipsel.tar.gz". [I] Jul 7 20:44:29 ndm: Opkg::Manager: /tmp/mnt/644ffcba-1c2e-4e7d-b70a-b251e5fb87ed initialized. [I] Jul 7 20:44:29 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Jul 7 20:44:29 ndnproxy: ndnproxy stopped. [I] Jul 7 20:44:29 ndm: Core::ConfigurationSaver: saving configuration... [I] Jul 7 20:44:29 ndm: Dns::Manager: RPC-only mode enabled. [I] Jul 7 17:44:29 0: Starting Debian services... [I] Jul 7 20:44:30 ndm: Opkg::Manager: /opt/etc/initrc: Starting OpenBSD Secure Shell server: sshd. [I] Jul 7 20:44:30 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Jul 7 17:44:30 sshd[30460]: Server listening on 0.0.0.0 port 222. [I] Jul 7 17:44:30 sshd[30460]: Server listening on :: port 222. [I] Jul 7 20:44:31 ndnproxy: ndnproxy 1.3.0b24 started. [I] Jul 7 20:44:31 ndnproxy: PID file: /var/ndnproxymain.pid. [I] Jul 7 20:44:31 ndnproxy: stats. file: /var/ndnproxymain.stat. [I] Jul 7 20:44:33 ndm: Core::ConfigurationSaver: configuration saved. [I] Jul 7 17:45:26 sshd[30694]: Accepted password for root from 192.168.1.60 port 51780 ssh2 [I] Jul 7 17:45:26 sshd[30694]: pam_unix(sshd:session): session opened for user root by (uid=0) [E] Jul 7 17:45:26 sshd[30694]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory [I] Jul 7 17:45:57 root: PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" [W] Jul 7 20:47:38 ndm: Core::Server: started obsoleted TCP Session 127.0.0.1:53526. [I] Jul 7 20:47:38 ndm: Core::Session: client disconnected. [I] Jul 7 17:47:38 root: Keenetic Ultra II [W] Jul 7 20:47:44 ndm: Core::Server: started obsoleted TCP Session 127.0.0.1:53532. [I] Jul 7 20:47:44 ndm: Core::Session: client disconnected. [I] Jul 7 17:47:44 root: 3.01.A.4.0-1 [I] Jun 14 10:32:29 ndm: Opkg::Manager: /tmp/mnt/1b6a1f89-71d2-40fc-8dd4-40a3878bb2cb mounted to /tmp/mnt/1b6a1f89-71d2-40fc-8dd4-40a3878bb2cb. [I] Jun 14 10:32:29 ndm: Opkg::Manager: /tmp/mnt/1b6a1f89-71d2-40fc-8dd4-40a3878bb2cb mounted to /opt/. [I] Jun 14 10:32:29 npkg: inflating "debian-bookworm-12.0-mipsel.tar.gz". [I] Jun 14 10:33:03 ndm: Opkg::Manager: /tmp/mnt/1b6a1f89-71d2-40fc-8dd4-40a3878bb2cb initialized. [I] Jun 14 10:33:03 ndm: Core::System::StartupConfig: configuration saved. [I] Jun 14 07:33:04 0: Starting Debian services... [I] Jun 14 10:33:05 ndm: Opkg::Manager: /opt/etc/initrc: Starting OpenBSD Secure Shell server: sshd. [I] Jun 14 10:33:05 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Jun 14 07:33:05 sshd[22452]: Server listening on 0.0.0.0 port 222. [I] Jun 14 07:33:05 sshd[22452]: Server listening on :: port 222. [I] Jun 14 07:33:40 sshd[22791]: Connection closed by 192.168.1.2 port 59496 [preauth] [I] Jun 14 07:33:53 sshd[22837]: Accepted password for root from 192.168.1.2 port 59498 ssh2 [I] Jun 14 07:33:53 sshd[22837]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0) [I] Jun 14 07:33:53 sshd[22837]: pam_env(sshd:session): deprecated reading of user environment enabled [E] Jun 14 07:33:53 sshd[22837]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory ... KN-2710 [I] Aug 22 18:24:28 ndm: Core::System::Configuration: configuration saved. [I] Aug 22 18:24:40 ndm: Core::FileSystem::Repository: "deb:/install" created. [I] Aug 22 18:26:15 ndm: lib::libndmCore: file "deb:/install/debian-buster-10_10-aarch64.tar.gz" was uploaded. [I] Aug 22 18:30:50 ndm: Opkg::Manager: disk is set to: deb:/. [I] Aug 22 18:30:50 ndm: Opkg::Manager: init script reset to default: /opt/etc/initrc. [I] Aug 22 18:30:50 ndm: Core::System::Configuration: saving (http/rci). [I] Aug 22 18:30:50 kernel: EXT4-fs (sdb1): re-mounted. Opts: (null) [I] Aug 22 18:30:50 ndm: Opkg::Manager: /tmp/mnt/3177a83c-2755-4629-802f-dda28af70b62 mounted to /tmp/mnt/3177a83c-2755-4629-802f-dda28af70b62. [I] Aug 22 18:30:50 ndm: Opkg::Manager: /tmp/mnt/3177a83c-2755-4629-802f-dda28af70b62 mounted to /opt/. [I] Aug 22 18:30:50 npkg: inflating "debian-buster-10_10-aarch64.tar.gz". [I] Aug 22 18:31:00 ndm: Opkg::Manager: /tmp/mnt/3177a83c-2755-4629-802f-dda28af70b62 initialized. [I] Aug 22 18:31:01 ndm: Core::System::Configuration: configuration saved. [I] Aug 22 15:31:01 0: Starting Debian services... [I] Aug 22 18:31:01 ndm: Opkg::Manager: /opt/etc/initrc: Starting OpenBSD Secure Shell server: sshd. [I] Aug 22 18:31:01 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Aug 22 15:31:01 sshd[21065]: Server listening on 0.0.0.0 port 222. [I] Aug 22 15:31:01 sshd[21065]: Server listening on :: port 222. [I] Aug 22 15:31:24 sshd[21245]: Connection closed by ip.add.re.ss port 60612 [preauth] [I] Aug 22 15:31:57 sshd[21445]: Accepted password for root from ip.add.re.ss port 60618 ssh2 [I] Aug 22 15:31:57 sshd[21445]: pam_unix(sshd:session): session opened for user root by (uid=0) [E] Aug 22 15:31:57 sshd[21445]: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory [I] Aug 22 15:32:18 root: Hello,World! [I] Aug 22 15:36:09 root: "Bye!" [I] Aug 22 15:36:45 sshd[21445]: Received disconnect from ip.add.re.ss port 60618:11: disconnected by user [I] Aug 22 15:36:45 sshd[21445]: Disconnected from user root ip.add.re.ss port 60618 [I] Aug 22 15:36:45 sshd[21445]: pam_unix(sshd:session): session closed for user root Использование Подключитесь с помощью SSH-клиента к роутеру: хост: my.keenetic.net, порт: 222 имя пользователя: root, пароль: debian. Перед вами user space среда Debian, использование которой ограничено лишь вашей фантазией и здравым смыслом. Вам доступны десятки тысяч пакетов репозитория и решения одного из самых крупных linux-комьюнити. На Omni II среда ворочается довольно тяжело. На устройствах с 64МБ RAM рекомендуется в веб-интерфейсе включить Swap-файл. Технические детали При SSH-логине вы попадаете в chroot-среду, подготовленную по этому алгоритму. За пределами chroot-среды на роутере лишь busybox и скрипт /opt/etc/initrc, который запускает сервисы Debian при старте роутера и грациозно завершает их работу при перезагрузке и\или отмонтировании носителя: [I] Jul 19 10:28:36 root: Stopping Debian services... [I] Jul 19 10:28:36 sshd[448]: Received signal 15; terminating. [I] Jul 19 13:28:36 ndm: Opkg::Manager: /opt/etc/initrc: Stopping OpenBSD Secure Shell server: sshd. [I] Jul 19 13:28:36 ndm: Opkg::Manager: /opt/etc/initrc: Done. [I] Jul 19 13:28:36 ndm: Opkg::Manager: disk unmounted. В chroot-среде вы найдёте файл /chroot-services.list, в котором по одному на строчку перечислены те Debian-сервисы, что должны запускаться при старте роутера. Изначально там только ssh. Строчки в этом файле соответствуют именам стартовых скриптов из /etc/init.d. Удачи в начинаниях. Edited Monday at 03:38 PM by TheBB upd Debian 12.8 11 Quote Link to comment Share on other sites More sharing options...
kis-markiz Posted July 19, 2016 Share Posted July 19, 2016 Ну чё... Браво! Даёшь windows-keenetic! ))) 1 Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted July 19, 2016 Author Share Posted July 19, 2016 15 минут назад, kis-markiz сказал: Даёшь windows-keenetic! ))) Запросто! Ставьте пакет bochs из Entware, подрубайте образ HDD и подключайтесь к этому делу по VNC. Проверено, работает:) 1 Quote Link to comment Share on other sites More sharing options...
pitersidr Posted July 19, 2016 Share Posted July 19, 2016 (edited) Цитата draft-прошивка на основе kernel 3.x. недопонимаю, как проверить? в итоге - Цитата Jul 19 19:44:04ndmOpkg::Manager: disk is set to: a6798057-9ae5-7571-0a87-057cdde369b9: Jul 19 19:44:04ndmOpkg::Manager: init script reset to default: /opt/etc/initrc. Jul 19 19:44:04ndmCore::ConfigurationSaver: saving configuration... Jul 19 19:44:07ndmOpkg::Manager: /tmp/mnt/DEBIAN/ mounted to /tmp/mnt/DEBIAN/. Jul 19 19:44:07ndmOpkg::Manager: /tmp/mnt/DEBIAN/ mounted to /opt/. Jul 19 19:44:07npkginflating "debian-keenetic.tar.gz". Jul 19 19:44:28agHTTP::CoreInterface: NDM core connection timeout. Jul 19 19:44:28ndmCore::Server: started Session 127.0.0.1:40112. Jul 19 19:46:08ndmOpkg::Manager: system failed [0xcffd017e], timed out. Jul 19 19:46:10ndmProcess: "Opkg install" has been killed. Jul 19 19:47:36ndmCore::Session: client disconnected. Jul 19 19:47:36ndmCore::ConfigurationSaver: configuration saved. Jul 19 16:47:38rootStarting Debian services... Jul 19 19:47:38ndmOpkg::Manager: /opt/etc/initrc: FATAL: kernel too old. Jul 19 19:47:38ndmOpkg::Manager: /opt/etc/initrc: Done. Edited July 19, 2016 by pitersidr Quote Link to comment Share on other sites More sharing options...
TheBB Posted July 19, 2016 Share Posted July 19, 2016 17 минут назад, pitersidr сказал: недопонимаю, как проверить? эксперементальная прошивка версии 2.07 а, судя по записи в профиле "Keenetic Giga II"... Quote Link to comment Share on other sites More sharing options...
dexter Posted July 19, 2016 Share Posted July 19, 2016 Поставил на Ultra 2. Работает бодренько. Процессор по веб морде грузится не больше 50%(когда устанавливал mc, а это заняло немало времени), память при этом 18%. Quote Link to comment Share on other sites More sharing options...
zyxmon Posted July 19, 2016 Share Posted July 19, 2016 Есть еще такой нюанс- в использованном Debian jesssie используется ядро 3.16 а у нас 3.4. Бинарники Debian использующие сисколы ядра 3.16, отсутувующие в 3.4 работать не будут. Скорее всего таких не очень много. Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted July 20, 2016 Author Share Posted July 20, 2016 (edited) Успешно поставил в chroot-Debian monitorrent - питоновскую бороду для отслеживания обновления раздач, написанную нашим соотечественником. При обновлении торрента monitorrent автоматически передаёт встроенному transmission'у новые задания для закачки. На Omni II взлетает около минуты и потребляет треть памяти, что неприемлемо. Однако владельцы Ultra II/Giga III вполне могут это решение использовать. Edited July 20, 2016 by Александр Рыжов 1 Quote Link to comment Share on other sites More sharing options...
dexter Posted July 21, 2016 Share Posted July 21, 2016 MySQl + Apache на порту 8080 нормально заработал. Но при запросах к БД загрузка CPU достигала 100%, расход памяти около 100мб. Все делалось на Ultra2. Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted July 21, 2016 Author Share Posted July 21, 2016 (edited) Обновил $PATH для chroot-окружения. Либо разверните среду Debian заново, используя обновлённый архив, либо отредактируйте PATH=... в скрипте запуска chroot-среды вручную: Скрытый текст editor /proc/1/cwd/opt/etc/initrc При вызове chroot переменная должна иметь вид: ... for item in $(cat $CHROOT_SERVICES_LIST); do PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/sbin \ LC_ALL=C \ LANGUAGE=C \ LANG=C \ chroot $CHROOT_DIR /etc/init.d/$item start done ... for item in $(cat $CHROOT_SERVICES_LIST); do PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/sbin \ LC_ALL=C \ LANGUAGE=C \ LANG=C \ chroot $CHROOT_DIR /etc/init.d/$item stop done ... Кроме того, в обновлённом архиве найдёте утилиту ndmq, позволяющую выполнять любые CLI-команды кинетика. Edited July 21, 2016 by Александр Рыжов Quote Link to comment Share on other sites More sharing options...
dexter Posted July 21, 2016 Share Posted July 21, 2016 (edited) Скрытый текст Да, я уже понял, что не так сделал. Все исправил. Заработало. Спасибо. В блок "Stop" тоже вносится изменение. А утилитку "ndmq" можно как-нибудь загнать в Дебиан или работать не будет из-за chroot среды? На все вопросы ответили. А утилитку достаточно положить из архива в каталог "debian\usr\bin"? Edited July 21, 2016 by dexter Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted July 21, 2016 Author Share Posted July 21, 2016 (edited) 10 минут назад, dexter сказал: А утилитку достаточно положить из архива в каталог "debian\usr\bin"? Утилита уже внутри обновлённого архива и доступна по пути /usr/bin/ndmq. Если хочется её добавить в ранее развёрную среду, то достаточно её скачать и распаковать: wget -qO - https://github.com/ryzhovau/debian-keenetic/raw/master/ndmq.tgz | tar -xzvC /usr/bin Edited July 21, 2016 by Александр Рыжов Quote Link to comment Share on other sites More sharing options...
dexter Posted July 26, 2016 Share Posted July 26, 2016 Нет ли решения, что бы "ifconfig" вызывался сразу без полного пути "/sbin/ifconfig"? Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted July 26, 2016 Author Share Posted July 26, 2016 В обновлённом неделю назад варианте /sbin уже в $PATH. Quote Link to comment Share on other sites More sharing options...
dexter Posted July 27, 2016 Share Posted July 27, 2016 Что-то не работает. Попробую переустановить систему. Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted July 27, 2016 Author Share Posted July 27, 2016 42 минуты назад, dexter сказал: Что-то не работает. Попробую переустановить систему. Если $PATH меняли ручками, то изменения вступят в силу после перезагрузки роутера. Quote Link to comment Share on other sites More sharing options...
seejey Posted August 7, 2016 Share Posted August 7, 2016 (edited) В 19.07.2016 в 16:36, Александр Рыжов сказал: Запросто! Ставьте пакет bochs из Entware, подрубайте образ HDD и подключайтесь к этому делу по VNC. Проверено, работает:) Александр, добрый день! не удалось запустить виндоус на bochs лог Скрытый текст 00000000000i[IOAPIC] IOAPIC enabled (base address = 0xfec00000) 00000000000i[PLUGIN] init_dev of 'keyboard' plugin device by virtual method 00000000000i[KBD ] will paste characters every 400 keyboard ticks 00000000000i[PLUGIN] init_dev of 'harddrv' plugin device by virtual method 00000000000i[HD ] CD on ata0-0: '/opt/share/bochs/c.img'00000000000i[CD1 ] load cdrom with path='/opt/share/bochs/c.img' 00000000000i[CD1 ] Opening image file as a cd. 00000000000i[HD ] Media present in CD-ROM drive 00000000000e[CD1 ] expected cdrom image to be a multiple of 2048 bytes 00000000000i[HD ] Capacity is 52211 sectors (101,97 MB) 00000000000i[HD ] Using boot sequence cdrom, none, none 00000000000i[HD ] Floppy boot signature check is enabled 00000000000i[PLUGIN] init_dev of 'pci_ide' plugin device by virtual method 00000000000i[DEV ] PIIX3 PCI IDE controller present at device 1, function 1 00000000000i[PLUGIN] init_dev of 'unmapped' plugin device by virtual method 00000000000i[PLUGIN] init_dev of 'biosdev' plugin device by virtual method 00000000000i[PLUGIN] init_dev of 'speaker' plugin device by virtual method 00000000000i[PCSPK ] Using /dev/console for output 00000000000i[PLUGIN] init_dev of 'extfpuirq' plugin device by virtual method 00000000000i[PLUGIN] init_dev of 'parallel' plugin device by virtual method 00000000000i[PAR ] parallel port 1 at 0x0378 irq 7 00000000000i[PLUGIN] init_dev of 'serial' plugin device by virtual method 00000000000i[SER ] com1 at 0x03f8 irq 4 (mode: null) 00000000000i[PLUGIN] register state of 'pci' plugin device by virtual method 00000000000i[PLUGIN] register state of 'pci2isa' plugin device by virtual method 00000000000i[PLUGIN] register state of 'cmos' plugin device by virtual method 00000000000i[PLUGIN] register state of 'dma' plugin device by virtual method 00000000000i[PLUGIN] register state of 'pic' plugin device by virtual method 00000000000i[PLUGIN] register state of 'pit' plugin device by virtual method 00000000000i[PLUGIN] register state of 'vga' plugin device by virtual method 00000000000i[PLUGIN] register state of 'floppy' plugin device by virtual method 00000000000i[PLUGIN] register state of 'unmapped' plugin device by virtual method 00000000000i[PLUGIN] register state of 'biosdev' plugin device by virtual method 00000000000i[PLUGIN] register state of 'speaker' plugin device by virtual method 00000000000i[PLUGIN] register state of 'extfpuirq' plugin device by virtual method 00000000000i[PLUGIN] register state of 'parallel' plugin device by virtual method 00000000000i[PLUGIN] register state of 'serial' plugin device by virtual method 00000000000i[PLUGIN] register state of 'acpi' plugin device by virtual method 00000000000i[PLUGIN] register state of 'ioapic' plugin device by virtual method 00000000000i[PLUGIN] register state of 'keyboard' plugin device by virtual method 00000000000i[PLUGIN] register state of 'harddrv' plugin device by virtual method 00000000000i[PLUGIN] register state of 'pci_ide' plugin device by virtual method 00000000000i[SYS ] bx_pc_system_c::Reset(HARDWARE) called 00000000000i[CPU0 ] cpu hardware reset 00000000000i[APIC0 ] allocate APIC id=0 (MMIO enabled) to 0x0000fee00000 00000000000i[CPU0 ] CPUID[0x00000000]: 00000001 756e6547 6c65746e 49656e69 00000000000i[CPU0 ] CPUID[0x00000001]: 00000533 00010000 00000000 108043bf 00000000000i[PLUGIN] reset of 'pci' plugin device by virtual method 00000000000i[PLUGIN] reset of 'pci2isa' plugin device by virtual method 00000000000i[PLUGIN] reset of 'cmos' plugin device by virtual method 00000000000i[PLUGIN] reset of 'dma' plugin device by virtual method 00000000000i[PLUGIN] reset of 'pic' plugin device by virtual method 00000000000i[PLUGIN] reset of 'pit' plugin device by virtual method 00000000000i[PLUGIN] reset of 'vga' plugin device by virtual method 00000000000i[PLUGIN] reset of 'floppy' plugin device by virtual method 00000000000i[PLUGIN] reset of 'acpi' plugin device by virtual method 00000000000i[PLUGIN] reset of 'ioapic' plugin device by virtual method 00000000000i[PLUGIN] reset of 'keyboard' plugin device by virtual method 00000000000i[PLUGIN] reset of 'harddrv' plugin device by virtual method 00000000000i[PLUGIN] reset of 'pci_ide' plugin device by virtual method 00000000000i[PLUGIN] reset of 'unmapped' plugin device by virtual method 00000000000i[PLUGIN] reset of 'biosdev' plugin device by virtual method 00000000000i[PLUGIN] reset of 'speaker' plugin device by virtual method 00000000000i[PLUGIN] reset of 'extfpuirq' plugin device by virtual method 00000000000i[PLUGIN] reset of 'parallel' plugin device by virtual method 00000000000i[PLUGIN] reset of 'serial' plugin device by virtual method 00000004000i[RFB ] rfbSetEncodings : client supported encodings: 00000004000i[RFB ] 00000005 Hextile 00000004000i[RFB ] 00000010 ZRLE 00000004000i[RFB ] 00000009 Unknown 00000004000i[RFB ] 00000008 ZlibHex 00000004000i[RFB ] 00000007 Tight 00000004000i[RFB ] 00000006 Zlib 00000004000i[RFB ] 00000004 CoRRE 00000004000i[RFB ] 00000002 RRE 00000004000i[RFB ] 00000001 CopyRect 00000004000i[RFB ] 00000000 Raw 00000004000i[RFB ] ffffff06 TightOption06 00000004000i[RFB ] ffffff10 TightOption10 00000004000i[RFB ] ffffff11 Cursor 00000004000i[RFB ] ffffff18 TightOption18 00000004000i[RFB ] ffffffe6 Unknown 00000004000i[RFB ] ffff0006 Unknown 00000004000i[RFB ] ffffff20 TightOption20 00000004000i[RFB ] ffffff21 DesktopSize 00000004661i[BIOS ] $Revision: 12579 $ $Date: 2014-12-26 11:31:39 +0100 (Fr, 26. Dez 2014) $ 00000318049i[KBD ] reset-disable command received 00000320818i[BIOS ] Starting rombios32 00000321256i[BIOS ] Shutdown flag 0 00000321839i[BIOS ] ram_size=0x02000000 00000322260i[BIOS ] ram_end=32MB 00000362532i[BIOS ] Found 1 cpu(s) 00000376736i[BIOS ] bios_table_addr: 0x000fa498 end=0x000fcc00 00000704531i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush) 00001032460i[P2ISA ] PCI IRQ routing: PIRQA# set to 0x0b 00001032479i[P2ISA ] PCI IRQ routing: PIRQB# set to 0x09 00001032498i[P2ISA ] PCI IRQ routing: PIRQC# set to 0x0b 00001032517i[P2ISA ] PCI IRQ routing: PIRQD# set to 0x09 00001032527i[P2ISA ] write: ELCR2 = 0x0a 00001033297i[BIOS ] PIIX3/PIIX4 init: elcr=00 0a 00001040978i[BIOS ] PCI: bus=0 devfn=0x00: vendor_id=0x8086 device_id=0x1237 class=0x0600 00001043257i[BIOS ] PCI: bus=0 devfn=0x08: vendor_id=0x8086 device_id=0x7000 class=0x0601 00001045375i[BIOS ] PCI: bus=0 devfn=0x09: vendor_id=0x8086 device_id=0x7010 class=0x0101 00001045600i[PIDE ] new BM-DMA address: 0xc000 00001046216i[BIOS ] region 4: 0x0000c000 00001048250i[BIOS ] PCI: bus=0 devfn=0x0b: vendor_id=0x8086 device_id=0x7113 class=0x0680 00001048482i[ACPI ] new irq line = 11 00001048494i[ACPI ] new irq line = 9 00001048519i[ACPI ] new PM base address: 0xb000 00001048533i[ACPI ] new SM base address: 0xb100 00001048561i[PCI ] setting SMRAM control register to 0x4a 00001212654i[CPU0 ] Enter to System Management Mode 00001212665i[CPU0 ] RSM: Resuming from System Management Mode 00001376686i[PCI ] setting SMRAM control register to 0x0a 00001391552i[BIOS ] MP table addr=0x000fa570 MPC table addr=0x000fa4a0 size=0xc8 00001393374i[BIOS ] SMBIOS table addr=0x000fa580 00001395555i[BIOS ] ACPI tables: RSDP addr=0x000fa6a0 ACPI DATA addr=0x01ff0000 size=0xf72 00001398767i[BIOS ] Firmware waking vector 0x1ff00cc 00001400562i[PCI ] i440FX PMC write to PAM register 59 (TLB Flush) 00001401285i[BIOS ] bios_table_cur_addr: 0x000fa6c4 00001528902i[VBIOS ] VGABios $Id: vgabios.c,v 1.76 2013/02/10 08:07:03 vruppert Exp $ 00001528973i[BXVGA ] VBE known Display Interface b0c0 00001529005i[BXVGA ] VBE known Display Interface b0c5 00001531930i[VBIOS ] VBE Bios $Id: vbe.c,v 1.65 2014/07/08 18:02:25 vruppert Exp $ 00001828000i[RFB ] rfbSetEncodings : client supported encodings: 00001828000i[RFB ] 00000005 Hextile 00001828000i[RFB ] 00000010 ZRLE 00001828000i[RFB ] 00000009 Unknown 00001828000i[RFB ] 00000008 ZlibHex 00001828000i[RFB ] 00000007 Tight 00001828000i[RFB ] 00000006 Zlib 00001828000i[RFB ] 00000004 CoRRE 00001828000i[RFB ] 00000002 RRE 00001828000i[RFB ] 00000001 CopyRect 00001828000i[RFB ] 00000000 Raw 00001828000i[RFB ] ffffff06 TightOption06 00001828000i[RFB ] ffffff10 TightOption10 00001828000i[RFB ] ffffff11 Cursor 00001828000i[RFB ] ffffff18 TightOption18 00001828000i[RFB ] ffffffe6 Unknown 00001828000i[RFB ] ffff0006 Unknown 00001828000i[RFB ] ffffff20 TightOption20 00001828000i[RFB ] ffffff21 DesktopSize 00005745638i[BIOS ] IDE time out 00018182912i[BIOS ] CDROM boot failure code : 0004 00018237920p[BIOS ] >>PANIC<< No bootable device. 00018237920i[CPU0 ] CPU is in real mode (active) 00018237920i[CPU0 ] CS.mode = 16 bit 00018237920i[CPU0 ] SS.mode = 16 bit 00018237920i[CPU0 ] EFER = 0x00000000 00018237920i[CPU0 ] | EAX=0000040a EBX=0000cd24 ECX=00090004 EDX=00000402 00018237920i[CPU0 ] | ESP=0000ffaa EBP=0000ffae ESI=000e0000 EDI=0000f782 00018237920i[CPU0 ] | IOPL=0 id vip vif ac vm rf nt of df if tf sf ZF af PF cf 00018237920i[CPU0 ] | SEG sltr(index|ti|rpl) base limit G D 00018237920i[CPU0 ] | CS:f000( 0004| 0| 0) 000f0000 0000ffff 0 0 00018237920i[CPU0 ] | DS:f000( 0005| 0| 0) 000f0000 0000ffff 0 0 00018237920i[CPU0 ] | SS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 00018237920i[CPU0 ] | ES:0f7c( 0005| 0| 0) 0000f7c0 0000ffff 0 0 00018237920i[CPU0 ] | FS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 00018237920i[CPU0 ] | GS:0000( 0005| 0| 0) 00000000 0000ffff 0 0 00018237920i[CPU0 ] | EIP=0000054b (0000054a) 00018237920i[CPU0 ] | CR0=0x60000010 CR2=0x00000000 00018237920i[CPU0 ] | CR3=0x00000000 CR4=0x00000000 00018237920i[CMOS ] Last time is 1470573560 (Sun Aug 7 15:39:20 2016) 00018237920i[ ] restoring default signal behavior Bochs is exiting with the following message: [BIOS ] No bootable device красным выделил где находится путь к образу ADD вообщем выставил HHD и CDROM что-то пошло, дошло до черного экрана и все. написал лишь 00014109271i[BIOS ] Booting from 0000:7c00 00016369610i[BIOS ] int13_harddisk: function 15, unmapped device for ELDL=81 00024497354i[BIOS ] *** int 15h function AX=e980, BX=0086 not yet supported Edited August 8, 2016 by seejey cпрятал Quote Link to comment Share on other sites More sharing options...
vitalik6243 Posted August 8, 2016 Share Posted August 8, 2016 Кто нибудь пробовал ISPManager ставить? чет ошибку диска выбивает System memory: total used free shared buffers cached Mem: 250 204 45 0 0 137 -/+ buffers/cache: 66 183 Swap: 0 0 0 Disk space: df: cannot read table of mounted file systems: No such file or directory Quote Link to comment Share on other sites More sharing options...
Александр Рыжов Posted August 8, 2016 Author Share Posted August 8, 2016 4 часа назад, vitalik6243 сказал: Кто нибудь пробовал ISPManager ставить? Никто, т.к. смысла в этом нет. Это коммерческий софт с закрытым кодом, собранный для x86/amd64. Quote Link to comment Share on other sites More sharing options...
Le ecureuil Posted August 10, 2016 Share Posted August 10, 2016 Александру респект за debian, сегодня проверил на ultra II, работает чудесно! 1 Quote Link to comment Share on other sites More sharing options...
dexter Posted August 10, 2016 Share Posted August 10, 2016 Запустив, apach2, mysql и ещё по мелочи, добил его запустив bind. Bind запустился, система сказала, что открыто слишком много файлов. Адреса он не резолвил. Quote Link to comment Share on other sites More sharing options...
zyxmon Posted August 10, 2016 Share Posted August 10, 2016 6 минут назад, dexter сказал: Запустив, apach2, mysql и ещё по мелочи, добил его запустив bind. А в entware-3x как? Потянет? Единственно apache там урезанный. А в entware-ng? Quote Link to comment Share on other sites More sharing options...
dexter Posted August 10, 2016 Share Posted August 10, 2016 Не пробовал, там я ради интереса накатил cacti со всеми потрохами, он работал грузя CPU до 100% при запросах. А потом поставил bind и все пошло в раскоряку. Quote Link to comment Share on other sites More sharing options...
KorDen Posted August 11, 2016 Share Posted August 11, 2016 5 часов назад, dexter сказал: Не пробовал, там я ради интереса накатил cacti со всеми потрохами, он работал грузя CPU до 100% при запросах. А если апач заменить на nginx+php-fpm? Я все хочу запустить кактус на Entware (keenle либо 3x), но у меня что-то Mysql не запускается на keenle, да и похоже может не хватить некоторых модулей php... В итоге в раздумьях - пробовать ли debian, или все же пытаться завести на Entware PS: С появлением SNMP похоже надо пилить отдельную тему по запуску Cacti и аналогов прямо на роутере и всеми связанными с ними багами... Quote Link to comment Share on other sites More sharing options...
dexter Posted August 11, 2016 Share Posted August 11, 2016 (edited) У роутера может не хватить ресурсов. У меня на Ultra 2 проц в потолок был при запросах, и это я только датчики с самой ультры загнал туда. Мне кажется без сторонней машины мало, что получится. Я для себя так и не решил, что использовать Entware 3x или Debian. Пока так и пользуюсь Entware-ng. Edited August 11, 2016 by dexter Quote Link to comment Share on other sites More sharing options...
liox Posted August 12, 2016 Share Posted August 12, 2016 Ради интереса поставил Zabbix. Последнюю версию не получилось, а вот 2.2 работает нормально. Quote Link to comment Share on other sites More sharing options...
Le ecureuil Posted August 12, 2016 Share Posted August 12, 2016 1 час назад, liox сказал: Ради интереса поставил Zabbix. Последнюю версию не получилось, а вот 2.2 работает нормально. Zabbix server? Да вы батенька.... Quote Link to comment Share on other sites More sharing options...
liox Posted August 12, 2016 Share Posted August 12, 2016 Да сервер, фронт. Для дома норм, можно смотреть кто когда домой пришёл, к примеру) Quote Link to comment Share on other sites More sharing options...
BeaViSs Posted August 16, 2016 Share Posted August 16, 2016 Как с дебиана получить доступ к подключенным к юсб дискам? Quote Link to comment Share on other sites More sharing options...
liox Posted August 16, 2016 Share Posted August 16, 2016 (edited) mount "устройство" "папка монтирования". Например mount /dev/sda1 /newfolder Edited August 16, 2016 by liox Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.