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 Wed 16 Oct 2019, 22:51
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Portable Browser Installer
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [48 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
kuman11

Joined: 26 Dec 2017
Posts: 206

PostPosted: Mon 27 May 2019, 09:01    Post subject:  

jrb,

No, F/f runs best of all browsers on my Acer Notebook '08. My original HD is out of order, though F/f runs well in RAM, even the newest portable. I still can start it from the ff script.
I'll try this.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1313
Location: Smithers, BC, Canada

PostPosted: Tue 28 May 2019, 23:20    Post subject:  

I'm heading out on a road trip for the next two or three weeks. Will not be able to offer support until I get back.

Cheers, J
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4123
Location: holland

PostPosted: Fri 31 May 2019, 15:32    Post subject:  

jrb wrote:
I'm heading out on a road trip for the next two or three weeks. Will not be able to offer support until I get back.

Cheers, J


Probably the Firefox option of the Portabrowser installer won't work properly anymore now because it's depending on a download url from Dropbox (which has been changed), see here:
http://murga-linux.com/puppy/viewtopic.php?p=1029564#1029564

EDIT: Attached replacement of ffportable-inst script from jrb (remove fake .gz, make executable and replace in /usr/local/PortableBrowserInstaller)
Only change is the Dropbox url address pointing to the ff32-additions.tar.gz , so then should work again to download and extract it.

Fred
ffportable-inst.gz
Description  ffportable-inst with correct dropbox url, remove fake .gz, make executable and replace in /usr/local/PortableBrowserInstaller
gz

 Download 
Filename  ffportable-inst.gz 
Filesize  3.17 KB 
Downloaded  90 Time(s) 

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2123

PostPosted: Tue 04 Jun 2019, 04:28    Post subject:  

Does this dpend on "xterm". I tried symlinking xterm to urxvt and I get the error,
Code:

urxvt: unable to exec child.


I'm experience this issue on tiny_puduan_ascii-PreAlpha4.iso. See post:
p=1029785#1029785

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2123

PostPosted: Tue 04 Jun 2019, 11:37    Post subject:  

s243a wrote:
Does this dpend on "xterm". I tried symlinking xterm to urxvt and I get the error,
Code:

urxvt: unable to exec child.


I'm experience this issue on tiny_puduan_ascii-PreAlpha4.iso. See post:
p=1029785#1029785


Okay, I figured it out. First I realized that the pminst would run if I called it directly. Eventually I figured out that if I got rid of the single quotes around '$0' in:
Code:

tty -s; if [ $? -ne 0 ]; then xterm -hold -e "'$0'"; exit; fi


it would work. Interestingly enough, when I did a strace on PortableBrowserInstall, it did expand the variable (i.e. /usr/local/bin/pminst) but I think it expanded it with single quotes around it, which isn't a valid file name. This might be a diference between xterm and urxvt. So maybeone should add an if statment and if xterm is installed then we keep the original code but if one is using urxvt instead then we call it without the single quotes around $0.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2123

PostPosted: Thu 06 Jun 2019, 10:11    Post subject:  

I'm wondering why we do this in two lines:
Code:

echo /bin/bash > /usr/local/bin/ffUUID
sed -i 's|/bin/bash|#!/bin/bash|g' /usr/local/bin/ffUUID


can't we just do:

Code:

echo '#!/bin/bash' > /usr/local/bin/ffUUID

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2123

PostPosted: Thu 06 Jun 2019, 12:38    Post subject:  

I'm wondering how re-installation should be handled.

I noticed that the mkdir fails (if firefox was previously installed) (not sure if this was code from fredx181 or JRB). Anyway, my first idea was to add a prompt to remove the folder if it exists:

Code:

echo "Extracting Firefox..."
if [ -d firefox_${VERSION}_32 ]; then
  echo "y/n remove directory $(realpath "firefox_${VERSION}_32")"
  read YN
  if [[ $YN == "y" ]]; then #TODO add option to keep previous user settings
    rm -rf firefox_${VERSION}_32
    mkdir firefox_${VERSION}_32
  else
    exit
  fi
else
  mkdir firefox_${VERSION}_32
fi

/usr/local/PortableBrowserInstaller/ffportable-inst#L99

I noticed though that the other install scripts (e.g. pminst) don't pre make the related directory. This latter approach might be more robust if the directory name in the tar changes. Also tar has options on how to handle over-writes.

I have to give some thought about the best way to do this, but I think using the various over-write (vs keep) options in tar might be valid if someone doesn't want to remove the folder. One down side though is I'm not sure which of these options are supported by busybox. Granted most people will have the full version of tar installed.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
rufwoof


Joined: 24 Feb 2014
Posts: 3545

PostPosted: Thu 06 Jun 2019, 12:50    Post subject:  

s243a - somewhat surprised. Thought you were more in the camp of keeping the likes of a browser within the save area of a Puppy for the security benefits that provides (booting the same clean version every time - assuming you practice no Puppy saving once you've configured it as you like). More so given that browsers are typically a common attack vector for crackers.
_________________
( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb

echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
Back to top
View user's profile Send private message 
s243a

Joined: 02 Sep 2014
Posts: 2123

PostPosted: Thu 06 Jun 2019, 12:58    Post subject:  

rufwoof wrote:
s243a - somewhat surprised. Thought you were more in the camp of keeping the likes of a browser within the save area of a Puppy for the security benefits that provides (booting the same clean version every time - assuming you practice no Puppy saving once you've configured it as you like). More so given that browsers are typically a common attack vector for crackers.


Hello rufwoof,

that is a good point. However, there might be performance advantages to having the browser outside the save area. I actually modified JRBs script so that you can install the browser anywaywhere (including in the save area)...although I seem to have not uploaded these changes to github yet.

I'll consider adding some kind of warning per your advice.

Edit 1
**coped changes allowing browser to be installed anywhere to my git folder
Code:

#mount drive
if [ ! "${DRVNM:0:1}" = "/" ]; then
  mkdir -p /mnt/$DRVNM > /dev/null 2>&1
  [ -e /dev/$DRVNM ] && mount /dev/$DRVNM /mnt/$DRVNM > /dev/null 2>&1

  #switch to drive
  cd "/mnt/$DRVNM"
else
  mkdir -p "$DRVNM" > /dev/null 2>&1
  cd "$DRVNM"
fi

/usr/local/PortableBrowserInstaller/ffportable-inst#L59

I think though I have a few bugs to work out and I also probably need to modify the launch scripts.

Here are my last three commits:

modify portable browser installer e377d19
allow portable browser to be installed anywhere 90ba01e
allow portable browser to launch from anywhere 64f4098
fix DRVNM_ALT variable in portable browser installer 94a7cc2

Edit 2 some stuff related to launching firefox

Code:

echo "DRVNM_ALT='$DRVNM'" >> /usr/local/bin/ffUUID

/usr/local/PortableBrowserInstaller/ffportable-inst#L84


Code:

DRVNM=`blkid | grep -e $UUIDFF | cut -d "/" -f 3- | cut -d ":" -f -1`
echo $DRVNM
DRVNM="${DRVNM:-$DRVNM_ALT}"

/usr/local/PortableBrowserInstaller/ffportable-inst#L84

Code:

if [ -d "/mnt/$DRVNM/$FFDIR" ]; then
  #/mnt/$DRVNM/$FFDIR/firefox
  cp /usr/local/PortableBrowserInstaller/ff "/mnt/$DRVNM/$FFDIR"
  cd "/mnt/$DRVNM/$FFDIR"
  "/mnt/$DRVNM/$FFDIR/ff" "$@"
else
  #/mnt/$DRVNM/$FFDIR/firefox
  cp /usr/local/PortableBrowserInstaller/ff "$DRVNM/$FFDIR"
  cd "$DRVNM/$FFDIR"
  "$DRVNM/$FFDIR/ff" "$@"
fi

/usr/local/PortableBrowserInstaller/ffportable-inst#L141

Code:

  DRVNM="${DRVNM:-$DRVNM_ALT}"
  mount /dev/${DRVNM} /mnt/${DRVNM} > /dev/null 2>&1
  if [ -e "/mnt/$DRVNM/$FFDIR/firefox" ]; then
     cd "/mnt/$DRVNM/$FFDIR"
     "/mnt/$DRVNM/$FFDIR/ff" "$@"
  elif [ -e "/mnt/$DRVNM/$FFDIR/firefox" ]; then
     cd "$DRVNM/$FFDIR"
     "$DRVNM/$FFDIR/ff" "$@" 
else

/usr/local/PortableBrowserInstaller/ffportable_launch#L9

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2123

PostPosted: Thu 06 Jun 2019, 14:51    Post subject:  

I'm looking at the launch script now. blkid is a slow command. We might first want to check that the file exists at the previous path or alternativly add a variable in /tmp that indicates that we did blkid (already once) in the lanuch script so that we don't have to repeat this command.

**I'll think about this and then make a change later.

***on another note, firefox seems to depend on libwayland-client.so.0. Normally puppy would have this installed so it isn't an issue? In my tiny_devaun experiment, I've tried removing this file.

_________________
Find me on minds and on pearltrees.
Back to top
View user's profile Send private message Visit poster's website 
B.K. Johnson

Joined: 12 Oct 2009
Posts: 764

PostPosted: Thu 06 Jun 2019, 18:51    Post subject:  

s243a
I think wiping the firefox directory then reinstalling is the correct way to go. I install firefox in the standard way to /opt and experienced failure after updating sometimes -just overwriting . It turns out that the update works when going from minor to minor but not from minor to major. There is a file that mozilla fails to update correctly, but I really haven't investigated.

The script you guys use do not capture errors, but when I try to run manually from terminal, after a failed update of say 66.0.5 to 67.0, I get an error. I don't recall the exact words, but it indicated an incompatibility between 66.0.5 platform and 67.0 platform.

_________________
B.K. Johnson
tahrpup-6.0.5 PAE (upgraded from 6.0 =>6.0.2=>6.0.3=>6.0.5 via quickpet/PPM=Not installed); slacko-5.7 occasionally. Frugal install, pupsave file, multi OS flashdrive, FAT32 , SYSLINUX boot, CPU-Dual E2140, 4GB RAM

Back to top
View user's profile Send private message 
kuman11

Joined: 26 Dec 2017
Posts: 206

PostPosted: Sun 28 Jul 2019, 20:45    Post subject: c/o: Mike Walsh  

Mike Walsh,

My profile for Seamonkey246 has disappeared or is deleted & I can't start it with the script.
How can I create another one w/o a reboot if that's possible?

It seems Opera 12 is a good browser, is there a portable version of it?
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3405
Location: 500 seconds from Sol

PostPosted: Mon 29 Jul 2019, 15:39    Post subject: Re: c/o: Mike Walsh  

kuman11 wrote:

It seems Opera 12 is a good browser, is there a portable version of it?


opera 12.16 -- you can find a pet here, http://www.smokey01.com/OscarTalks/. Rather than installing it, you can Right-Click it and select UExtract (or extract). An opera folder will created which you can move anywhere. You can start this opera by clicking the opera binary in this folder. Frankly, I've stopped using opera 12.16 which was formerly my 'go-to' web-browser. Most website's won't allow it access. It can no longer run a google-search or a search by any search engine which uses google in any way. And, at least on my computers, it takes longer to load web-pages even of those websites --such as this one-- which allows it access.

I'll wait a while to see if Mike Walsh responds about Seamonkey as he knows far more about this.
Back to top
View user's profile Send private message 
kuman11

Joined: 26 Dec 2017
Posts: 206

PostPosted: Mon 29 Jul 2019, 17:18    Post subject: Opera  

mikeslr,

I got it from PPM & it installed with about 100 Mb of Puppy space left!! It runs faster & smoother than SM It can't only access 2 sites of all tried so far. I was surprised.

Btw I had an issue with the Turbo mode tonight.
Back to top
View user's profile Send private message 
kuman11

Joined: 26 Dec 2017
Posts: 206

PostPosted: Tue 30 Jul 2019, 08:34    Post subject:  

mikeslr,

Do u recall where's the link to SM 246 portable, I'll try to reinstall it, it doesn't show in PPM.

I guess can't count on M. Walsh these days ...
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [48 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
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.0843s ][ Queries: 13 (0.0212s) ][ GZIP on ]