Category Archives: tech

server logs, general archive of changes, updates

Resetting OSX Password

1) Boot into Single User Mode and remove a setup file
•Restart the Mac holding down the Command+S keys, this will take you into Single User Mode and it’s Terminal interface
•You’ll need to check the filesystem first:
fsck -fy
•Next, you must mount the root drive as writeable so that changes will save:
mount -uw /
•Now, type the following command exactly, followed by the enter key:
rm /var/db/.applesetupdone
•After removing the applesetupdone file, you need to reboot, type ‘reboot’ and hit enter
Stage 2) Create a New User Account upon System Boot
You aren’t finished, but the hard part is now over – no more command lines, you’ll now be in the familiar Mac OS X GUI to finish the password reset process. In this step we just create a new user account as if you just got a new Mac:
•Upon reboot, you will be presented with the traditional “Welcome Wizard” startup screen just like when you first get a Mac
•Follow the welcome wizard and create a new user account – making the account name different from the account whose password you want to recover
•Continue on and boot into Mac OS X with this newly created user account, this new user account is an Administrator and has administrative access
Stage 3) Reset the Forgot Password via System Preferences
You are almost done, now you just need to reset the forgotten user account password using the Accounts control panel:
•Once you are booted into Mac OS X, click on the Apple logo and then navigate down to “System Preferences”
•Click on the “Accounts” icon in System Preferences
•Click on the Lock icon in the lower left corner of the “Accounts” preference window and enter the newly created user credentials, this enables you to change other user accounts and reset other users passwords
•On the left side user panel, select the user account containing the forgotten password
•With the user of the forgotten password account selected, click on the “Reset Password” button
•Enter a new password for that user, be sure to include a meaningful hint so you don’t forget it again!
•Close System Preferences and reboot the Mac
•You can now login to the previously inaccessible user account using the newly reset password! All user files and settings are maintained as before the password was forgotten
Optional: If you’d like, you can delete the temporary account you created to reset the users password. This is wise for security purposes.

Fix/Setup W2K8R2 DC as NTP Client

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
w32tm /config /manualpeerlist:”0.no.pool.ntp.org 1.no.pool.ntp.org 2.no.pool.ntp.org 3.no.pool.ntp.org” /syncfromflags:manual /reliable:yes /update
w32tm /query /peers /verbose (verify output)
w32tm /resync

compile xbmc to latest via git

01 stop xbmc-live
02 cd $HOME/setup/xbmc
03 make distclean
04 git reset –hard
05 git clean -xfd
06 git pull –rebase
07 cd $HOME/setup/xbmc/lib/libnfs/
08 make -j4; make install
09 cd $HOME/setup/xbmc
10 ./bootstrap ; ./configure –prefix=/usr –enable-vdpau –disable-pulse –disable-crystalhd –enable-libbluray
11 make -C $HOME/setup/xbmc/lib/addons/script.module.pil
12 cd $HOME/setup/xbmc
13 make -j4
14 make install prefix=/usr
15 start xbmc-live
OR ./XBMC_build_git.sh refresh

interesting wordpress plugins

http://wordpress.org/extend/plugins/wp-o-matic/
what i think this does is scrape from RSS/Atom feeds and auto post them. i like this idea not so much for generating content, but rather as a way to find interesting things “out there”, i.e. top 10 bizarre boyd modifications, etc. along those lines.
http://wordpress.org/extend/plugins/add-from-server/
i like this one because you can navigate the webserver and upload into wp direct. think photo gallery. of course the draw back is the doubling up of content.
http://wordpress.org/extend/plugins/quote-rotator/
eh, this isn’t really a serious one but then again there are always quotes that haunt me, so why not.

OsX86 on PC

1. Use iATKOS 4i (10.5.4)
-Set volume as MBR via Disk Utility
-NO Customization, install Leopard
2. Install NVKush.
3. Get some sort of PList editor (PList Edit Pro or Util from XCode).
-Edit info.plist from within NVKush.kext (show pkg contents)
-Use this NVCAP (drill down the top pane, not the XML bottom):
04000000 00000100 02000000 00000000 00000000
-Drop info.plist right back into nvkush
4. Open terminal, then:
Sudo chown -R 0:0 \path to\nvkush.kext
Sudo chmod -R 755 \path to\nvkush.kext
5. Reboot
After, to dual-boot: find “chain0″ file, drop it in c:\ of xp, add in boot.ini c:\chain0=”OsX86”

