zipit.rootnexus.org




Dillo Section

This Section contains the basic information needed to make the Dillo 'MOST' functional for daily use on the Zipit Z2.



Compile + Change HTTP_USER_AGENT

In preperation for receiving the device; I have started modifying and testing dillo to suite my purposes.
This information will be posted under a subsection once the website is more complete.

This will spoof your user agent and tell sites like google, ebay, facebook, myspace; that you are running a very pathetic and weak mobile browser like MSIE! (which you basically are).
This in turn will redirect you to the mobile versions of their sites automatically.

Hopefully this will also tell websites what screen resolution you are using and provide some sort of other layout changes based on that.

Download dillo from source and recompile.
#edit http.c
1 nano -w src/IO/http.c

# There are 2 References to User-Agent
2 put a // infront of both lines containig User-Agent

3 Directly below each line that you just commented out with the // put the following string on one line:
“User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; PPC; 240×320)Dillo/%s\r\n”

#https support
4 ./confiure --enable-ssl ; make ; cp src/dillo ~/bin ; install-dpi-local ;

5. mkdir ~/.dillo ; nano -w ~/.dillo/dpidrc

6. Paste in the following <--- needed for SSL

proto.data=datauri/datauri.filter.dpi
proto.file=file/file.dpi
proto.ftp=ftp/ftp.filter.dpi
proto.hello=hello/hello.filter.dpi
proto.https=https/https.filter.dpi



~/.dillo/dillorc Modified for zipit Z2

# dillorc
# Sample dillo initialization file.
#
# Lines that start with a '#' are comments.
# "#option=..." shows the built-in default.
# "# option=..." is an additional example.
# "option=..." overrides the built-in value.

#-------------------------------------------------------------------------
# FIRST SECTION :)
#-------------------------------------------------------------------------

# Set the desired initial browser size
# geometry=650x545+0+20
geometry=320x240

# Change this if you want to have text-only browsing from the start.
# (While browsing, this can be changed from the tools/settings menu.)
#load_images=YES

# Change this if you want to disable loading of CSS stylesheets initially.
# (While browsing, this can be changed from the tools/settings menu.)
#load_stylesheets=YES

# Change this if you want to disable parsing of embedded CSS initially.
# (While browsing, this can be changed from the tools/settings menu.)
#parse_embedded_css=YES

# Change the buffering scheme for drawing
# 0 no double buffering - useful for debugging
# 1 light buffering using a single back buffer for all windows
# 2 full fltk-based double buffering for all windows

#buffered_drawing=1

# Set your default directory for download/save operations
#save_dir=/tmp

#-------------------------------------------------------------------------
# RENDERING SECTION
#-------------------------------------------------------------------------

# Fontnames:
# - some fonts may slow down rendering.
# - try to tune a fontname/font_factor combination.
# Ex. {helvetica, lucida, times, "new century schoolbook", utopia, ...}
# The values below represent the defaults.
#
#font_serif="DejaVu Serif"
#font_sans_serif="DejaVu Sans"
#font_cursive="DejaVu Sans"
#font_fantasy="DejaVu Sans"
#font_monospace="DejaVu Sans Mono"

# All font sizes are scaled by this value
# font_factor=1.5
#font_factor=1.0

# Maximum font size in pixels
#font_max_size=100

# Minimum font size in pixels
#font_min_size=6

# Show tooltip popup for images?
# Note: We use the "title" attribute and not "alt".
# More info at: http://bugzilla.mozilla.org/show_bug.cgi?id=25537
# *** NOT HOOKED UP YET ***
#
#show_tooltip=YES

# Set this to YES if you want to limit the word wrap width to the viewport
# width (may be useful for iPAQ)
# *** NOT HOOKED UP YET ***
#
#limit_text_width=NO

#-------------------------------------------------------------------------
# PARSING SECTION
#-------------------------------------------------------------------------

# If you prefer more accurate HTML bug diagnosis over better rendering
# (page authors and webmasters) set the following to "NO".
#
#w3c_plus_heuristics=YES

#-------------------------------------------------------------------------
# NETWORK SECTION
#-------------------------------------------------------------------------

# Set the start page.
# start_page="about:blank"
# start_page="http://www.dillo.org"
start_page="file:/~/.dillo/dillo/search.html"
#start_page="about:splash"

# Set the home location
# home="file:/home/jcid/HomePage/Home.html"
#home="http://www.dillo.org/"

