2008-12-24

X start config problems

examining the files for configuration problems - according to the
log file /var/log/Xorg.0.0.log, the [default] configuration file
used when the system tries to start up X [entry to run level 5?]
is /etc/X11/xorg.conf - this config file is certainly the source
of the FONT PATH CONFIGURATION ERRORS that have been showing up at
the console.
--
DSL User

2008-12-14

Iceweasel / Firefox Readability Fixes

***text-here****

Revisiting Readability Problems in Firefox / Iceweasel

A couple years ago I posted to one of my other blogs with some solutions regarding readability problems I had encountered at that time using Mozilla Firefox. I looked into this again recently because the problems were recurring with Iceweasel 2.0.0.17 running under Debian "Etch" using the Sapphire window manager.

Overview

This solution uses the chrome files found in the user's default profile directory (~/.mozilla/default/[PROFILE_NAME]/chrome). The two files of interest reside in this directory. Their filenames are

    `
  • userChrome.css
  • userContent.css

Mozilla Unix Help Files

The Mozilla help page entitled Customizing Mozilla details the settings used here, as well as a large number of similar or related user interface setting changes that can be made from these two files.

Another file provided by the Mozilla project site is Mozilla DPI-related Font Size Issues on Unix.

Note that both these help documents are Unix-centric. I don't have the instructions for doing this under MS Windows.

Annotated File Listings

/*
 * userChrome.css – taken from userChrome–example.css found in  
 *   ~/.mozilla/default/profile–directory/chrome/
 *   for Iceweasel 2.0.0.17
 */

/*
 * This file can be used to customize the look of Mozilla's user interface
 * You should consider using !important on rules which you want to
 * override default settings.
 */

/*
 * Do not remove the @namespace line –– it's required for correct functioning
 */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */


/*
 * Some possible accessibility enhancements:
 */
/*
 * Make all the default font sizes 20 pt:
 */
  * {
    font–size: 14pt !important
  }
 
/*
 * Make menu items in particular 15 pt instead of the default size:
 */
  menupopup > * {
    font–size: 12pt !important
  }
 
/*
 * Give the Location (URL) Bar a fixed–width font
 */
  #urlbar {
     font–family: monospace !important;
  }
 

/*
 * Eliminate the throbber and its annoying movement:
 *
 * #throbber–box {
 *   display: none !important;
 * }
 */

/*
 * For more examples see http://www.mozilla.org/unix/customizing.html
 */

/*
** Examples added from mozilla.org site examples
*/

/* Set font size and family for dialogs
 * and other miscellaneous text
 */
window {
  font–size: 3.5mm !important;
  font–family: helvetica !important;
}

/* Single line text fields */
input {
  /* Set font size and family of text fields */
  font–family: clean !important;
  font–size: 13px !important;

  /* Set background color to something a little prettier */
  background–color: rgb(200, 255, 220) !important;

  /* Add some key bindings.
   * For an explanation of how to do this,
   * see below under "Custom key bindings".
   */
  –moz–binding: url("resource:///res/builtin/myHTMLBindings.xml#myInputFields") !important;
}

/* Multi–line textareas */
textarea {
  background–color: rgb(200, 255, 220) !important;
}

/* The  dropdown address and autocomplete windows are grey.
 * To make them match better with the URL field and look more like 4.x:
 */

/*  URL dropdown box  */
#ubhist–popup
  {
    background            : white !important;
    border                : 1px solid black !important;
    padding               : 0px !important;            
  }

/*  autocomplete text field  */
.textfield–popup
  {
    background            : white !important;
    border                : 1px solid black !important;
  }

#ubhist–popup > .popup–internal–box, .textfield–popup > .popup–internal–box
  {
    border–left           : 1px solid white !important;
    border–top            : 1px solid white !important;
    border–right          : 1px solid white !important;
    border–bottom         : 1px solid white !important;
  }

/* 3. Add a border (line of 1px) to the tooltips. */
.tooltip–label
   {
     border                : 1px solid !important;
   }

/*
** userContent.css – taken from examples at 
**   http://www.mozilla.org/unix/customizing.html
**   for Iceweasel 2.0.0.17
*/

/* Obviate need to zoom on many sites. */
html>body {
  font–size: 100% !important;
  line–height: normal !important;
}

/*
 * Disable the deprecated HTML <font> tag. (Like above,
 * reduces need to zoom.)
 */
font {
  font–family: inherit !important;
  font–size: inherit !important;
  color: inherit !important;
}

/* Put a thin black border around all dropdown forms like NS4.x */
:–moz–dropdown–list {
  border: 1px solid black !important;
  border–top–style: solid !important;
}

/* Disable marquee display */
marquee {
  –moz–binding: none; display: block; height: auto !important;
  /* This is better than just display:none !important;
   * because you can still see the text in the marquee,
   * but without scrolling.
   */
}

/*
 * Until bug 105547 is fixed, a helpful workaround to
 * highlight some links which would pop up a new window:
 */
:link:hover[target="_blank"],:visited:hover[target="_blank"] {
  color: white !important; background: red !important;
}
:link:hover[target="_new"],:visited:hover[target="_new"] {
  color: white !important; background: red !important;
}

/*
 * Many input forms have typing areas so small it's hard to use
 * them. On many of them, this sets a minimum width of about 50
 * characters, and a miniumum height of about 12 characters.
 */
textarea {
  min–width: 50ex !important;
  min–height: 12em !important;
}

/* Improve scroll performance on slow machines on some sites. */
* {
  background–attachment: scroll !important;
}

/*
 * Ignore user–specified style in mail messages.
 * See http://bugzilla.mozilla.org/show_bug.cgi?id=18427 for details.
 */
.moz–text–html font, .moz–text–html div, .moz–text–html body {
  font–size: inherit !important;
  font–family: inherit !important;
  color: inherit !important;
  background–color: inherit !important;
  background–image: inherit !important;
  text–align: inherit !important;
  text–indent: inherit !important;
}

2008-12-12

getting down to cases

$sudo dpkg –i install_flash_player_10_linux.deb
Selecting previously deselected package adobe–flashplugin.
(Reading database ... 124092 files and directories currently installed.)
Unpacking adobe–flashplugin (from install_flash_player_10_linux.deb) ...
dpkg: dependency problems prevent configuration of adobe–flashplugin:
 adobe–flashplugin depends on libatk1.0–0 (>= 1.20.0); however:
  Version of libatk1.0–0 on system is 1.12.4–3.
 adobe–flashplugin depends on libc6 (>= 2.4); however:
  Version of libc6 on system is 2.3.6.ds1–13etch7.
 adobe–flashplugin depends on libcairo2 (>= 1.6.0); however:
  Version of libcairo2 on system is 1.2.4–4.1+etch1.
 adobe–flashplugin depends on libfreetype6 (>= 2.3.5); however:
  Version of libfreetype6 on system is 2.2.1–5+etch2.
 adobe–flashplugin depends on libgtk2.0–0 (>= 2.12.0); however:
  Version of libgtk2.0–0 on system is 2.8.20–7.
 adobe–flashplugin depends on libnspr4–0d; however:
  Package libnspr4–0d is not installed.
 adobe–flashplugin depends on libnss3–1d; however:
  Package libnss3–1d is not installed.
 adobe–flashplugin depends on libpango1.0–0 (>= 1.20.1); however:
  Version of libpango1.0–0 on system is 1.14.8–5.
dpkg: error processing adobe–flashplugin (––install):
 dependency problems – leaving unconfigured
Errors were encountered while processing:
 adobe–flashplugin

…then, later …

$sudo apt–get upgrade
Reading package lists... Done
Building dependency tree... Done
You might want to run `apt–get –f install' to correct these.
The following packages have unmet dependencies:
  adobe–flashplugin: Depends: libatk1.0–0 (>= 1.20.0) but 1.12.4–3 is installed
                     Depends: libc6 (>= 2.4) but 2.3.6.ds1–13etch7 is installed
                     Depends: libcairo2 (>= 1.6.0) but 1.2.4–4.1+etch1 is installed
                     Depends: libfreetype6 (>= 2.3.5) but 2.2.1–5+etch2 is installed
                     Depends: libgtk2.0–0 (>= 2.12.0) but 2.8.20–7 is installed
                     Depends: libnspr4–0d but it is not installed
                     Depends: libnss3–1d but it is not installable
                     Depends: libpango1.0–0 (>= 1.20.1) but 1.14.8–5 is installed
