Archive for April, 2008

How to disable Netbios on MacOSX (Leopard)

vi /etc/smb.conf

disable netbios = yes
smb ports = 445

Stop nmbd:

launchctl unload -w /System/Library/LaunchDaemons/nmbd.plist

Note: You may need to do the launchctl command a couple times. Not sure why but it did not always stop nmbd. Below is a portion of the nmbd.plist file. If set correctly to disable Netbios, you will see the KeepAlive instead of Enabled (the default).

nmbd.plist

How to re-create the Show Desktop icon in the Quick Tray in Windows XP.

Create a file called “Show Desktop.scf.”

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

Right mouse click and drag the file to your Quick Launch bar and release. Select move.

Samba: joining a Windows Domain.

Source ONLamp.com:

Samba Joining a Domain

Resizing images via linux command line or script.

Make sure ImageMagick is installed. The convert command is part of the ImageMagick installation.

convert -geometry 240×160 filename newfilename

The following will resize several images in a script:

#!/bin/bash
for x in $(ls)
do
convert -geometry 240×160 $x new-$x
done

Return top

INFORMATION