Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
i'm running etch on my box.
the chroot with a linuxrc out of the fun_plug.
is there a way to end up in the chrooted etch, once i telnet to the box?
shouldn't /etc/profile be executed?
i've put a chroot into it, but it seems that profile is not executed as part of login.
however i can run it once logged on. so it shouldn't be a security problem.
any help appreciated.
Offline
I can not chroot through fun_plug:
All copys and EXPORTS work fine.
The first telnet shows the old enviroment.
I tried already several different paths to chroot.
Tried also
/mnt/HD_a2/lnx_bin/busybox3 chroot /mnt/HD_a2/sarge in the fun_plug script.
All manual chroots through telnet works.
Is
1st: telnet daemon shows the root while started ?
2nd: chroot works only while boot time ?
3rd: possible to start another server like ushare after chroot ? (tried ushare & but did not work)
4th: logging possible to see which error the fun_plug have ? How ?
As I wrote I tried all things manually in a telnet session.
chroot and ushare works w/o problems.
I am using the fun_plug from this thread minus the second drive and plus ushare & libupnp installed.
Thanks for helping...
Last edited by Tester (2007-03-15 20:21:12)
Offline
BillyRayPreachersSon wrote:
It looks like you have the same issue I did originally - the URL used to get the update files from Debian is invalid ("http://debootstrap.invalid").
To fix this, chroot to your Debian install, and type:
cd /etc/apt
echo deb http://ftp.dk.debian.org/debian sarge main contrib > sources.list
Then you should be able to use apt-get with no problems.
Dan
Yep, after that correction the process went smoothly :-)
Offline
Help:
I ran through the wiki instructions.. doing the "dkpg iGREB . " command I get the following errors:
(truncated to last lines with errors)
Setting up base-files (3.1.2) ...
mkdir: cannot create directory `/var/mail': File exists
dpkg: error processing base-files (--install):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bash:
bash depends on base-files (>= 2.1.12); however:
Package base-files is not configured yet.
dpkg: error processing bash (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailx:
mailx depends on base-files (>= 2.2.0); however:
Package base-files is not configured yet.
dpkg: error processing mailx (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
base-files
bash
mailx
sh-2.05b# apt-get update
E: The method driver /usr/lib/apt/methods/htp could not be found.
E: The method driver /usr/lib/apt/methods/htp could not be found.
sh-2.05b#
====
hence I can't run apt=get update
I did however get a slew of config options during the configuration of debian in chroot
Help
Thanks!!
Offline
Read the post above your one - it shows how to fix this.
Dan
Offline
Would it be possible for someone to release their compiled for dns-323 debian sarge on here? Or is there some reason this can't be done?
Offline
Tester wrote:
I can not chroot through fun_plug:
All copys and EXPORTS work fine.
The first telnet shows the old enviroment.
I tried already several different paths to chroot.
Tried also
/mnt/HD_a2/lnx_bin/busybox3 chroot /mnt/HD_a2/sarge in the fun_plug script.
All manual chroots through telnet woks.
I have the same problem. I changed the chroot line to:
/mnt/HD_a2/lnx_bin/busybox3 chroot /mnt/HD_a2/etch > /mnt/HD_a2/err1 2> /mnt/HD_a2/err2
and in 'err2' I get:
sh: no job control in this shell
sh-3.1# exit
sh-3.1 is the changed root prompt, but it auto exits.
Manualy it works.
I have no hints.
Mektub
Offline
levring wrote:
Hi..
How have you been able to make the SSHd dunning ? After entering username and password it replies:
login as: root
Password:
Server refused to allocate pty
stdin: is not a tty
How to fix this error ?
Did you manage to get past this? I get the same and can't type anything after this message is shown.
Update: After reboot, and have made the boot script and linuxrc, I can't login to the box at all, don't even get the message above:
http://dns323.kood.org/howto:chroot_debian
I had to revert to my old telnet startup files..
When I log in, I can get my debian by typing
./lnx_bin/busybox3 chroot etch
But I can't see the Volume_1 files, I only get the debian system. The /mnt folder is empty.
Last edited by bareare (2007-05-26 17:39:50)
Offline
Update:
I' m getting there I ran all commands in linuxrc manually (and some in statup), then I got further.
Last edited by bareare (2007-05-26 18:01:19)
Offline
busybox3 chroot $DISK1/etch linuxrc
This is causing me major headache.. Even if I run it manually, I get this:
chroot: cannot execute linuxrc: Text file busy
When I try to run it from fun_plug, it doesn't start either..
If I do this, manually, after getting in to ftp, it works:
busybox3 chroot $DISK1/etch
And then run each of the commands in linuxrc by hand, everything works.. But not very fancy.. I'm almost there... but I don't know what more to try..
dmesg > /mnt/HD_a2/dmesg.out /mnt/HD_a2/nc -l -p 10000 -e /bin/sh & mkdir /mnt/HD_a2/lnx_bin/ cd /mnt/HD_a2/lnx_bin/ /mnt/HD_a2/starttelnet.sh export PATH=$PATH:/mnt/HD_a2/lnx_bin/ export DISK1=/mnt/HD_a2 export PATH=$PATH:$DISK1/lnx_bin: cd $DISK1 mkdir etch/$DISK1 mount --bind $DISK1 etch/$DISK1 mkdir etch/mnt/root mount --bind / etch/mnt/root mkdir etch/dev mount --bind /dev etch/dev mkdir etch/sys mkdir etch/sys/crfs mount --bind /sys etch/sys mount --bind /sys/crfs etch/sys/crfs mkdir etch/proc mount --bind /proc etch/proc cp -f /proc/mounts etch/etc/mtab busybox3 rm -f etch/etc/fstab busybox3 touch etch/etc/fstab busybox3 cp -f /etc/resolv.conf etch/etc busybox3 hostname disk busybox3 hostname >etch/etc/hostname busybox3 cp -f /etc/hosts etch/etc busybox3 chroot $DISK1/etch linuxrc
Last edited by bareare (2007-05-26 19:36:57)
Offline
Bareare,
I think you are using an old busybox version.
Why not try the one from here:
http://dns323.kood.org/forum/t422-Updated-fun-plug.html
Mektub
Offline
I don't think so. It is busybox3. I have removed everything that didn't work and compiled the debian packge. I have just borrowed the startup script and other files to get it working.
Everything works when I type the commends manually, but not when runned from script.
Offline
bareare wrote:
I don't think so. It is busybox3. I have removed everything that didn't work and compiled the debian packge. I have just borrowed the startup script and other files to get it working.
Everything works when I type the commends manually, but not when runned from script.
OK, you are probably right. Just for the record, when I type 'busybox' I get:
BusyBox v1.5.0 (2007-05-06 16:42:17 CEST) multi-call binary
Copyright (C) 1998-2006 Erik Andersen, Rob Landley, and others.
Licensed under GPLv2. See source distribution for full notice.
plus a listing of all applets available.
Mektub
Offline
I like this box very much I have run it for a couple of days now, and set it up for doing backup through scp/SSH, IPMI management (power manangement of remote servers) and local fileserver/backup.
However, when I have to reboot, I have to run a lot of command to get ssh etc. up and running. Not managed to put this in fun_plug system yet... Hopefully, I never have to reboot
Last edited by bareare (2007-05-27 17:42:11)
Offline
I was having problems using a script to to mount a USB disk when attaching it to the DNS-323...but things worked when I typed the commands out one at a time. fonz suggested it was a timing issue and that I add a "sleep" command between lines. Worked like a charm for that. I'm not a linux person at all, but it might just take a few sleep commands (or maybe just one) before the command that the script seems to fail on, to give the box the time it needs to keep up...mine ended up needing "sleep 15" which is much longer than the time between commands when I type them manually. Not sure why...
Offline
Hi all! Is there any reason why you'd want to have a linuxrc script for debian? I mean, wouldn't something like this be just as good / better?
$busybox/chroot $etch /etc/init.d/rc 2
This gives me a single error I haven't tracked down:
stty: standard input: Inappropriate ioctl for device
My fun_plug is attached. Note that I have etch and busybox (with all relevant links) installed on disk 2 (the JBOD partition in a mixed RAID/JBOD environment).
Works for me!
Last edited by kruzes (2007-05-31 17:46:20)
Offline
Hi folks,
I'm also trying to install Debian Sarge on a 323 (via my macbook). All I'm *really* after is
- the iTunes server (now working fine)
- the print server (not working yet)
- a secure FTP server (SFTP)
to accomplish the last item on my list, I believe I need to install Debian. I don't want to install it if I don't need to, so if there's any other way to get SFTP running, please let me know.
So I'm slugging away through the night and have hit a couple obstacles. They may have been answered previously, but if they have, I can't find them.
While repeating this step in the process, "dpkg -iGREB .", I received the following errors
>Errors were encountered while processing:
> base-files
> bash
> mailx
I ran it a few times, then gave up.
Here's more detail on the base-files error:
>Preparing to replace base-files 3.1.2 (using ./base-files_3.1.2_arm.deb) ...
>Unpacking replacement base-files ...
>Version 3.5.9 of base-passwd already installed, skipping.
When trying to run:
>apt-get install debian-archive-keyring
>apt-get update
>apt-get dist-upgrade
I got the "Could not resolve 'ftp.dk.debian.org'" error. I'm not sure if this is because the ftp server no longer serves the required packages, or because the Debian installation can't see the LAN and WAN.
My sources.list file is correct (deb http://ftp.dk.debian.org/debian sarge main contrib)
Any assistance would be appreciated.
Thanks folks.
Offline