Git Product home page Git Product logo

mbl-common's People

Contributors

ryzhovau avatar

Watchers

 avatar

mbl-common's Issues

Chroot script failed

What steps will reproduce the problem?
1. Download the install script with wget
2. Run the script
3.

What is the expected output? What do you see instead?
The script failed to install Debian properly. Roughly half of the packages were 
not downloaded. As a result the chroot environment was not set up properly.

What version of the product are you using? On what operating system?
MyBookLive 02.42.03-027

Please provide any additional information below.
Here is the log:

 Info: This script will guide you through the chroot-based services
 Info: installation on Western Digital My Book Live (Duo) NAS.
 Info: The goal is to install Debian Testing environment with no interference
 Info: with firmware. You will be asked later about which services to install
 =>  Do you wish to continue [y/n]?y
 Info: Deploying a debootstrap package...
 Info: Preparing a new Debian Testing chroot file base. Please, be patient,
 Info: may takes a long time on low speed connection...
dpkg: warning: obsolete option '--print-installation-architecture', please use 
'--print-architecture' instead.
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libcap2 libdb5.1 
libsemanage-common libsemanage1 libslang2 libustr-1.0-1 
I: Found additional base dependencies: aptitude-common debian-archive-keyring 
gnupg gpgv libapt-pkg4.12 libboost-iostreams1.49.0 libcwidget3 libept1.4.12 
libffi6 libgcrypt11 libglib2.0-0 libgpg-error0 libgpm2 libncursesw5 
libreadline6 libsigc++-2.0-0c2a libsqlite3-0 libssh2-1 libstdc++6 libusb-0.1-4 
libxapian22 mc-data readline-common 
I: Checking component main on ftp://ftp.debian.org/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving apt
I: Validating apt
I: Retrieving libapt-pkg4.12
I: Validating libapt-pkg4.12
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving aptitude-common
I: Validating aptitude-common
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving libboost-iostreams1.49.0
I: Validating libboost-iostreams1.49.0
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving dash
I: Validating dash
I: Retrieving libdb5.1
I: Validating libdb5.1
I: Retrieving debconf
I: Validating debconf
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libc-bin
I: Validating libc-bin
I: Retrieving libc6
I: Validating libc6
I: Retrieving multiarch-support
I: Validating multiarch-support
I: Retrieving findutils
I: Validating findutils
I: Retrieving gcc-4.7-base
I: Validating gcc-4.7-base
I: Retrieving gcc-4.8-base
I: Validating gcc-4.8-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libglib2.0-0
I: Validating libglib2.0-0
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving libgpm2
I: Validating libgpm2
I: Retrieving grep
I: Validating grep
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving insserv
I: Validating insserv
I: Retrieving libcap2
I: Validating libcap2
I: Retrieving libept1.4.12
I: Validating libept1.4.12
I: Retrieving libffi6
I: Validating libffi6
I: Retrieving libgcrypt11
I: Validating libgcrypt11
I: Retrieving libgpg-error0
I: Validating libgpg-error0
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsemanage-common
I: Validating libsemanage-common
I: Retrieving libsemanage1
I: Validating libsemanage1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libssh2-1
I: Validating libssh2-1
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving mawk
I: Validating mawk
I: Retrieving mc
I: Validating mc
I: Retrieving mc-data
I: Validating mc-data
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving libtinfo5
I: Validating libtinfo5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-modules-bin
I: Validating libpam-modules-bin
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving libpcre3
I: Validating libpcre3
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving libreadline6
I: Validating libreadline6
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving sed
I: Validating sed
I: Retrieving sensible-utils
I: Validating sensible-utils
I: Retrieving login
W: Couldn't download package login
I: Retrieving passwd
W: Couldn't download package passwd
I: Retrieving libslang2
W: Couldn't download package libslang2
I: Retrieving libsqlite3-0
W: Couldn't download package libsqlite3-0
I: Retrieving initscripts
W: Couldn't download package initscripts
I: Retrieving sysv-rc
W: Couldn't download package sysv-rc
I: Retrieving sysvinit
W: Couldn't download package sysvinit
I: Retrieving sysvinit-utils
W: Couldn't download package sysvinit-utils
I: Retrieving tar
W: Couldn't download package tar
I: Retrieving tzdata
W: Couldn't download package tzdata
I: Retrieving libustr-1.0-1
W: Couldn't download package libustr-1.0-1
I: Retrieving bsdutils
W: Couldn't download package bsdutils
I: Retrieving libblkid1
W: Couldn't download package libblkid1
I: Retrieving libmount1
W: Couldn't download package libmount1
I: Retrieving libuuid1
W: Couldn't download package libuuid1
I: Retrieving mount
W: Couldn't download package mount
I: Retrieving util-linux
W: Couldn't download package util-linux
I: Retrieving libxapian22
W: Couldn't download package libxapian22
I: Retrieving liblzma5
W: Couldn't download package liblzma5
I: Retrieving zlib1g
W: Couldn't download package zlib1g
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.1...
I: Extracting debconf...
I: Extracting debconf-i18n...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting multiarch-support...
I: Extracting findutils...
I: Extracting gcc-4.7-base...
I: Extracting gcc-4.8-base...
I: Extracting libgcc1...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting insserv...
I: Extracting libcap2...
I: Extracting liblocale-gettext-perl...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting lsb-base...
I: Extracting mawk...
I: Extracting libncurses5...
I: Extracting libtinfo5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sensible-utils...
W: Failure trying to run: chroot /DataVolume/debian mount -t proc proc /proc
 Info: A Debian Testing chroot environment installed.
 Info: Now deploying services start script...
 Info: ...finished.
 =>  Do you wish to install miniDLNA UPnP/DLNA server [y/n]?y
 Info: UPnP/DLNA content will be taken from "Public/Shared Music",
 Info: "Public/Shared Pictures" and"Public/Shared Videos" shares.
