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:


  • 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

Sunday, March 20, 2011

maple sap boil @ home






maple sap boil @ home #NH, originally uploaded by marcn.



Trevor has tapped four trees and started the boiling down of the maple sap.

Saturday, March 19, 2011

Super Perigee Moon tonight






DSC01770.JPG, originally uploaded by marcn.




Saturday, March 12, 2011

I choose you!






I choose you!, originally uploaded by marcn.



From Penny Arcade East's Expo

Penny Arcade Expo 2011






Pano of PAX, originally uploaded by marcn.



Panorama of PAX (aka PAXeast)

Wednesday, March 9, 2011

Monks from the Drepung Gomang Monastery are in Bedford

The Tibetian monks from the Drepung Gomang Monastery have a cultural presentation last night at the Bedford, NH that included a slideshow, demostrations of prayers, debating and the creation of a mandala.

Drepung Gomang Monks

More photos can be found here: http://www.flickr.com/photos/marcn/sets/72157626105267991 To view as a slideshow, click here: http://www.flickr.com/photos/marcn/sets/72157626105267991/show/

Monday, March 7, 2011

synergy on Ubuntu/Debian desktops

I have three monitors in my home office connected to two different systems, which gives a lot of screen space, but I don't want to use two sets of keyboard/mouse. The open source package synergy lets you do that. (It also works on Windows systems too)

Sitting in front of me is nyx.local, an hp EliteBook 8530w (Ubuntu/Maverick) in a docking station connected to two monitors, keyboard and mouse. To the right is a monitor from an hp workstation xw8000 named mm.local (Debian/Lenny). It is a tucked away in the corner and a bit hard to get to the power button.

My morning routine is:

  1. Boot nyx.local and log in

  2. power on mm.local using Wake-on-LAN (WOL): sudo wakeonlan 00:11:85:ad:eb:ca

  3. Wait a minute to mm.local to boot and autologin

  4. Start the synergy server on the system I'm in front of: synergys

  5. Run the synergy client on the other system: ssh -f mm.local synergyc nyx.local



Now when I slide the mouse to the right it moves focus to the remote system!

Here is the ~/.synergy.conf file.


section: screens
nyx:
mm.local:
end
section: links
nyx:
right = mm.local
mm.local:
left = nyx
end