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
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
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"
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:
Another, older version of this approach I used to use:
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
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/
See http://tldp.org/HOWTO/Bootdisk-HOWTO/cd-roms.html
Copy the floppy files to $SRCDIR:
mount -t vfat -o ro /dev/fd0 /mnt/floppy cd $SRCDIR cp -p /mnt/floppy/* .
Copy the floppy image with:
dd if=/dev/fd0 of=boot/boot.img bs=10k count=144
Create CD image with:
mkisofs -r -b boot/boot.img -c boot/boot.catalog -o ../bootcd.iso .
Burn CD
Excellent step-by-step for FC4 is at: http://wilsonet.com/mythtv/fcmyth.php
Test System:
IMPORTANT: Set these video settings in BIOS:
| AGP Aperture: | 32 MB |
|---|---|
| Video Memory Size: | |
| 8 MB | |
to get better than VGA resolution (!)
OS Installation
Install FC4 per wilsonet.com step-by-step page above.
Boot installation CD with:
boot: linux jfs resolution=1024x768
Install type: Custom
Manually partition:
Partition Mount Point Size (MB) Format /dev/hda1 /boot 102 ext3 /dev/hda3 swap 1028 swap /dev/hda2 / 10237 ext3 /dev/hda5 /video 64950 jfs (rest of disk)
Other Settings:
Initial Setup
Create system user peterp at prompts
/usr/sbin/useradd mythtv # creates w/ uid 501, gid 501
Set up local yum repository and copy over /etc/hosts file to resolve yum hostname
/etc/yum.repos.d/fedora.repo:
[base] name=Fedora Core $releasever - $basearch - Base #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/ #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever baseurl=http://yum/fedora/$releasever/$basearch/base/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
fedora-updates.repo and fedora-extras.repo use /$basearch/{updates,extras}/
in the baseurl (copy them from original files too)
Update all with:
# yum update yum [ accept importing GPG key ] # yum upgrade [ update 280 and install 9 packages ]
Then reboot.
MythTV
Note: version 19 had major video rebuffering problems, try version 18.1
X Setup
Tricky X setup for i845 motherboard chipset:
In /etc/X11/xorg.conf:
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "LCD Panel 800x600"
HorizSync 31.5 - 37.9
VertRefresh 40.0 - 70.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "i810"
VendorName "Videocard vendor"
BoardName "i810 driver"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection
hotplug and automount
from the gtkpod README:
You need to install the following external packages:
Write rules for udev to recognize your iPod automatically
(mind the spaces within "iPod…"):
/etc/udev/rules.d/10-ipod.rules:
#
# udev rules for ipod
#
BUS="scsi", SYSFS{model}="iPod ", KERNEL="sd?2", NAME="%k", SYMLINK="ipod"
This will map /dev/sd?2 to /dev/ipod everytime you plug in your iPod.
Set up autofs to automatically mount the iPod when you access it
and unmount it after 2 seconds of inactivity.
In /etc/auto.master add:
# automount for removable devices: /var/autofs/removable /etc/auto.removable --timeout=2,user,sync,nodev,nosuid,gid=peterp,umask=007
Adjust the gid, umask (and uid) values to whatever you need — in this
example all users in the group "peterp" have read/write access.
In /etc/auto.removable add:
ipod -fstype=vfat :/dev/ipod
Then simply add a link from /mnt/ipod:
ln -s /var/autofs/removable/ipod /mnt/ipod
Now accessing the /mnt/ipod link will automount the iPod drive.
gnupod
I used these FC3 packages for gtkpod and faad2 (for libmp4v2):
Make a backup of the iPod iTunesDB:
cp /mnt/ipod/iPod_Control/iTunes/iTunesDB ~/.gtkpod/iTunesDB.orig.bak
Under Linux:
Making ISO image:
% mkisofs -R -o cdroot.iso $CDROOT
Burning ISO image:
% cdrecord -v speed=1 dev=/dev/cdwriter -data cdroot.iso
Checking out ISO image:
# mount -o loop -t iso9660 -r cdroot.iso /mnt
Update in 2006: Note that this has all become much easier with developments in hal and friends.
USB hotplug setup for flash memory storage devices, e.g. Photosmart 370 printer:
/etc/hotplug/usb.agent looks in usb.usermap to find entries for a device.
Add to usb.usermap:
usb-storage 0x0003 0x03F0 0x1302 0x00 ... # ^ ^ ^ ^ #driver flags vendorid productid # [0x3==vendor&product]
In hotplug.functions load_drivers(), if the driver is usb-storage, it runs
/usr/sbin/updfstab to add an fstab entry for the new device.
To support updfstab, add to /etc/updfstab.conf:
device photoprinter {
symlink true
partition 1
match hd Photosmart
}
where:
|
photoprinter |
is the device name |
|
symlink true |
makes a link /dev/photoprinter -> /dev/sd?1 |
|
match hd |
"Photosmart" is a string to match in the hw description |
updfstab will add an fstab entry for the device with noauto,owner,kudzu
so the device owner can mount/unmount.
updfstab then runs {{{/sbin/pam_console_apply}}} to update device permissions for the console user.
Change /etc/security/console.perms:
<flash>=/mnt/flash* \
/dev/photoprinter
<console> 0600 <flash> 0660 root.disk
to add /dev/photoprinter to <flash> devices and set permissions.
Note that pam_console_apply will follow the /dev/photoprinter symlink
when setting permissions, so the console user (now the owner) can
mount and unmount the device.