Package Search
 
Members: 353 | Topics: 767 | Posts: 3211
We welcome our newest member: ClintBarton
Info
» You aren't logged in, login or registerOnline: No members and 10 guests | Time: 08:56
Specs paldo-live make-iso - some Qstions
paldo Support Forum    paldo    General Discussion
Reply Reply   Subscribe Topic Subscribe Topic
4 posts found.
 Specs paldo-live make-iso - some Qstions
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
Sers Juerg.

I've some questions to two specs of yours. Since the
function useradd and chrootpw don't work with
Gparted-LiveCD. I want to create the Installer-LiveCD
using Paldo directly.

paldo-live
Code[In neuem Fenster öffnen]
<text dest="$CHROOTDIR/etc/gdm/custom.conf">[daemon] AutomaticLoginEnable=true AutomaticLogin=paldo</text> 
<cmd>cp $CHROOTDIR/usr/share/xsessions/gnome.desktop $CHROOTDIR/usr/share/gdm/BuiltInSessions/default.desktop</cmd>
- <!-- fix gconf defaults permissions
-->
<cmd>chmod -R a+r $CHROOTDIR/etc/gconf/gconf.xml.defaults</cmd>
<cmd>find $CHROOTDIR/etc/gconf/gconf.xml.defaults -type d | xargs chmod a+x</cmd>
- <!-- deactivate unneeded daemons
-->
<cmd>sed -i -e 's/: 2 3 4 5/:/' -e 's/: 0 1 6/: 0 1 2 3 4 5 6/' $CHROOTDIR/etc/init.d/hplip</cmd>
- <!-- disable nscd, doesn't seem to work with unionfs
-->
<cmd>rm -vf $CHROOTDIR/etc/init.d/nscd $CHROOTDIR/etc/network/if-up.d/nscd</cmd>


So what should I do to get it back propper? Thats what I
think:

/etc/gdm/custom.conf - I can remove later
default.desktop - I can backup and restore
gconf.xml.defaults - I can also backup and restore
hplip - Also to backup and restore
nscd - This the same. Backup/restore

The followed lines I don't call so I don't have to change
here anything.

paldo-live
Code[In neuem Fenster öffnen]
<!--  remove build-dependencies we don't really have space for on cd 
-->
<cmd>chroot $CHROOTDIR upkg-remove --force noweb</cmd>
<cmd>chroot $CHROOTDIR upkg-remove --force tetex</cmd>
<cmd>rm -rf $CHROOTDIR/usr/lib/ooo-2.0/help</cmd>
<cmd>rm -rf $CHROOTDIR/usr/share/gimp/2.0/help</cmd>
- <!-- remove unsupported locales
-->
<cmd>find $CHROOTDIR/usr/share/locale/ -maxdepth 1 -type d | xargs -n 1 basename | ( while read locale ; do case "$locale" in en*|de*|fr*|it*|es*|pt*) ;; *) rm -rvf $CHROOTDIR/usr/share/$locale ;; esac ; done )</cmd>
- <!-- update mime and desktop database
-->
<cmd>chroot $CHROOTDIR update-mime-database /usr/share/mime</cmd>
<cmd>chroot $CHROOTDIR update-desktop-database /usr/share/applications</cmd>


paldo-live
Code[In neuem Fenster öffnen]
<!--  create fonts.dir files for modular xorg 
-->
<cmd>[ ! -x $CHROOTDIR/usr/bin/mkfontdir ] || chroot $CHROOTDIR bash -c "mkfontdir /usr/share/X11/fonts/*"</cmd>
- <!-- strip binaries
-->
<cmd>find $CHROOTDIR{,/usr}{/bin,/lib,/sbin} -name '*.a' -o -name '*.o' -o -name '*.ko' -type f -exec /usr/bin/strip --strip-debug '{}' \;</cmd>
<cmd>find $CHROOTDIR{,/usr}{/bin,/lib,/sbin} -not -name '*.a' -not -name '*.o' -not -name '*.ko' -not -name '*.exe' -not -name '*.dll' -type f -exec /usr/bin/strip --strip-unneeded '{}' \;</cmd>


