Sep 02 2010

windows xp BSOD Stop 0×0000007E

Category: documentation, helpful links, rants, winblozeben @ 5:40 pm

so after an architecture change of a client’s server’s pc during a disaster recovery middle of business day, i was forced to learn a lot about migrating windows xp install to and from intel and amd architectures.

i found the repair to be sufficient moving from amd to intel, but left me with a BSOD when going from intel to amd.

well like most microsoft problems, this error has a bajillion reasons as to why and finding pertinent information was difficult. i finally stumbled across this microsoft kb artice (http://support.microsoft.com/kb/953356) which instructed that when the repair cd was created via an image that was intel-based, it needs to have a registry key disabled in order to boot on amd.

fortunately, since even safe mode is not accessible during a half-complete repair, the kb article even documented how to disable the feature via the recovery console of an install cd

i cite the kb article here:

To work around this issue, run the recovery console by using the Windows XP CD. Then, select the recovery option. To run the Recovery Console from the Windows XP startup disk or from the Windows XP CD, follow these steps:

  1. Insert the Windows XP startup disk in the floppy disk drive. Or, insert the Windows XP CD in the CD drive. Then, restart the computer.

    Note If you are prompted, click to select any options that are required to start the computer from the CD drive.

  2. When the “Welcome to Setup” screen appears, press R to start the Recovery Console.
  3. If you have a dual-boot computer or a multiple-boot computer, select the installation that you want to access from the Recovery Console.
  4. When you are prompted, type the administrator password.

    Note Press ENTER if the administrator password is blank.

  5. At the Recovery Console command prompt, type the following command, and then press ENTER:
    disable intelppm
  6. To exit the Recovery Console and to restart the computer, type exit at the Recovery Console command prompt, and then press ENTER.


Oct 09 2009

fop 0.95 on slackware64

Category: documentation, helpful linksben @ 11:13 am

# slackpkg update

# slackpkg install jdk

# cd /usr/local/src

# wget http://archive.apache.org/dist/ant/source/apache-ant-1.6.5-src.tar.gz

# tar zxvf apache-ant-1.6.5-src.tar.gz

# cd apache-ant-1.6.5

#./build.sh

# cd ..

# wget http://apache.siamwebhosting.com/xmlgraphics/fop/source/fop-0.95-src.tar.gz

# tar zxvf fop-0.95-src.tar.gz

# cd fop-0.95

# /usr/local/src/apache-ant-1.6.5/dist/bin/ant

now you have a 64 bit fop…or you can download it here:

drunkensailor.org/software/fop-0.95-slackware64.tar.gz

i have my ant available here:

drunkensailor.org/software/ant-1.6.5-slackware64.tar.gz

*both of these are just meant to be unpacked where you want to run them from and require some funky or full paths. feel free to make a real slackware package and i’ll host it, but for now it’s just compiled binaries alongside the source.

**the ant package is not the most current version of ant(1.7.something) because it required JUnit.jar which i dont have or plan on having (not part of the official slackware jdk)


Jul 14 2009

djb quotes

Category: helpful links, inspiration & quotes, moods, rantsben @ 11:19 pm

somehow made my way here after fighting with his three versions of documentation for the same AMAZING product

incredibly amusing: http://en.wikiquote.org/wiki/Daniel_J._Bernstein

incredibly surprising: http://blogs.zdnet.com/security/?p=2812


Jul 02 2009

qmail with ezmlm on openbsd

Category: documentation, helpful linksben @ 9:08 am

i wouldn’t suggest that anyone mimick mymethod here because i’m putting all of this into an openbsd virtual machine already configured with postfix, dovecot and a handful of other software (check out allardsoft for more info) but i’ll be putting up more info as i’m repeating my process and finding missing info

comp45.tgz –> compilation base set –> ftp://ftp.openbsd.org/pub/OpenBSD/4.5/i386/comp45.tgz

cd /
tar zxpf /path/to/file/comp45.tgz

daemontools daemontools-0.76.tar.gz daemontools home
ucspi-tcp ucspi-tcp-0.88.tar.gz ucspi-tcp home
qmail qmail-1.03.tar.gz qmail home


Jun 11 2009

phpMyProxy - Simple, Straightforward and works

Category: documentation, helpful links, quick hacks, scriptsadmin @ 1:15 pm

When a routing issue in our datacenter arose today, as a temporary solution i whipped out a proxy install that was so basic i couldn’t mess it up (and i definitely was doing “unsupported” tweaks to the files). To embelish on the routing issue a little more: a local isp moved some equippment into the datacenter, now on the same level in the same pool as our servers, their clients could not reach our servers when entering the routes from very specific directions. a temp solution is now in place and they aren’t sure when the permanent solution will work…don’t blame me….nothing changed on my end.

http://www.drunkensailor.org/proxy/

www.phpmyproxy.com - i did have to register for the initial link, but since it’s open source here’s a link to my version’s tarball…(so much lighter!!!)


Jun 04 2009

CUPS useful commands

Category: documentation, helpful linksadmin @ 9:57 am

to add a MFC-8220 printer to CUPS v1.1.20 connected to a linksys print server via commandline:

#/usr/sbin/lpadmin -p xxxbrotherA -m BR8220_2_GPL.ppd -v lpd://192.168.xxx.5/P1 -E
***replace “xxx” with appropriate subnet
***get the PPD from openprinting.org http://openprinting.org/foomatic-db/db/source/PPD/Brother/BR8220_2_GPL.ppd

to list all currently installed printers:

# lpstat -v

to list all supported models:

# lpinfo -m

to test a PPD file for validity and compatility:

# cupstestppd /path/to/ppd


May 28 2009

ndiswrapper with linux kernel 2.6.29.2

Category: documentation, hardware, helpful links, quick hacksadmin @ 12:14 am

made the all too fatal yet all to common mistake of updating to slackware current fully and lost the ability to compile some of my favorite (virtualbox) and most used (ndiswrapper) software due too stricter code residing in the kernel. so all that aside, i HAVE to use ndiswrapper with mylow power lp-phy usb-like mini pci card…it sucks in short.

so with ndiswrapper not compiling i was giving up hope until i found this post –> read through to the last post by slh.. in it he shows a patch fix (which is pretty striaght forward to apply manually) and i have included below:

fix C syntax error and field name in conditional netdev ops struct,
triggering on kernel >= 2.6.29 and CONFIG_NET_POLL_CONTROLLER=y.

— a/driver/wrapndis.c
+++ b/driver/wrapndis.c
@@ -1744,7 +1744,7 @@ static const struct net_device_ops ndis_
.ndo_set_mac_address = ndis_set_mac_address,
.ndo_get_stats = ndis_get_stats,
#ifdef CONFIG_NET_POLL_CONTROLLER
- .poll_controller = ndis_poll_controller;
+ .ndo_poll_controller = ndis_poll_controller,
#endif
};
#endif