# Set the URL used by the web search dialog.
# "%s" is replaced with the search keywords separated by '+'.
# search_url="http://www.wikipedia.org/wiki/Special:Search?search=%s"
# search_url="http://search.lycos.com/?query=%s"
# search_url="http://www.alltheweb.com/search?cat=web&query=%s" #search_url="http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=%s"

# Use google mobile search with page formatting
search_url="http://www.google.com/m?q=%s&safe=off&gwt=on&"


# If set, dillo will ask web servers to send pages in this language.
# This setting does NOT change dillo's user interface.
# Format explained: www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
# Language-REGION values: www.iana.org/assignments/language-subtag-registry
# (by default, no Accept-Language header is sent)
# http_language="de"
# http_language="pt-BR"
# http_language="vi,de-CH,de;q=0.5,th;q=0.3"

# Set the proxy information for http.
# Note that the http_proxy environment variable overrides this setting.
# WARNING: FTP and downloads plugins use wget. To use a proxy with them,
# you will need to configure wget accordingly.
# http_proxy="http://localhost:8080/"
#(by default, no proxy is used)

# If you need to provide a user/password pair for the proxy,
# set the proxy user name here and Dillo will ask for the password later.
# http_proxyuser="joe"
#(by default, no proxy is used)

# Set the domains to access without proxy
# no_proxy = ".hola.com .mynet.cl .hi.de"
#(by default, no proxy is used)

# Set the HTTP Referer (sic) header.
# Note that there is no option to reveal the page that you came from because it
# would endanger your privacy. 'host' and 'path' allow you to pretend that the
# link you followed was on the same site that you're going to.
# none : Don't send any Referer header at all.
# host : Send the requested URI's hostname.
# path : Send the requested URI's host and path.

#http_referer=host

#-------------------------------------------------------------------------
# COLORS SECTION
#-------------------------------------------------------------------------

# If your eyes suffer with white backgrounds, change this.
allow_white_bg=YES

# When set to YES, the page author's visited link color may be overridden
# to allow better contrast with text/links/background
#contrast_visited_color=YES

#-------------------------------------------------------------------------
# USER INTERFACE SECTION
#-------------------------------------------------------------------------

# Size of dillo panel (used to enlarge the browsing area)
# tiny : recommended for iPAQ (with small_icons)
# small : very nice! (it's "medium" without icon titles)
# medium : nice!
# large : Traditional


panel_size=tiny
# panel_size=small
#panel_size=medium
# panel_size=large

small_icons=YES

# Here you can choose to hide some widgets of the dillo panel...
show_back=YES
show_forw=NO
show_home=YES
show_reload=YES
show_save=YES
show_stop=YES
show_bookmarks=YES
show_tools=NO
show_filemenu=YES
show_clear_url=YES
show_url=YES
show_search=YES
show_progress_box=NO

# Start dillo with the panels hidden?
#fullwindow_start=NO

# When filling out forms, our default behaviour is to submit on enterpress,
# but only when there's a single text entry (to avoid incomplete submits).
# OTOH, if you have to fill out the same form repeatedly, you may find it
# useful to keep away from the mouse by forcing enter to submit.
#enterpress_forces_submit=NO

# A mouse's middle click over a link opens a new Tab.
# If you prefer to open a new Window instead, set it to NO.
#middle_click_opens_new_tab=YES

# Mouse middle click by default drives drag-scrolling.
# To paste an URL into the window instead of scrolling, set it to NO.
# Note: You could always paste the URL onto the URL box clear button.
#middle_click_drags_page=YES

# Focus follows new Tabs.
# You can hold SHIFT to temporarily revert this behaviour.
#focus_new_tab=YES

#-------------------------------------------------------------------------
# DEBUG MESSAGES SECTION #-------------------------------------------------------------------------

# Soon we should add the "show_debug_messages=NO" option...

# Generic messages (mainly for debugging specific parts)
# Change this to disable them.

show_msg=NO

#-------------------------------------------------------------------------
# HTML BUG MESSAGES SECTION #-------------------------------------------------------------------------

# Accepted by the W3C validator but "strongly discouraged" by the SPEC.
# (Such as "TAB character inside <PRE>").

show_extra_warnings=NO

# -----------------------------------------------------------------------
# dillorc ends here.



Start page!

Custom start page for the dillo browser.

1. cd ~/.dillo
2. wget http://zipit.rootnexus.org/dillo/dillo-start-0.9.tgz
3. tar xvzf dillo-start-0.9.tgz
# check your .dillo rc for start_page="file:/~/.dillo/dillo/search.html"
4. nano -w .dillorc



All information provided is free to distribute and re-use as long as the original source of any of the originating work is provided; Unless otherwise stated.