Page 1 of 1

How to have Firefox open on startup? (solved)

Posted: Wed Aug 14, 2024 9:16 am
by Peinfull

Hello, i'm new to Linux and to this forum.

I'm trying to make it so when i start Puppy Linux it automatically open Firefox, can someone point out to me how to do it?

Also since i'm asking that, i'll also ask if there is any good inventory (such as OCS inventory) free opensource software for Linux/Puppy Linux? We got a lot of thinclients that we're gonna use for virtualization and we'd need a way to keep track of them as well as their installed software.

Thank you so for your help.


Re: Firefox on startup

Posted: Wed Aug 14, 2024 11:00 am
by mikewalsh

@Peinfull :- Hallo.....and :welcome: to the "kennels".

Auto-start Firefox? Easy-peasy.

Puppy generally runs-as-root, unlike most mainstream distros, so /root IS the user's 'home' directory.

Inside /root, there's a directory called 'Startup'. Permissions, etc, are set on this directory so that anything placed within.....whether a script, a sym-linked binary, a .desktop entry, etc.....will automatically run immediately after the graphical environment (i.e., what you see on the screen) has launched.

Which Puppy are you running here? Please give us the exact name of the Puppy, because there's thousands of Puppies & Puppy 're-masters/variants out there.....and they're all slightly different to one another.

Once you get back to us with that, we'll take it from there & help you figure out the easiest way of doing this.....OK?

Over to you...

=======================

As for your other query, it would be appreciated if you could start a new thread for that one. It makes things so much easier for everyone if we can keep things to "one thread, one subject". It's FAR less confusing all round! :D

Mike. ;)


Re: How to have Firefox open on startup?

Posted: Fri Aug 16, 2024 6:01 am
by Peinfull

Hello and thanks for the answer.

The version of Puppy Linux i'm using is F96-CE_4


Re: How to have Firefox open on startup?

Posted: Fri Aug 16, 2024 11:35 am
by mikewalsh
Peinfull wrote: Fri Aug 16, 2024 6:01 am

Hello and thanks for the answer.

The version of Puppy Linux i'm using is F96-CE_4

@Peinfull :-

O-kay. Is this the default, built-in browser.....or are you running it a different way?

Mike. ;)


Re: How to have Firefox open on startup?

Posted: Fri Aug 16, 2024 11:41 am
by Peinfull

It's the default built in browser.


Re: How to have Firefox open on startup?

Posted: Fri Aug 16, 2024 1:02 pm
by mikewalsh

@Peinfull :-

O-kay. This is not one I run myself, but investigation shows it's actually kitted-out with one of my 'portable' FirefoxESR builds running from /opt, with the 'LAUNCH' script symlinked into /usr/bin as firefox_esr. So; we want a wee script to place in /root/Startup.....like this:-

Code: Select all

#!/bin/sh
#
# Auto-launch Firefox ESR at boot...
#
/usr/bin/firefox_esr

I've attached this to the bottom of this post. Download it, and remove the 'fake' ".gz" from the end, so it just reads as "firefox_launch". This will turn it back into a script again (we have to do this so it'll work with the forum software, y'see.)

Make sure it's executable. Rt-clk -> Properties; tick the 3 'Exec' checkboxes down the bottom -> Refresh -> Close. Now place this script inside /root/Startup.

Open a ROX-filer window on /root/Startup. Move this to one side, but LEAVE IT OPEN. Now open ROX to where the launch script is that you've just made executable. Click'n'drag the script across to the first window (the one open at /root/Startup), and 'drop' it; a wee window will open, with 4 'choices':-

  • Copy

  • Move

  • Link (relative)

  • Link (absolute)

Choose 'Copy' (this acts as a double-check; if the copy goes wrong, the original is still there, y'see).....and the script should now be in /root/Startup.

Restart "X" (the graphical server; no need for a re-boot).....and all things being equal, Firefox ESR should fire-up.

Let us know how you get on, please.

Mike. ;)


Re: How to have Firefox open on startup?

Posted: Tue Aug 20, 2024 7:47 am
by Peinfull

Hello.

It worked perfectly fine, thank you so much for your help and the easy to understand instructions on how to do it.