From: Patrick D. <pat...@vm...> - 2002-10-16 01:23:53
|
On Tue, 15 Oct 2002, William S. wrote: > Jim, > > I am new to this as well but very happy so far. > I am using the cdrom version and have the > basic packages already installed. I did pull > in a few additional ones and used "getpkg <name>" > to both retrieve and install it over the network. I'm using the cdrom version as well and it seems to be pretty straight forward to muck around with adding new packages and rebuilding iso images. All you really need to do is take a look at the way the tarballs are put together and you should be able to build your own stuff to fit in there as well. I also went ahead and wrote a script to grab any new kernel modules and repackage the kpkg tarballs. You'll need to stick this script in your kpkg/ directory and run it. Let me know if anyone finds it useful and I'll spruce it up a bit. I also created a directory called /usr/src/trinux with the 2.4.19 kernel source code and have been building modules there. Have fun, --Patrick. -------------------------->8 snippy snippy 8<------------------------- #!/usr/bin/perl $BUILD_DIR = '/tmp/trinux-build'; $SOURCE_DIR = '/usr/src/trinux/linux-2.4.19'; $TAR_DIR = '/tmp'; while( <*.tgz> ) { $package = $_; `rm -rf $BUILD_DIR` if -d $BUILD_DIR and $BUILD_DIR ne '/'; mkdir $BUILD_DIR; ( $name ) = $_ =~ / (?:\/|) ( .*? ) $ /x; `cp $name $BUILD_DIR && cd $BUILD_DIR && tar -zxf $name`; $files = `find $BUILD_DIR`; @drivers = grep( / \.o $ /x, split( /\n/, $files )); for( @drivers ) { ( $name ) = $_ =~ / .* \/ (.*\.o) $ /x; $file = `find $SOURCE_DIR -name $name`; chomp $file; if( ! $file ) { push @not_found, $name; next; } `cp -f $file $BUILD_DIR/lib/modules`; } `cd $BUILD_DIR && tar -czf $TAR_DIR/$package .`; `rm -rf $BUILD_DIR` unless $BUILD_DIR eq '/'; } if( @not_found ) { print "Your build is missing these kernel modules:\n"; print map { " $_\n" } @not_found; } > Since the package is installed on ramdisk, I am > not sure if you want to dl and install all the packages. > In my case, I ran out of space on one of the packages. > I guess I need to remove something to install more. > If you are storing the packages on a disk, then I guess > you would just go to the DL site (mirror) and get them that > way. I am not sure what command you would use to get it > installed from a partition or floppy. Still learning > ... > > On Tue, Oct 15, 2002 at 11:58:43AM -0700, yarddog wrote: > > Hello, I have just installed trinux last night. I had to change the > > source for the basic pkgs. My question is how do I download the rest of > > the pkgs and install like the basic pkgs. Is there a command to do this? > > > > |