Posts Tagged ‘linux’

DreamPlug: misc info

Tuesday, April 19th, 2011

Someone asked for more info about the hw/sw as shipped with the DreamPlug:

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

DreamPlug: Idles 7-8 watts

Monday, April 18th, 2011

I borrowed the a Kill-A-Watt device from the local library and plugged the DreamPlug into it.

Here are my unscientific observations.

  • idle with no devices except a NIC, wifi, bluetooth: 7 to 8 watts
  • idle with no devices except a NIC: 7 to 8 watts — that was unexpected
  • CPU at ~80% scp’ing a large file to internal disk: 9 watts
  • CPU at ~80% scp’ing a large file to external, powered eSATA disk: 9 watts
  • idle with external unpowered 320G ‘laptop’ USB disk: 11 watts

Powertop didn’t have much in the way of suggestions that affected power.

dreamplug

Wednesday, April 13th, 2011

My Dreamplug from Globalscale Technologies finally arrived yesterday and I’m just getting around to dig into it.

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

sshguard on Debian/lenny

Tuesday, March 9th, 2010

The sshguard documentation is correct, but a little lacking.

Here are my notes of what is needed in case I ever need to re-do it:

  • Download sshguard-1.4.tar.gz from http://www.sshguard.net/
  • Unpack and compile (see the stock documentation on sshguard.net)
  • In /etc/rc.local add the following lines before the “exit 0″. This sets up iptables with a filter for ssh connections:

    iptables -N sshguard

    iptables -A INPUT -p tcp --dport 22 -j sshguard

    You should run those commands before you edit the syslog configuration. Or reboot.

  • In /etc/syslog-ng/syslog-ng.conf add around line 190 the following lines:

    filter sshlogs { facility(auth, authpriv) and not match("sshguard"); };

    destination sshguardproc {
    program("/usr/local/sbin/sshguard"
    template("$DATE $FULLHOST $MESSAGE\n"));

    };

    And down near the end of the file, add:


    log { source(s_all); filter(sshlogs); destination(sshguardproc); };

  • And finally restart syslog-ng (sudo killall -HUP syslog-ng) and read the sshguard faqs: http://www.sshguard.net/docs/faqs/

Ubuntu/lucid on hp2133

Tuesday, February 16th, 2010

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.

Are you a Linux or Java geek looking for a phone?

Monday, January 4th, 2010

If so, then you *need* to get a Droid.

I think of the Motorola Droid as an “always on portable computer with G3, WiFi, GPS, Blutetooth, audio in/out, microSD, compass, accelerometer, keyboard and a reasonable size touch screen.” Oh, and you can make phone call with it too.

The open source dev tools for Linux/Windows/Mac integrate with eclipse and includes the can’t-say-Java-but-that-is-what-it-is compiler & runtime. Nice desktop phone emulator for debugging and on the phone there is a reasonable USB-based debugging tool. It was straight forward to compile some of the sample projects and put it on my phone.

SheevaPlug initial Ubunut/Jaunty pre-loaded kernel

Wednesday, May 13th, 2009

Linux version 2.6.22.18 (dhaval@devbox) (gcc version 4.2.1) #1 Thu Mar 19 14:46:22 IST 2009

HP has released AdvFS under a GPLv2 license!

Monday, June 23rd, 2008

It is nice to see that this well tested filesystem technology has been made available under the GPLv2 and may have another life with Linux.

Press Release HP Contributes Source Code to Open Source Community to Advance Adoption of Linux and the AdvFS site on SourceForge.

My MySQL talk at GNHLUG

Friday, June 20th, 2008

Last night I gave my much delayed talk about MySQL at the Greater New Hampshire Linux Users Group.

BTW, next time you are in downtown Nashua, stop by Martha’s Exchange and have a Cherry beer with the Jambalaya — spicy but delicious!

My new shiny hp 2133 mininote

Wednesday, May 21st, 2008

Last month I ordered an hp 2133 mini-note with pre-installed Linux, specifically Novell’s SuSE Linux Enterprise Desktop 10 and it was back ordered until last week.

Here are the obligatory unboxing photos.

hp 2133 unpacked

Man it is tiny, but after a few hours of getting use to it, it isn’t *too* small for typing. I’m getting to like the button under the space bar that disables the touchpad for when you are doing extended typing.
open hp compaq 2133 mini-note

See the rest of the photos here:
HP 2133 mininote unboxing

I’ll be blogging more about this nice hardware as I explore it — hw specs, restore CDs, installing Ubuntu/Hardy and Fedora 9, and any little hints along the way.

Full Disclosure: While I do work for HP, it is not in any PC/notebook related area, although I do use Linux (RHEL4, OEL) on ProLiant servers on a daily basis. Also this a personal purchase for home use. I didn’t even get an employee discount!