add scripts to remastersys dist

Make a liveCD/DVD out of your installed LinuxMint (Ubuntu/Debian) system

add scripts to remastersys dist

Postby jludeman on Wed Sep 24, 2008 4:00 pm

I would like to be able to add one or more scripts to the dist iso that:

a. create an .xinitrc file in /home/username
b. create the correct config files is /home/username/.config/openbox
c. create a needed folder and scripts in /home/username/scripts (for custom menu items)

I've already created and successfully test the scripts. I'm just not clear on how to add them to the iso.

One thing I thought of was making them executable files, creating a deb and installing on the original system.

The goal is to run these scripts after install and then when xinit is run for the first time I'll have working preconfigured openbox session.
jludeman
 

Linux Mint is funded by ads and donations.
 

Re: add scripts to remastersys dist

Postby Fragadelic on Wed Sep 24, 2008 4:06 pm

All of those files you are talking about can simply be put into /etc/skel which is the user creation skeleton directory. Make sure you change the permissions of the files you put in there to be root:root though or it will not work out properly.

IMHO, you don't need to do this with scripts. Whatever is in /etc/skel gets copied over to every new user created on the system.
User avatar
Fragadelic
Level 4
Level 4
 
Posts: 469
Joined: Wed Nov 15, 2006 11:05 am
Location: Canada

Re: add scripts to remastersys dist

Postby jludeman on Wed Sep 24, 2008 4:17 pm

Duh! Hit self in head.

I just thought of a possible answer. Put the scripts in /user/bin on the system I'm copying with root permissions.

Sudo customscript after install and I'm done. I'll try that right now.

Kiss principle strikes again.
jludeman
 

Re: add scripts to remastersys dist

Postby Fragadelic on Wed Sep 24, 2008 4:36 pm

Why bother even doing that?

Like I said, anything in /etc/skel will be copied into the users folder automatically when the user is created.
User avatar
Fragadelic
Level 4
Level 4
 
Posts: 469
Joined: Wed Nov 15, 2006 11:05 am
Location: Canada

Re: add scripts to remastersys dist

Postby jludeman on Wed Sep 24, 2008 5:06 pm

Absolutely correct. I have a genetic disposition not to read manuals.

To be fair this is my first time as administrator of anything. This is a home lan and I want everybody to have identical systems except for their home directory.

Thanks for your help.

I think my afterthought was sent before I read your reply.
jludeman
 


Return to Remastersys

Who is online

Users browsing this forum: No registered users and 2 guests