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