You are not logged in.

#1 2016-07-11 04:34:38

oox
New Member
Registered: 2016-07-11
Posts: 3

add program to bl-welcome

Hi. I want bl-welcome ask the user whether to install a program, for example gedit. where the checklist is bl-welcome

ej

/usr/lib/bunsen/welcome/install-gedit

installPage $"Gedit" \
    $"Instalar gedit" \
    'bunsen-meta-gedit'

What I do bl-welcome to include install-gedit?

where is bunsen-welcome/control?

thanks.

Last edited by oox (2016-07-11 04:35:54)

Offline

#2 2016-07-11 05:29:03

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: add program to bl-welcome

oox wrote:

Hi. I want bl-welcome ask the user whether to install a program, for example gedit. where the checklist is bl-welcome

ej

/usr/lib/bunsen/welcome/install-gedit

installPage $"Gedit" \
    $"Instalar gedit" \
    'bunsen-meta-gedit'

What I do bl-welcome to include install-gedit?

where is bunsen-welcome/control?

thanks.

Create another page, as you have described ('/usr/lib/bunsen/welcome/install-gedit'), with the contents

installPage $"Gedit" \
    $"Instalar gedit" \
    'bunsen-meta-gedit'

In '/usr/bin/bl-welcome' add a new entry in 'STEPS_BASIC', where you want it to appear in the sequence:

STEPS_BASIC=(...,'install-gedit',....)

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2016-07-11 16:29:08

oox
New Member
Registered: 2016-07-11
Posts: 3

Re: add program to bl-welcome

oh thanks. it works excellent!

and how to do if I want the installer (install-gedit) take the package in folder and not of repository, for example if I want to install a own script game

Last edited by oox (2016-07-11 16:30:04)

Offline

#4 2016-07-11 17:14:36

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: add program to bl-welcome

Why do you want to install applications with the bl-welcome script? The script is configured to use 'apt-get' to install from the repos in your sources.list, so would need a major re-write to do what you want, I think. Don't ask me to do it!
Remember that this script is designed to be run after a new installation, so your local program files won't be present on the system (unless you have made a respin iso).

It would be much easier to use a menu entry for individual apps.

A simple way to have a menu entry for installing a local package is to use the command

                <item label="Install My Program">
                    <action name="Execute">
                        <command>
                           gksudo gdebi-gtk /path/to/my-local.deb
                        </command>
                    </action>
                </item>

If you haven't made a deb package, then you could use an installer bash script which contains the commands for copying the program files to where they are needed.

Or see "Menu -> Help -> Bunsen Help Files" for how to use pipemenus. For example, see how the Graphics pipemenu is constructed so you can write your own. It could have an entry like:

MY_APPS=('prog1' 'prog2' 'prog3')

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2016-07-11 17:57:32

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: add program to bl-welcome

I was just about to make that point Damo...that the whole point of the bl-welcome script is to give you a foundation to boot strap yourself, not start installing a list of your favorite packages... It may be better form to create a script to systematically install all of your needed packages post bl-welcome.  Just my 2 cents of course...


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#6 2016-07-11 19:03:45

oox
New Member
Registered: 2016-07-11
Posts: 3

Re: add program to bl-welcome

Oh thanks. with ideas that have given me it is enough. maybe try the .iso for programs that are not in repositories and modify the script to programs with repositories.

big_smile

Offline

#7 2016-07-11 20:40:35

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,143
Website

Re: add program to bl-welcome

oox wrote:

maybe try the .iso for programs that are not in repositories and modify the script to programs with repositories.

Ah, Frankendebian, thanks. We've been duly warned.

https://wiki.debian.org/DontBreakDebian … nkenDebian

Install packages only from Debian stable for maximum stability. It doesn't much matter if you use apt, apt-get, aptitude or Synaptic. Adding the jessie-backports repo is almost risk-free, just don't install every available backport and definitely don't upgrade all backports at once.

If you really want a piece of software from stretch, sid, unstable, Ubuntu, or a Launchpad PPA, see if you can backport it...

https://forums.bunsenlabs.org/viewtopic.php?id=58

If you can't, ask for help here. If not, don't say we didn't warn you!


I don't care what you do at home. Would you care to explain?

Offline

Board footer

Powered by FluxBB