How to have Firefox open on startup? (solved)

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
Peinfull
Posts: 11
Joined: Wed Aug 14, 2024 9:04 am
Been thanked: 2 times

How to have Firefox open on startup? (solved)

Post 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.

Last edited by bigpup on Tue Aug 20, 2024 4:33 pm, edited 1 time in total.
Reason: added solved to show fix was found
User avatar
mikewalsh
Moderator
Posts: 6350
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 886 times
Been thanked: 2074 times

Re: Firefox on startup

Post 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. ;)

Peinfull
Posts: 11
Joined: Wed Aug 14, 2024 9:04 am
Been thanked: 2 times

Re: How to have Firefox open on startup?

Post by Peinfull »

Hello and thanks for the answer.

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

User avatar
mikewalsh
Moderator
Posts: 6350
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 886 times
Been thanked: 2074 times

Re: How to have Firefox open on startup?

Post 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. ;)

Peinfull
Posts: 11
Joined: Wed Aug 14, 2024 9:04 am
Been thanked: 2 times

Re: How to have Firefox open on startup?

Post by Peinfull »

It's the default built in browser.

User avatar
mikewalsh
Moderator
Posts: 6350
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 886 times
Been thanked: 2074 times

Re: How to have Firefox open on startup?

Post 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. ;)

Attachments
firefox_launch.gz
Firefox auto-launch script to go in /root/Startup. Remove 'fake' .gz first.....
(72 Bytes) Downloaded 35 times
Peinfull
Posts: 11
Joined: Wed Aug 14, 2024 9:04 am
Been thanked: 2 times

Re: How to have Firefox open on startup?

Post 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.

Post Reply

Return to “Beginners Help”