LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2009, 05:17 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Help with a couple of cool Scripts?


OK

I use and include ClamAV livecd(ubuntu based) in lots of my downloads

I found a cool ass script that mounts the iso, and unsquashfs's the clamav squashfs
updates the clam definititons, etc
and then squashfs's the clam squashfs and rebuilds the iso

cool, huh?
http://www.feedingthemachine.com/200...te-script.html


Now, I want to go further and have it update clam and Make a ubuntu livecd
basically make the script so I can add xorg, fluxbox, etc and have a live system

Any thoughts on How to Do it??


Script#2

The puppy remaster script-

see it here
http://multidistro.com/shots/remasterpupiso_v2

Now, I can't seem to get the script to copy anything but the puppy stuff

Code:
Xdialog --wrap --title "Puppy simple CD remaster" --msgbox "Copying files from CD to $WKGMNTPT/puppylivecdbuild/, please wait..." 0 0 &
XPID=$!
rm -rf $WKGMNTPT/puppylivecdbuild #precaution
mkdir $WKGMNTPT/puppylivecdbuild
#now copy the files...
   sync
   cp $CDMNTPT/isolinux.bin $WKGMNTPT/puppylivecdbuild/
   sync
   cp $CDMNTPT/isolinux.cfg $WKGMNTPT/puppylivecdbuild/
   sync
   cp $CDMNTPT/boot.msg $WKGMNTPT/puppylivecdbuild/ 2> /dev/null
   sync
   cp $CDMNTPT/goofy.16 $WKGMNTPT/puppylivecdbuild/ 2> /dev/null
   sync
   cp $CDMNTPT/vmlinuz $WKGMNTPT/puppylivecdbuild/
   sync
   cp $CDMNTPT/initrd.gz $WKGMNTPT/puppylivecdbuild/
   sync
   #v2.12...
   [ -f $CDMNTPT/zdrv_$PUPPYVERSION.sfs ] && cp -af $CDMNTPT/zdrv_$PUPPYVERSION.sfs $WKGMNTPT/puppylivecdbuild/
   sync

umount $CDMNTPT 2> /dev/null
I am trying to add a folder or file
like a boot folder-
Code:
cp $CDMNTPT/boot $WKGMNTPT/puppylivecdbuild/
   sync
no matter what though, it won't copy anything but what's already in the script?
why?

How do I edit script so it will add any files/folders I want??

So, two questions

1) Help with clam update script-
Is there a way to make it build a livecd desktop??

2) Help with Puppy remaster script-
How to get script to add extra files/folders to iso build??


P.S.
To use puppy remaster script
place script in /root/my-documents in puppy(running livecd/usb)

Place puppy iso image of your choice in /root/my-documents
and rename it to puppy.iso

click script and it's GUI driven from there

Any issues please post

Alright, gang
please help me
 
Old 08-01-2009, 12:01 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
I am trying to add a folder or file
like a boot folder-
Code:

cp $CDMNTPT/boot $WKGMNTPT/puppylivecdbuild/
sync
You need to create the folder
Code:
mkdir $WKGMNTPT/puppylivecdbuild/boot
Then you can copy files to the folder

Look at the error messages you receive, they are a good indication what goes wrong.

BTW, did you solved the problem with makeiso.bat ?
http://www.linuxquestions.org/questi...a-wine-743969/

Last edited by repo; 08-01-2009 at 12:37 AM.
 
Old 08-01-2009, 12:22 PM   #3
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Original Poster
Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hey Repo,

what I meant was

I made a livecd remaster of puupy

I then added a boot folder
and some files to the puppy folder

I want the script to copy evertything inside puppy folder to remaster folder

but, it will only copy the puppy stuff, vmlinuz, initrd.gz and the pup.sfs

?

Why won't it copy anything else?
 
Old 08-01-2009, 01:22 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try
Code:
cp -r $CDMNTPT/boot $WKGMNTPT/puppylivecdbuild/
see man cp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A couple of package listing util scripts dive Slackware 0 05-18-2009 10:17 AM
LXer: Wicked Cool Ruby Scripts LXer Syndicated Linux News 0 02-07-2009 06:20 PM
batch deploy file/changes/scripts to a couple if machine Rupertt Linux - Software 1 08-19-2008 07:25 AM
LXer: Cool Greasemonkey scripts for Gmail LXer Syndicated Linux News 0 11-30-2006 02:33 PM
some cool crontab scripts djgerbavore Linux - Newbie 1 05-25-2005 09:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration