Sunday, June 12, 2011

Install Starcraft 2 on Ubuntu 11.04

  1. Put in the SC2 CD.
  2. sudo mount -o remount,unhide /dev/cdrom
  3. wine /media/SC2-L100-D1/Installer.exe
The updates will take forever, but they will complete eventually. Afterwards you have a link on your desktop that will allow you to play. Also see Regedit video performance tweaks on WineHQ.

Friday, June 10, 2011

Organize Launcher Icon Order in Ubuntu 11.04

Left click and hold an icon and you will be able to move it, similar to what you do on an Android phone.

Wednesday, June 8, 2011

rhn.rpclib.InvalidRedirectionError

Remove everything from /var/spool/up2date/ and try again.

Monday, June 6, 2011

Customizing Email Alerts in Nagios XI

In Nagios 3, you could define a custom "macro" on services or hosts with information to be included in host or service alert messages. You can still do this in XI, but the message template is now a part of each user's profile and you have to modify the related xi notification handler command.

Here's how you can include additional macros from Nagios Core in your notification messages:

1. For service notifications, modify the "xi_service_notification_handler" command and add the following to the end of the command definition:

--newvar="$_{SERVICE|HOST}SOMEMACRO$"

...where $SOMEMACRO$ is a valid Nagios Core macro (either a standard macro or a custom macro).  This passes the Nagios Core $SOMEMACRO$ macro to Nagios XI as a "newvar" variable that can be used in service notifications. Custom macros are defined in the Free Variables section of the Misc tab on host and service definitions. When defining a custom macro, you leave out the SERVICE or HOST prefix in the free variable definition. That part is added automatically by Nagios before it is passed to the notification handler.

2. In Nagios XI, go into your account page and select the "Notification Message" link.  Customize the "Service Alert Message" text to include the new variable (enclosed in % signs).  For example:

Custom Variable: %newvar%

Note that the name of the variable in the notification message is "newvar" and that is will be replaced with the value of "$SOMEMACRO$" that you passed from Nagios Core to Nagios XI.

Similar process for host notifications. You have to make this change to every profile (via masquerade) you want to receive the custom macro in their alert messages.

Note: As of XI release 1.9, the xi_service_notification_handler and xi_host_notification_handler commands are overwritten during an upgrade. Be sure to backup these commands before an upgrade so you can re-implement them afterwards.

Sunday, June 5, 2011

Ubuntu Live CD Username and Password

Ubuntu LiveCD may occasionally lock up and want you to login. The only option is "Other...". Click this and you'll be prompted to enter a username and password. The username is ubuntu and the password is blank.

Saturday, June 4, 2011

Great Apps for Rooted Android Evo 4G

Instructions to root the Evo 4G

I may occasionally update this with more essential apps:

  • Android Wifi Tether - Sprint will try to charge you to use the 4G hotspot found via settings; this will turn your phone into a hotspot for free.
  • BusyBox - JRummy16's BusyBox Installer includes essential unix apps like cp, grep. I chose 1.19 and /system/bin. You can uninstall this installer after running it and busybox will stay. This version is better than Stericson's because it symlinks some additional things (like which) that Stericson's doesn't.
  • ASTRO - GUI file browser
  • ConnectBot - Extra features when rooted
  • Titanium Backup - Backup and delete stock apps
  • Terminal Emulator - Jack Palevich's "Android Terminal Emulator" works best with the Evo's touch screen.

Bash on Android Evo 4G

Download bash in your Android browser.

su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cat /mnt/sdcard/download/bash.txt > /system/bin/bash
chmod 0755 /system/bin/bash
Now in Terminal Emulator you can set "Command line" (your shell) from /system/bin/sh - to /system/bin/bash -

Friday, June 3, 2011

Remove Peep

Root your Android, backup peep using Titanium Backup in case you ever want it again, open terminal emulator
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
rm /system/app/*Twit*
And you're done!

You may also be able to remove Peep and the following in Titanium Backup without using command line.

Related stock Evo apps...
*FriendStream (/system/app/FriendStream.apk)
*FriendStream Widget (/system/app/com.htc/FriendStreamWidget.apk)
*Facebook for HTC Sense (/system/app/HtcFacebook.apk)
*Twitter for HTC Sense (if you did not use wildcard command above)