May 10 2009

gmail through sendmail

Category: documentation, helpful linksadmin @ 5:23 pm

first read this for a base understanding of the whys and hows

then read this for more specific instructions

i ignored everything about fetchmail as i was only interested in sending abilities, but carrying the step further should be no problem. i also recoomend building a secondary gmail account just in case the hashed file was to be compromised


May 10 2009

metasploit and network exploration

Category: documentation, helpful linksadmin @ 5:20 pm

it began as just looking into the toolsets used by the now-infamous BackTrack - a slax based live cd used for wireless network penetration testing - but knowing it was slackware based was all i needed to know that toolkits exist to add this functionality to my laptop. and the digging began….i’m only going to post findings and tools incrementally as i gain enough knowledge of them to answer at least the basic install and use questions.

and so i was brought to metasploit; an exploitation framework (probably for beginners like myself) used for penetration testing of workstations, servers, and network protocols. i found the installtion to be pretty straightforward, despite the fact that where i was looking the documentation was lacking (they probably assume that given a set of requirements the user figures out how to get there themselves).

for my vanilla slack-current, i was required to add in rubygems and then install rails:

#gem install -v=1.2.2 rails

at this point i unpacked the framework and launched the web-console (yes…pitiful to use the gui, but it was what i chose to do). i suggest getting to this point and seeing where the web interface takes you ;-)


Apr 29 2009

javascript form validation library

Category: documentation, helpful linksadmin @ 11:37 am

when it comes to form validation i get frustrated too quickly to sit there and reinvent the wheel every time. my solution has been made more simple than i would have asked: TMT Validation Library from www.massimocorner.com

so easy to install.

link to libs

add call into form

define types of validation on inputs.

i would reccomend this to a friend


Apr 23 2009

cron into dsl embedded

Category: documentation, helpful linksadmin @ 10:37 am

alright starts with the premise that you have the most recent version of cron.dsl from the mydsl repository.

scp that to the destination machine:
# scp /home/ben/documents/wess/zmMonitors/cron30.dsl dsl@192.168.11.201:/home/dsl/

ssh to the destination machine and do the following
# sudo mydsl-load cron.dsl
# export VISUAL=vi
# sudo crontab -e
****at this point make your cron entries…helpful link lazy man’s cron generator by robert plank*****

verify the cronjob
# sudo crontab -l

in my particualr case i rebooted while i was there…been having memory issues (in the computer, not me)


Apr 22 2009

run a local slackware current

Category: documentation, helpful links, scriptsadmin @ 11:53 pm

this comes care of alien who has done so much for the slackware community. basically, you cron a script i believe he built, i opted to create and use a custom config file, and found it well documented and straightfoward, the script looks for changes in the CHANGELOG.txt and if it finds updates, downloads them and either generates 3 cdrom images, a dvd image, or both.

ethier way it’s a great script mirror-slackware-current.sh and my local slackware mirror can be found at http://drunkensailor.org/slackware/slackware-current/


Apr 21 2009

master ladder theory link

Category: helpful links, moodsadmin @ 11:10 am

i love this theory… it used to be housed by intellectualwhores.com and since has become very difficult to find (even though the domain is simple and self explanatory).

it’s the classic when harry met sally type of argument: women and men are pretty much incapable of being friends

read more at the real website: http://www.laddertheory.com or my mirror (in case it disappears) at http://www.benbernier.com/mirrors/laddertheory.com/