E: Unmet dependencies. Try using –f.

…followed by…
$sudo apt–get –f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libnspr4–0d
The following packages will be REMOVED:
  adobe–flashplugin
The following NEW packages will be installed:
  libnspr4–0d
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 139kB of archives.
After unpacking 9765kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://http.us.debian.org etch/main libnspr4–0d 1.8.0.15~pre080614d–0etch1 [139kB]
Fetched 139kB in 7s (18.8kB/s)
(Reading database ... 124100 files and directories currently installed.)
Removing adobe–flashplugin ...
Selecting previously deselected package libnspr4–0d.
(Reading database ... 124092 files and directories currently installed.)
Unpacking libnspr4–0d (from .../libnspr4–0d_1.8.0.15~pre080614d–0etch1_i386.deb) ...
Setting up libnspr4–0d (1.8.0.15~pre080614d–0etch1) ...

2008-12-11

GeForce4 MX Integrated GPU 0x01F0

2008-12-06

Iceweasel about:config tweaks for Gmail

Just did this for Iceweasel - Iceweasel/2.0.0.17 (Debian-2.0.0.17-0etch1)

From the article Recommended IMAP client settings at the Gmail Help site:

  1. In the 'Tools' menu, open Options.
  2. On the 'Advanced' tab, open the General section.
  3. Click the Config Editor button.
  4. In the 'Filter' box, type 'browser.cache.memory.capacity'
  5. Double-click on the browser.cache.memory.capacity entry to edit its value.
  6. Change the value to '30720' and click OK.
  7. Delete the text in the 'Filter' box and type 'mail.server.default.fetch_by_chunks'
  8. Double-click on the mail.server.default.fetch_by_chunks entry to set its value to false.
  9. Close the 'about:config' window and then close 'Options' by clicking OK.

