Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
magore wrote:
I created the devices listed below - I have my debian script linuxrc do this with MAKEDEV attached
I have updated my fun_plug script for debian - attached
sh-2.05b# ls -l /dev/ttyp*
crw-rw-rw- 1 root tty 3, 0 Jan 15 23:01 /dev/ttyp0
crw-rw-rw- 1 root tty 3, 1 Jan 15 23:01 /dev/ttyp1
...
I had similar problems with pty allocation when starting the busybox telnetd.
Instead of creating the device files directly, I managed to use the kernel's
pseudo-terminal multiplexer:
mknod -m 0666 /dev/ptmx c 5 2
mkdir /dev/pts
mount -t devpts devpts /dev/pts
Maybe this also works for ssh (I guess so). You can also wrap this nicely into
a script (attached, with telnetd installed in /opt/bin).
Offline
Hajonides wrote:
where do I put the ubuntu image (ubuntu-6.06.1-desktop-i386.iso) and sarge.tar?
The "Linux step" is not required as someone has already done that step and are hosting a sarge.tar for you. This is mentioned in the wiki as or: download a minimal image.
So just download http://wopr.levring.nu/sarge.tar (Debian 3.1, Sarge) or http://dev.skcserver.de/dns323/etch.tar (Debian 4.0, Etch). If you downloaded the 'sarge' packet you need to finalize your installation.
Baslicy, all you have to do is to place the fun_plug and the sarge tarball on \\NAS\Volume_1 and reboot.
But, I'd recommend you to comment out the last line in the above mentioned fun_plug (busybox3 chroot $DISK1/sarge linuxrc) and perform that manually the first time, i.e. /mnt/HD_a2/lnx_bin/busybox3 chroot /mnt/HD_a2/sarge , perform the finalize your installation, install your linuxrc, uncomment the line above and reboot.
HTH/Apan
Offline
Thanks for helping out, Apskaft. Think I'm beginning to understand the basics.
So if I use 'etch' I don't have to finalise and have 1 chance less to make mistakes? ;-)
And if so, I guess I need another fun_plug. Is that somewhere to find?
Offline
I've recently purchased a DNS-323 after becoming very dis-ilusioned with my Netgear SC101 (which is now on its way back to the retailer).
I'm attempting to install Subversion on the box, and have run into a few minor issues while following the instructions on the Wiki. I'm using RAID 1 configuration, btw.
After getting Telnet access, I downloaded the sarge.tar file, uploaded it to Vol1 (permissions are all OK), used the fun_plugin here: http://dns323.kood.org/howto:chroot_debian:fun_plug and all seems to be fine after a reboot (I get a sarge folder, etc).
Afte executing the chroot, I can't execute any of the "finalising instructions" as there is no "/var/cache/bootstrap" directory - the only directories in "/var/cache" are "apt", "debconf", and "locate". The latter two are empy, and "apt" has an "archives" folder in it with lots of ".deb" files.
Is this a problem?
I've then dowloaded SVN as per the wiki page, but the "./configure" command throws up an error:
"configure: error: cannot create configure.lineno; rerun with a POSIX shell"
If I run it after doing a chroot sarge, then it gets a lot further, but bombs out with:
"configure: error: no acceptable C compiler found in $PATH"
(after checking for gcc, cc, and cl)
I'm no unix guru, but fairly competent with computers, so should be able to follow any advice given )
So really, my problems to date are having no "/var/cache/bootstrap" folder, and not having a C compiler.
Does this latter have anything to do with not being able to run the "finalise instructions"? Is there a way to get back on track?
Thanks,
Dan
Offline
Well - I tried running the "finalising instructions" in the "/var/cache/apt/archives" folder instead, and things look a bit more promsing (looks like things are happening that should - packages seem to be installing).. however, the apt-get commands appear not to be working for me - all have the same error. For example, "apt-get update" returns:
E: The method driver /usr/lib/apt/methods/htp could not be found.
After doing a bit of Googling, I tried changing "htp://" in "etc/apt/sources.list" to be "http://", but "http://debootstrap.invalid" doesn't appear to be a valid address. I've tried changing the contents of the file to:
deb ftp://ftp.uk.debian.org/ sarge main
But that appears not to work, either (despite the files on the FTP site being in place, I get a lot of "Failed to fetch..." errors.
Do I need to modify my "sources.list" file? If so, what URL should I have? If not, how do I go about getting things like gcc and make?
Thanks,
Dan
sh-2.05b# apt-get update
Err http://debootstrap.invalid sarge/main Packages
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main Release
Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/dists/sarge/ … ackages.gz Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/dists/sarge/ … rm/Release Could not resolve 'debootstrap.invalid'
Reading Package Lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
sh-2.05b#
sh-2.05b#
Last edited by BillyRayPreachersSon (2007-02-24 21:39:00)
Offline
Well, tried to install sarge.tar, in which I succeeded, though I'm keeping errors after steps
cd /var/cache/bootstrap
dpkg --force-all -i libc6*deb
dpkg --force-all -i dpkg*deb
dpkg --force-all -i libc6*deb
and
dpkg -iGREB .
which I took for granted. But also the apt_get commands didn't want to run.
Also let that pass. Tried to put linuxrc in place, but I constantly get asked for username and password. Setting a password with passwd root does provide me a password, but not a username. Leaving that blank (or trying any other name I used i.c.w. dns-323) doesn't work either.
So still no luck.
Are these steps also necessary with etch.tar? If more simply (as I hope), can anyone provide me with the required fun_plug?
Thanks, Han
Offline
Hmm - this is weird - you have a /var/cache/bootstrap folder - I just don't get one at all - and there isn't even one in the sarge.tar file linked to. Am I the only person experiencing this odd behaviour?
Dan
Offline
No, you're right, no bootstrap in /var/cache, so these command lines obviously give errors. Any linux pro around? ;-)
Offline
Aaah - I was reading the wiki, not this thread, so that explains why I hadn't seen that line.
Anyway - thanks v.much for that - I'm sure that'll help me out a bunch.
Ta,
Dan
Offline
I think there is an error in the fun_plug script. In line 67 it says:
# Mounts
cp -f /proc/mounted sarge/etc/mtab
There is no /proc/mounted on my box using firmware 1.02b. Perhaps there was one in an previous firmware release? Anyway, what I have on my box is a /proc/mounts file, or should the /etc/mtab file be copied?
Offline
Also, the linuxrc file refers to some scripts that are not in the sarge/etch packages.
/linuxrc: line 14: /etc/init.d/devfsd: No such file or directory
/linuxrc: line 25: /etc/init.d/portmap: No such file or directory
/linuxrc: line 26: /etc/init.d/nfs-common: No such file or directory
/linuxrc: line 27: /etc/init.d/nfs-user-server: No such file or directory
Do I just ignore these errors or am I missing something?
Thanks!
Offline
@ levring: Thanks! I also haven't read well these postings.
Now installation went pretty smoothly. Only apt-get update gives me back >E: The method driver /usr/lib/apt/methods/htp could not be found.< (as BillyRayPS also experienced). When installing Netatalk with the command >apt-get install netatalk< the same line appears at the end of the installation process.
Next question: how to activate Netatalk at start up? Didn't find any clues in fun_plug or linuxrc for what process to start (can't find a reference to netatalk, appletalk or afp). After rebooting I'm still only able to get connected via smb, not afp.
Last edited by Hajonides (2007-02-27 12:54:35)
Offline
My /etc/apt/sources.list looks like this (and works great)
deb http://ftp.dk.debian.org/debian sarge main contrib
Offline
Thanks levring, looks impressive, but don't know what to find & where to look… ;-)
I've looked for etc/apt/sources.list but no succes…
Offline
Hajonides wrote:
Thanks levring, looks impressive, but don't know what to find & where to look… ;-)
I've looked for etc/apt/sources.list but no succes…
You have to be in your Debian chroot-mode - then the file /etc/apt/source.list should be there
Edit the file with:
pico /etc/apt/sources.list
and then enter:
deb http://ftp.dk.debian.org/debian sarge main contrib
ctrl + x - press Y to save
Offline
Getting closer! Succeeded in editing the source list with your help.
Next entered the line apt-get install netatalk, with this result:
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
W: Couldn't stat source package list http://ftp.dk.debian.org sarge/main Packages (/var/lib/apt/lists/ftp.dk.debian.org_debian_dists_sarge_main_binary-arm_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.dk.debian.org sarge/contrib Packages (/var/lib/apt/lists/ftp.dk.debian.org_debian_dists_sarge_contrib_binary-arm_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: The method driver /usr/lib/apt/methods/htp could not be found.
sh-2.05b#
so I followed the advice and ran apt-get update, with this result:
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.
In /usr/lib/apt/methods/ is a file named http, not htp
Setting little steps should be resulting in learning how to walk I hope… ;-)
[Edit] When taking a closer look it seems like the url in W: Couldn't stat source package list http://ftp.dk.debian.org sarge/main etc. etc. misses the directory debian, which would make the url as follows: http://ftp.dk.debian.org/debian sarge/main etc. etc.
Am I right? And where could I change that?
Last edited by Hajonides (2007-02-27 18:44:11)
Offline
Has anyone a clue / answer on the previous post? I'm stuck for the moment…
Thanks in advance.
Offline
Check your sources file. I bet you have a source which says htp:// should be http://
Offline
I've got debian sarge set up and running well. There is a slight 'gotcha' though, that nobody has mentioned: syslog when you set your disks to save power.
Debian starts syslog, which hooks into the kernel. All fine and good. Except now when kernel events happen (for example, "# Disk 0 spinning down now! #") they get written to /var/log in the chrooted environment (on disk!). So whenever your disks spin down, syslog queues up to write the kernel message -- *onto the disk!* This causes the disk to spin up again, then spin down a few minutes later. I woke up during one of these cycles last night, and fixed it ;-).
Your best bet honestly is to not start up syslog and klog daemons at all (remove the SYSLOG section from your fun_plug script). Of course, this means that you may miss something useful that goes in syslog, but you can always start syslog later yourself if you decide you need it. By default, the NAS doesn't do any logging, so you'll probably be alright.
Another option would be to map the DNS-323's root /var/log onto debian's chrooted /var/log in your fun_plug script...this would write all debian's logfiles to ram instead of to disk.
Hope this helps someone else whose NAS is in their bedroom.
Reid
Offline
I just wanted to say thanks to everyone who's pointed me in the right direction - I've got the box up and running, and even managed to compile and install SubVersion onto it (after a few minor issues - like the instructions not mentioning you need to have ZLib installed!).
Thanks again for the advice,
Dan
Offline
@ frodo: Thanks for pointing me to this typo, just corrected the sources.list
Again tried apt-get install netatalk (and after that as suggested apt-get update), with following results. Still some issues left, and still no netatalk… ;-(
How should I move on from this point?
Thanks, Han
sh-2.05b# apt-get install netatalk
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libasn1-6-heimdal libcupsys2-gnutls10 libdb4.1 libgssapi1-heimdal
libkrb-1-kerberos4kth libkrb5-17-heimdal libroken16-kerberos4kth libslp1 perl
perl-modules
Suggested packages:
slpd openslp-doc tetex-bin quota timeout libterm-readline-gnu-perl
libterm-readline-perl-perl
Recommended packages:
lsof rc db4.2-util perl-doc
The following NEW packages will be installed:
libasn1-6-heimdal libcupsys2-gnutls10 libdb4.1 libgssapi1-heimdal
libkrb-1-kerberos4kth libkrb5-17-heimdal libroken16-kerberos4kth libslp1
netatalk perl perl-modules
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 6979kB of archives.
After unpacking 25.7MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://debootstrap.invalid sarge/main perl-modules 5.8.4-8sarge5
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main perl 5.8.4-8sarge5
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libasn1-6-heimdal 0.6.3-10sarge2
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libcupsys2-gnutls10 1.1.23-10sarge1
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libdb4.1 4.1.25-18
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libkrb-1-kerberos4kth 1.2.2-11.2
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libroken16-kerberos4kth 1.2.2-11.2
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libkrb5-17-heimdal 0.6.3-10sarge2
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libgssapi1-heimdal 0.6.3-10sarge2
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main libslp1 1.0.11a-2
Could not resolve 'debootstrap.invalid'
Err http://debootstrap.invalid sarge/main netatalk 2.0.2-3
Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/p/ … e5_all.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/p/ … e5_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/h/ … e2_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/c/ … e1_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/d/ … 18_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/k/ … .2_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/k/ … .2_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/h/ … e2_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/h/ … e2_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/o/ … -2_arm.deb Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/pool/main/n/ … -3_arm.deb Could not resolve 'debootstrap.invalid'
W: Couldn't stat source package list http://ftp.dk.debian.org sarge/main Packages (/var/lib/apt/lists/ftp.dk.debian.org_debian_dists_sarge_main_binary-arm_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list http://ftp.dk.debian.org sarge/contrib Packages (/var/lib/apt/lists/ftp.dk.debian.org_debian_dists_sarge_contrib_binary-arm_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sh-2.05b# apt-get update
Err http://debootstrap.invalid sarge/main Packages
Could not resolve 'debootstrap.invalid'
Get:1 http://ftp.dk.debian.org sarge/main Packages [4351kB]
Err http://debootstrap.invalid sarge/main Release
Could not resolve 'debootstrap.invalid'
Get:2 http://ftp.dk.debian.org sarge/main Release [94B]
Get:3 http://ftp.dk.debian.org sarge/contrib Packages [59.8kB]
Get:4 http://ftp.dk.debian.org sarge/contrib Release [97B]
Fetched 4411kB in 10s (407kB/s)
Failed to fetch http://debootstrap.invalid/dists/sarge/ … ackages.gz Could not resolve 'debootstrap.invalid'
Failed to fetch http://debootstrap.invalid/dists/sarge/ … rm/Release Could not resolve 'debootstrap.invalid'
Reading Package Lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
sh-2.05b#
Last edited by Hajonides (2007-03-04 16:31:12)
Offline
Excuse my ignorance, but what is "debian sarge" and what is it used for?
Offline
Hajonides,
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
Offline
WildSioux wrote:
Excuse my ignorance, but what is "debian sarge" and what is it used for?
"Debian" is a popular/mature Linux distribution.
"Sarge" is the nickname of version 3.1 of debian.
http://www.debian.org/releases/stable/
The Debian community supports _many_ pre-made software packages which can relatively easily be installed by using the command "apt-get install <package name>".
There is a great deal of documentation for Debian, and a large support community.
you'll get a lot back by googling "debian sarge". Hope this helps.
Offline