MacMini3,1

•November 19, 2009 • Leave a Comment

We got a couple of new MacMini’s at work; these are the new 3,1 models, running Snow Leopard.

Specs:

  • Intel Core2 Duo P7350 @2.00GHz, 2GB RAM, 120GB HDD
  • nVidia MCP79 North/Southbridge
  • graphics: nVidia C79 GeForce 9400 [10de:0861] (module: nvidia)
  • audio: nVidia MCP79 HDA [10de:0ac0] (module: snd_hda_intel)
  • ethernet: nVidia MCP79 [10de:0ab0] (module: forcedeth)
  • wifi: Broadcom BCM4328 [14e4:4328] (module: wl)

References:

suspend on lid closing

•November 18, 2009 • Leave a Comment

Recently my eee701 started going into suspend (S3) when closing the lid while still at the gdm login screen.

This was due to the power management settings of the (system) “gdm” account. The solution was to set a password for gdm (by sudo passwd gdm), then logging in as gdm and changing the relevant power setting…

sudo -u

•November 18, 2009 • Leave a Comment

sudo does not only let you run commands as root; using the -u <username> option you can run a command as any other user!

palimpsest

•November 17, 2009 • Leave a Comment

Normally, palimpsest is “a manuscript page from a scroll or book that has been scraped off and used again”. In the context of the gnome-disk-utility package, it’s a tool that lets you format/partition/mount/unmount/query s.m.a.r.t. attributes from disk drives and partitions.

Recently I’ve started getting a warning from this tool on my eee701 that the “disk is being used outside design parameters”. Looking up the details, it told me that attributes 32, 48, 56, 73 and 84 (none of which has a description!!!) are failing or have failed in the past. WTF?

Related thread: http://georgia.ubuntuforums.org/showthread.php?t=1307878

Related bug: https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/454301

wake-on-lan

•November 16, 2009 • Leave a Comment

To Wake-on-LAN a machine in your local subnet:

  1. enable the feature in the BIOS (on my AMIBIOS 0602 it was “Wake on PCI-E device”)
  2. find out the machine’s MAC address (I got it from my router, but ifconfig should do the job, too)
  3. install the wakeonlan package
  4. run wakeonlan <mac_address>

Gnome-Do

•November 11, 2009 • Leave a Comment

Discovered Gnome-Do recently. With it I can:

  • launch applications (like Alt+F2, but better)
  • find files & folders (by name)
  • act on your pidgin contacts
  • lookup google contacts
  • lookup/create google calendar events
  • search google maps
  • do a google search

There’s many more plugins to use.

Notes:

  • It has some stability/hanging issues in karmic
  • The Thunderbird plugin (community-supported) is abandoned and does not work

concatenate in openoffice calc

•November 6, 2009 • Leave a Comment

If you want a cell in OpenOffice Calc to contain multiple types of text (e.g. a fixed string and the result of a function), use the CONCATENATE function. For example, if the sum of column D is 19, then a cell containing =CONCATENATE(“YES=”, SUM(D2:D40)) will display YES=19.

tcprobe

•November 2, 2009 • Leave a Comment

To get info about a video file on the command line, install transcode and then run tcprobe -i <video_file>

Example output:

[tcprobe] RIFF data, AVI video
[tcprobe] summary for <filename_here>, (*) = not default, 0 = not detected
import frame size: -g 656x346 [720x576] (*)
 frame rate: -f 23.976 [25.000] frc=1 (*)
 audio track: -a 0 [0] -e 48000,0,2 [48000,16,2] -n 0x55 [0x2000] (*)
 bitrate=112 kbps
 length: 146626 frames, frame_time=41 msec, duration=1:41:55.532

printer sharing in Linux

•November 1, 2009 • Leave a Comment

To make an Ubuntu computer act as a printer server, follow these instructions.

The device URI on the server will look like this:

hp:/usb/<printer_name>?serial=<serial_number>

while on the client it’s:

ipp://<server_ip_address>:631/printers/<printer_name>

D-Link SharePort not for Linux

•November 1, 2009 • Leave a Comment

Got a D-Link DIR-655 router; it has a USB port on the back, that can be used in 3 modes:

  • Network USB: D-Link SharePort technology to share a hard disk or printer on your network
  • 3G USB Adapter: share your 3G connectivity on your local network
  • WCN Configuration: Windows Connect Now technology to transfer network settings on a USB flash disk

D-Link provides a Windows-only utility to use SharePort, while the actual manufacturer (Silex) also provides a MacOS utility. However (as usual) nothing for Linux…