[Apt-Rpm] question about apt-rpm script

tonytraductor at linguasos.org tonytraductor at linguasos.org
Fri Jan 4 09:14:00 PST 2008


Hi,

I asked last week about a script to install extra packages on a pclos based distro,
after install.  I didn't get much of a response, but, I'm going to try again.
(Daddy alwas said, you cain't learn nothing if you up'n stop tryin'...)

Also, I apologize for the x-post.

I want to make it trivial for the user to install KDE and some extra packages
after installation of this PCfluxboxOS based distro to their hdd.

I figure, if I make a script and link to it in their fluxbox menu, that should
do the trick.

So, what I want to know is, if the following looks like I'm on the right track here:

#!/bin/bash

gksu apt-rpm -y install planner xmms evolution kompozer gimp scribus pidgin firefox3 gxine mplayer (kitchen sink, etc.)
gksu apt-rpm -y install kde-desktop (blah blah...everything needed to get KDE up'n runnin')
rm ~/.fluxbox/menu
cp ~/.fluxbox/extrasmenu ~/.fluxbox/menu
medit ~/.fluxbox/postxtrainstall.txt

-
I will call this installextras.sh and put a link to it in the fluxbox menu.
[exec] (install extras) {/usr/local/bin/installextras.sh}

I want it to install the packages, then replace the current fluxbox menu with
one (premade and stuffed into /home/username/somewhere)) with a menu that reflects
these recommended additions.

I realize that the fluxbox part might be unfamiliar to many, but, basically,
I just need to replace the text file that sets the fluxbox menu with another
file...I'm pretty sure the rm oldmenu and cp extrasmenu part should work for that.
Then, I want it to open a file with instructions to log out, and log back in to KDE.

The big part I question is whether I am correcting in using the
gksu.  I want the user to be able to click on the link in the menu, 
get a prompt to enter their root password, and let the script do the rest.

I would autostart.sh a file to open, either in the browser or medit, with
instructions to find the script in the menu and execute it.

I'm trying to keep the distro on one cdrom.  The current .iso is only 412mb
and only includes the basics and some translation industry specific tools, but,
I want to make it easier than falling off a log for the user to install
all the extra goodies...This is for newbies, of course.  Obviously, a seasoned
linux user would open synaptic or apt-rpm on their own, and likely make
different choices regarding what packges to install.
I just want to make the system easy for those who might be a bit lost at first.
Basically, I want the user to be able to dl the 412mb livecd, and if they dig it, install
to their hdd, and, with a script, turn Linguas OS into PCLOS-Trans.

Bash scripting is kind of new to me, despite 8 years of using linux.
(I amused myself when I wrote one that makes my terminal talk back at me when I tell it to
$ pissoff).  Linux is FUN!

Any and all assistance appreciated, as always.

thanks,
tony


http://www.LinguasOS.org - Linux for Translators
http://www.baldwinlinguas.com - translating & interpreting




More information about the Apt-Rpm mailing list