note to self....

http://blogs.earthside.org/note_to_self/

Tuesday, May 23, 2006

starwars screensaver

To the X screen saver with a binary entitled 'starwars':

Quit hogging all my CPU cycles - freaking NINETY-NINE PRECENT (99%) of available processor capability is occupied running the screensaver. This is a Bad Thing™.

Note to self: Delete/Remove this bitchy little bit of software ASAP

... and CHECK for other X screen hacks that have the same predatory tedencies.

Labels: , , , , , ,


Tuesday, May 09, 2006

Install Type1 Fonts

jsMath (Download): Download TeX fonts for jsMath has the following about how to install Type1 fonts:
  • Move the .pfb and .afm files to /usr/X11R6/lib/X11/fonts/Type1
  • CD to that directory and run 'type1inst'
  • Run 'xset fp rehash'
  • Test that the fonts are installed using 'xlsfonts | grep cm'

Labels: , , , ,


Sunday, April 23, 2006

Fixing the telnet:// protocol handler in Firefox 1.5.0.2 (Linux)

I had some problems getting Firefox to accept/provide arguments to a protocol handler command entered in the about:config page [see previous post for about:config settings], but I have found a workaround, and posted a HOWTO document about it. See: HOWTO Enable Telnet URI Handling in Firefox.

The gripe here is that telnet://host.name:portnum/ URLs didn't work by default in Firefox. The HOWTO gives a fix.

Labels: , , , , , , , , , ,


Firefox about:config settings for telnet: URLs

Register Protocol from the Mozillazine Knowledge Base.

Gecko DOM Reference

About:config entries from the Mozillazine Knowledge Base.

pound-perl perl mongers wiki posting about settings for telnet URL.

Labels: , , , , , ,


Saturday, May 21, 2005

FAQ: BackSpace and Delete Problems

To fix problems with BS and DEL keys generating ^H and ^? garbage and more arcane problems like the Emacs help screen popping up when you hit the backspace key, there is an excellent page by Anne Baretta entitled BackSpace and Delete Configuration for Linux (VT, xterm, bash, tcsh, netscape and more)

Labels: , ,


FAQ: XTerm Titles, Bash Prompts, Cygwin, and Linux

There is a Linux mini-HowTo entitled How to change the title of an xterm. This how to covers several shells and has a lot of good information about the various escape sequences of various shells and how to use them.

The section 4.3 Bash has example code for setting the XTerm title from within Bash.

The Bash shell uses the value of the environment variable PS1 as the prompt. The default Bash prompt set during the installation of the Cygwin environment uses the escape sequences described in the How-To to set the title of an XTerm.

This is fine, unless you want to use the same prompt value in the .bashrc file on a Linux box. The technique does work, but cases some annoying behaviour at the console when you log in to the Linux box without the benefit of the X environment.

Also, the dynamic setting of the XTerm title can interfere with static title settings you may try to use.

Now that we know the escape sequences that are used to set the XTerm title, we can examine the default Cygwin prompt and re-write it to leave the XTerm title alone, while still giving us the two-line prompt that can be useful for readability.

The default value is something like:
export PS1='\[\033]0;\w\007\033[32m\]\u@\h: \[\033[33m\w\033[0m\]
\$'
We can re-write this as
export PS1='\033[32m\]\u@\h: \[\033[33m\w\033[0m\]
\$'
This keeps the Bash prompt, but doesn't try to set the XTerm title.

Note that the bashrc file can contain code that checks the value of $TERM before setting the prompt. That would eliminate the problem that occurs for console logins, but still won't help us when we're setting the XTerm title ourselves e.g. using -n and -T. We prefer to simply remove the dynamic setting of the XTerm title as a default.

references

The document How to change the title of an xterm is Linux HOWTO Index and can be found at http://sunsite.unc.edu/LDP/HOWTO/mini/Xterm-Title.html.

The latest version can always be found in several formats at http://www.giccs.georgetown.edu/~ric/howto/Xterm-Title/.

The Bash shell homepage: http://www.gnu.org/software/bash/bash.html

Labels: , , , , , , , , ,


Archives

2004/09   2005/03   2005/04   2005/05   2005/06   2005/07   2005/08   2005/09   2005/10   2005/11   2006/01   2006/02   2006/04   2006/05   2006/06   2008/01  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]