Using Odvr for Olympus Digital Voice Recorder (VN-960PC)

First install libsndfile-devel
#  yum install libsndfile-devel


Compile and install:
 odvr-0.1.5 $ sudo make install
Making odvr_icons.h
gcc -g -O2 -Wall `pkg-config gtk+-2.0 --cflags` -c -o odvr_icons.o odvr_icons.c
gcc -g -O2 -Wall `pkg-config gtk+-2.0 --cflags` -c -o gui.o gui.c
gcc -g -O2 -Wall `pkg-config gtk+-2.0 --cflags` -c -o odvr_gui.o odvr_gui.c
gcc -g -O2 -Wall `pkg-config gtk+-2.0 --cflags` -c -o odvr_date.o odvr_date.c
gcc -g -O2 -Wall `pkg-config gtk+-2.0 --cflags` -c -o odvr_cfg.o odvr_cfg.c
gcc -g -O2 -Wall `pkg-config gtk+-2.0 --cflags` -o odvr-gui odvr_icons.o gui.o odvr_gui.o odvr_date.o odvr_cfg.o olympusdvr.o -lusb -lsndfile -lm `pkg-config gtk+-2.0 --libs`
install -o root -g root -m 755 odvr /usr/local/bin
install -o root -g root -m 755 odvr-gui /usr/local/bin


copy 41-odvr.rules to/etc/udev/rules.d/ and modify (for Fedora)...
$ cat /etc/udev/rules.d/41-odvr.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="07b4", ATTR{idProduct}=="020d", ACTION=="add", GROUP="audio", MODE="0664"


add the 'user' to audio group; then log out and log in to make it effective
usermod -a -G audio user


useful commands:
lsusb
ls -l /dev/bus/usb/002
odvr -l
odvr-gui

Perl one liner to delete or replace a line in a file

Delete a matching line from a file:
perl -ni -e 'print unless /pattern/' filename


Replace a matching pattern to another:
perl -pi -e "s/matchingpattern/newpattern/" filename


Remove duplicate lines:
 perl -i -ne 'print unless $seen{$_}++' filename 


