Would anyone know how to add a file to the remastered CD.
The file I would like added is:
/home/guest/.vnc/passwd
I want that file on the remastered CD so it automatically starts up the vncserver on boot. Without that file the user would have to manually run vncpasswd to create it.
Thanks for any help
How to modify make_iso.sh for added files [Solved]
-
- Black ninja
- Posts: 35
- Joined: 14 Feb 2013, 18:32
- Distribution: Porteus v2.0 rc2 i486
- Location: NY
How to modify make_iso.sh for added files [Solved]
Last edited by nassausky on 16 Feb 2013, 16:21, edited 1 time in total.
Re: How to modify make_iso.sh for added files
Place this file into the rootcopy directory or make a module and place it into the /modules folder after executes the make_iso and you'll get your remastered ISO.
NjVFQzY2Rg==
-
- Black ninja
- Posts: 35
- Joined: 14 Feb 2013, 18:32
- Distribution: Porteus v2.0 rc2 i486
- Location: NY
Re: How to modify make_iso.sh for added files
I'm sorry, what it is the rootcopy directory?
Re: How to modify make_iso.sh for added files
Hello,nassausky wrote:I'm sorry, what it is the rootcopy directory?
rootcopy is a place where you could put everything that you would like to be seen "AS IS".
You do want /home/porteus/myfile.txt ?
Put it in /porteus/rootcopy/ so it would be seen in the CD as /porteus/rootcopy/home/porteus/myfile.txt
When you plan to create a Porteus CD you have some directory in the root CD:
/boot
/porteus
Root copy is in the /porteus directory.
About your needs, you can do this:
1/ mount your CD somewhere, for example in /mnt/MYCD
Code: Select all
mkdir -p /mnt/MYCD
mount -t udf,iso9660 -o ro /dev/sr0 /mnt/MYCD

(I do mount from dolphin... even if I dislikes dolphin)
2/ copy the cd content somewhere for example in /mnt/REMASTEREDCD
Code: Select all
mkdir -p /mnt/REMASTEREDCD
cp -iRp /mnt/MYCD/* /mnt/REMASTEREDCD/ && echo 'REMASTERED copy is done'
mkdir -p /mnt/REMASTEREDCD/porteus/rootcopy/home/guest/.vnc # -p is necessary here
cp -vip /home/guest/.vnc/passwd /mnt/REMASTEREDCD/porteus/rootcopy/home/guest/.vnc/ && echo 'VNC copy is done'
su -c 'chown guest.guest -R /home/guest/.vnc' # in case the copy is not correctly set...
This should be enough...

3/ Create the ISO...
4/ Burn your CD... [optional]
(I do not need to burn my CD and NOT installed it, it runs from HDD)
I like Slackware so I tried Porteus...
You don't know everything because you are born to learn ...
You don't know everything because you are born to learn ...
-
- Black ninja
- Posts: 35
- Joined: 14 Feb 2013, 18:32
- Distribution: Porteus v2.0 rc2 i486
- Location: NY
Re: How to modify make_iso.sh for added files [Solved]
Great thanks, it worked! On my HDD install it was in /mnt/sda1/porteus/rootcopy
You gave me lots of information and now that I have it functional, I might use the extra information you provided in the future so thanks again for all your answer.
You gave me lots of information and now that I have it functional, I might use the extra information you provided in the future so thanks again for all your answer.