Showing posts with label debian. Show all posts
Showing posts with label debian. Show all posts

Friday, June 26, 2009

SheevaPlug is now my main home server

I'm finally at the point where the little SheevaPlug can replace the aging Compaq DeskPro EN that has been our main home server.

Functions:


  • mail hub

  • network print server

  • scan server

  • mp3 file server

  • system monitor

  • proxy server



Here are the detailed steps needed to convert this $99 low power server into something useful:

Sunday, May 17, 2009

SheevaPlug customizing pre-installed Ubuntu/Jaunty

Show-n-Tell day -- brining LordShiva to the MA offices.

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 -av

The on the SheevaPlug:

sudo mkdir -p /nfs/Music
sudo mount homeserver:/home/Music /nfs/Music



And updated /etc/gnump3/gnump3.conf to point to /nfs/Music

updating 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 manual



Just 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, hplip

root@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 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.

Saturday, June 24, 2006

More on Dual Monitor with Ubuntu/Dapper

This is a follow on to last week's post about Dual Monitor on Ubuntu/Dapper

I've been using the xorg.conf-ati.20060621 configuration at work with two monitors, but when at home the laptop didn't degrade down to working with the one LCD monitor of the laptop. So, here is a new configuration that lets you switch between a single monitor mode (1024x768) or one large one (2048x768) that can be 'slid over to' by using the mouse. The key press is Control-Alt-+ (the + over on the side where the number entry is). On the laptop, it is Control-Alt-blue_Fn-?

Here the is xorg.conf file:

xorg.conf-ati-works-with-one-monitor.20060624

Wednesday, June 21, 2006

Dual Monitor on Ubuntu/Dapper

I've noticed a number of people asking about dual head support in dapper on #ubuntu, so here is my setup:

This hp/compaq nc6000 laptop/notebook that has an ATI card:


$ sudo lspci|grep VGA
0000:01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]


I have two head monitors working with both the 'ati' and the closed source 'fglrx' drivers.

