WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wrestling dillo with ssh  (Read 3808 times)

Offline moB

  • Newbie
  • *
  • Posts: 49
wrestling dillo with ssh
« on: May 09, 2011, 07:43:42 PM »

I enjoy using dillo for most of my web browsing. Unfortuantely it crashes with some pages.
Seems to have to do with fonts?
http://www.dillo.org/cgi-bin/bugtrack/namazu.cgi?query=crashes&whence=180

Something like this error: 940
http://www.dillo.org/cgi-bin/bugtrack/Dillo_query.cgi?what=he&Submit=Find+It!

 
Quote
WorkedBy: workaround@ see June 2010 mailing list archive for segfault thread discussing fixed/variable font aliases

I have not yet made sense of the directions :-P
Guess it's in here:http://lists.auriga.wearlab.de/pipermail/dillo-dev/
   http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-June/subject.html
      http://lists.auriga.wearlab.de/pipermail/dillo-dev/2010-June/007538.html

Also...
1. There is no wbar or menu entry when the ssh-enabled tcz is loaded, unlike the non-ssh version.
2. The bookmarks.dpi stays loaded in memory after shutdow.

These last two bugs I have been dealt with, to some degree.
Should remake the dep file, but have made a work-around instead.

Tried rewriting the /usr/local/tce.icons and putting it in the /opt/.filetool.lst, but the file is overwritten at startup.

Made a copy as a file on the HD and a script to overwrite the /usr/local/tce.icins file.
Run the script and need only alt-click on wbar to reload--it's good to go.

Here are my tce.icons mods:

Code: [Select]
...
i: /usr/share/pixmaps/aterm.png
t: Aterm
c: exec aterm -fn 10x20 -sh 94 -tint lightgreen -fade 76 -fg lightblue
...
i: /tmp/tcloop/dillo/usr/local/tce.icons/dillo2.png
t: Dillo
c: exec mydillo


This also does aterm customizations. I like that ("can read" font size and colors...)

To kill the residual bookmarks.dpi file I use a little dillo-loader script (attached).
Put in /usr/sbin.

These files can be added to /opt/.filetool.lst for restoration at GUI start, or make a script to intall them for those using norestore regularly.
I've tried both and works well.

Maybe I really should have just redone ssh-dillo's tcz, but I've not made packages yet for TC, so worked with what I can do first.

I see the check-install dep file now--looks like the help we all need to get these things done.
Must try it sometime :-)

Thanks for your comments and good work so far!
moB

 Clumsy whale bangs his fat head against Ahab's ship yet again.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: wrestling dillo with ssh
« Reply #1 on: May 09, 2011, 09:02:35 PM »
The bookmarks.dpi stays loaded in memory after shutdow.

dillo had been doing that as far as my memory reaches back (0.x.x ??).
Not only bookmark.dpi but other PIDs as well.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: wrestling dillo with ssh
« Reply #2 on: May 10, 2011, 04:44:55 AM »
I remember dpidc stop but not exactly what it did...

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: wrestling dillo with ssh
« Reply #3 on: May 10, 2011, 04:47:33 AM »
What is ssh-enabled tcz or ssh-dillo?

Offline moB

  • Newbie
  • *
  • Posts: 49
Re: wrestling dillo with ssh
« Reply #4 on: May 10, 2011, 12:21:53 PM »
The bookmarks.dpi stays loaded in memory after shutdow.

dillo had been doing that as far as my memory reaches back (0.x.x ??).
Not only bookmark.dpi but other PIDs as well.


Concur. Now that I've killed my nice fast Lenovo (wet! oh no) old PCs are my only systems.
TC and secure, compact software like dillo are very much the right thing.

Now if only it were keyboard controllable. I haven't really adapted to the mouse. I'm still learning to type! ("Keyboarding", it's now called ;-)


What is ssh-enabled tcz or ssh-dillo?

It is dillo.tcz (ssl enabled "2010/07/12 - new release: 2.2 - compiled with experimental ssl support").
The dillo2.tcz (non-ssh, "2009/09/15 - Bumped to 2.1.1 - built without xft") has no problem with wbar or menu.

The ssl version puts the entries in /tmp/tcloop/ only, not the correct layer (ie /usr/...)

I notice that my little ash/awk script does not always succeed at killing the dpi.
Perhaps it needs a little sleep before doing the killing?

Maybe I should have parsed the grep line differently?

I remember dpidc stop but not exactly what it did...

Now that sounds interesting. Could be better--use a proper command rather than the script.

Thanks!

moB


  Your mind will answer most questions if you learn to relax and wait for the answer.
  --William S. Burroughs
.

Offline moB

  • Newbie
  • *
  • Posts: 49
Re: wrestling dillo with ssh
« Reply #5 on: May 10, 2011, 05:29:14 PM »
I remember dpidc stop but not exactly what it did...

Thanks!  It works much better now :)

Code: [Select]
#!/bin/sh
# new version thanks to Hiro
dillo; sleep 1; dpidc stop && echo OK || echo "Error! dpi not stopped: `ps | grep -v grep | grep dillo`"
exit

Here's the console output:

Quote
:~$ mydillo
paths: Cannot open file '/home/tc/.dillo/keysrc'
paths: Using /usr/local/etc/dillo/keysrc
dillo_dns_init: Here we go! (threaded)
Disabling cookies.
** WARNING **: preferred sans-serif font "DejaVu Sans" not found.
** WARNING **: preferred serif font "DejaVu Serif" not found.
** WARNING **: preferred monospace font "DejaVu Sans Mono" not found.
** WARNING **: preferred cursive font "DejaVu Sans" not found.
** WARNING **: preferred fantasy font "DejaVu Sans" not found.
Nav_open_url: new url='about:splash'
Nav_open_url: new url='dpi:/bm/'
** ERROR **: [Dpi_read_comm_keys] No such file or directory
Dpi_blocking_start_dpid: try 1
[dpid]: a_Misc_mksecret: [A NUMBER]
dpid started
[bookmarks dpi]: (v.13): accepting connections...
a_UIcmd_close_bw
Dillo: normal exit!
[bookmarks dpi]: (pid 8206): Got DpiBye.
OK


Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: wrestling dillo with ssh
« Reply #6 on: May 10, 2011, 07:14:05 PM »
Ok, there's a huge difference between SSH and SSL.

Does your download manager process get killed by dpidc stop?
You might want to search for more options regarding dpid in dillo's documentation.

I honestly don't understand how to do the icon/wbar stuff properly, sorry :)

FLTK is really starting to annoy me. I want a stable FLTK 1.3 release already so that we can eventually start dreaming about dillo 3...

Offline moB

  • Newbie
  • *
  • Posts: 49
Re: wrestling dillo with ssh
« Reply #7 on: May 10, 2011, 07:38:04 PM »
Ok, there's a huge difference between SSH and SSL.

Does your download manager process get killed by dpidc stop?
You might want to search for more options regarding dpid in dillo's documentation.

I honestly don't understand how to do the icon/wbar stuff properly, sorry :)

FLTK is really starting to annoy me. I want a stable FLTK 1.3 release already so that we can eventually start dreaming about dillo 3...

D'oh! my bad  :-[

I see that I said ssh at first instead of ssl... Quite right; they are not at all the same thing.
Sorry to be unclear/sloppy in my post.

My DL's are not broken by 'dpidc stop'.

Thanks again hiro for your elegant solution

To tinypoodle, roberts,  and the rest: thanks for help with the discussions. The forum always comes through for me. 

moB

   Physics is like .:
   sure, it may give some practical results, but that's not why we do it.
   --Richard Feynman