root@morpheus:~# uname -a
Linux morpheus 2.6.33.6 #1 PREEMPT Tue Feb 8 03:18:41 EST 2011 armv5tel GNU/Linux
root@morpheus:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
root@morpheus:~# lshw
morpheus
description: Computer
width: 32 bits
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 501MiB
*-cpu
physical id: 1
bus info: cpu@0
*-scsi
physical id: 2
bus info: usb@1:1.1
logical name: scsi0
capabilities: emulated
*-disk:0
description: SCSI Disk
product: STORAGE DEVICE
vendor: Generic
physical id: 0.0.0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: 9910
size: 1886MiB (1977MB)
capabilities: removable
*-medium
physical id: 0
logical name: /dev/sda
size: 1886MiB (1977MB)
capabilities: partitioned partitioned:dos
*-volume:0
description: Windows FAT volume
vendor: mkdosfs
physical id: 1
logical name: /dev/sda1
version: FAT16
serial: 020d-9082
size: 1885MiB
capabilities: primary fat initialized
configuration: FATs=2 filesystem=fat label=dream_kr
*-volume:1
description: EXT3 volume
vendor: Linux
physical id: 2
logical name: /dev/sda2
version: 1.0
serial: cc90c161-81e2-4434-b39f-e61c8de21c6a
size: 1783MiB
capacity: 1783MiB
capabilities: primary journaled extended_attributes large_files recover ext3 ext2 initialized
configuration: created=2011-02-23 08:07:06 filesystem=ext3 label=dream_fs modified=2011-04-19 15:44:26 mounted=2011-04-19 15:44:26 state=clean
*-disk:1
description: SCSI Disk
product: STORAGE DEVICE
vendor: Generic
physical id: 0.0.1
bus info: scsi@0:0.0.1
logical name: /dev/sdb
version: 9910
capabilities: removable
*-medium
physical id: 0
logical name: /dev/sdb
*-network:0
description: Ethernet interface
physical id: 1
logical name: eth0
serial: f0:ad:4e:00:71:ec
size: 10MB/s
capacity: 1GB/s
capabilities: ethernet physical tp aui bnc mii fibre 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=mv643xx_eth driverversion=1.4 duplex=half firmware=N/A link=no multicast=yes port=MII speed=10MB/s
*-network:1
description: Ethernet interface
physical id: 2
logical name: eth1
serial: f0:ad:4e:00:71:ed
size: 100MB/s
capacity: 1GB/s
capabilities: ethernet physical tp aui bnc mii fibre 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=mv643xx_eth driverversion=1.4 duplex=full firmware=N/A ip=192.168.1.231 link=yes multicast=yes port=MII speed=100MB/s
*-network:2
description: Ethernet interface
physical id: 3
logical name: uap0
serial: 00:24:23:33:eb:4c
capabilities: ethernet physical
configuration: broadcast=yes ip=192.168.3.1 multicast=yes
*-network:3 DISABLED
description: Ethernet interface
physical id: 4
logical name: pan0
serial: 92:53:b4:db:b1:5b
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Tuesday, April 19, 2011
DreamPlug: misc info
Someone asked for more info about the hw/sw as shipped with the DreamPlug:
Thursday, April 14, 2011
DreamPlug: motion activated webcam
The webcam tool '
Do this:
After a while of it running, you don't need the browser to be on the page, take a look in /tmp/motion to find all the JPG images and SWF 'movie' files. Eventually I'll probably change the directory to live on one of the USB disks...
motion' is pretty nice, but it needs some tweaks to the base Ubuntu/Jaunty running the DreamPlug.Do this:
- Enable the motion daemon.
sudo emacs /etc/default/motionand setstart_motion_daemon=yes - Allow for non-localhost access to the web interfaces.
sudo emacs /etc/motion/motion.confand change the lines to match:webcam_localhost offandcontrol_localhost off - Create the default directory to hold the jpg and swf files.
sudo mkdir /tmp/motion && sudo chown motion.motion /tmp/motion - Restart the motion daemon.
sudo /etc/init.d/motion restart - Fire up a browser and point it to the DreamPlug's port 8080 (say
http://morpheus.local:8080) and then follow the link toconfigthenlist. From there you'll probably need to setauto_brightnesstoon. - Now look at the video on port 8081 (say
http://morpheus.local:8081)
After a while of it running, you don't need the browser to be on the page, take a look in /tmp/motion to find all the JPG images and SWF 'movie' files. Eventually I'll probably change the directory to live on one of the USB disks...
Wednesday, April 13, 2011
dreamplug
My Dreamplug from Globalscale Technologies finally arrived yesterday and I'm just getting around to dig into it.
Things I've noticed:
14-Apr 10:50am Update: DreamPlug discussion on reddit submitted by sub2k1
Things I've noticed:
- Shipped with Ubuntu/Jaunty preinstalled. Root password: nosoup4u
- kernel:
Linux ubuntu 2.6.33.6 #1 PREEMPT Tue Feb 8 03:18:41 EST
2011 armv5tel GNU/Linux - Misc system info: /proc/meminfo,/proc/cpuinfo, dmesg and lsmod
- Only port open is ssh
- The dreamplug starts up as an open wifi access point that will route through either eth0 of the wired network or a ppp0 device. It is named DreamPlug-uAP-{last two octects of the uap0 MAC address} ie: DreamPlug-uAP-eb4c
- /etc/rc.local runs a script in ~root/init_setup.sh(!) It sets up the wifi as an access point, configures iptables for ip masquerade/ip forwarding, enables bluetooth and plays with the LED light brightness. See: init_setup.sh
- They didn't clean up .history -- lots of interesting stuff in there! Grab a copy before you do any commands as root. I lost the first 34 commands and curious what else they were doing. See: history.txt
Some commands they used and places to check for changes from default values:
- uaputl sys_config
- cp -rf /mnt/uaputl /usr/bin/uaputl
- vi /sbin/wlan.sh
- vi /etc/usbmount/usbmount.conf
- mocp /media/usb1/EyesOnMe.mp3 (someone's favorite song, it gets played a number of times)
- vi /etc/modprobe.d/blacklist-framebuffer.conf
- vi /etc/modprobe.d/alsa-base.conf
- cat /proc/asound/card0/codec
- cat /proc/asound/card0/usbbus
- cat /proc/asound/card0/usbid
- cat /proc/asound/card0/pcm0p/info
- vi /etc/ld.so.conf.d/libasound2.conf
- vi /etc/java-6-openjdk/sound.properties
- speaker-test
- vi /etc/mke2fs.conf +5
- vi /etc/asound.conf
- arecord -f dat -D hw:3,0 -d 30 foo.wav
- arecord -f dat -D hw:0 -d 30 foo.wav
- arecord -f dat -D hw:1,0 -d 30 foo.wav
- cat /proc/asound/cards
- arecord -l
- vi /etc/asound.conf
- mocp BuzzingBee.wav
- mv /etc/asound.conf /etc/asound1.conf
- vi /etc/modprobe.conf
- sudo apt-get install snd_pcm_dmix
- vi /etc/asound1.conf
- cp -rf /etc/asound1.conf /etc/asound.conf
- play /home/havana.wav
- vi /etc/udhcpd.conf- There are two kernel modules (mcypt.ko & sd8xxx.ko) sitting in ~root/ On how to use them (not that I've tried yet), try here on openplug.org. See: mcypt.ko and sd8xxx.ko
- Packages installed by default: dpkg.txt
- Things to do:
-apt-get update && apt-get upgrade(carefully don't trash possibly changed config files)- install emacs (sudo apt-get install emacs)- change password- create user accounts- add users to sudousers (visudo)- install ssh keys (ssh-copy-id user@ubuntu.local)- change the hostname from ubuntu.local to morpheus.local (to go with my SheevaPlug named lordshiva.local) (edit /etc/hostname and /etc/hosts)
- play with USB webcam & motion
- setup ftp/nfs for local file sharing
- carefully consider upgrading to more recent versions
- look at using as a wifi client
- try pairing bluetooth headset
- try pairing android phone -- file transfers? remote control?
- install cups
- install gnump3d (needs make)
- install munin to monitor performance (is this going to kill my
internal sd storage?)
14-Apr 10:50am Update: DreamPlug discussion on reddit submitted by sub2k1
Friday, March 12, 2010
hp2133 netbook running Ubuntu
Okay it was getting late and took a lazy photo with my droid...
Labels:
dailyshoot,
hp2133,
photos,
ubuntu
Tuesday, February 16, 2010
Ubuntu/lucid on hp2133
Tonight I wiped my hp2133 running Ubuntu/karmic and installed lucid.
The only pain was of course getting the wireless card to work. That simply meant getting the Broadcom firmware into /lib/firmware/b43
The instructutions on http://wireless.kernel.org/en/users/Drivers/b43 were right on. You will need to build b43-fwcutter from source pulled from the git repo, but the commands are provided.
The only pain was of course getting the wireless card to work. That simply meant getting the Broadcom firmware into /lib/firmware/b43
The instructutions on http://wireless.kernel.org/en/users/Drivers/b43 were right on. You will need to build b43-fwcutter from source pulled from the git repo, but the commands are provided.
Sunday, May 17, 2009
SheevaPlug customizing pre-installed Ubuntu/Jaunty
Show-n-Tell day -- brining LordShiva to the MA offices.
mediawiki / mysql / apache2
text mode web browsers (elinks / links2)
lanmap
screen
Seems like a bunch of extra stuff... update-motd?
nfs
Installing NFS to hack around. Eventually storage on lordshiva will be via usb disks.
I made sure the nfs-kernel-server was also installed on where the disks were and added to
and ran
The on the SheevaPlug:
And updated
updating what munin monitors
Running the following commands will make some recommendations on additional things munin can monitor.
Just cut-n-paste the ones you want to enable into a root shell. Remember to restart the daemon too.
SheevaPlug as a mini-printserver
The pre-installed Ubuntu doesn't include any kernel modules, but thought I'd try using the SheevaPlug as a mini-print/scan server for my hp PSC 1510 All-in-One printer/scanner.
Install
Hmm, during the install I plugged in the printer and checked dmesg to see if it was recognized. The lanmap process appears to have had a problem allocating memory:
When I tried to killall lanmap, ssh sessions hung. I could get in via console still. The network seemed to be a bit wonky, so rebooted.
Hmm, scary kernel messsages
This is after the reboot and seems to be when
I've removed just hal,
Hmm, now it appears that the pre-install Ubuntu/Jaunty doesn't include any kernel loadablel modules for things like USB printers. Time to install stock Debian on this beastie.
mediawiki / mysql / apache2
root@LordShiva:~# sudo apt-get install mediawiki
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
mysql-server-core-5.0 php5 php5-cli php5-common php5-mysql psmisc ssl-cert
Suggested packages:
www-browser apache2-doc apache2-suexec apache2-suexec-custom ufw php-pear dbishell libipc-sharedcache-perl libcompress-zlib-perl php5-gd imagemagick
mediawiki-math memcached clamav mysql-doc-5.0 tinyca mailx
The following NEW packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient15off libnet-daemon-perl libplrpc-perl libpq5 libterm-readkey-perl mediawiki mysql-client-5.0 mysql-common mysql-server mysql-server-5.0
mysql-server-core-5.0 php5 php5-cli php5-common php5-mysql psmisc ssl-cert
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 53.6MB/53.6MB of archives.
After this operation, 166MB of additional disk space will be used.
Do you want to continue [Y/n]? text mode web browsers (elinks / links2)
root@LordShiva:~# apt-get install elinks links2
The following extra packages will be installed:
elinks-data libdirectfb-1.0-0 liblua50 liblualib50 libperl5.10 libpng12-0
libruby1.8 libsysfs2 libtiff4 libts-0.0-0
Suggested packages:
elinks-doc
The following NEW packages will be installed:
elinks elinks-data libdirectfb-1.0-0 liblua50 liblualib50 libperl5.10
libpng12-0 libruby1.8 libsysfs2 libtiff4 libts-0.0-0 links2
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 5104kB of archives.
After this operation, 15.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
lanmap
root@LordShiva:~# apt-get install lanmap
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
defoma fontconfig fontconfig-config graphviz libcairo2 libdatrie0
libfontconfig1 libfontenc1 libfreetype6 libgd2-noxpm libgraphviz4 libice6
libltdl7 libpango1.0-0 libpango1.0-common libpcap0.8 libpixman-1-0 libsm6
libthai-data libthai0 libxaw7 libxcb-render-util0 libxcb-render0 libxext6
libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu
ttf-dejavu-core ttf-dejavu-extra ttf-liberation x-ttcidfont-conf x11-common
xfonts-encodings xfonts-utils
Suggested packages:
defoma-doc psfontmgr dfontmgr libft-perl gsfonts graphviz-doc libgd-tools
ttf-japanese-gothic ttf-japanese-mincho ttf-thryomanes ttf-baekmuk
ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp
ttf-arphic-bkai00mp
The following NEW packages will be installed:
defoma fontconfig fontconfig-config graphviz lanmap libcairo2 libdatrie0
libfontconfig1 libfontenc1 libfreetype6 libgd2-noxpm libgraphviz4 libice6
libltdl7 libpango1.0-0 libpango1.0-common libpcap0.8 libpixman-1-0 libsm6
libthai-data libthai0 libxaw7 libxcb-render-util0 libxcb-render0 libxext6
libxfont1 libxft2 libxmu6 libxpm4 libxrender1 libxt6 ttf-dejavu
ttf-dejavu-core ttf-dejavu-extra ttf-liberation x-ttcidfont-conf x11-common
xfonts-encodings xfonts-utils
0 upgraded, 39 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.4MB of archives.
After this operation, 24.6MB of additional disk space will be used.
screen
marc@LordShiva:~$ sudo apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
gettext-base iso-codes python-apt python-central python-newt screen-profiles update-motd update-notifier-common
Suggested packages:
isoquery python-apt-dbg python-gtk2 python-vte python-newt-dbg screen-profiles-extras
The following NEW packages will be installed:
gettext-base iso-codes python-apt python-central python-newt screen screen-profiles update-motd update-notifier-common
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 2947kB of archives.
After this operation, 14.6MB of additional disk space will be used.Seems like a bunch of extra stuff... update-motd?
nfs
Installing NFS to hack around. Eventually storage on lordshiva will be via usb disks.
sudo root@LordShiva:~# sudo apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libevent1 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common portmap
The following NEW packages will be installed:
libevent1 libgssglue1 libnfsidmap2 librpcsecgss3 nfs-common
nfs-kernel-server portmap
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 503kB of archives.
After this operation, 1548kB of additional disk space will be used.
Do you want to continue [Y/n]?
I made sure the nfs-kernel-server was also installed on where the disks were and added to
/etc/exports something like:/home/Music lordshiva(ro,sync,no_subtree_check)and ran
sudo exportfs -avThe on the SheevaPlug:
sudo mkdir -p /nfs/Music
sudo mount homeserver:/home/Music /nfs/MusicAnd updated
/etc/gnump3/gnump3.conf to point to /nfs/Musicupdating what munin monitors
Running the following commands will make some recommendations on additional things munin can monitor.
# munin-node-configure --shell --families auto
# munin-node-configure --shell --families contrib
# munin-node-configure --shell --families manualJust cut-n-paste the ones you want to enable into a root shell. Remember to restart the daemon too.
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_offset /etc/munin/plugins/ntp_offset
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_ /etc/munin/plugins/ntp_europium_canonical_com
root@LordShiva:~# ln -s /usr/share/munin/plugins/ntp_states /etc/munin/plugins/ntp_states
root@LordShiva:~# ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_ssh
root@LordShiva:~# ln -s /usr/share/munin/plugins/port_ /etc/munin/plugins/port_www
root@LordShiva:~# /etc/init.d/munin-node restart
SheevaPlug as a mini-printserver
The pre-installed Ubuntu doesn't include any kernel modules, but thought I'd try using the SheevaPlug as a mini-print/scan server for my hp PSC 1510 All-in-One printer/scanner.
Install
cups which pulls in a ton of other packages as well as the open source print management tools from Hewlett-Packard, hpliproot@LordShiva:~# apt-get install cups hplip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
acl avahi-utils bc cups-client cups-common cupsddk cupsddk-drivers foomatic-db foomatic-db-engine foomatic-filters ghostscript gsfonts hal hal-info hdparm hpijs
hplip-data libavahi-client3 libavahi-compat-libdnssd1 libcupsimage2 libexif12 libffi5 libgphoto2-2 libgphoto2-port0 libgs8 libhal-storage1 libhal1 libieee1284-3
libijs-0.35 libpaper-utils libpaper1 libpci3 libpciaccess0 libpolkit-dbus2 libpolkit-grant2 libpoppler4 libsane libsensors3 libslp1 libsnmp-base libsnmp15
pciutils pm-utils policykit poppler-utils powermgmt-base psfontmgr python-dbus python-gobject python-imaging python-support radeontool sane-utils smartdimmer
smbclient ttf-freefont wget
Suggested packages:
cups-bsd cups-driver-gutenprint xpdf-korean xpdf-japanese xpdf-chinese-traditional xpdf-chinese-simplified cups-pdf kdeprint gtklp cups-pt xpp foomatic-db-hpijs
foomatic-db-gutenprint foo2zjs openprinting-ppds foomatic-gui ghostscript-x gnome-device-manager apmd hpijs-ppds hplip-doc hplip-gui gphoto2 gtkam hpoj
libsane-extras lm-sensors slpd openslp-doc cpufrequtils policykit-gnome python-dbus-doc python-dbus-dbg python-gobject-dbg python-imaging-doc python-imaging-dbg
unpaper smbfs
Recommended packages:
vbetool
The following NEW packages will be installed:
acl avahi-utils bc cups cups-client cups-common cupsddk cupsddk-drivers foomatic-db foomatic-db-engine foomatic-filters ghostscript gsfonts hal hal-info hdparm
hpijs hplip hplip-data libavahi-client3 libavahi-compat-libdnssd1 libcupsimage2 libexif12 libffi5 libgphoto2-2 libgphoto2-port0 libgs8 libhal-storage1 libhal1
libieee1284-3 libijs-0.35 libpaper-utils libpaper1 libpci3 libpciaccess0 libpolkit-dbus2 libpolkit-grant2 libpoppler4 libsane libsensors3 libslp1 libsnmp-base
libsnmp15 pciutils pm-utils policykit poppler-utils powermgmt-base psfontmgr python-dbus python-gobject python-imaging python-support radeontool sane-utils
smartdimmer smbclient ttf-freefont wget
0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.4MB of archives.
After this operation, 127MB of additional disk space will be used.
Do you want to continue [Y/n]?Hmm, during the install I plugged in the printer and checked dmesg to see if it was recognized. The lanmap process appears to have had a problem allocating memory:
lanmap: page allocation failure. order:5, mode:0xc0d0
[] (dump_stack+0x0/0x14) from [] (__alloc_pages+0x28c/0x2a0)
[] (__alloc_pages+0x0/0x2a0) from [] (__get_free_pages+0x28/0x5c)
[] (__get_free_pages+0x0/0x5c) from [] (packet_set_ring+0xc4/0x30c)
[] (packet_set_ring+0x0/0x30c) from [] (packet_setsockopt+0x34c/0x4b4)
[] (packet_setsockopt+0x0/0x4b4) from [] (sys_setsockopt+0x84/0xa8)
[] (sys_setsockopt+0x0/0xa8) from [] (ret_fast_syscall+0x0/0x2c)
r8:c0027628 r7:00000126 r6:0004f978 r5:0000005c r4:00000010
Mem-info:
DMA per-cpu:
CPU 0: Hot: hi: 186, btch: 31 usd: 180 Cold: hi: 62, btch: 15 usd: 58
Active:54514 inactive:39796 dirty:0 writeback:0 unstable:0
free:26150 slab:6191 mapped:4044 pagetables:328 bounce:0
DMA free:104600kB min:2884kB low:3604kB high:4324kB active:218056kB inactive:159184kB present:520192kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0
DMA: 8554*4kB 4492*8kB 1155*16kB 399*32kB 48*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 104600kB
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap = 0kB
Total swap = 0kB
Free swap: 0kB
131072 pages of RAM
26907 free pages
2296 reserved pages
6165 slab pages
20272 pages shared
0 pages swap cached
device eth0 left promiscuous mode
When I tried to killall lanmap, ssh sessions hung. I could get in via console still. The network seemed to be a bit wonky, so rebooted.
Hmm, scary kernel messsages
This is after the reboot and seems to be when
hal is starting up on install. Install is slowing continuing.
Unable to handle kernel paging request at virtual address 1a364e25
pgd = c9e2c000
[1a364e25] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0 Not tainted (2.6.22.18 #1)
PC is at strnlen+0x20/0x34
LR is at vsnprintf+0x314/0x5b4
pc : [] lr : [] psr: a0000013
sp : ca99bdc0 ip : ca99bdd0 fp : ca99bdcc
r10: ffffffff r9 : ffffffff r8 : 00000000
r7 : ffffffff r6 : caa68041 r5 : 1a364e25 r4 : ca99be40
r3 : c00c8994 r2 : 1a364e25 r1 : fffffffe r0 : 1a364e25
Flags: NzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: 0005317f Table: 09e2c000 DAC: 00000015
Process udevadm (pid: 4301, stack limit = 0xca99a268)
Stack: (0xca99bdc0 to 0xca99c000)
bdc0: ca99be1c ca99bdd0 c02414f8 c0240218 c023db48 ca99bdec ca99bdfc ca99bdf0
bde0: c027369c 35597fbe caa68041 c00d321a ca99be44 00000014 00000041 d4502000
be00: caa68000 c03ed298 00000000 c03fc7a4 ca99be38 ca99be20 c0241864 c02411f4
be20: c03ed240 ca99be40 caa68000 ca99beec ca99be48 c026ef10 c024184c c00d3219
be40: 1a364e25 1a364e25 d4502000 00001000 d4502000 d450200c d4502020 d4502033
be60: 1a364e25 00000044 000280d0 c03f1574 00000000 00000000 ffffff9c c03f1574
be80: c08927e8 000080d0 c03f1570 ce818ac0 00000000 00000000 ca99beec ca99bea8
bea0: c01472ec c0146724 000280d0 00000010 c0581d00 ca99a000 40020000 4001f000
bec0: 00100073 ca9e82a0 c08927e8 c03ed240 ca9e82a0 c08927e8 c03ed240 ca9e82c0
bee0: ca99befc ca99bef0 c026e810 c026ee28 ca99bf44 ca99bf00 c019ca14 c026e7fc
bf00: ca99bf74 ca99bf10 c0153c60 ca99bf70 00001000 4001f000 00000000 d48a7700
bf20: 4001f000 ca99bf70 00001000 4001f000 ca99a000 00000000 ca99bf6c ca99bf48
bf40: c01625e8 c019c964 00000000 00000000 00000000 00000000 d48a7700 00001000
bf60: ca99bfa4 ca99bf70 c01629fc c0162540 00000000 00000000 00000022 00000000
bf80: ffffffff 2a024d18 2a024d18 000007ff 00000003 c0027628 00000000 ca99bfa8
bfa0: c0027480 c01629c8 2a024d18 2a024d18 00000007 4001f000 00001000 00000000
bfc0: 2a024d18 2a024d18 000007ff 00000003 bece6f0c 0000000a 4017f000 bece6f0c
bfe0: 40170000 bece6e68 400aab04 400fe3fc 60000010 00000007 00002031 00002431
Backtrace:
[] (strnlen+0x0/0x34) from [] (vsnprintf+0x314/0x5b4)
[] (vsnprintf+0x0/0x5b4) from [] (sprintf+0x2c/0x34)
[] (sprintf+0x0/0x34) from [] (show_uevent+0xf8/0x140)
r3:1a364e25 r2:1a364e25 r1:c00d3219
[] (show_uevent+0x0/0x140) from [] (dev_attr_show+0x24/0x28)
r7:ca9e82c0 r6:c03ed240 r5:c08927e8 r4:ca9e82a0
[] (dev_attr_show+0x0/0x28) from [] (sysfs_read_file+0xc0/0x130)
[] (sysfs_read_file+0x0/0x130) from [] (vfs_read+0xb8/0x148)
[] (vfs_read+0x0/0x148) from [] (sys_read+0x44/0x70)
r7:00001000 r6:d48a7700 r5:00000000 r4:00000000
[] (sys_read+0x0/0x70) from [] (ret_fast_syscall+0x0/0x2c)
r8:c0027628 r7:00000003 r6:000007ff r5:2a024d18 r4:2a024d18
Code: ea000000 e2800001 e2511001 3a000002 (e5d03000) I've removed just hal,
apt-get --purge remove halHmm, now it appears that the pre-install Ubuntu/Jaunty doesn't include any kernel loadablel modules for things like USB printers. Time to install stock Debian on this beastie.
Wednesday, June 4, 2008
hp 2133 update
I was going to use SLED10 for a while on my hp2133 mini-note, but getting updates is problamatic. If you call HP support within 30 days they will send you a SLED10 restore CD at no cost. This CD is one of those boot-and-wipes-the-disk variety, so be aware. This CD is different from the ISO you can download from HP (here).
First up -- installing Ubuntu/Hardy. On the boot prompt, you'll have to add

Next up -- Fedora 9. Again using an external CD, the install starts up well, but then soon fails when trying to locate the CD containing the install RPMs. I has been a while since I've used Red Hat on the desktop, so I'll give Fedora another try later. (And it will make the Red Hat folks at GNHLUG happy ;-)
Next up -- Ubuntu/Hardy Alternative Install CD. This version uses the tried-and-true debian install process and this time it works great!
With the stock Ubuntu/Hardy it finds and configures the wired network, graphics, audio (except the earphone jack), MMC disk. The Broadcom Wifi does not however and needs to use the ndiswrapper with firmware downloaded from the hp.com support site.
The post-install steps for Ubuntu/Hardy to get the WiFi working can be found on "WifiDocs/Driver/bcm43xx/Feisty No-Fluff".
For the hp 2133, the steps are:
The next post install step is to fix the audio driver. The sound card works okay, but doesn't turn off the speakers when a headphone is plugged in. The other great wiki page, https://wiki.ubuntu.com/LaptopTestingTeam/HP2133 has the solution. Essentially download and install alsa-driver-1.0.16_linux-headers-2.6.24-17-generic-1_i386.deb.
Why hasn't a fix been pushed into the repositories is unclear.
Although it may look like a lot of work, it wasn't that difficult. If you have problems, check back to the source wiki pages.
First up -- installing Ubuntu/Hardy. On the boot prompt, you'll have to add
xforcevesa or the video will flake out. Using an external USB CD/DVD drve, the standard Ubuntu CD boots and starts the install, but after resizing the SLED10 partition down to 10G, the install fails with the following message:Next up -- Fedora 9. Again using an external CD, the install starts up well, but then soon fails when trying to locate the CD containing the install RPMs. I has been a while since I've used Red Hat on the desktop, so I'll give Fedora another try later. (And it will make the Red Hat folks at GNHLUG happy ;-)
Next up -- Ubuntu/Hardy Alternative Install CD. This version uses the tried-and-true debian install process and this time it works great!
With the stock Ubuntu/Hardy it finds and configures the wired network, graphics, audio (except the earphone jack), MMC disk. The Broadcom Wifi does not however and needs to use the ndiswrapper with firmware downloaded from the hp.com support site.
The post-install steps for Ubuntu/Hardy to get the WiFi working can be found on "WifiDocs/Driver/bcm43xx/Feisty No-Fluff".
For the hp 2133, the steps are:
- I found on my Ubuntu/Hardy that the bcm43xx module was already on the blacklist so the first line wasn't necessary. See line 32 of /etc/modprobe.d/blacklist. You'll still need to install ndiswrapper-utils-1.9 and create a tmp directory to unpack the wireless firmware.
# NOT NEEDED echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist
sudo apt-get install ndiswrapper-utils-1.9
mkdir ~/bcm43xx; cd ~/bcm43xx - Since my hp 2133 has a Broadcom Corporation BCM4312 802.11a/b/g (rev 02), use Step 2a which downloads from Hewlett-Packard the Windows firmware for the Broadcom Corporation BCM4312 802.11a/b/g (rev 02)
sudo apt-get install cabextract
wget ftp://ftp.compaq.com/pub/softpaq/sp34001-34500/sp34152.exe
cabextract sp34152.exe - Step 3 is to install the firmware using ndiswrapper. My /etc/network/interfaces file already had an entry to the 'lo' device, so didn't need to do that. Also ran into problems trying to load the modules on boot, so I don't load ndiswrapper from /etc/modules. Also I didn't bother to edit /etc/default/wpasupplicant because on my home wireless network. I don't use authentication -- wireless access is locked down by MAC address at the wireless router.
sudo ndiswrapper -i bcmwl5.inf
ndiswrapper -l
sudo depmod -a
sudo modprobe ndiswrapper
#NOT NEEDED sudo cp /etc/network/interfaces /etc/network/interfaces.orig
#NOT NEEDED echo -e 'auto lo\niface lo inet loopback\n' | sudo tee /etc/network/interfaces
sudo ndiswrapper -m
#NOT NEEDED by me echo 'ndiswrapper' | sudo tee -a /etc/modules
#NOT NEEDED by me echo 'ENABLED=0' | sudo tee -a /etc/default/wpasupplicant
As the wiki page mentions, there is a bug in Ubuntu/Hardy related to the ndiswrapper and ssb loadable modules, so after every boot, I do the following steps which I put in a little script, enable-wifi
#!/bin/bash
# This is ~/bin/enable-wifi
ndiswrapper -l
sudo depmod -a
sudo modprobe ndiswrapper
sudo rmmod ssb
sudo rmmod ndiswrapper
sudo modprobe ndiswrapper
sudo modprobe ssb
After a few seconds the NetworkManager applet will start looking for wifi networks and automatically connect.
I've tried following the wiki's instructions on making it permanent, but found that there were nasty kernel messages about the ssb loadable module dying and preventing ndiswrapper from loading.
The next post install step is to fix the audio driver. The sound card works okay, but doesn't turn off the speakers when a headphone is plugged in. The other great wiki page, https://wiki.ubuntu.com/LaptopTestingTeam/HP2133 has the solution. Essentially download and install alsa-driver-1.0.16_linux-headers-2.6.24-17-generic-1_i386.deb.
Why hasn't a fix been pushed into the repositories is unclear.
sudo mv /lib/modules/2.6.24-17-generic/ubuntu/sound/alsa-driver \
/lib/modules/2.6.24-17-generic.ubuntu.sound.alsa-driver.bak
sudo ln -s /lib/modules/2.6.24-17-generic/kernel/sound/ \
/lib/modules/2.6.24-17-generic/ubuntu/sound/alsa-driver
Although it may look like a lot of work, it wasn't that difficult. If you have problems, check back to the source wiki pages.
Thursday, April 3, 2008
How to connect a Samsung Flipshot U900 to Ubuntu/Linux
First purchase a USB cable that works with the Samsung Flipshot U900 -- I ordered one from 3GCables.com for $8.95 (and $6.95 s/h)
The default setting for the phone was to ask how it should present itself when connected via USB. The options are "Ask on Plug", "Copy To/From Card", "Sync Music" or "Modem"
Since I'm always going to use it like a usb-storage device, I changed it to always use "Copy To/From Card".
Now you can copy files to /media/disk. My top level directory looks like this:
The default setting for the phone was to ask how it should present itself when connected via USB. The options are "Ask on Plug", "Copy To/From Card", "Sync Music" or "Modem"
Since I'm always going to use it like a usb-storage device, I changed it to always use "Copy To/From Card".
- 5. Settings & Tools
- 8. USB Auto Detection
- Change to "Copy From/To Card'.
Now you can copy files to /media/disk. My top level directory looks like this:
$ ls /media/disk/
my_files my_flix my_music my_pix my_sounds
Monday, June 18, 2007
USB to Serial Adapter for Ubuntu
I recently received an updated laptop at work -- a nice hp nc6400 notebook. Unlike the previous nc6000, this new on does not include a serial port which is problematic for the Garmin to serial cable I have. I ordered from CompUSA a USB to Serial Adapter by CablesToGo (model 26886) and it works great out of the box on Ubuntu/Feisty.
All I needed to change is the serial port to use, so:
gpsbabel -t -i garmin -f /dev/ttyS0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyS0 -o gpx -F waypoints.gpx
becomes:
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F waypoints.gpx
FWIW, it uses the pl2303 kernel module.
All I needed to change is the serial port to use, so:
gpsbabel -t -i garmin -f /dev/ttyS0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyS0 -o gpx -F waypoints.gpx
becomes:
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F waypoints.gpx
FWIW, it uses the pl2303 kernel module.
Saturday, April 28, 2007
gpicsync on Ubuntu/Feisty
GPicSync is a very nice cross-platform tool to match up photos with GPS locations. However it requires a package that isn't included by default by Ubuntu/Feisty.
1. Download GPicSync from http://code.google.com/p/gpicsync/
2. Unpack it:
3. Move to the directory it created:
4. Set the GUI and command line versions of the program executable:
5. Install the Ubuntu/Feisty package python-wxgtk2.8 which provides the python bindings for the wx library and the exiftool:
6. Run the program and start geotagging photos:
1. Download GPicSync from http://code.google.com/p/gpicsync/
2. Unpack it:
tar zxf Linux-GPicSync-0.91.tar.gz3. Move to the directory it created:
cd Linux-GPicSync-0.914. Set the GUI and command line versions of the program executable:
chmod +x gpicsync-GUI.py gpicsync.py5. Install the Ubuntu/Feisty package python-wxgtk2.8 which provides the python bindings for the wx library and the exiftool:
sudo apt-get install python-wxgtk2.8 libimage-exiftool-perl6. Run the program and start geotagging photos:
./gpicsync-GUI.py
Sunday, February 25, 2007
Convert audio from WMV files to MP3
A while back some radio station website or somewhere had a video in WMV of KT Tunstall performing Black Horse and the Cherry Tree and I wanted the music for a plane ride today.
Usually I'd use vsound, I've been able do save the audio track of a video in realplayer, but for some reason it wasn't working for gxine.
Anthony Barker's blog had the concise steps needed to use mplayer to grab the sound.
Usually I'd use vsound, I've been able do save the audio track of a video in realplayer, but for some reason it wasn't working for gxine.
Anthony Barker's blog had the concise steps needed to use mplayer to grab the sound.
mplayer -dumpfile outfile.dat -dumpstream some-video.wmv
mplayer -vo null -vc null -ao pcm -ao pcm:file=audio.wav outfile.dat
lame audio.wav audio.mp3
rm outfile.dat
Thursday, February 8, 2007
Building F-Spot from source on Ubuntu
The instructions How to Build F-Spot from HEAD are mostly correct for Ubuntu/Edgy and Ubuntu/Feisty, but leave out a number of packages that need to be installed before autogen.sh is run.
Be sure to also install the following packages:
And instead of
The offending line is:
Be sure to also install the following packages:
sudo apt-get install mono-devel \
libglib2.0-dev libmono-dev libmono-system-runtime2.0-cil \
libexif-dev libgnomeui-dev liblcms1-dev libgphoto2-2-dev \
libusb-devAnd instead of
make install, use make -k install since it will attempt to run scrollkeeper which attempts to update /var/lib/scrollkeeper/scrollkeeper_docs. The offending line is:
scrollkeeper-update -p /var/lib/scrollkeeper -o /home/marc/unstable/f-spot/share/omf/f-spot
Tuesday, January 23, 2007
Ubuntu/Edgy & Belkin Wireless G (F5D7000) ver 5000
The Belkin Wireless G PCI Card (F5D7000 v.5000) works great out of the box with Ubuntu/Edgy.
It uses that ath_pci kernel module and here is the relevant bit from /var/log/messages:
It uses that ath_pci kernel module and here is the relevant bit from /var/log/messages:
[17179594.568000] wlan: 0.8.6.0 (EXPERIMENTAL)
[17179594.576000] ath_rate_sample: 1.2
[17179594.596000] ath_pci: 0.9.6.0 (EXPERIMENTAL)
[17179594.600000] ACPI: PCI Interrupt 0000:02:0b.0[A] -> GSI 22 (level, low) -> IRQ 185
[17179595.180000] Build date: Jun 15 2006
[17179595.180000] Debugging version (IEEE80211)
[17179595.180000] ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[17179595.180000] ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[17179595.180000] ath0: H/W encryption support: WEP AES AES_CCM TKIP
[17179595.180000] ath0: mac 7.8 phy 4.5 radio 5.6
[17179595.180000] ath0: Use hw queue 1 for WME_AC_BE traffic
[17179595.180000] ath0: Use hw queue 0 for WME_AC_BK traffic
[17179595.180000] ath0: Use hw queue 2 for WME_AC_VI traffic
[17179595.180000] ath0: Use hw queue 3 for WME_AC_VO traffic
[17179595.180000] ath0: Use hw queue 8 for CAB traffic
[17179595.180000] ath0: Use hw queue 9 for beacons
[17179595.180000] Debugging version (ATH)
[17179595.180000] ath0: Atheros 5212: mem=0x41000000, irq=185
$ sudo lspci -vvx
....
0000:02:0b.0 Ethernet controller: Atheros Communications, Inc.: Unknown device 001a (rev 01)
Subsystem: Belkin: Unknown device 700c
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 0x08 (32 bytes)
Interrupt: pin A routed to IRQ 185
Region 0: Memory at 41000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 1a 00 06 01 90 02 01 00 00 02 08 a8 00 00
10: 00 00 00 41 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 99 17 0c 70
30: 00 00 00 00 44 00 00 00 00 00 00 00 05 01 0a 1c
Labels:
Belkin,
edgy,
ubuntu,
Wireless G
Saturday, January 20, 2007
Ubuntu/Edgy & Belkin Wireless G (F5D7010) ver 5100
The Belkin Wireless G Notebook Card (F5D7010) ver 5100 works great out of the box with Ubuntu/Edgy.
Unfortunately in the MythTV system I want it for has an old PCI/PCMCIA adapter that only accepts 16-bit PCMCIA cards, so this 32-bit one won't fit.
Below is some info that my help you debug your configuration:
It uses the ath_pci kernel module.
The relevant part of /var/log/messages:
Unfortunately in the MythTV system I want it for has an old PCI/PCMCIA adapter that only accepts 16-bit PCMCIA cards, so this 32-bit one won't fit.
Below is some info that my help you debug your configuration:
It uses the ath_pci kernel module.
$ lsmod|grep -i ath
ath_pci 97184 0
ath_rate_sample 15616 1 ath_pci
wlan 204764 4 wlan_scan_sta,ath_pci,ath_rate_sample
ath_hal 192080 3 ath_pci,ath_rate_sample
The relevant part of /var/log/messages:
Jan 23 20:54:31 localhost kernel: [17180392.280000] pccard: CardBus card inserted into slot 1
Jan 23 20:54:31 localhost kernel: [17180392.284000] PCI: Enabling device 0000:06:00.0 (0000 -> 0002)
Jan 23 20:54:31 localhost kernel: [17180392.284000] ACPI: PCI Interrupt 0000:06:00.0[A] -> Link [C17E] -> GSI 11 (level, low) -> IRQ 11
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: H/W encryption support: WEP AES AES_CCM TKIP
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: mac 7.8 phy 4.5 radio 5.6
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 1 for WME_AC_BE traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 0 for WME_AC_BK traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 2 for WME_AC_VI traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 3 for WME_AC_VO traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 8 for CAB traffic
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Use hw queue 9 for beacons
Jan 23 20:54:31 localhost kernel: [17180393.176000] wifi0: Atheros 5212: mem=0x16000000, irq=11
$ sudo lspci -vvx
...
06:00.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01)
Subsystem: Belkin Unknown device 701d
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 128 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 16000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
00: 8c 16 1a 00 06 00 90 02 01 00 00 02 20 a8 00 00
10: 00 00 00 16 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 01 50 00 00 99 17 1d 70
30: 00 00 00 00 44 00 00 00 00 00 00 00 0b 01 0a 1c
Labels:
Belkin,
edgy,
General,
ubuntu,
Wireless G
Friday, January 12, 2007
Seven and a half terabyte of storage?!
$ sudo sshfs marc@192.168.1.200:/home/marc -o allow_other /media/homeserver/home/marc
Password:
$ df -h /media/homeserver/home/marc/
Filesystem Size Used Avail Use% Mounted on
sshfs#marc@192.168.1.200:/home/marc
7.5T 0 7.5T 0% /media/homeserver/home/marc
$
Thursday, October 26, 2006
Most exciting upgrade to Ubuntu/Edgy
This morning I had a free hour and this is how I upgraded my hp compaq nc6000 laptop from Ubuntu/Dapper to Ubuntu/Edgy. After updating /etc/apt/sources.list to point to the edgy repos...
Well there was a conflict between x11-common and xinit which both wanted to provide the man page XSession.5.gz.
Around 3pm I worked through a few iterations of apt-get update, apt-get dist-upgrade, apt-get -f install, aptitude dist-upgrade, I have a fully upgraded from Ubuntu/Dapper to Ubuntu/Edgy.
There are a bunch of new, interesting packages to take a look out. The list is here: EdgyConfiguration
Now that was a stressful upgrade.
sudo apt-get update && sudo apt-get -dy dist-upgrade && sudo apt-get dist-upgradeWell there was a conflict between x11-common and xinit which both wanted to provide the man page XSession.5.gz.
11:45am Wendy calls me and says the school just called and Griffin is in a ambulance on the way to the hospital and to meet her there. He accidentally ate something that contained pineapple -- to which he has a severe allergic reactions to.
11:49 I'm on the road approaching the hospital and get a call on my cell phone. The woman says she is the school nurse and starts saying my son is having an allergic reaction. I interrupt her and say 'Yes, I just talked to my wife and I'll meet the ambulance at the hospital'. She says 'Well, your son is sitting here with me in my office.' Then we realize she is the school nurse from a different chool and is talking about Trevor who is having an allergic reaction! Trevor had his bee/wasp allergy shot earlier this morning and is reacting to that. Since he too was having difficulty breathing, he too is sent via ambulance to the ER.
12:05 -- Wendy and I both arrive at the ER before either of the kids do. Explain to the ER admitting person that yes both boys are ours, they are coming from different schools, with the same problem (allergic reaction, breathing difficulty), but different reasons (food allergy vs reaction to allergy desensitizing injection).
Long story short, after evaluation, some benedril and alburterol breathing treatments, we were sent home.
Around 3pm I worked through a few iterations of apt-get update, apt-get dist-upgrade, apt-get -f install, aptitude dist-upgrade, I have a fully upgraded from Ubuntu/Dapper to Ubuntu/Edgy.
There are a bunch of new, interesting packages to take a look out. The list is here: EdgyConfiguration
Now that was a stressful upgrade.
Tuesday, October 10, 2006
Converting Creative MuVo WAV to a 'real' WAV
I recently recorded an event using my little Creative MuVo TX FM mp3 player. It created a 22M WAV file of reasonable quality, but lame and audacity had problems converting it to an MP3 file.
The work around is to open the original wav file with audacity and then File->Export as WAV. The resulting wav file is about four times as large, but is in a usable format. From there use your favorite tools to create an OGG or MP3 file.
It appears the problem has to do with the way the MuVo encodes the wav:
The work around is to open the original wav file with audacity and then File->Export as WAV. The resulting wav file is about four times as large, but is in a usable format. From there use your favorite tools to create an OGG or MP3 file.
It appears the problem has to do with the way the MuVo encodes the wav:
VOC001-original.wav: RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono 8000 Hz
VOC001-clean.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz
Wednesday, September 13, 2006
Logitech USB headset & Ubuntu/Linux
My wife had an unused Logitech Stereo USB Headset 250 kicking around the house that I took into the office today. Joy of joys! Ubuntu/Dapper recognized it and both the headset *and* microphone work out of the box.
Just like Microsoft Windows ;-)
Just like Microsoft Windows ;-)
Friday, September 8, 2006
Democracyplayer on Ubuntu/Dapper
The good folks at GetDemocracyNow.com provide debian packages for Ubuntu/Dapper, but didn't get the dependencies quite right. After intalling the two democracyplayer packages from their Ubuntu download page, I needed to also install the following packages:
There is a ton of great content!
$ sudo apt-get install libboost-python1.33.1 libgtk-mozembed-ruby mozilla-psmThere is a ton of great content!
Sunday, July 2, 2006
Moving photos around behind f-spot's back
I've been using f-spot since it showed up in Ubuntu/Breezy and have been keeping all my photos in a directory structure like this:
But sometimes I've forgotten to unclick the "Copy file to the Photos folder" box in the photos import dialog and end up with photos under ~/Photos/. Recently I checked and found there were almost a gigabytes worth of photos under there.
So this is what I did to move them to under /PHOTOS/Photos/ and keep all the tags and metadata correct.
/PHOTOS/Photos/2006.06.30/
/PHOTOS/Photos/2006.07.01/
But sometimes I've forgotten to unclick the "Copy file to the Photos folder" box in the photos import dialog and end up with photos under ~/Photos/. Recently I checked and found there were almost a gigabytes worth of photos under there.
So this is what I did to move them to under /PHOTOS/Photos/ and keep all the tags and metadata correct.
- Back up /home and /PHOTOS to an external USB. I love rsnapshot.
$ rsnapshot daily - make an extra backup of the f-spot database
$ cp ~/.gnome2/f-spot/photos.db photos-backup.db - Start poking around the f-spot database and updating it.
$ sqlite3 ~/.gnome2/f-spot/photos.db
sqlite> .schema photos
CREATE TABLE photos ( id INTEGER PRIMARY KEY NOT NULL,
time INTEGER NOT NULL,
directory_path STRING NOT NULL,
name STRING NOT NULL,
description TEXT NOT NULL,
default_version_id INTEGER NOT NULL
); - See how many photos are in ~/Photos...
sqlite> select count(*) from photos where directory_path like '/home/marc/Photos/%';
260 - Take a look at a few of them to see the path names...
sqlite> select directory_path from photos where directory_path like '/home/marc/Photos/%' limit 0,10; - Update the pathname to my prefered one. I've added an 'a' to the end just so I won't overwrite an existing directory.
sqlite> update photos set directory_path = "/PHOTOS/Photos/2006.06.22a" where directory_path = "/home/marc/Photos/2006/6/22";
sqlite> .quit - Make the directory and move the files to the new location...
mkdir /PHOTOS/Photos/2006.06.22a
mv -v /home/marc/Photos/2006/6/22/HPIM117* /PHOTOS/Photos/2006.06.22a
Repeat for each directory. I did it all within emacs' shell so cut-n-paste made it a snap.
Subscribe to:
Posts (Atom)