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 Sun 21 Oct 2018, 15:16
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
x-www-browser bash command doesnt work in puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
schober

Joined: 29 May 2015
Posts: 30

PostPosted: Fri 08 Dec 2017, 15:41    Post subject:  x-www-browser bash command doesnt work in puppy  

Using this command in the console you can display a url in the current browser (firefox or google)

This works fine on ubuntu - the syntax i use in a bash script is
x-www-browser $url

On puppy however I get "# bash: x-www-browser: command not found"
I'm using Wary 5.3

Any suggestions?
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 832
Location: Connecticut, United States

PostPosted: Fri 08 Dec 2017, 15:59    Post subject:  

install Lynx (the text browser) then make a symlink in /usr/bin to it and name it www-browser

you can install Lynx with the Puppy Package Manager ...........that might do it.
Back to top
View user's profile Send private message Visit poster's website 
schober

Joined: 29 May 2015
Posts: 30

PostPosted: Fri 08 Dec 2017, 16:25    Post subject:  

Lynx doesn't display images, so isnt suitable
I'm using Palemoon

xdg-open will display a jpg file in a url but that is about all it does (and it goes into Seamonkey)
It wont display images like this https://tinyurl.com/yc9uwg6u
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 12836
Location: Gatineau (Qc), Canada

PostPosted: Fri 08 Dec 2017, 16:57    Post subject:  

Hello schober.

This is the line that I have in my /root/.Xdefaults file:
Code:
urxvt.url-launcher: defaultbrowser

It launches the full browser I have defined in /usr/local/bin/defaultbrowser when I
click, in console, on a URL.

Had I wanted a less cumbersome and quicker browser such as lynks or links2,
I could have specified
Code:
urxvt.url-launcher: defaulthtmlviewer

This is my file /usr/local/bin/defaulthtmlviewer:
Code:
#!/bin/sh
# defaulthtmlviewer
####
exec links2 -g "$@" 2>/dev/null
# xlinks2, in some packages or compilations

IHTH

_________________
musher0
~~~~~~~~~~
Fidèle elle commença, ainsi elle restera. (Prov. canadien) /
Faithful she began, so will she stay. (Canadian prov.)
Back to top
View user's profile Send private message 
schober

Joined: 29 May 2015
Posts: 30

PostPosted: Fri 08 Dec 2017, 18:17    Post subject:  

Adding "urxvt.url-launcher: defaultbrowser" didn't change anything

This command "xdg-open http://www.murga-linux.com/puppy/index.php" works but fails with the url https://tinyurl.com/yc9uwg6u points to

Wheras " x-www-browser http://www.murga-linux.com/puppy/index.php" doesn't work (bash: x-www-browser: command not found)

This command is in ubuntu but not available in the standard version of wary as far as I cansee
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 11140
Location: Charleston S.C. USA

PostPosted: Fri 08 Dec 2017, 18:21    Post subject:  

Try:
Code:
defaultbrowser $url

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
dancytron

Joined: 18 Jul 2012
Posts: 1143

PostPosted: Fri 08 Dec 2017, 18:26    Post subject:  

rockedge wrote:
install Lynx (the text browser) then make a symlink in /usr/bin to it and name it www-browser

you can install Lynx with the Puppy Package Manager ...........that might do it.


Have you tried just creating a symlink in /usr/bin to whatever browser you want it to trigger and renaming it x-www-browser (or www-browser, try both).

Also, in Debian, both of those links are in /etc/alternatives and then the x-www-browser is linked to /usr/bin from there. You might look there and see if there is anything.

If you don't figure it out, I'll fire up a more recent puppy and see how it is set up there.
Back to top
View user's profile Send private message 
sheldonisaac

Joined: 21 Jun 2009
Posts: 753
Location: Philadelphia, PA

PostPosted: Fri 08 Dec 2017, 18:28    Post subject:  

bigpup wrote:
Try:
Code:
defaultbrowser $url

That worked just now with his tinyurl.
Musher0's Xenial, Iron browser.

_________________
Dell E6410: Xenial, Bionicpup64, etc
Dell Mini 9, Acer Aspire One, EeePC 1018P, PowerBook G4
Intel D865GBF, Intel DQ35JOE
Back to top
View user's profile Send private message 
ally


Joined: 19 May 2012
Posts: 1841
Location: lincoln, uk

PostPosted: Fri 08 Dec 2017, 18:33    Post subject:  

works also xenial64 7.5 & chrome

Smile
Back to top
View user's profile Send private message Visit poster's website 
musher0

Joined: 04 Jan 2009
Posts: 12836
Location: Gatineau (Qc), Canada

PostPosted: Fri 08 Dec 2017, 20:57    Post subject:  

Hi schober.

Replies interspersed.
schober wrote:
Adding "urxvt.url-launcher: defaultbrowser" didn't change anything
My bad. Please forgive me. I forgot to mention that every time you edit
.Xresources or .Xdefaults, you need to open a terminal and type
Code:
xrdb ~/.Xresources
or
Code:
xrdb ~/.Xdefaults
(as the case may be).
Otherwise, you have to recycle X to get your edits to these files recognized.

schober wrote:
This command "xdg-open http://www.murga-linux.com/puppy/index.php" works but fails with the url https://tinyurl.com/yc9uwg6u points to.
Not Puppy's fault! If you remember the full URL, use that?

schober wrote:
Wheras " x-www-browser http://www.murga-linux.com/puppy/index.php" doesn't work (bash: x-www-browser: command not found)
No. That command does not exist on Puppy, don't look for it. As I said above,
we have two equivalents: the commands < defaultbrowser > (for a full-blown
browser) or < defaulthtmlviewer > (for smaller browsers, such as dillo, links2,
netsurf, etc.). In Puppy, forget < x-www-browser >; use < defaultbrowser > or
< defaulthtmlviewer >.

schober wrote:
This command is in ubuntu but not available in the standard version of wary as far as I can see
The Ubuntu-derived "breeds" of Puppy such as tahrPup, precisePup and xenialPup
do feed on the Ubuntu repos for apps. However, PuppyLinux has invented
a lot of its own solutions. Surprising as that may sound, PuppyLinux is NOT a
carbon copy of any other distro,

IHTH.

_________________
musher0
~~~~~~~~~~
Fidèle elle commença, ainsi elle restera. (Prov. canadien) /
Faithful she began, so will she stay. (Canadian prov.)
Back to top
View user's profile Send private message 
schober

Joined: 29 May 2015
Posts: 30

PostPosted: Sat 09 Dec 2017, 12:22    Post subject:  

Well well, the line defaultbrowser https://tinyurl.com/yc9uwg6u worked!
Many thanks to all who took an interest
Changing the default browser from Sea monkey to Palemoon is a big improvement - image loads faster
schober
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0559s ][ Queries: 12 (0.0058s) ][ GZIP on ]