Skip to Content.
Sympa Menu

baslinux - Re: [BL] BL3-32 on laptop via serial cable?

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] BL3-32 on laptop via serial cable?
  • Date: Tue, 30 Nov 2004 19:29:27 +0000 (UTC)

On Wed, 1 Dec 2004 3aoo-cvfd AT dea.spamcon.org wrote:

sindi keesan wrote:

We have not noticed the loop version being unstable.

I didn't say the current fs.img is unstable.
However, if you want a bigger root filesystem, a dedicated
Linux partition is more stable than a large loop sitting
on a DOS partition.

Netcat is running on both ends (receive tells netcat
to listen on port 33). Anything piped to the local
netcat is output by the remote netcat.

I think your 'send' script also uses cat.

Yes, the send script uses netcat.

Very versatile and I had no idea it could unpack .tgz
files.

Netcat has no ability to unpack .tgz files. You simply
pipe the output of the remote netcat to: tar -zx

You did not include this in your suggestion. So it would be something like:

Set up serial network with pppd at both ends, and nullmodem cable.
On receiving computer cd /, type 'receive'
On sending computer type: 'senduntar' (assuming you are not using busybox tar, in which case you would need to tar and then gunzip separately)
The senduntar script would be:
cat $1 |nc lois 33 | tar -zx ($1?)

On destination computer Ctrl-c to exit receive mode then :

/install/doinst.sh
ldconfig

You would need to do this separately for each package otherwise the doinst.sh would overwrite the previous one so cat *.tgz would not be safe to use, right?

This should install the package to lois without also leaving a copy of it on lois, I hope.

It looks like the nc method can also be used to write a script 'sendfile' that will send a single file without having to answer the question about the address of the receiving computer (leave out the tar pipe part), assuuming the receiving computer is always lois and the sender clark.

Is there also some way to set up the serial network so
that the computer containing the packages can be mounted
as a directory on the computer where you want to install
the packages?

Yes, using NFS.

Would this require installing another package on the source
computer (mc-serv?).

Yes. You run a NFS server on the source computer (it's in
tcpip1.tgz). You can then mount that filesystem from the
destination computer. The BL2 kernel has the ability to
mount NFS; the BL3 kernel does not (use bare.i instead).

This does not sound very simple but we may try it some day.

Then you could use pkg (single-step procedure instead of
three steps).

It's not single-step. First you have to start the NFS
server (which requires three commands). Then you have
to mount the filesystem. Only then can you do pkg.
Of course, you could put the NFS commands into a script,
but you could also put the netcat commands into a script.

I think netcat would be simpler. Let me know if my script is correct.

Cheers,
Steven

____________________________
http://www.basiclinux.com.ru
_______________________________________________
BasLinux mailing list
BasLinux AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/baslinux


keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org




Archive powered by MHonArc 2.6.24.

Top of Page