Oros42 / CustomDebianSetup

Examples of setups for https://github.com/Oros42/CustomDebian
Creative Commons Zero v1.0 Universal
2 stars 2 forks source link

Where to place the configuration file for the live-cd #1

Open gmstyle opened 8 years ago

gmstyle commented 8 years ago

Hi, i want to make a test iso based on debian and i like your tool. I have 2 questions:

1- The live user will be root? 2- Where to place the configuration files for the live-cd (like openbox customizations files autostart.sh or menu.xml etc...) before building in /etc/skel or /root?

Thanks a lot

Oros42 commented 8 years ago

When you use this script : https://github.com/Oros42/CustomDebian, yes, by default, the user is root. You can create a folder CustomDebian/custom_setup/ and put in this folder a file like «adduser.sh» with :

useradd <MyUser>

You can put all your custom conf in CustomDebian/custom_conf/. All content of this folder is copy and paste in «/» of live-cd. So you can create CustomDebian/custom_conf/etc/skel/ and CustomDebian/custom_conf/root/

gmstyle commented 8 years ago

Ok...And there's a method to put debian-installer into the live-cd?

Oros42 commented 8 years ago

Good question. I haven't yet use debian-installer. I think you can put a script in CustomDebian/custom_setup/ with the setup of debian-installer but i don't know how does it works. If you found the solution, I am interested to add this to CustomDebian.

gmstyle commented 8 years ago

I will search something about it. Another question, how to enable contrib non-free repo? i need to edit source.list in chroot or i can enable repos before with a script in custom_setup?

Oros42 commented 8 years ago

3 options :

echo "deb http://..... contrib non-free" > /etc/apt/source.list
gmstyle commented 8 years ago

thanks a lot for your support!! i will ask you something else in the future if i will need help ;)

Oros42 commented 8 years ago

Okay, no problem ;-)

gmstyle commented 8 years ago

Tryied to add user with your suggestion but seems it doesn't work. I have another question, there is a way to startx in chroot? thanks

Oros42 commented 8 years ago

Sorry, it's adduser for an interactive add and useradd for automatic add (check the man for options). startx in chroot ? Euh... I never try it. After 2min of search I found this : http://www.gentoo-wiki.info/HOWTO_startx_in_a_chroot

gmstyle commented 8 years ago

Thanks for your reply. Is it normal that when i make rebuild option i have this output on terminal during the mksquashfs process?

Source directory entry boot already used! - trying boot_1 Source directory entry opt already used! - trying opt_1 Source directory entry initrd.img already used! - trying initrd.img_1 Source directory entry mnt already used! - trying mnt_1 Source directory entry etc already used! - trying etc_1 Source directory entry vmlinuz already used! - trying vmlinuz_1 Source directory entry lib64 already used! - trying lib64_1 Source directory entry media already used! - trying media_1 Source directory entry lib already used! - trying lib_1 Source directory entry srv already used! - trying srv_1 Source directory entry var already used! - trying var_1 Source directory entry usr already used! - trying usr_1 Source directory entry run already used! - trying run_1 Source directory entry home already used! - trying home_1 Source directory entry proc already used! - trying proc_1 Source directory entry tmp already used! - trying tmp_1 Source directory entry sys already used! - trying sys_1 Source directory entry sbin already used! - trying sbin_1 Source directory entry root already used! - trying root_1 Source directory entry dev already used! - trying dev_1 Source directory entry bin already used! - trying bin_1

EDIT: SOLVED just mv filesystem.squashfs filesystem.squashfs.old and then rebuild ;)

Oros42 commented 8 years ago

Oups :-/ I have found some other bugs. I will fix (normally) it this week.

gmstyle commented 8 years ago

:D Do Have you an idea to make the ISO UEFI ready?

Oros42 commented 8 years ago

No one of my computers have the fucking UEFI, so I didn't test it. But if you open (for example) an ISO of Minux Mint, you've got this :

.
├── EFI
│   └── BOOT
│       ├── BOOTx64.EFI
│       └── grubx64.efi

But if you open an ISO of Debian, you see nothing. So I don't known how does it works :-/

I have made few corrections on my script :

gmstyle commented 8 years ago

i'm testing your new files with the corrections and now, after rebuild, did not boot into the live system with live user or root...

Oros42 commented 8 years ago

arf :-/ I make new tests ....

gmstyle commented 8 years ago

ok mee too ... May be that depends on some new package that I install. I will inform you

Oros42 commented 8 years ago

New test for me and it's works. My test :

git clone https://github.com/Oros42/CustomDebian.git
cd CustomDebian
sudo ./build_custom_debian.sh new

And run the ISO in virtualbox.

gmstyle commented 8 years ago

Now i'm testing the same option (new) but with my configuration files and i will inform you with my result. :)

EDIT Works fine so i think was a packag i installed in chroot that create the problem.

About Debian Installer

i found http://unix.stackexchange.com/questions/183869/missing-step-debian-installer-launcher but seems not working for me