Forwarding without FW From

Forward incoming emails to pager with proper subject
(Last modified: 14Jan2005)
This document (10096188) is provided subject to the disclaimer at the end of this document.
goal
Forward incoming emails to pager with proper subject
fact
GroupWise 6.5
symptom
Forwarded email messages show on pager as “from: user@domain.com” which is the sender’s userID/domain and the subject shows “Forwarded by user” instead of the subject of the actual email.
cause
GWIA forwards the original message as an attachment changing the subject line to “Forwarded by user”
fix
1. Add the following lines if not present to GWIA.CFG:
/ATTACHMSG
/FLATFWD
2. Unload and restart GWIA.

groupwise – send as pop account

server side-
add domain (i.e. pop.com) to groupwise internet addressing
(c1 > tools > GW Sys Ops > internet addressing)
add pop user name as nick
(c1 > GW Sys > Dom > PO > user > prop > GW > nicknames
client side-
create pop accounts
incoming as pop
smtp as server

Using the PHP Form-Mailer (from GoDaddy)

http://help.securepaynet.net/topic/421/article/510?prog_id=428178
Using the PHP Form-MailerTo use the PHP form-mailer, create a Web form in HTML that links to our PHP script, located in the root directory of your hosting account, and upload it to your hosting account.
Remember to specify the email address you want to use with the form-mailer in your account manager. For more information, see Specifying an Email Address for the PHP Form-Mailer.
To Use the PHP Form-Mailer
1. Create your Web form as normal and assign unique names to your form items.
NOTE: Keep in mind that our form-mailer script will sort the names of your form items alphabetically when it composes the email message. This is the order of precedence: uppercase letters, lowercase letters, numbers.
2. For the form action line, enter /gdform.php. For example:

3. Set the form method to “post.”
4. In addition to the fields you create in your form, there are three special fields that you can use: subject, redirect, and email.
Subject. Controls the subject line in the form email.
Redirect. Controls the page that your visitors will see after they submit the form.
Email. Controls the return address for the form email.
For example:


First Name:

Last Name:

E-Mail:

Comments:


5. Save and upload your file to your hosting account.

ares rc.firewall.local

#!/bin/sh
# Used for private firewall rules
# See how we were called.
case “$1” in
start)
## add your ‘start’ rules here
# COPFILTER START – do not modify
/etc/rc.d/init.d/copfilter_proxsmtpd config_fwrules
# COPFILTER END – do not modify
### planetary / mage
/sbin/iptables -t nat -A CUSTOMPOSTROUTING -s 192.168.1.3 -o eth1 -j SNAT –to-source 72.68.153.10
/sbin/iptables -t nat -A CUSTOMPOSTROUTING -s 192.168.1.4 -o eth1 -j SNAT –to-source 72.68.153.12
### apple youtube fix
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d iphone-wu.apple.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d gdata.youtube.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d fgpq.vp.video.l.google.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d vp.video.google.com -j ACCEPT
### citibank
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d .citibank.com -j ACCEPT
;;
stop)
## add your ‘stop’ rules here
# apple youtube fix
/sbin/iptables -t nat -F CUSTOMPREROUTING
;;
reload)
$0 stop
$0 start
## add your ‘reload’ rules here
### planetary / mage
/sbin/iptables -t nat -A CUSTOMPOSTROUTING -s 192.168.1.3 -o eth1 -j SNAT –to-source 72.68.153.10
/sbin/iptables -t nat -A CUSTOMPOSTROUTING -s 192.168.1.4 -o eth1 -j SNAT –to-source 72.68.153.12
### apple youtube fix
/sbin/iptables -t nat -F CUSTOMPREROUTING
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d iphone-wu.apple.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d gdata.youtube.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d fgpq.vp.video.l.google.com -j ACCEPT
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d vp.video.google.com -j ACCEPT
### citibank
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d .citibank.com -j ACCEPT
;;
*)
echo “Usage: $0 {start|stop|reload}”
;;
esac

bypass squid in ipcop

in rc.firewall.local
start rule:
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d www.qrz.com -j ACCEPT
reload rule:
/sbin/iptables -t nat -F CUSTOMPREROUTING
/sbin/iptables -t nat -A CUSTOMPREROUTING -p tcp –dport 80 -d www.qrz.com -j ACCEPT
stop rule:
/sbin/iptables -t nat -F CUSTOMPREROUTING
restart by ./etc/rc.d/rc.firewall.local start