chroot: cannot run command `apt-get': No such file or directory
sed: can't read /DataVolume/debian/etc/minidlna.conf: No such file or directory
 Info: MiniDLNA is installed.
 =>  Do you wish to install Transmission BitTorrent client [y/n]?y
 Info: Torrents content will be downloaded to "Public/Torrents" share. Installing...
chroot: cannot run command `apt-get': No such file or directory
/DataVolume/debian/etc/transmission-daemon/settings.json: No such file or 
directory
chmod: cannot access 
`/DataVolume/debian/etc/transmission-daemon/settings.json': No such file or 
directory
 Info: Transmission is installed.
 =>  Do you wish to start chroot'ed services right now [y/n]?y
chroot: cannot run command `mount': No such file or directory
chroot: cannot run command `mount': No such file or directory
chroot: cannot run command `mount': No such file or directory
chroot: cannot run command `service': No such file or directory
chroot: cannot run command `service': No such file or directory
 Info: Congratulation! Installation finished. You've got a working
 Info: Debian Testing environment onboard. You may install any services
 Info: you wish, but don't forget to add it's names to
 Info: /DataVolume/debian/chroot-services.list
 Info: /etc/init.d/chroot_debian.sh script is used
 Info: to start or stop chroot'ed services.
 Info: Found bug? Please, report us!
 Info: http://code.google.com/p/mbl-common/issues/list

Original issue reported on code.google.com by [email protected] on 10 Jul 2013 at 5:58

При установке возникают проблемы с ключами и невозможностью установить chroot, так как не скачивается Packages

Исправляется просто:
1. Сертификаты:
   а) параметрами --no-check-gpg --no-check-certificate 
   б) импортом gpg --no-default-keyring --keyring /usr/share/keyrings/debian-archive-keyring.gpg  --recv-keys 8B48AD6246925553

2. Невозможность скачать БД. Лечиться 
установкой core-utils. Проблема в утилите sort. 
Архитектура не та.

PS. -  если кому-то интересно, простой 
довнлоадер для всего:
apt-get update && apt-get upgrade -y && apt-get install wget python-pycurl 
python-crypto libgmp10 tesseract-ocr -y
wget http://download.pyload.org/pyload-cli-v0.4.9-all.deb && dpkg -i 
pyload-cli-v0.4.9-all.deb
pyLoadCore 
/etc/init.d/pyload start




Original issue reported on code.google.com by gotlium on 19 Oct 2013 at 9:18

Can not write log, openpty() failed

Прошивка 02.42.03-027
В принципе ничего страшного, но в целях 
отладки скрипта делюсь багами :)

---------cut-------------
dpkg: warning: obsolete option '--print-installation-architecture', please use 
'--print-architecture' instead.
---------cut-------------
I: Base system installed successfully.
 Info: A Debian Testing chroot environment installed.
 Info: Now deploying services start script...
 Info: ...finished.
 =>  Do you wish to install miniDLNA UPnP/DLNA server [y/n]?n
 =>  Do you wish to install Transmission BitTorrent client [y/n]?y
 Info: Torrents content will be downloaded to "Public/Torrents" share. Installing...