Here are the configuration files:

  • xorg.conf-fglrx.20060621 -- works when booting without the second monitor


  • xorg.conf-ati.20060621 -- when booting with out the second monitor attached, it still thinks it is there. Some windows may pop up on the unreachable monitor.



  • Before you start hacking around with your xorg.conf, save a copy somewhere safe.

    Monday, May 23, 2005

    iPodder (v2.0rc3) on UbuntuLinux

    I usually run debian/sarge on my laptop, but tonight it is booted to Ubuntu 'Hoary Hedgehog' and wanted iPodder running in this environment too.

    The current 'released' version of iPodder today is v2.0rc3 for Linux.

    First off, go grab and install the the kit from http://ipodder.sourceforge.net/

    You'll need to use python2.3 instead of the default python which is v2.4. I already had it installed, but you many need to install it. Also the older version of the xmms python library needed to be installed, but the current version of libwxgtk2.5.3-python is needed.

    The commands to install those packages is:

    sudo apt-get install python2.3 python2.3-xmms libwxgtk2.5.3-python

    Finally the PYTHONPATH needs to be extended to pick up the wx 2.5.3 libraries.

    Either edit /usr/bin/iPodder to look like this, or just do it manually when you want to run iPodder:

    export PYTHONPATH=/usr/lib/python2.4/site-packages/wx-2.5.3-gtk2-unicode/:$PYTHONPATH-unicode:$PYTHONPATH
    cd /opt/iPodder
    python2.3 iPodderGui.py

    Enjoy!

    Friday, May 13, 2005

    fyi: straw database recovery

    This morning I accidentally double clicked on the straw RSS aggregator icon and two copies raced
    to see who could corrupt the app's database first.

    straw refused to start with this error:

    ItemStore.py:52:__init__: DB_RUNRECOVERY: Fatal error, run
    database recovery - - PANIC: Invalid argument
    Recovery Error: See README for details on how to recover data.

    And the straw README says to do this:

    $ db_recover -h $HOME/.straw -c -v
    $ db_checkpoint -1 -v

    Fair enough, but I don't have those scripts installed db\_recover or db\_checkpoint. It turns out that they are in the libdb2-util package. (apt-get install libdb2-util)

    Fortunately the recovery processed work fine.

    Tuesday, January 4, 2005

    Getting the bleeding edge iPodder on Linux (debian/sarge) mini-HOWTO

    Lately, I've been using the bleeding edge version of iPodder from CVS (which confusingly is in the
    iSpider directory) Here is how you can grab a copy for yourself:

    $ cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ipodder login
    CVS password: (press return)

    $ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ipodder co iSpider

    [tons of informational messages about downloading iSpider]

    $ cd iSpider
    $ export PYTHONPATH=/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode:$PYTHONPATH-unicode:$PYTHONPATH
    $ python iPodderGui.pyw

    ... And fire up your favorite dev tools!

    iPodder GUI on Linux (debian/sarge) mini-HOWTO

    I've been using the ipodder beta on
    my laptop that runs GNU/Linux Debian/Sarge in the command line only mode. But over the holidays there was and update to wxpython that gets the GUI working.

    This is what you need to do:

    $ alien --to-deb ipodder-1.1.2-1cl.noarch.rpm
    $ sudo dpkg -i ipodder_1.1.2-2_all.deb
    $ export PYTHONPATH=/usr/lib/python2.3/site-packages/wx-2.5.3-gtk2-unicode:$PYTHONPATH-unicode:$PYTHONPATH
    $ /opt/iPodder/iPodderGui.py

    and enjoy...

    Tuesday, October 26, 2004

    Creating an audio blog reply using Festival

    I listened to Dave Winer's Coffee Notes for 24-Oct-2004 podcast on the way home tonight and felt compelled to reply to him with an audio reply email about Richard Scoble/Scooble's voice mail. Here is how I created it.

    * Get the Festival Speech Synthesis package for your Debian GNU/Linux box


    $ sudo apt-get install festival

    [...bunch of status about installing a festival and dependancies removed...]
    $


    * Create a snappy reply. I like emacs. This is exactly what hi-dave.txt looks like:

    Hi Dave!

    This is Marc No-zell and I just listened to your Coffee Talk with
    Richard Scoble. It sounds like Microsoft's voice mail system is using
    a descendant of the DECK-talk system that was created by DECK in the
    1980s.

    I'm creating this audio reply using the Festival Speech Synthesis
    System on my Deb-ian GNU Linux laptop. Neener, neener, neener!

    Well, thanks for the Coffee Notes!

    Now I did do a little cheating here. Festival follows strict pronunciation rules and sometimes gets words wrong. For example my surname would be said as 'nozzel', so I spell it how I want it to sound. The same is true for DECtalk and DEC, which sounds like 'dec-tork' and 'december' (trying to be a little too clever ;-)

    * Convert from text to wave format:


    $ text2wave hi-dave.txt -o hi-dave.wav


    * Convert from wav to mp3 format


    $ lame hi-dave.wav hi-dave.mp3



    * Listen to the result:


    $ xmms hi-dave.mp3

    Friday, October 22, 2004

    Installing ubuntu 4.10 on an Compaq Armada m700 laptop

    In addition to a work-provided nc6000, I also have personal Compaq Armada M700 and gave ubuntu 4.10 a install this evening.

    Absolutely no problem installing or having X properly configured! One nice touch is the installer found the Orinoco wireless PCMCIA card and configured it so the network was available immediately on boot.

    Installing ubuntu 4.10 on an HP/Compaq nc6000 laptop

    Here are my notes on install ubuntu 1.0 on an HP/Compaq nc6000 laptop.

    Used warty-install-release-i386.iso downloaded on 21-Oct-2004. (md5sum a491903a2d2197651864dec3836d85e0)

    The laptop has currently installed WinXP (hda1), Debian/Sarge (hda7) and now ubuntu (hda6).

    Booted the laptop while in the docking bay and started install. Complained that it couldn't find a NIC, I told it to continue and not to use a static IP address.

    The nc6000 has:

    * Pentium M (should do power management, but stock debian kernels don't seem to include it), 1G memory, 60g internal drive, 30G or CD/RW in multibay
    * embedded intel wireless -- works with ndiswrapper
    * bluetooth -- don't have any other bluetooth devices, haven't tried
    * IR -- haven't tried, but should try to get going with my palmpilot
    * Broadcom nic -- works
    * SD bay -- works under WinXP, but appears to be impossible under Linux

    The docking bay pretty much just has a USB breakout, passthrough nic and power. There are 2 multibays which usually have a CD/RW and/or an extra disk.

    At the point it asked about installing GRUB in the master boot record, I skipped that and continued
    on with the installation. I prefer to let debian/sarge manage grub.

    After the ubuntu installer finished, I booted into debian/sarge and added the following to
    it's menu.lst file:

    title Ubuntu 1.0
    root (hd0, 5)
    kernel /vmlinuz root=/dev/hda6 ro
    initrd /initrd
    savedefault
    boot

    Then rebooted to Ubuntu...

    After about 40 minutes it started poking around and found that kacpid was sucking up 95% of the cpu. I did

    renice 19 -p 5 (which was the pid of kacpid)

    and the install proceeded much faster.

    The X displayed looked nice along with the drum sounds.

    But the Broadcom or tg3 driver wasn't loaded. Using 'sudo network-admin' fixed that.

    Still looking around.

    [still installing -- watch here for more info]

    Friday, September 10, 2004

    making stop-motion videos

    This evening Griffin and I made some stop-motion videos using some clay figures he made and my HP camera.

    [Take a look](http://www.nozell.com/blog/data/griffin-video-02.avi)

    This is how we did it:

    * Set the HP 318 Camera to the lowest resolution, turn off flash
    * Screw in the little tripod I got years ago for one of the first webcams
    * Have plenty of light
    * Take about 90+ photos
    * dump onto my Linux/Debian laptop (gphoto2 --get-all-files)
    * Convert to an animated gif ( convert -delay 10 IM*.jpg out.gif) with a 10/100 second delay. Realize it is a huge 20M file
    * Convert to AVI ( mencoder "mf://IM*.jpg" -mf type=jpg:fps=7 -ovc lavc -o output.avi) which gives a much smaller (~1M) file.

    Repeat until the batteries need to be recharged.

    Saturday, September 4, 2004

    flickr upload for gnome's nautilus

    This evening I noticed that there was a new perl module in CPAN by CPB Flickr::Upload. So I hacked together a Nautilus script to integrate Flickr.com uploads with the Gnome file manager.

    If you want to give it a try,

    * Install the perl module Flickr::Upload using either CPAN or download from http://search.cpan.org/~cpb/
    * Grab this script
    * put it in your ~/.gnome2/nautilus-scripts directory
    * edit the following lines for your own use:


    my $FLICKREMAIL = 'your-flickr@email-address-here.com';
    my $FLICKRPASSWORD = 'somesekretword';
    my $FLICKRTAGS = 'i like traffic lights'; # space separated list


    It works find on my debian/sarge laptop, but should work fine on any other gnome desktop.

    Patches would be welcome.

    Wednesday, August 25, 2004

    festival speech synthesis on my debian laptop

    Last night I was mucking around with festival, the text to speech tool (ala the old DECtalk. On my [laptop](http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/321957-64295-89315-321838-f33-367367.html) it was speaking too fast.

    The solution is found in the Festival FAQ: Running Festival


    Create the file festival/lib/siteinit.scm (if you don't already have it) and add the following






    (Parameter.set 'Audio_Method 'Audio_Command)

    (Parameter.set 'Audio_Command "sox -t raw -sw -r $SR $FILE -c2 -t ossdsp /dev/dsp")




    On debian, you put those two lines in /etc/festival.scm

    Monday, August 16, 2004

    HP, Motorola, Debian Linux

    HP LogoHP just won a large contract with Motorola which includes Debian running on Itanium.

    From InternetNews, [HP Get Call for Carriers](http://www.internetnews.com/dev-news/article.php/3395271)

    "Virtually each of the network equipment providers is migrating to next-generation platforms based on Linux," Joy King, HP director of its worldwide marketing for its network and service provider business, told internetnews.com.


    HP has modified the Debian Linux distribution to optimize it for carrier grade systems


    Also in CNET, [Motorola and HP in Linux tie-up](http://news.com.com/Motorola+and+HP+in+Linux+tie-up/2100-1039_3-5311739.html) and Information Week [Motorola To Incorporate Integrity Systems Into 3G Call Path](http://informationweek.com/story/showArticle.jhtml?articleID=29100410)

    Wednesday, September 3, 2003

    netjuke from source on debian

    The debian/sarge package for netjuke didn't quite work out of the box and it was a little dated so I decided to install netjuke from source.

    Dependancies -- apt-get the debian packages for mysql-client, mysql-server and make sure php4 and php4-mysql are installed.

    Be sure to follow the post-installation steps of php4 in /usr/share/doc/php4/README.Debian.gz.
    In particular, un-comment the line:


    LoadModule php4_module /usr/lib/apache/1.3/libphp4.so


    Uncomment:


    AddType application/x-httpd-php .php .phtml .php3
    AddType application/x-httpd-php-source .phps


    and add index.php to the line like this:


    DirectoryIndex index.php index.phtml index.php3 index.html


    Remember to restart apache (/etc/init.d/apache restart)



    Now you need to create a database to hold the netjuke tables. If you
    have an existing database and user, you can use that. I have fresh
    MySQL install with no table nor any non-root database users, so I did
    this:



    • By default debian's MySQL server doesn't listen on the network
      port but netjuke wanted to connect that say, so edit /etc/mysql/my.cnf
      to enable it by commenting out the skip-networking line and
      restart MySQL (/etc/init.d/mysql restart)


    • Check to see that it worked:

      $ mysqladmin -u root password 'sekert'
      $ mysqladmin -u root -p create netjuke
      Enter password:
      $ mysql -u root -p mysql
      Enter password:

      Welcome to the MySQL monitor. Commands end with ; or g.
      Your MySQL connection id is 6 to server version: 4.0.13-log

      Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
      mysql> grant all privileges on netjuke.* to netjuke@localhost
      identified by 'othersekret;
      Query OK, 0 rows affected (0.01 sec)



    • Now you are ready to install netjuke.

      Go to the top of the web space, by default on debian it is /var/www
      and unpack netjuke (tar zxvf ~/ netjuke-1.0-rc2.tar.gz).

      Now as the netjuke docs say, go to http://127.0.0.1/netjuk
      e/installer/installer.php

      and click through the GPL license to the installation page. My
      answers were:


      DB Type: MySQL
      DB Host: localhost
      DB User: netjuke
      DB Password: othersekret
      Sys. Admin. email: marc@nozell.com
      Admin Password: moresekret


      After a submit (be sure javascript is enabled, netjuke uses it
      heavily) it will offer to save inc-prefs.php. Copy that to
      /var/www/netjuke/etc/ and you may need to set the privileges to the
      web server can read the file
      chmod 444 /var/www/netjuke/etc/inc-prefs.php


      You are almost done, so take a look at http://localhost/netjuke and
      log in and poke around some. Don't worry that there aren't any music
      files there, that is next.

      I keep my music files in /DATA/Music/ and didn't want to copy them to
      where netjuke wanted them (/var/www/netjuke/var/music), so I used
      ln to make them available like this:


      cp /var/www/netjuke/var/music/* /DATA/Music
      rm -rf /var/www/netjuke/var/music
      ln -s /DATA/Music /var/www/netjuke/var/music


      Now back to netjuke's web
      interface
      to import the files. Follow the links Admin->Recursive
      Audio File Finder->Start Scanning and then watch as the mp3/ogg/etc
      files are found and added to the netjuke database. If you have a lot
      (I have around 11G) you may need to import them a few at a time using
      the Admin->Music Directory Browser route and bring in a few
      directories at at time.

    Monday, September 1, 2003

    Using MTRG to monitor kid's bandwidth

    We just added a WinXP system for the kids to use. We were tired of saying: "Stop playing neopets on Mom's computer" and "Enough of the Strong Bad email, get off of my computer". In order to keep an eye on how much bandwidth they were using, especially if they inadvertently get install some spyware, I'm using MRTG to watch for spikes in traffic.



    • On the windows systems, install SNMP (in the control panel->Add Software->Add/Remove Windows Components).


    • On the home linux server install mrtg
      and then do this:


    • Create a mrtg configuration file:
      cfgmonitor public@kidspc public@wendypc > /etc/mrtg.cfg 


    • Create a index for the top of the web area:
      indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html 




    The debian package already took care of creating the directory and a
    script in /etc/cron.d/mrtg to run every 5 minutes.

    Using X10 to control the kid's lava lamp

    Installed bottlerocket (comma nd is br) and setup cron to turn on/off the boy's lava lamp so it is on when the wake up and go to bed.

    My root crontab looks like this now:


    MAILTO=marc

    # Turn on Spencer's lava lamp at 6:00am and off at 7:30pm
    0 6 * * * /usr/bin/br A3 ON
    0 7 * * * /usr/bin/br A3 OFF

    # Turn on Spencer's lava lamp at 7:30pm and off at 8:30pm
    30 19 * * * /usr/bin/br A3 ON
    30 20 * * * /usr/bin/br A3 OFF

    Wednesday, August 13, 2003

    Printing to a microsoft windows-hosted printer from debian


    Our HP
    PSC 750 color flatbed all-in-one printer/copier/scanner
    is
    connected to a Microsoft Window2000 desktop and I want to print to it
    from the home linux server as well as my laptop when I'm home.




    First 'unix printing' support needs to added to the w2k system. Go to
    Control Panel->Add/Remove Programs and then select 'Add/Remove Windows
    Components' on the left sidebar. From there install 'Other Network
    File and Print Services' where you will see 'Print Services for
    Unix'. Then under the Printers control set the printer as Shared and
    name it something, I chose 'allinone'.




    Then install the following debian packages:


    cupsys — Common UNIX Printing
    System(tm) - server
    cupsys-bsd — Common UNIX
    Printing System(tm) - BSD commands
    cupsys-client — Common
    UNIX Printing System(tm) - client programs (SysV)



    And then point a web browser to http://localhost
    :631
    (or
    http://<homeserver>:631), authenticate with the root password.
    From there, follow 'Manage Printers' and add one as follows:



    • queue name: allinone or whatever you like. Description and location are op
      tional


    • Device: LPD/LPR Host or Printer


    • Device URI: lpd://192.168.1.100/allinone -- That is the local IP
      address of the w2k system and allinone is the Windows name for that
      printer


    • Pick the appropriate printer driver, in my case it is HP then 'HP New Deskj
      et Series CUPS v1.1 (en)'


    • Then configure the printer options if you want to.




    Now you can print a job as simply as 'lpr -Pallinone filename.txt' or 'lpr -Pal
    linone filename.ps'

    While I was at it, I hooked up an old epson color printer to the linux home ser
    ver too.