Perl options:
-n: while (<>) { ... # your script}
-p: while (<>) { ... # your script } continue { print or die "-p destination: $!\n";}
-i: in place

Fedora 14

I have recently upgraded my computers to Fedora 14, so far it seems to be more responsive than the previous version. Especially compare to Fedora 12, which after using a couple of days it become really slow.

WPC 11 under Fedora 13 with hostap_cs

$ /sbin/lspcmcia
Socket 0 Bridge: [yenta_cardbus] (bus ID: 0000:02:01.0)
Socket 0 Device 0: [hostap_cs] (bus ID: 0.0)
Socket 1 Bridge: [yenta_cardbus] (bus ID: 0000:02:01.1)

$ lsmod
Module Size Used by
fuse 47899 3
arc4 1077 2
ecb 1567 2
lib80211_crypt_wep 2351 1
sit 8025 0
tunnel4 1955 1 sit
sunrpc 163565 1
i8k 4320 0
ip6t_REJECT 3310 2
nf_conntrack_ipv6 14223 2
ip6table_filter 1199 1
ip6_tables 9774 1 ip6table_filter
ipv6 221598 33 sit,ip6t_REJECT,nf_conntrack_ipv6
uinput 5287 0
snd_intel8x0 23080 2
snd_intel8x0m 9459 0
snd_ac97_codec 89423 2 snd_intel8x0,snd_intel8x0m
ac97_bus 906 1 snd_ac97_codec
nvidia 4695082 22
snd_seq 42775 0
snd_seq_device 5035 1 snd_seq
snd_pcm 62185 3 snd_intel8x0,snd_intel8x0m,snd_ac97_codec
snd_timer 15391 2 snd_seq,snd_pcm
hostap_cs 40366 3
snd 46603 11 snd_intel8x0,snd_intel8x0m,snd_ac97_codec,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 4934 1 snd
hostap 80533 1 hostap_cs
snd_page_alloc 6097 3 snd_intel8x0,snd_intel8x0m,snd_pcm
3c59x 36801 0
lib80211 4066 3 lib80211_crypt_wep,hostap_cs,hostap
mii 3514 1 3c59x
i2c_core 20553 1 nvidia
dcdbas 6544 0
video 17713 0
output 1605 1 video
yenta_socket 20247 0
rsrc_nonstatic 8752 1 yenta_socket

WPC 11 under Fedora 13 with orinoco_cs


$ lsmod
Module Size Used by
fuse 47899 3
sit 8025 0
tunnel4 1955 1 sit
sunrpc 163565 1
i8k 4320 0
ip6t_REJECT 3310 2
nf_conntrack_ipv6 14223 2
ip6table_filter 1199 1
ip6_tables 9774 1 ip6table_filter
ipv6 221598 33 sit,ip6t_REJECT,nf_conntrack_ipv6
uinput 5287 0
snd_intel8x0m 9459 0
snd_intel8x0 23080 2
snd_ac97_codec 89423 2 snd_intel8x0m,snd_intel8x0
ac97_bus 906 1 snd_ac97_codec
snd_seq 42775 0
snd_seq_device 5035 1 snd_seq
orinoco_cs 8028 1
orinoco 54963 1 orinoco_cs
snd_pcm 62185 3 snd_intel8x0m,snd_intel8x0,snd_ac97_codec
cfg80211 110977 1 orinoco
nvidia 4695082 22
snd_timer 15391 2 snd_seq,snd_pcm
3c59x 36801 0
snd 46603 11 snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_seq,snd_seq_device,snd_pcm,snd_timer
dcdbas 6544 0
rfkill 13433 2 cfg80211
i2c_core 20553 1 nvidia
mii 3514 1 3c59x
soundcore 4934 1 snd
snd_page_alloc 6097 3 snd_intel8x0m,snd_intel8x0,snd_pcm
yenta_socket 20247 0
rsrc_nonstatic 8752 1 yenta_socket
video 17713 0
output 1605 1 video

Configure Network Printer

system-config-printer
localhost:631

Firefox Loads Some Sites Very Slow

It happens on Fedora 12 and Fedora 13 with both Firefox and Seamonkey. It turns out it is not a Firefox problem but a problem related to tcp_window_scaling. See the page http://linux.derkeiler.com/Mailing-Lists/Fedora/2010-02/msg00660.html.

To disable it

echo 0 > /proc/sys/net/ipv4/tcp_window_scaling


Permanently

# echo '"# Disable TCP window scaling" > sysctl.conf'
# echo '"net.ipv4.tcp_window_scaling=0" >> sysctl.conf'


Also see http://www.ecr6.ohio-state.edu/window-scaling.html.

Firefox Blurry Image with Zoom

To fix the problem, View->Zoom->Zoom Text only.

Ctrl-0 to reset zoom.

web fonts

These packages include popular fonts as Arial, Times New Roman, Tahoma, Verdana, as well as new Windows Vista and MS Office 2007 fonts. Learn more.

bash$ sudo rpm -Uvh \
http://avi.alkalay.net/software/webcore-fonts/webcore-fonts-3.0-1.noarch.rpm \

http://avi.alkalay.net/software/webcore-fonts/webcore-fonts-vista-3.0-1.noarch.rpm

IP Aliasing (eth0:1)

IP aliasing like eth0:1 is a legacy mechanism for creating secondary IP address on an interface. Network Manager does not really support it. Alternatively, to add a second IP to an interface, add IPADDR2, PREFIX2 and NETMASK2 in ifcfg-eth0 file.

However, the second ip address is not displayed in "ifconfig". To show the ip address, use "ip addr show command":

# ip addr show
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:0c:29:3a:e6:7d brd ff:ff:ff:ff:ff:ff
inet 192.168.10.128/24 brd 192.168.10.255 scope global eth0
inet6 fe80::20c:29ff:fe3a:e67d/64 scope link
valid_lft forever preferred_lft forever
3: eth1: mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:0c:29:3a:e6:87 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.99/24 brd 192.168.1.255 scope global eth1
inet 10.4.44.128/24 brd 10.4.44.255 scope global eth1
inet6 fe80::20c:29ff:fe3a:e687/64 scope link
valid_lft forever preferred_lft forever

FC12: e2fsck: no such file or directory on boot

After upgraded to FC11 to FC12, entries like /dev/sda in fstab sometimes is not mounted properly. Had to use labels in order to mount properly. Since I have two disks, sometimes sda is first disk and other time is the second disk.