Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 28 Aug 2014, 23:37
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
install browser
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
sfl7fl

Joined: 11 Jun 2009
Posts: 25
Location: tampa bay

PostPosted: Sat 30 Jan 2010, 20:21    Post subject:  install browser
Subject description: which directories to install to
 

when i install firefox from online. it is created in it's own folder. how do i get the system to see it as a default browser and set it up in appropriate directories to better integrate it to puppy? Embarassed i know with .deb files these do the work for me. but i want to know how. thanks, john
Back to top
View user's profile Send private message Visit poster's website 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Sun 31 Jan 2010, 03:38    Post subject: Re: install browser
Subject description: which directories to install to
 

sfl7fl wrote:
when i install firefox from online. it is created in it's own folder. how do i get the system to see it as a default browser and set it up in appropriate directories to better integrate it to puppy? Embarassed i know with .deb files these do the work for me. but i want to know how. thanks, john


It might be easiest to look here:
http://www.murga-linux.com/puppy/viewtopic.php?t=46390

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
DMcCunney

Joined: 02 Feb 2009
Posts: 897

PostPosted: Sun 31 Jan 2010, 12:55    Post subject: Re: install browser
Subject description: which directories to install to
 

sfl7fl wrote:
when i install firefox from online. it is created in it's own folder. how do i get the system to see it as a default browser and set it up in appropriate directories to better integrate it to puppy? Embarassed i know with .deb files these do the work for me. but i want to know how. thanks, john

It doesn't really matter what directory Firefox installs to.

When you install the browser, it puts the main code in a directory (probably /usr/lib/firefox). That directory contains a script called firefox that actually runs the browser and loads firefox-bin which is the actual program. The install process creates a symlink of that script into /usr/bin. /usr/bin is in your $PATH, so you can type "firefox" in a terminal window to run it.

Other Puppy functions rely on a definition of the default applications for that function. These are all defined in shell scripts in /usr/local/bin with names like defaultbrowser or defaulttexteditor.

defaultbrowser is a two line script:
Code:
#!/bin/sh
exec mozstart "$@"

That script executes mozstart, which is another script that runs SeaMonkey, the default browser shipped with FF.

To get Firefox seen as the default browser, edit the defaultbrowser script to make it
Code:
#!/bin/sh
exec firefox "$@"

As long as a symlink to the firefox script is in a directory in your $PATH, Firefox ought to be run when you do something like click the browser icon on the desktop in JWM.

For that matter, you could edit the defaultbrowser script to provide a full path to the firefox script:
Code:
#!/bin/sh
exec /usr/lib/firefox/firefox "$@"

and not care about the firefox script being in the $PATH unless you needed to run it from a terminal.

The same procedure holds true for any of the other default scripts in /usr/local/bin. You can modify them to substitute your preferred application for what FF uses by default.
______
Dennis
Back to top
View user's profile Send private message 
sfl7fl

Joined: 11 Jun 2009
Posts: 25
Location: tampa bay

PostPosted: Sun 31 Jan 2010, 17:47    Post subject: Re: install browser
Subject description: which directories to install to
 

Quote:
When you install the browser, it puts the main code in a directory (probably /usr/lib/firefox). That directory contains a script called firefox that actually runs the browser and loads firefox-bin which is the actual program. The install process creates a symlink of that script into /usr/bin. /usr/bin is in your $PATH, so you can type "firefox" in a terminal window to run it.



thankyou, i use xarchiver to extract firefox and it goes to a temp folder, i move it to 'opt' for instance, is this correct? thanks john
Back to top
View user's profile Send private message Visit poster's website 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sun 31 Jan 2010, 18:13    Post subject:  

Have the path in the defaultbrowser to firefox reflect the real path. So /opt/.......
_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
DMcCunney

Joined: 02 Feb 2009
Posts: 897

PostPosted: Sun 31 Jan 2010, 18:39    Post subject: Re: install browser
Subject description: which directories to install to
 

sfl7fl wrote:
Quote:
When you install the browser, it puts the main code in a directory (probably /usr/lib/firefox). That directory contains a script called firefox that actually runs the browser and loads firefox-bin which is the actual program. The install process creates a symlink of that script into /usr/bin. /usr/bin is in your $PATH, so you can type "firefox" in a terminal window to run it.

thankyou, i use xarchiver to extract firefox and it goes to a temp folder, i move it to 'opt' for instance, is this correct? thanks john

If you prefer. As mentioned, it doesn't matter where it lives. You can put it under /opt/firefox if desired. You just need a symlink in a directory in your $PATH, and to change the defaultbrowser script to point to it.

Caveat: this assumes a new install, when you didn't have Firefox installed before. If you did, and this is an upgrade, you are better served by extracting over your existing firefox directory. This will simply update the firefox code to the latest version.

Your bookmarks, Firefox config data, extensions, themes and the like are stored in a profile directory which is elsewhere and untouched by the upgrade.
______
Dennis
Back to top
View user's profile Send private message 
sfl7fl

Joined: 11 Jun 2009
Posts: 25
Location: tampa bay

PostPosted: Sun 31 Jan 2010, 21:33    Post subject: Re: install browser
Subject description: which directories to install to
 

Quote:
If you prefer. As mentioned, it doesn't matter where it lives. You can put it under /opt/firefox if desired. You just need a symlink in a directory in your $PATH, and to change the defaultbrowser script to point to it.


okay I am learning,, i found this command online. (see below,) and ran it,

# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin:/opt/samba/bin

so these are all directories in my $PATH and it doesn't matter if the actual program is there. a symbolic link in any one is enough?

ill stop for now to let this soak in.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0671s ][ Queries: 11 (0.0045s) ][ GZIP on ]