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 5 guests | Time: 13:12
Creating a .desktop-file for the livecd user ...
paldo Support Forum    paldo    General Support
Reply Reply   Subscribe Topic Subscribe Topic
7 posts found.
 Creating a .desktop-file for the livecd user ...
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I tried to create a .desktop-file for my installer this way:

paldo-live-installer.xml
Code[In neuem Fenster öffnen]
cd $CHROOTDIR
<!-- create livecd user paldo and let it autologin -->
cp -a $CHROOTDIR/etc/skel $CHROOTDIR/home/paldo
chown -R 1000:1000 $CHROOTDIR/home/paldo
echo "paldo:x:1000:1000::/home/paldo:/bin/bash" >> CHROOTDIR/etc/passwd
echo "paldo:x:1000:" >> $CHROOTDIR/etc/group
sed -i -e 's/^wheel:.*/wheel:x:18:paldo/' $CHROOTDIR/etc/group
sed -i -e 's/^audio:.*/audio:x:6:paldo/' $CHROOTDIR/etc/group
sed -i -e 's/^video:.*/video:x:22:paldo/' $CHROOTDIR/etc/group
sed -i -e 's/^cdrom:.*/cdrom:x:25:paldo/' $CHROOTDIR/etc/group
sed -i -e 's/^disk:.*/disk:x:17:paldo/' $CHROOTDIR/etc/group
<!-- add to disk group to allow gparted to run -->
sed -i -e 's/^network:.*/network:x:23:paldo/' $CHROOTDIR/etc/group
echo "paldo:paldo" | chroot $CHROOTDIR chpasswd --md5


paldo-installer.xml
Code[In neuem Fenster öffnen]
cp /usr/share/applications/pinstaller.desktop /home/paldo/Desktop/pinstaller.desktop
chown 1000:1000 /home/paldo/Desktop/pinstaller.desktop


... but it won't work this way. The Desktop-folder is always emtpy. Did I miss something? Do I have to copy it somewhere else?
Profile   Private Message   E-Mail
Created: 2007-04-22 09:49 | Modified: 2007-04-22 12:59 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Creating a .desktop-file for the livecd user .
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
You have to be careful in the postbuild section, as you're outside chroot in that phase. Something like the following should work:

Code[In neuem Fenster öffnen]
install -Dv -o 1000 -g 1000 $CHROOTDIR/usr/share/applications/pinstaller.desktop $CHROOTDIR/home/paldo/Desktop/pinstaller.desktop
Profile   Private Message   Web
Created: 2007-04-22 09:57
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Creating a .desktop-file for the livecd user .
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
Are you shure? Cos the desktop-file gets created in the paldo-installer.xml and not paldo-live-installer.xml.

paldo-live-installer.xml
paldo-installer.xml

All other specs you can find here:
http://www.paldo.org/~amnon/20070403/1.9.0-20070403/specs/

Maybe I have the wrong order ...

maybe this will fix the problem:
http://www.paldo.org/~amnon/20070422/1.9.0-20070422/specs/
Profile   Private Message   E-Mail
Created: 2007-04-22 12:57 | Modified: 2007-04-22 13:16 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Creating a .desktop-file for the livecd user .
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
I haven't realized that it's not in postbuild in paldo-installer, don't see a reason why it shouldn't work right now. It should be easy to find the problem when looking at the log of a --verbose bootstrap, though.
Profile   Private Message   Web
Created: 2007-04-22 14:47
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Creating a .desktop-file for the livecd user .
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
I rechecked my created squashfs.image:

Code[In neuem Fenster öffnen]
[amnon@amnonspc:/mnt/sdb8/paldo-32/mounted]$ dir -R ./home
./home:
paldo

./home/paldo:
Desktop skel

./home/paldo/Desktop:
pinstaller.desktop

./home/paldo/skel:


When I login with the livecd-user paldo the Desktop-folder is empty. Why?
Profile   Private Message   E-Mail
Created: 2007-04-24 14:04
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Creating a .desktop-file for the livecd user .
Administrator
 
 
 
Posts: 426
Registered: 2004-09-09
Oh, I see that /home gets its own tmpfs when starting from the live cd (to make it more robust than handling everything via unionfs). As a workaround you could copy the desktop file into /etc/skel/Desktop. We might replace unionfs by aufs if that works better, then this workaround won't be necessary anymore.
Profile   Private Message   Web
Created: 2007-04-24 14:13
Highlight selected Text   Edit   Delete   Quote Reply
 Re: Creating a .desktop-file for the livecd user .
Moderator
 
 
Linux-Dude
 
Posts: 1187
Registered: 2006-11-23
Well then I'll create a new 32bit-testing image and check that out.

http://www.paldo.org/~amnon/20070423/1.9.0-20070423/specs/
Profile   Private Message   E-Mail
Created: 2007-04-24 14:27 | Modified: 2007-04-24 15:39 by Amnon82
Highlight selected Text   Edit   Delete   Quote Reply
Subscribe Topic Subscribe Topic
powered by bitron board 1.23a