The font-dir. Do I have to remove it later or can I keep
it? Stripping binaries means removing them. Seems I don't
call this commands then.

make-iso
Code[In neuem Fenster öffnen]
- <!--  temp. workaround to fix mono 1.1.10+ (relocatable) with unionfs 
-->
<cmd>mkdir -p usr/etc</cmd>
<cmd>[ ! -e etc/mono ] || cp -a etc/mono usr/etc</cmd>


So you copy some files to usr/etc. Seems I've to delete
them later or what?

make-iso
Code[In neuem Fenster öffnen]
  <cmd>touch rootfs/.readonly</cmd> 


this I can simple remove it later, right?


Hope you can enlight me here.
Profile   Private Message   E-Mail
Created: 2007-03-23 17:45
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Specs paldo-live make-iso - some Qstions
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
Zitat
Original erstellt: 2007-03-23 17:45 von Amnon82
The font-dir. Do I have to remove it later or can I keep
it? Stripping binaries means removing them. Seems I don't
call this commands then.

mkfontdir is also ok for the installed system, you don't have to revert it.

What do you mean with "stripping binaries means removing them"? The stripped binaries work fine, they just don't contain any debug information. So they won't be identical to the files in the original binary packages but it's not a critical point.

Zitat
So you copy some files to usr/etc. Seems I've to delete
them later or what?

Yes, you can delete/ignore /usr/etc when installing to hard disk.

Zitat

Code[In neuem Fenster öffnen]
  <cmd>touch rootfs/.readonly</cmd> 

this I can simple remove it later, right?

Yes, just delete the file.
Profile   Private Message   Web
Created: 2007-03-23 20:24
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Specs paldo-live make-iso - some Qstions
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I'm now on doing a new livecd including the installer.

... almost finished. It boots what is fine. Only some littel issues to solve.

rootfs.img I'll found during livecd mode in /. the backup.img I'll found at /paldo.

So I can go on. The only thing I don't get how to autologin the root-account in paldo-livecd mode. What did I wrong?

Code[In neuem Fenster öffnen]
<!-- let root autologin -->
<text dest="$CHROOTDIR/etc/gdm/custom.conf">
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=root
</text>
<!-- backup default.desktop -->
<cmd>mkdir -p backup/usr/share/gdm/BuiltInSessions</cmd>
<cmd>cp usr/share/gdm/BuiltInSessions/default.desktop backup/usr/share/gdm/BuiltInSessions/default.desktop</cmd>
<cmd>cp $CHROOTDIR/usr/share/xsessions/gnome.desktop $CHROOTDIR/usr/share/gdm/BuiltInSessions/default.desktop</cmd>
<!-- backup gconf.xml.defaults -->
<cmd>mkdir -p backup/etc/gconf/gconf.xml.defaults</cmd>
<cmd>cp etc/gconf/gconf.xml.defaults/* backup/etc/gconf/gconf.xml.defaults</cmd>
<!-- fix gconf defaults permissions -->
<cmd>chmod -R a+r $CHROOTDIR/etc/gconf/gconf.xml.defaults</cmd>
<cmd>find $CHROOTDIR/etc/gconf/gconf.xml.defaults -type d | xargs chmod a+x</cmd>


found this:

for gnome display manager You have to edit /etc/gdm/gdm.conf to allow that.

Code[In neuem Fenster öffnen]
AllowRootLogin=false
to
AllowRootLogin=true


but don't found gdm.conf ...
Profile   Private Message   E-Mail
Created: 2007-03-24 16:52
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Specs paldo-live make-iso - some Qstions
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I think of two options:

The installer supports runonly with root so as normal
user it should ask for the pw. For not question that
adding 'user can run sudo' might help.

Or I add a root-autologin. Might be possible to custom.conf.
Profile   Private Message   E-Mail
Created: 2007-03-24 17:12 | Modified: 2007-03-24 17:13 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a