Aug 142010

Just ran across this, could be useful.
From http://blog.laimbock.com/2009/08/08/disable-pcpskr-module-on-fedora/

echo "blacklist pcspkr" > /etc/modprobe.d/pcspkr.conf
rmmod pcspkr

How to get a Soundbridge M1000 to work with squeezecenter:

http://forums.rokulabs.com/viewtopic.php?t=19784#p115044

To set up server and search entries in /etc/resolv.conf,
use settings like these in /etc/sysconfig/network-scripts/ifcfg-eth0:

DNS1=192.168.1.1
DNS2=192.168.1.2
DOMAIN="sub.mydomain.com mydomain.com"
Jun 072010

Here is the right way to install Sun Java 6 on Fedora.

This method handles the alternatives system, and makes rpm packages
so upgrading is easy:

http://www.city-fan.org/tips/SunJava6OnFedora

Another, older version of this approach I used to use:

http://www.lbotti.net/blog/tag/java/

Nov 122009

If you are editing with vi, you can enter Unicode characters with the sequence:

Ctrl-V u xxxx

where xxxx is the 4-digit hex code.

See http://en.wikibooks.org/wiki/Unicode/Character_reference/0000-0FFF
for a code chart.

Here is how to change the fonts used in the UI for Thunderbird and Firefox.

See:

Create a userChrome.css file:

  • in Thunderbird, create in ~/.thunderbird/<profile>/chrome/
  • in Firefox, create in ~/.mozilla/firefox/<profile>/chrome/

You may need to create the chrome directory in Thunderbird.

Example contents are at urls above. e.g. to set the global font size:

/* set default namespace to XUL */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*
 * Set all the default font sizes:
 */
* {
  font-size: 11pt !important;
}
Oct 042007

Here is a konqueror servicemenu item that lets you
run kompare on selected files.

Put this code into ~/.kde/share/apps/konqueror/servicemenus/kompare.desktop:

[Desktop Entry]
ServiceTypes=all/all
Actions=kompare

[Desktop Action kompare]
Name=Kompare Files
Icon=kompare
Exec=kompare -caption "%c" %i -c %U

As a refinement, it would be nice to only show this if two files are selected.

Jun 012007

A system board 10-pin header connector IDC10 looks like this:

  9       1
+----   ----+
| o o o o o |
| o o o o o |
+-----------+
  10      2

The two cable versions are DTK and AT/Everex/Intel

Here is a good post with ascii art:
http://hardware.mcse.ms/message235718-2.html

And one source of the DB-9 serial pinouts:
http://www.aggsoft.com/rs232-pinout-cable/serial-port-db9.htm

With the DTK assembly, the ribbon cable on either end should
come out the "side" of the connector (that is how cables
made with IDT method work).

With the Intel/Everex assembly, and the need to solder the wires to
the DB-9, it is possible the wire on the DB-9 will come out the end
of the assembly.

DTK Cable

DTK (xover) — pins "cross over": alternating top-to-bottom on the DB-9

DB-9 IDC-10 Signal
Pin 1 Pin 1 CD
Pin 2 Pin 3 RxD
Pin 3 Pin 5 TxD
Pin 4 Pin 7 DTR
Pin 5 Pin 9 GND
Pin 6 Pin 2 DSR
Pin 7 Pin 4 RTS
Pin 8 Pin 6 CTS
Pin 9 Pin 8 RI

The header pinouts needing DTK look like this:

         Serial Port Pin Definitions
               (COM1, COM2)
Pin Number  Definition      Pin Number  Definition
   1          DCD              6          CTS
   2          DSR              7          DTR
   3          Serial In        8          RI
   4          RTS              9          Ground
   5          Serial Out       10         NC

Intel Cable

Intel (sthru) — pins are "straight through": 1-1, 2-2, …, 9-9

DB-9 IDC-10 Signal
Pin 1 Pin 1 CD
Pin 2 Pin 2 RxD
Pin 3 Pin 3 TxD
Pin 4 Pin 4 DTR
Pin 5 Pin 5 GND
Pin 6 Pin 6 DSR
Pin 7 Pin 7 RTS
Pin 8 Pin 8 CTS
Pin 9 Pin 9 RI

The header pinouts needing Intel look like this:

      Serial Port Pin Definitions
            (COM1/COM2)
Pin #  Definition      Pin #    Definition
 1      CD             6        DSR
 2      RD             7        RTS
 3      TD             8        CTS
 4      DTR            9        RI
 5      Ground         10       NC
Apr 102007

You can tell the kernel to reboot a Linux system without access to a filesystem (e.g. a frozen RAID controller) or the usual commands.

First saw this at:
http://blog.air4web.com/linux-force-reboot.html

Force hard reboot (no shutdown runlevel, no sync):

echo 1 > /proc/sys/kernel/sysrq ; echo b > /proc/sysrq-trigger

Force shutdown:

echo 1 > /proc/sys/kernel/sysrq ; echo o > /proc/sysrq-trigger
Nov 252006

Installing Type1 fonts:

cd /usr/share/fonts/Type1
cp *.{afm,pfb} .
/usr/local/bin/type1inst
/etc/rc.d/init.d/xfs reload

From the type1inst README:

type1inst lives on the Linux archive sunsite.unc.edu in
/pub/Linux/X11/xutils. Updates will be placed there as required.

Monospaced Fonts in Adobe Font Folio:

Courier                               *really nice*
  Adobe Type Basics Fonts/{cob,cobo,com,coo}*

Letter Gothic
  Adobe Font Folio Fonts/Letter Gothic/*

Lucida Sans Typewriter                *really nice*
  Adobe Font Folio Fonts/Lucida Sans Typewriter/*

Lucida Typewriter             *really nice*
  Adobe Font Folio Fonts/Lucida Typewriter/*

OCR
  Adobe Font Folio Fonts/OCRA, OCRB, MICR/

Orator
  Adobe Font Folio Fonts/Orator/

Prestige Elite
  Adobe Font Folio Fonts/Prestige Elite/
© 2012 blog.pletcher.net Suffusion WordPress theme by Sayontan Sinha