debconf: delaying package configuration, since apt-utils is not installed
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libssl1.0.0:powerpc.
(Reading database ... 7311 files and directories currently installed.)
Unpacking libssl1.0.0:powerpc (from .../libssl1.0.0_1.0.1e-3_powerpc.deb) ...
Selecting previously unselected package libevent-2.0-5:powerpc.
Unpacking libevent-2.0-5:powerpc (from 
.../libevent-2.0-5_2.0.21-stable-1_powerpc.deb) ...
Selecting previously unselected package libp11-kit0:powerpc.
Unpacking libp11-kit0:powerpc (from .../libp11-kit0_0.18.4-1_powerpc.deb) ...
Selecting previously unselected package libtasn1-3:powerpc.
Unpacking libtasn1-3:powerpc (from .../libtasn1-3_2.14-3_powerpc.deb) ...
Selecting previously unselected package libgnutls26:powerpc.
Unpacking libgnutls26:powerpc (from .../libgnutls26_2.12.23-5_powerpc.deb) ...
Selecting previously unselected package libkeyutils1:powerpc.
Unpacking libkeyutils1:powerpc (from .../libkeyutils1_1.5.5-7_powerpc.deb) ...
Selecting previously unselected package libkrb5support0:powerpc.
Unpacking libkrb5support0:powerpc (from 
.../libkrb5support0_1.10.1+dfsg-6.1_powerpc.deb) ...
Selecting previously unselected package libk5crypto3:powerpc.
Unpacking libk5crypto3:powerpc (from 
.../libk5crypto3_1.10.1+dfsg-6.1_powerpc.deb) ...
Selecting previously unselected package libkrb5-3:powerpc.
Unpacking libkrb5-3:powerpc (from .../libkrb5-3_1.10.1+dfsg-6.1_powerpc.deb) ...
Selecting previously unselected package libgssapi-krb5-2:powerpc.
Unpacking libgssapi-krb5-2:powerpc (from 
.../libgssapi-krb5-2_1.10.1+dfsg-6.1_powerpc.deb) ...
Selecting previously unselected package libidn11:powerpc.
Unpacking libidn11:powerpc (from .../libidn11_1.28-1_powerpc.deb) ...
Selecting previously unselected package libsasl2-modules:powerpc.
Unpacking libsasl2-modules:powerpc (from 
.../libsasl2-modules_2.1.25.dfsg1-14_powerpc.deb) ...
Selecting previously unselected package libsasl2-2:powerpc.
Unpacking libsasl2-2:powerpc (from .../libsasl2-2_2.1.25.dfsg1-14_powerpc.deb) 
...
Selecting previously unselected package libldap-2.4-2:powerpc.
Unpacking libldap-2.4-2:powerpc (from 
.../libldap-2.4-2_2.4.31-1+nmu2_powerpc.deb) ...
Selecting previously unselected package librtmp0:powerpc.
Unpacking librtmp0:powerpc (from 
.../librtmp0_2.4+20121230.gitdf6c518-1_powerpc.deb) ...
Selecting previously unselected package libcurl3-gnutls:powerpc.
Unpacking libcurl3-gnutls:powerpc (from 
.../libcurl3-gnutls_7.31.0-2_powerpc.deb) ...
Selecting previously unselected package adduser.
Unpacking adduser (from .../adduser_3.113+nmu3_all.deb) ...
Selecting previously unselected package libminiupnpc5.
Unpacking libminiupnpc5 (from .../libminiupnpc5_1.5-2_powerpc.deb) ...
Selecting previously unselected package libnatpmp1.
Unpacking libnatpmp1 (from .../libnatpmp1_20110808-3_powerpc.deb) ...
Selecting previously unselected package transmission-common.
Unpacking transmission-common (from .../transmission-common_2.77-2_all.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up adduser (3.113+nmu3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: 
/usr/local/NSPT/WDSafe/lib /usr/local/NSPT/WDShare/lib 
/usr/local/NSPT/WDNAS/lib /etc/perl /usr/local/lib/perl/5.14.2 
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at 
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package transmission-daemon.
(Reading database ... 7718 files and directories currently installed.)
Unpacking transmission-daemon (from .../transmission-daemon_2.77-2_powerpc.deb) 
...
Selecting previously unselected package krb5-locales.
Unpacking krb5-locales (from .../krb5-locales_1.10.1+dfsg-6.1_all.deb) ...
Selecting previously unselected package openssl.
Unpacking openssl (from .../openssl_1.0.1e-3_powerpc.deb) ...
Selecting previously unselected package ca-certificates.
Unpacking ca-certificates (from .../ca-certificates_20130610_all.deb) ...
Selecting previously unselected package minissdpd.
Unpacking minissdpd (from .../minissdpd_1.1.20120121-1_powerpc.deb) ...
Selecting previously unselected package transmission-cli.
Unpacking transmission-cli (from .../transmission-cli_2.77-2_powerpc.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libssl1.0.0:powerpc (1.0.1e-3) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: 
/usr/local/NSPT/WDSafe/lib /usr/local/NSPT/WDShare/lib 
/usr/local/NSPT/WDNAS/lib /etc/perl /usr/local/lib/perl/5.14.2 
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at 
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libevent-2.0-5:powerpc (2.0.21-stable-1) ...
Setting up libp11-kit0:powerpc (0.18.4-1) ...
Setting up libtasn1-3:powerpc (2.14-3) ...
Setting up libgnutls26:powerpc (2.12.23-5) ...
Setting up libkeyutils1:powerpc (1.5.5-7) ...
Setting up libkrb5support0:powerpc (1.10.1+dfsg-6.1) ...
Setting up libk5crypto3:powerpc (1.10.1+dfsg-6.1) ...
Setting up libkrb5-3:powerpc (1.10.1+dfsg-6.1) ...
Setting up libgssapi-krb5-2:powerpc (1.10.1+dfsg-6.1) ...
Setting up libidn11:powerpc (1.28-1) ...
Setting up libsasl2-modules:powerpc (2.1.25.dfsg1-14) ...
Setting up libsasl2-2:powerpc (2.1.25.dfsg1-14) ...
Setting up libldap-2.4-2:powerpc (2.4.31-1+nmu2) ...
Setting up librtmp0:powerpc (2.4+20121230.gitdf6c518-1) ...
Setting up libcurl3-gnutls:powerpc (7.31.0-2) ...
Setting up libminiupnpc5 (1.5-2) ...
Setting up libnatpmp1 (20110808-3) ...
Setting up transmission-common (2.77-2) ...
Setting up transmission-daemon (2.77-2) ...
[....] Starting bittorrent daemon: transmission-daemonstart-stop-daemon: 
nothing in /proc - not mounted? (No such file or directory)
 failed!
invoke-rc.d: initscript transmission-daemon, action "start" failed.
dpkg: error processing transmission-daemon (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up krb5-locales (1.10.1+dfsg-6.1) ...
Setting up openssl (1.0.1e-3) ...
Setting up ca-certificates (20130610) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: 
/usr/local/NSPT/WDSafe/lib /usr/local/NSPT/WDShare/lib 
/usr/local/NSPT/WDNAS/lib /etc/perl /usr/local/lib/perl/5.14.2 
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at 
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up minissdpd (1.1.20120121-1) ...
Setting up transmission-cli (2.77-2) ...
Processing triggers for libc-bin ...
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 157 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Errors were encountered while processing:
 transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
 Info: Transmission is installed.
 =>  Do you wish to start chroot'ed services right now [y/n]?y
[ ok ] Starting bittorrent daemon: transmission-daemon.
 Info: Congratulation! Installation finished. You've got a working
 Info: Debian Testing environment onboard. You may install any services
 Info: you wish, but don't forget to add it's names to
 Info: /DataVolume/debian/chroot-services.list
 Info: /etc/init.d/chroot_debian.sh script is used
 Info: to start or stop chroot'ed services.
 Info: Found bug? Please, report us!
 Info: http://code.google.com/p/mbl-common/issues/list

Original issue reported on code.google.com by [email protected] on 1 Aug 2013 at 1:33

опечатка в install.sh

Приветствую!
Если мне не мерещится, то в r111 лишний пробел 
в строке 114

Original issue reported on code.google.com by [email protected] on 13 Apr 2014 at 7:58

Some errors during installationTransmission.

 =>  Do you wish to install Transmission BitTorrent client [y/n]?y
 Info: Torrents content will be downloaded to "Public/Torrents" share. Installing...
debconf: delaying package configuration, since apt-utils is not installed
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously unselected package libssl1.0.0:powerpc.
(Reading database ... 7654 files and directories currently installed.)
Unpacking libssl1.0.0:powerpc (from .../libssl1.0.0_1.0.1e-2_powerpc.deb) ...
Selecting previously unselected package libevent-2.0-5:powerpc.
Unpacking libevent-2.0-5:powerpc (from 
.../libevent-2.0-5_2.0.19-stable-3_powerpc.deb) ...
Selecting previously unselected package libkeyutils1:powerpc.
Unpacking libkeyutils1:powerpc (from .../libkeyutils1_1.5.5-3_powerpc.deb) ...
Selecting previously unselected package libkrb5support0:powerpc.
Unpacking libkrb5support0:powerpc (from 
.../libkrb5support0_1.10.1+dfsg-5_powerpc.deb) ...
Selecting previously unselected package libk5crypto3:powerpc.
Unpacking libk5crypto3:powerpc (from 
.../libk5crypto3_1.10.1+dfsg-5_powerpc.deb) ...
Selecting previously unselected package libkrb5-3:powerpc.
Unpacking libkrb5-3:powerpc (from .../libkrb5-3_1.10.1+dfsg-5_powerpc.deb) ...
Selecting previously unselected package libgssapi-krb5-2:powerpc.
Unpacking libgssapi-krb5-2:powerpc (from 
.../libgssapi-krb5-2_1.10.1+dfsg-5_powerpc.deb) ...
Selecting previously unselected package libidn11:powerpc.
Unpacking libidn11:powerpc (from .../libidn11_1.25-2_powerpc.deb) ...
Selecting previously unselected package libsasl2-2:powerpc.
Unpacking libsasl2-2:powerpc (from .../libsasl2-2_2.1.25.dfsg1-6_powerpc.deb) 
...
Selecting previously unselected package libldap-2.4-2:powerpc.
Unpacking libldap-2.4-2:powerpc (from .../libldap-2.4-2_2.4.31-1_powerpc.deb) 
...
Selecting previously unselected package libssh2-1:powerpc.
Unpacking libssh2-1:powerpc (from .../libssh2-1_1.4.2-1.1_powerpc.deb) ...
Selecting previously unselected package libcurl3-gnutls:powerpc.
Unpacking libcurl3-gnutls:powerpc (from 
.../libcurl3-gnutls_7.26.0-1+wheezy1_powerpc.deb) ...
Selecting previously unselected package libminiupnpc5.
Unpacking libminiupnpc5 (from .../libminiupnpc5_1.5-2_powerpc.deb) ...
Selecting previously unselected package libnatpmp1.
Unpacking libnatpmp1 (from .../libnatpmp1_20110808-3_powerpc.deb) ...
Selecting previously unselected package transmission-common.
Unpacking transmission-common (from 
.../transmission-common_2.52-3+nmu1_all.deb) ...
Selecting previously unselected package transmission-daemon.
Unpacking transmission-daemon (from 
.../transmission-daemon_2.52-3+nmu1_powerpc.deb) ...
Selecting previously unselected package krb5-locales.
Unpacking krb5-locales (from .../krb5-locales_1.10.1+dfsg-5_all.deb) ...
Selecting previously unselected package openssl.
Unpacking openssl (from .../openssl_1.0.1e-2_powerpc.deb) ...
Selecting previously unselected package ca-certificates.
Unpacking ca-certificates (from .../ca-certificates_20130119_all.deb) ...
Selecting previously unselected package libsasl2-modules:powerpc.
Unpacking libsasl2-modules:powerpc (from 
.../libsasl2-modules_2.1.25.dfsg1-6_powerpc.deb) ...
Selecting previously unselected package minissdpd.
Unpacking minissdpd (from .../minissdpd_1.1.20120121-1_powerpc.deb) ...
Selecting previously unselected package transmission-cli.
Unpacking transmission-cli (from .../transmission-cli_2.52-3+nmu1_powerpc.deb) 
...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libssl1.0.0:powerpc (1.0.1e-2) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: 
/usr/local/NSPT/WDSafe/lib /usr/local/NSPT/WDShare/lib 
/usr/local/NSPT/WDNAS/lib /etc/perl /usr/local/lib/perl/5.14.2 
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at 
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libevent-2.0-5:powerpc (2.0.19-stable-3) ...
Setting up libkeyutils1:powerpc (1.5.5-3) ...
Setting up libkrb5support0:powerpc (1.10.1+dfsg-5) ...
Setting up libk5crypto3:powerpc (1.10.1+dfsg-5) ...
Setting up libkrb5-3:powerpc (1.10.1+dfsg-5) ...
Setting up libgssapi-krb5-2:powerpc (1.10.1+dfsg-5) ...
Setting up libidn11:powerpc (1.25-2) ...
Setting up libsasl2-2:powerpc (2.1.25.dfsg1-6) ...
Setting up libldap-2.4-2:powerpc (2.4.31-1) ...
Setting up libssh2-1:powerpc (1.4.2-1.1) ...
Setting up libcurl3-gnutls:powerpc (7.26.0-1+wheezy1) ...
Setting up libminiupnpc5 (1.5-2) ...
Setting up libnatpmp1 (20110808-3) ...
Setting up transmission-common (2.52-3+nmu1) ...
Setting up transmission-daemon (2.52-3+nmu1) ...
[....] Starting bittorrent daemon: transmission-daemonstart-stop-daemon: 
nothing in /proc - not mounted? (No such file or directory)
 failed!
invoke-rc.d: initscript transmission-daemon, action "start" failed.
dpkg: error processing transmission-daemon (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up krb5-locales (1.10.1+dfsg-5) ...
Setting up openssl (1.0.1e-2) ...
Setting up ca-certificates (20130119) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: 
/usr/local/NSPT/WDSafe/lib /usr/local/NSPT/WDShare/lib 
/usr/local/NSPT/WDNAS/lib /etc/perl /usr/local/lib/perl/5.14.2 
/usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at 
/usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libsasl2-modules:powerpc (2.1.25.dfsg1-6) ...
Setting up minissdpd (1.1.20120121-1) ...
Setting up transmission-cli (2.52-3+nmu1) ...
Processing triggers for ca-certificates ...
Updating certificates in /etc/ssl/certs... 158 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
Errors were encountered while processing:
 transmission-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
Info: Transmission is installed.



Original issue reported on code.google.com by [email protected] on 12 Apr 2013 at 6:44

dpkg: warning: obsolete option '--print-installation-architecture'

What steps will reproduce the problem?
1. Start the script
======
 Info: Deploying a debootstrap package...
 Info: Preparing a new Debian Testing chroot file base. Please, be patient,
 Info: may takes a long time on low speed connection...
dpkg: warning: obsolete option '--print-installation-architecture', please use 
'--print-architecture' instead

Original issue reported on code.google.com by [email protected] on 13 Apr 2013 at 12:01

После обновления WD My Cloud до версии v04.00.01-623 chroot не работает

1. Сделал "/etc/init.d/chroot_debian.sh stop"
2. Установил новую прошивку
3. Сделал "/etc/init.d/chroot_debian.sh install"
   Получил:
"cp: `/etc/init.d/chroot_debian.sh' and `/etc/init.d/chroot_debian.sh' are the 
same file
update-rc.d: warning: default stop runlevel arguments (0 1 6) do not match 
chroot_debian.sh Default-Stop values (0 6)"
4. Попробовал "chroot /DataVolume/debian"
Получил просто одну строчку: "Killed"
5. Решил установить всё заново c помощью 
install.sh. Вроде как установилось, но при 
установке transmission выдало какие-от ошибки (не 
записал их к сожалению). И результат 
прежний, chroot не работает.

Версия прошивки v04.00.01-623...

Original issue reported on code.google.com by [email protected] on 4 Oct 2014 at 7:08

apache2 doesn't work: (38)Function not implemented: apr_socket_accept: (client socket)

Apache2 не работает в chroot среде. Запускается, 
но но не принимает соединения на 
настроенный порт (8080). В процессах видно 
<defunct> процессы, которые появляются и 
исчезают:

root      7141     1  1 00:46 ?        00:00:00 /usr/sbin/apache2 -k start
www-data  7207  7141  0 00:46 ?        00:00:00 [apache2] <defunct>
www-data  7208  7141  0 00:46 ?        00:00:00 [apache2] <defunct>
www-data  7209  7141  0 00:46 ?        00:00:00 [apache2] <defunct>
www-data  7210  7141  0 00:46 ?        00:00:00 [apache2] <defunct>

В логе пишет следующее (/var/log/apache2/error.log):
[Sun Dec 01 00:40:05 2013] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u5 
configured -- resuming normal operations
[Sun Dec 01 00:40:05 2013] [error] (38)Function not implemented: 
apr_socket_accept: (client socket)
[Sun Dec 01 00:40:05 2013] [error] (38)Function not implemented: 
apr_socket_accept: (client socket)
[Sun Dec 01 00:40:07 2013] [error] (38)Function not implemented: 
apr_socket_accept: (client socket)
[Sun Dec 01 00:40:08 2013] [error] (38)Function not implemented: 
apr_socket_accept: (client socket)

Насколько я понял из поисков в гугле, 
какая-то несовместимость между apache2, apr и 
ядром линукса.

What steps will reproduce the problem?
1. установить apache2 в chroot среде (apt-get install apache2)
2. поменял порты (8080 и 8443), чтобы не 
пересекались с основным апачем
3. запустить apache2 в chroot (/etc/init.d/apache2 start)

What version of the product are you using? On what operating system?

Version:MyBookLive 02.43.03-022 : Core F/W
(chroot-debian)~# uname -a
Linux MyBookLive 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc 
GNU/Linux

Original issue reported on code.google.com by [email protected] on 1 Dec 2013 at 12:51

Неправильное время перекючения transmission на альтернативную скорость и обратно

При использовании в transmission расписания 
переключения альтернативной скорости 
время сработки отличается от заданного 
времени на разницу времен между UTC и 
локальным, установленным в MBL. 

К примеру локальное время настроено на GMT+2. 
Альтернативная скорость настроена на 
включение в 9:00. Так вот переключение 
произойдет не в 9:00, а в 11:00 локального 
времени, когда время UTC станет равным 9:00 или 
еще позже, если включено летнее время.

Поиск по интернету дал решение этого 
вопроса:
Системе надо сказать, что она 
настраивается не по UTC, а по localtime. Для этого 
нужно удалить файл /etc/adjtime и в файле 
/etc/default/rcS установить 
UTC=no

Можно сделать это вручную, но после каждого 
обновления придется делать это каждый раз. 
Может быть имеет смысл включить пару строк 
в файл wedro_chroot.sh в функцию script_install()?

В конец функции добавить нечто такое:
  rm -f /etc/adjtime
  sed -i 's|^[Uu][Tt][Cc]=[Yy][Ee][Ss]|UTC=no|g' /etc/default/rcS

Тогда настройка локального времени будет 
происходить и при при установке скрипта, и 
при восстановлении после обновления.

Original issue reported on code.google.com by [email protected] on 18 Apr 2013 at 6:56

Предлагаю добавить два пакета

Предлагаю добавить в debootstrap --include пакеты:
1) dialog - нужен для работы dpkg-reconfigure в 
диалоговом режиме
2) apt-utils - нужен для работы debconf в части 
диалога настроек при установке пакетов

Размер невелик, а пользы много.

Original issue reported on code.google.com by [email protected] on 6 Oct 2014 at 1:42

help me please

Last login: Wed Jul  9 20:28:57 on ttys000
MacBook:~ niksbitnev$ ssh [email protected]
[email protected]'s password: 
Linux MyBookLiveDuo 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc
Disclaimer: SSH provides access to the network device and all its 
content, only users with advanced computer networking and Linux experience 
should enable it. Failure to understand the Linux command line interface 
can result in rendering your network device inoperable, as well as allowing 
unauthorized users access to your network. If you enable SSH, do not share 
the root password with anyone you do not want to have direct access to all 
the content on your network device.

MyBookLiveDuo:~# aptitude hold udev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reading extended state information      
Initializing package states... Done
Reading task descriptions... Done  
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 254 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done             
Building dependency tree       
Reading state information... Done
Reading extended state information       
Initializing package states... Done
Reading task descriptions... Done  

MyBookLiveDuo:~# sudo apt-get update
Hit http://archive.debian.org lenny Release.gpg                           
Hit http://archive.debian.org lenny Release                               
Hit http://ftp.us.debian.org squeeze Release.gpg     
Hit http://ftp.us.debian.org squeeze Release  
Ign http://archive.debian.org lenny/main Packages/DiffIndex
Ign http://archive.debian.org lenny/main Sources/DiffIndex
Hit http://archive.debian.org lenny/main Packages
Hit http://archive.debian.org lenny/main Sources
Ign http://ftp.us.debian.org squeeze/main Packages/DiffIndex
Ign http://ftp.us.debian.org squeeze/main Sources/DiffIndex
Hit http://ftp.us.debian.org squeeze/main Packages
Hit http://ftp.us.debian.org squeeze/main Sources
Reading package lists... Done
MyBookLiveDuo:~# wget 
http://mbl-common.googlecode.com/svn/chroot-install/install.sh
--2014-07-09 09:33:49--  
http://mbl-common.googlecode.com/svn/chroot-install/install.sh
Resolving mbl-common.googlecode.com... 173.194.71.82, 2a00:1450:4010:c04::52
Connecting to mbl-common.googlecode.com|173.194.71.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5735 (5.6K) [text/plain]
Saving to: `install.sh.4'

100%[======================================>] 5,735       --.-K/s   in 0.03s   

2014-07-09 09:33:49 (177 KB/s) - `install.sh.4' saved [5735/5735]

MyBookLiveDuo:~# sudo sh /root/install.sh
 Info: This script will guide you through the chroot-based services
 Info: installation on Western Digital My Book Live (Duo) and My Cloud NAS.
 Info: The goal is to install Debian wheezy environment with no interference
 Info: with firmware. You will be asked later about which services to install
 =>  Do you wish to continue [y/n]?y
 Info: Deploying a debootstrap package...
 Info: Preparing a new Debian wheezy chroot file base. Please, be patient,
 Info: may takes a long time on low speed connection...
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: insserv libbz2-1.0 libdb5.1 
libsemanage-common libsemanage1 libslang2 libustr-1.0-1 
I: Found additional base dependencies: aptitude-common debian-archive-keyring 
gnupg gpgv libapt-pkg4.12 libboost-iostreams1.49.0 libcwidget3 libept1.4.12 
libffi5 libglib2.0-0 libgpm2 libncursesw5 libpcre3 libreadline6 
libsigc++-2.0-0c2a libsqlite3-0 libstdc++6 libusb-0.1-4 libxapian22 mc-data 
readline-common 
I: Checking component main on ftp://ftp.ru.debian.org/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving apt
I: Validating apt
I: Retrieving libapt-pkg4.12
I: Validating libapt-pkg4.12
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving aptitude-common
I: Validating aptitude-common
I: Retrieving libattr1
I: Validating libattr1
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving libboost-iostreams1.49.0
I: Validating libboost-iostreams1.49.0
I: Retrieving libbz2-1.0
I: Validating libbz2-1.0
I: Retrieving coreutils
I: Validating coreutils
I: Retrieving libcwidget3
I: Validating libcwidget3
I: Retrieving dash
I: Validating dash
I: Retrieving libdb5.1
I: Validating libdb5.1
I: Retrieving debconf
I: Validating debconf
I: Retrieving debconf-i18n
I: Validating debconf-i18n
I: Retrieving debian-archive-keyring
I: Validating debian-archive-keyring
I: Retrieving debianutils
I: Validating debianutils
I: Retrieving diffutils
I: Validating diffutils
I: Retrieving dpkg
I: Validating dpkg
I: Retrieving e2fslibs
I: Validating e2fslibs
I: Retrieving e2fsprogs
I: Validating e2fsprogs
I: Retrieving libcomerr2
I: Validating libcomerr2
I: Retrieving libss2
I: Validating libss2
I: Retrieving libc-bin
I: Validating libc-bin
I: Retrieving libc6
I: Validating libc6
I: Retrieving locales
I: Validating locales
I: Retrieving multiarch-support
I: Validating multiarch-support
I: Retrieving findutils
I: Validating findutils
I: Retrieving gcc-4.7-base
I: Validating gcc-4.7-base
I: Retrieving libgcc1
I: Validating libgcc1
I: Retrieving libstdc++6
I: Validating libstdc++6
I: Retrieving libglib2.0-0
I: Validating libglib2.0-0
I: Retrieving gnupg
I: Validating gnupg
I: Retrieving gpgv
I: Validating gpgv
I: Retrieving libgpm2
I: Validating libgpm2
I: Retrieving grep
I: Validating grep
I: Retrieving gzip
I: Validating gzip
I: Retrieving hostname
I: Validating hostname
I: Retrieving insserv
I: Validating insserv
I: Retrieving libept1.4.12
I: Validating libept1.4.12
I: Retrieving libffi5
I: Validating libffi5
I: Retrieving liblocale-gettext-perl
I: Validating liblocale-gettext-perl
I: Retrieving libselinux1
I: Validating libselinux1
I: Retrieving libsemanage-common
I: Validating libsemanage-common
I: Retrieving libsemanage1
I: Validating libsemanage1
I: Retrieving libsepol1
I: Validating libsepol1
I: Retrieving libsigc++-2.0-0c2a
I: Validating libsigc++-2.0-0c2a
I: Retrieving libtext-charwidth-perl
I: Validating libtext-charwidth-perl
I: Retrieving libtext-iconv-perl
I: Validating libtext-iconv-perl
I: Retrieving libtext-wrapi18n-perl
I: Validating libtext-wrapi18n-perl
I: Retrieving libusb-0.1-4
I: Validating libusb-0.1-4
I: Retrieving lsb-base
I: Validating lsb-base
I: Retrieving mawk
I: Validating mawk
I: Retrieving mc
I: Validating mc
I: Retrieving mc-data
I: Validating mc-data
I: Retrieving libncurses5
I: Validating libncurses5
I: Retrieving libncursesw5
I: Validating libncursesw5
I: Retrieving libtinfo5
I: Validating libtinfo5
I: Retrieving ncurses-base
I: Validating ncurses-base
I: Retrieving ncurses-bin
I: Validating ncurses-bin
I: Retrieving libpam-modules
I: Validating libpam-modules
I: Retrieving libpam-modules-bin
I: Validating libpam-modules-bin
I: Retrieving libpam-runtime
I: Validating libpam-runtime
I: Retrieving libpam0g
I: Validating libpam0g
I: Retrieving libpcre3
I: Validating libpcre3
I: Retrieving perl-base
I: Validating perl-base
I: Retrieving libreadline6
I: Validating libreadline6
I: Retrieving readline-common
I: Validating readline-common
I: Retrieving sed
I: Validating sed
I: Retrieving sensible-utils
I: Validating sensible-utils
I: Retrieving login
I: Validating login
I: Retrieving passwd
I: Validating passwd
I: Retrieving libslang2
I: Validating libslang2
I: Retrieving libsqlite3-0
W: Couldn't download package libsqlite3-0 (ver 3.7.13-1+deb7u1 arch powerpc)
I: Retrieving initscripts
W: Couldn't download package initscripts (ver 2.88dsf-41+deb7u1 arch powerpc)
I: Retrieving sysv-rc
W: Couldn't download package sysv-rc (ver 2.88dsf-41+deb7u1 arch all)
I: Retrieving sysvinit
W: Couldn't download package sysvinit (ver 2.88dsf-41+deb7u1 arch powerpc)
I: Retrieving sysvinit-utils
W: Couldn't download package sysvinit-utils (ver 2.88dsf-41+deb7u1 arch powerpc)
I: Retrieving tar
W: Couldn't download package tar (ver 1.26+dfsg-0.1 arch powerpc)
I: Retrieving tzdata
W: Couldn't download package tzdata (ver 2014a-0wheezy1 arch all)
I: Retrieving libustr-1.0-1
W: Couldn't download package libustr-1.0-1 (ver 1.0.4-3 arch powerpc)
I: Retrieving bsdutils
W: Couldn't download package bsdutils (ver 1:2.20.1-5.3 arch powerpc)
I: Retrieving libblkid1
W: Couldn't download package libblkid1 (ver 2.20.1-5.3 arch powerpc)
I: Retrieving libmount1
W: Couldn't download package libmount1 (ver 2.20.1-5.3 arch powerpc)
I: Retrieving libuuid1
W: Couldn't download package libuuid1 (ver 2.20.1-5.3 arch powerpc)
I: Retrieving mount
W: Couldn't download package mount (ver 2.20.1-5.3 arch powerpc)
I: Retrieving util-linux
W: Couldn't download package util-linux (ver 2.20.1-5.3 arch powerpc)
I: Retrieving libxapian22
W: Couldn't download package libxapian22 (ver 1.2.12-2 arch powerpc)
I: Retrieving liblzma5
W: Couldn't download package liblzma5 (ver 5.1.1alpha+20120614-2 arch powerpc)
I: Retrieving xz-utils
W: Couldn't download package xz-utils (ver 5.1.1alpha+20120614-2 arch powerpc)
I: Retrieving zlib1g
W: Couldn't download package zlib1g (ver 1:1.2.7.dfsg-13 arch powerpc)
E: Couldn't download packages: libsqlite3-0 initscripts sysv-rc sysvinit 
sysvinit-utils tar tzdata libustr-1.0-1 bsdutils libblkid1 libmount1 libuuid1 
mount util-linux libxapian22 liblzma5 xz-utils zlib1g
/root/install.sh: line 57: /DataVolume/debian/etc/locale.gen.sed: No such file 
or directory
mv: cannot stat `/DataVolume/debian/etc/locale.gen.sed': No such file or 
directory
chroot: cannot run command `locale-gen': No such file or directory
 Info: A Debian wheezy chroot environment installed.
 Info: Now deploying services start script...
/root/install.sh: line 68: /DataVolume/debian/root/.bashrc: No such file or 
directory
/root/install.sh: line 69: /DataVolume/debian/root/.bashrc: No such file or 
directory
mount: mount point /DataVolume/debian/mnt does not exist
chroot: cannot run command `mount': No such file or directory
mount: mount point /DataVolume/debian/dev does not exist
mount: mount point /DataVolume/debian/dev/pts does not exist
mount: mount point /DataVolume/debian/proc does not exist
 Info: ...finished.
 =>  Do you wish to install miniDLNA UPnP/DLNA server [y/n]?n
 =>  Do you wish to install Transmission BitTorrent client [y/n]?n
 Info: Congratulation! Installation finished. You've got a working
 Info: Debian wheezy environment onboard. You may install any services
 Info: you wish, but don't forget to add it's names to
 Info: /DataVolume/debian/chroot-services.list
 Info: /etc/init.d/chroot_debian.sh script is used
 Info: to start or stop chroot'ed services.
 Info: Found bug? Please, report us!
 Info: http://code.google.com/p/mbl-common/issues/list
MyBookLiveDuo:~# /etc/init.d/chroot_debian.sh start
mount: mount point /DataVolume/debian/mnt does not exist
chroot: cannot run command `mount': No such file or directory
mount: mount point /DataVolume/debian/dev does not exist
mount: mount point /DataVolume/debian/dev/pts does not exist
mount: mount point /DataVolume/debian/proc does not exist
MyBookLiveDuo:~# /etc/init.d/chroot_debian.sh stop
CHROOT services seems to be already stopped, exiting...
MyBookLiveDuo:~# reboot

The system is going down for reboot NOW!o (pts/0) (Wed Jul  9 09:43:23 2014):
MyBookLiveDuo:~# Connection to 10.0.1.3 closed by remote host.
Connection to 10.0.1.3 closed.
MacBook:~ niksbitnev$ ssh [email protected]
[email protected]'s password: 
Linux MyBookLiveDuo 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc
Disclaimer: SSH provides access to the network device and all its 
content, only users with advanced computer networking and Linux experience 
should enable it. Failure to understand the Linux command line interface 
can result in rendering your network device inoperable, as well as allowing 
unauthorized users access to your network. If you enable SSH, do not share 
the root password with anyone you do not want to have direct access to all 
the content on your network device.

MyBookLiveDuo:~# chroot /DataVolume/debian/
chroot: cannot run command `/bin/bash': No such file or directory
MyBookLiveDuo:~# 

Original issue reported on code.google.com by [email protected] on 9 Jul 2014 at 4:54

Предлагаю добавить название chrootDir в prompt

Зравствуйте. Предлагаю в скрипт install.sh в 
районе 64 строки перед строкой
echo -e $INFO ...finished.

добавить строку
echo $chrootDir > $chrootBaseDir/etc/debian_chroot


тогда промпт после входа в песочницу и вне 
ее будут отличаться примерно так:
root@NAS:/# 
(debian)root@NAS:/# 

В скобках будет стоять название песочницы, 
что позволит понимать к каком окружении 
сейчас работаешь.

Original issue reported on code.google.com by [email protected] on 22 Mar 2013 at 10:40

upd minidla in chroot

how to update minidlna in chroot to the current version (my cloud), there were 
important changes for me.


Google Translation

Original issue reported on code.google.com by [email protected] on 2 Aug 2014 at 6:12

Ошибка в блоке установки minidlna

Здравствуйте.
В скрипте install.sh блоке установки minidlna 
создается каталог

/DataVolume/shares/Public/MediaServer

а SED-ом обрабатывается minidlna.conf и 
прописывается каталог

/mnt/MediaServer

что на самом деле соответствует 

/DataVolume/shares/MediaServer

т.е. в конфиге прописывается 
несуществующий каталог.

Чтоб два раза не писать предлагаю блок 
установки minidlna заменить на следующий:
################################################################################
###############
echo -en $INPUT Do you wish to install minidlna UPnP/DLNA server [y/n]?
read userAnswer
if [ "$userAnswer" == "y" ]
then
    isServicesInstalled=yes

    chroot $chrootBaseDir apt-get --force-yes -qqy install minidlna
    chroot $chrootBaseDir /etc/init.d/minidlna stop > /dev/null 2>&1
    chroot $chrootBaseDir /etc/init.d/minissdpd stop > /dev/null 2>&1


    echo -e $INFO UPnP/DLNA content may be taken from \"Public/MediaServer\" share or 
    echo -e $INFO from default \"Public/Shared Music\", \"Public/Shared Pictures\" and 
    echo -e $INFO \"Public/Shared Videos\" shares.
    echo -en $INPUT Do you wish to create \"Public/MediaServer\" share [y/n]?
    read userAnswer
    if [ "$userAnswer" == "y" ]
    then
        [ -d /DataVolume/shares/Public/MediaServer ] || mkdir /DataVolume/shares/Public/MediaServer
        echo -e $INFO UPnP/DLNA content will be taken from \"Public/MediaServer\" share.
        sed -i 's|^media_dir=/var/lib/minidlna|media_dir=/mnt/Public/MediaServer|g' $chrootBaseDir/etc/minidlna.conf
    else
        [ -d "/DataVolume/shares/Public/Shared Music" ] || mkdir "/DataVolume/shares/Public/Shared Music"
        [ -d "/DataVolume/shares/Public/Shared Pictures" ] || mkdir "/DataVolume/shares/Public/Shared Pictures"
        [ -d "/DataVolume/shares/Public/Shared Videos" ] || mkdir "/DataVolume/shares/Public/Shared Videos"
        echo -e $INFO UPnP/DLNA content will be taken from \"Public/Shared Musik\", 
        echo -e $INFO \"Public/Shared Pictures\" and  \"Public/Shared Videos\" shares.
        sed -i 's|^media_dir=/var/lib/minidlna|media_dir=A,/mnt/Public/Shared Music\nmedia_dir=P,/mnt/Public/Shared Pictures\nmedia_dir=V,/mnt/Public/Shared Videos|g' $chrootBaseDir/etc/minidlna.conf
    fi
    echo minidlna >> $chrootBaseDir/chroot-services.list
    rm -f $chrootBaseDir/var/lib/minidlna/files.db
    echo -e $INFO Minidlna is installed.
fi
################################################################################
####################

В блоке на выбор предлагается создать 
Public/MediaServer или использовать стандартные 
каталоги Public/Shared Music, Public/Shared Pictures и Public/Shared 
Videos

Original issue reported on code.google.com by [email protected] on 22 Mar 2013 at 11:00

Chroot\'ed services start/stop script detection

По всей видимости забыли поправить имя 
переменной в скрипте:
http://mbl-common.googlecode.com/svn/chroot-install/install.sh

Сейчас: if [ -e /etc/init.d/chroot_$chroot.sh ]
Должно: if [ -e /etc/init.d/chroot_$chrootDir.sh ]

Original issue reported on code.google.com by [email protected] on 18 May 2013 at 7:41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.