fredx181 wrote:s243a wrote:but this isn't enough to use the gui aspects of JRB's portable browser installer because we also need gxmessage.
Perhaps replace in jrb's scripts: gxmessage with xmessage (which is part of package "x11-utils" and is included in your iso, I think, from having a quick look at the contents of puppy.sfs).
Done
Code: Select all
if [ ! -z "`which gxmessage`" ]; then
gxmessage -bg yellow -file /usr/share/doc/pmportable
elif [ ! -z "`which xmessage`" ]; then
xmessage -file /usr/share/doc/pmportable
else
cat /usr/share/doc/pmportable
read -p "Press enter to continue"
fi
EDIT: I just tried your tiny_puduan_ascii-PreAlpha5.iso, it did boot to the desktop, OK.
Mmm.. I know it's experimental of course, but sorry to say, I experienced that 99% doesn't work as expected, so .. what's the value of sharing then ?
Apologizes. I forgot to add the "not intended for use disclaimer" by it. I've been posting them because wanderer wanted to see some progress.
Anyway, output of Portabrowser with option Palemoon:
Code: Select all
What drive would you like to install PalemoonPortable on? eg: sda3
sda3
/usr/local/bin/pminst: line 53: curl: command not found
Downloading Palemoon...
--2019-06-04 17:42:06-- https://linux.palemoon.org/
Resolving linux.palemoon.org (linux.palemoon.org)... 104.20.60.158, 104.20.61.158, 2606:4700:10::6814:3d9e, ...
Connecting to linux.palemoon.org (linux.palemoon.org)|104.20.60.158|:443... connected.
WARNING: The certificate of 'linux.palemoon.org' is not trusted.
WARNING: The certificate of 'linux.palemoon.org' hasn't got a known issuer.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'
index.html [ <=> ] 17.85K --.-KB/s in 0.006s
2019-06-04 17:42:06 (3.14 MB/s) - 'index.html' saved [18282]
Extracting Palemoon...
tar (child): -C: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Done, the portable Palemoon folder is Pale/usr/local/bin/pminst: line 6: gxmessage: command not found
PalemoonPortable has already been installed. Do you wish to reinstall? y/n
y
What drive would you like to install PalemoonPortable on? eg: sda3
sda3
/usr/local/bin/pminst: line 53: curl: command not found
Downloading Palemoon...
--2019-06-04 17:42:06-- https://linux.palemoon.org/
Resolving linux.palemoon.org (linux.palemoon.org)... 104.20.60.158, 104.20.61.158, 2606:4700:10::6814:3d9e, ...
Connecting to linux.palemoon.org (linux.palemoon.org)|104.20.60.158|:443... connected.
WARNING: The certificate of 'linux.palemoon.org' is not trusted.
WARNING: The certificate of 'linux.palemoon.org' hasn't got a known issuer.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'
index.html [ <=> ] 17.85K --.-KB/s in 0.006s
2019-06-04 17:42:06 (3.14 MB/s) - 'index.html' saved [18282]
Extracting Palemoon...
tar (child): -C: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Done, the portable Palemoon folder is Palemoon__32
You can now delete the archive:
PM__32.tar.bz2
ln: failed to create symbolic link '/usr/local/bin/pmportable_launch': File exists
ln: failed to create symbolic link '/usr/share/applications/Palemoon-portable.desktop': File exists
Generating /root/.jwmrc...
sda3
/usr/local/bin/pminst: line 84: /mnt/sda3/Palemoon__32: Is a directory
/mnt/sda3/Palemoon__32/pm: line 8: /mnt/sda3/Palemoon__32/palemoon: No such file or directory
Would you like to make Palemoon the default browser? y/n
moon__32
You can now delete the archive:
PM__32.tar.bz2
ln: failed to create symbolic link '/usr/local/bin/pmportable_launch': File exists
ln: failed to create symbolic link '/usr/share/applications/Palemoon-portable.desktop': File exists
Generating /root/.jwmrc...
sda3
/usr/local/bin/pminst: line 84: /mnt/sda3/Palemoon__32: Is a directory
/mnt/sda3/Palemoon__32/pm: line 8: /mnt/sda3/Palemoon__32/palemoon: No such file or directory
Would you like to make Palemoon the default browser? y/n
Fred
I added curl (for some reason not on github yet), added a statment to update the certificates:
Code: Select all
ca-certificates #Recommended for wget
%chroot update-ca-certificates
/woof-distro/x86/tiny_devuan/ascii/basesfs#L107
I also modified the code so it doesn't depend on yad:
Code: Select all
if [ ! -z "`which yad`" ]; then
yad --center --window-icon=/usr/local/lib/X11/pixmaps/www48.png --title="Portable Web Browser Installer" --form --width=450 --text="PORTABLE WEB BROWSER INSTALLER
--------------------------------------------------
Please choose your desired browser:" \
--image="/usr/local/lib/X11/pixmaps/www48.png" \
--field="Firefox Quantum":fbtn "ffinst" \
--field="Palemoon":fbtn "pminst" \
--field="Seamonkey":fbtn "sminst" \
--field="Thunderbird email client":fbtn "tbinst" \
--no-buttons --close-on-unfocus
else
tty -s; if [ $? -ne 0 ]; then defaultterminal -hold -e "$0"; exit; fi
tempfile=/tmp/bla
dialog --backtitle "CPU Selection" \
--ok-label "List" \
--radiolist "Please choose your desired browser:" 10 40 4 \
1 "Firefox Quantum" off \
2 "Palemoon" on \
3 "Seamonkey" off \
4 "Thunderbird email client" off \
2> $tempfile
is_ok="$?"
browser_choice=`cat $tempfile`
echo browser_choice
if [ $is_ok -eq 0 ]; then
case "$browser_choice" in
1) ffinst ;;
2) pminst ;;
3) sminst ;;
4) tbinst ;;
esac
fi
fi
/woof-code/rootfs-packages/PortaBrowseInstall-i386-0.4/usr/local/PortableBrowserInstaller/PortableBrowserInstall#L8
I supposed, I could also just have someone type in a number if dialog isn't installed.
P.S. 1 I should add somewhere "press spacebar to select the option" because this really counter-intuitive in my opinion.
P.S. 2 Here is my default terminal function:
Code: Select all
#!/bin/ash
if [ ! -z "`which urxvt`" ]; then
exec urxvt "$@"
elif [ ! -z "`which xterm`" ]; then
exec xterm "$@"
elif [ ! -z "`which lxterm`" ]; then
exec lxterm "$@"
elif [ ! -z "`which sakura`" ]; then
exec sakura "$@"
elif [ ! -z "`which roxterm`" ]; then
exec roxterm "$@"
elif [ ! -z "`which roxterm`" ]; then
exec roxterm "$@"
fi
/usr/local/bin/defaultterminal
I didn't realize that these default functions were missing. The multiple option aspect of this is something that I innovated for TazPup64
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].