Author Topic: Remasters - Install launcher  (Read 1373 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Remasters - Install launcher
« on: August 11, 2009, 02:01:18 AM »
Hi,

I've done this one to start the installation process:

Quote
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Install Livecd
Name[fr]=Installez le Live CD
Exec=gksu video-clean; /usr/sbin/draklive-install
Comment=Installer for your computer
GenericName=Livecd Install
Icon=/usr/share/icons/livecd-install.png
Terminal=false
Type=Application
StartupNotify=false
Categories=System;Utility;Core;GTK;X-MandrivaLinux-System;
Comment[fr_FR.UTF-8]=Installeur pour votre ordinateur

This allows the person to write the password only once, instead of twice : at the video-tool window, and then not more.

What you find usually:
Quote
[Desktop Entry]
Comment=
Comment[en_US]=
Encoding=UTF-8
Exec[$e]=/usr/bin/install-pclos
GenericName=
GenericName[en_US]=
Icon=/usr/share/icons/draklive-install.png
MimeType=
Name=Install PCLinuxOS
Name[en_US]=Install PCLinuxOS
Path[$e]=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=

Once executed, it does it calls what you can see facing "Exec[$e]=" : the /usr/bin/install-pclos script. This script is a tiny shell that contains:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#! /bin/sh

kdesu video-clean && /usr/sbin/draklive-install

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

and this script is such that you will repeatedly, install after install, give the root passwd twice in a row, once at video-clean, once at draklive-install launch.

I'm sure theses scripts could be more elaborated, with conditions (I don't know bash writing alas) according to which DE is there : if kde, if gnome... kdesu for kde, gksu for gnome, ktsuss (does the same, much lighter, no DE dependant : could be interesting for Lxde remasters, Openbox remasters and all that want to be lighter).
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remasters - Install launcher
« Reply #1 on: August 11, 2009, 02:19:36 AM »
LXDE uses gksu. It is called for any action requiring root access, for example, launching Synaptic. So using gksu for the install script makes sense.


Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Remasters - Install launcher
« Reply #2 on: August 11, 2009, 02:34:49 AM »
LXDE uses gksu. It is called for any action requiring root access, for example, launching Synaptic. So using gksu for the install script makes sense.


Hi Neal,

This might interest you for a next release, ktsuss is lighter on resources and I think smaller too.
http://developer.berlios.de/projects/ktsuss

I have it in another distribution I use. :)

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Remasters - Install launcher
« Reply #3 on: August 11, 2009, 02:46:14 AM »
Melodie,
Thank you. I'll have a look.


Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12537
Re: Remasters - Install launcher
« Reply #4 on: August 11, 2009, 04:32:57 AM »
LXDE uses gksu. It is called for any action requiring root access, for example, launching Synaptic. So using gksu for the install script makes sense.


Hi Neal,

This might interest you for a next release, ktsuss is lighter on resources and I think smaller too.
http://developer.berlios.de/projects/ktsuss

I have it in another distribution I use. :)




It doesn't like pclinuxos.

[texstar@localhost ~]$ ktsuss
*** buffer overflow detected ***: ktsuss terminated
======= Backtrace: =========
/lib/i686/libc.so.6(__chk_fail+0x41)[0xb7ed9bc1]
/lib/i686/libc.so.6[0xb7ed93d8]
/lib/i686/libc.so.6(_IO_default_xsputn+0xb7)[0xb7e5d517]
/lib/i686/libc.so.6(_IO_vfprintf+0x15d)[0xb7e366cd]
/lib/i686/libc.so.6(__vsprintf_chk+0xad)[0xb7ed948d]
/lib/i686/libc.so.6(__sprintf_ch

Thanks to everyone who donates. You keep the servers running.

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Remasters - Install launcher
« Reply #5 on: August 11, 2009, 04:44:24 AM »
It doesn't like pclinuxos.

[texstar@localhost ~]$ ktsuss
*** buffer overflow detected ***: ktsuss terminated

I have glibc 2.10.1-3 installed in this distro. In pclinuxos, could it be a matter of versions not matching ?

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode