Linux Notes

TechNotes - LinuxErrors - LinuxKeyCommands - LinuxHardwareSupport

Links

http://rpm.pbone.net
http://cvs.pld-linux.org/cgi-bin/cvsweb/SPECS/

http://www.embeddedlinuxinterfacing.com
http://kernel.org

ANSI Escape Sequences
http://www.catalyst.com/support/help/cstools3/library/terminal/sequences.html
http://adm.lacitec.on.ca/~ymicha/mcours/micro1/escape.html


burn linux cd

#!/bin/sh
# Convert files containing spaces to underscores
for i in *.mp3; do mv "$i" `echo $i | tr ' ' '_'`; done
# Convert MP3s to WAV files
for i in *.mp3; do mpg123 -w `basename $i .mp3`.wav $i; done
# Burn the CD
cdrecord dev=0,0,0 -eject speed=48 -pad -audio *.wav

zsh

http://mundy.yazzy.org/unix/zsh.php

samba

using Samba 3 as a primary domain controller tutorial http://hr.uoregon.edu/davidrl/samba/pdc.html
http://www.chinalinuxpub.com/doc/www.siliconvalleyccie.com/linux-hn/samba.htm

rpm

rpm2cpio rpmname.rpm | cpio -iv --make-directories

PLD RPM-build setup

mkdir -p ~/rpm/{SPECS,SOURCES,BUILD,RPMS,SRPMS}
mkdir ~/rpm/{SPECS,SOURCES}/CVS
echo ':pserver:cvs@cvs.pld-linux.org:/cvsroot' > ~/rpm/SPECS/CVS/Root
echo ':pserver:cvs@cvs.pld-linux.org:/cvsroot' > ~/rpm/SOURCES/CVS/Root
touch ~/rpm/{SPECS,SOURCES}/CVS/Entries
echo 'SPECS' > ~/rpm/SPECS/CVS/Repository
echo 'SOURCES' > ~/rpm/SOURCES/CVS/Repository
poldek -i cvs rpm-build
cd ~/rpm/SPECS
cvs up builder

command reference

screen capture: $ xwd
mpeg/dvd: $ mplayer -zoom dvd://1

keyboard

EnableNumLock

http://c2.com/cgi/wiki?RemapCapsLock

/usr/share/keymaps/i386/qwerty/defkeymap.map.gz

keycode 58 = Control

~/.xmodmaprc

remove Lock = Caps_Lock

To turn off error beep in shell, run $ echo -e "\e[11;0]"

mutt

http://www.mutt.org/doc/manual/manual.html

the function toggle-read that appeared in mutt 1.4 but went away in newer versions can be accomplished using the limit command. The macro

macro index t "l~N"

will hide all unread messages.

howtos

http://www.asdf.ws/texts/ppphowto.txt
http://www.collaborium.org/onsite/venezuela/docs/linux/Linux_Mini-HOWTOS/HTML/FDU.html

PLD rpm sources

PldMirror

share history in zsh

precmd() {
    fc -AI ~$USER/.history;	# Append latest commands
    fc -R ~$USER/.history;	# Read changes from all zsh's
}