[these suggestions are given by Google as performance tweak suggestions to "enhance your IMAP experience" - see the URL(s) given above for the source material and any explanations thereof, i.e. ymmv]

Debian [etch] font size [linuxquestions.org]

A detailed discussion of X dpi configuration and its effects on font size exists at LinuxQuestions.org, forum title Debian font size strange behaviour

2008-12-05

Iceweasel Chrome Tweaks

The Mozillazine Knowledge Base has an article Pane and Menu Fonts which describes how to use the userChrome.css file to fix font size problems in the "chrome" part of the Iceweasel user interface - that is, the menus, dialog boxes, and so on.

This version of Iceweasel is Iceweasel/2.0.0.17 (Debian-2.0.0.17-0etch1).

The following code, placed at the end of the userChrome.css file successfully fixed the problem of the Iceweasel menu fonts being unreadably small at 1600x1200 resolution:

/* Global UI Font */
* { font-size:16pt !important;
    font-family:FreeSans !important;
}

2008-12-04

X-Windows on Debian Etch - Installment 1

The command that finally worked

  xinit xterm -- /usr/bin/X -br :0.0

For some reason, this command also ran the window manager (sapphire in this case).

Perhaps it has to do w/ .xinitrc:

aterm &
xterm &
Eterm &
sapphire

The .xserverrc doesn't matter, and could be simply the default:

X :0

[as specified in the init(1) man page]