Wednesday, July 02, 2008

PGP resources

I am sometimes asked to explain PGP to co-workers, here are a list of refences that I felt were good.

http://en.wikipedia.org/wiki/Public_key_cryptography

http://www.networkworld.com/news/64452_05-17-1999.html

better
http://www.pgpi.org/doc/pgpintro/

Tuesday, July 01, 2008

Perl modules

I needed XML::LibXML and found that the University of Winnipeg has a repository.
Added the repro to my ppm tool and when then able to install the package and get running.

(Active State osname=MSWin32, osvers=5.00, archname=MSWin32-x86-multi-thread version 5.8.8)

http://theoryx5.uwinnipeg.ca/ppms/

Friday, June 20, 2008

Openssl check if certificate chain is available from web server

Sometime you SSL provider maybe change the certificate chain for certificates you get from them. GoDaddy has changed in the last year, and a few years ago Network Solutions had changed because of a renewal date. When you get a SSL certificate from a provider you are often given the option to get the certificate chain. This is so that your web servers can make available to visiting clients the root and intermediate certificates so that the visiting client can confirm if the certificates are trusted.

using the following openssl command line will display the certificate depth, you want greater then 0, as well as the certificates.
openssl s_client -connect server:port -showcerts

Hope this help someone.

Thursday, June 19, 2008

Keeping Track of Virtual Macines

Found this handy method so a virtual machine can detect if it is running in MS environment or a VMware environment. I would like to find out if there is a method from the Guest OS to tell the servername of the Virtual Host/Server it is running on.

I know for MS Virtual Server vbscript to list the guest info:
http://www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx


detect from guest os if in a MS Virtual Server Environment or a VMWare:
http://x86virtualization.com/intel/vbscript-checking-for-virtual-host.html

Friday, May 30, 2008

Compile dmidecode on Cygwin

http://freshmeat.net/projects/dmidecode/


dmidecode - Default branch
Section: Unix

Click here to find out more!

Click here to find out more!
Added: Mon, Jan 20th 2003 14:01 PDT (5 years, 4 months ago) Updated: Tue, Feb 27th 2007 07:13 PDT (1 year, 3 months ago)

From Freshmeat:
About:
Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard. This information typically includes system manufacturer, model name, serial number, BIOS version, asset tag, and a lot of other details of varying level of interest and reliability, depending on the manufacturer. This will often include usage status for the CPU sockets, expansion slots and memory module slots, and the list of I/O ports.

Directions to get this to compile under cygwin.

I had to run cygwin setup and select gcc ( I selected all of them ) and make, also I selected automake but I am not sure if that was necessary.

Then
make
Then I will take the EXE to another system along with Cygwin1.dll.

This resulted in an error, I think the answer is here:
http://www.cygwin.com/ml/cygwin/2007-04/msg00458.html

with Windows 2003 only kernel process have access to physical memory.

But then read this
http://lists-archives.org/cygwin/34232-dev-mem-permission-denied.html

Will have to revisit another day to see if I can get this working for Windows 2003.


************************
More details:


Error Messages on Windows 2003 Server
# dmidecode 2.9
/dev/mem: Permission denied

Here are the files, cygwin is nto installed locally.
biosdecode.exe
cygwin1.dll
dmidecode.exe
ownership.exe
vpddecode.exe


cygwin1.dll version - 1005.25.0.0

Here is information from the workstation I used to build dmidecode.
$ cat /proc/version
CYGWIN_NT-5.1 1.5.25(0.156/4/2) 2007-12-14 19:21

Thursday, May 29, 2008

VMWare ESX / Infrastructure Enabling Root SSH

Enable SSH access to VMware ESX server

To allow the root user to login to a VMware ESX Server over the network using SSH, do the following:

1. Go to the service console on the physical server & login
2. vi /etc/ssh/sshd_config
3. Change the line that says PermitRootLogin from “no” to “yes”
4. Restart sshd with command /etc/init.d/sshd restart

Source:
http://www.kreslavsky.com/2007/12/enable-ssh-access-to-vmware-esx-server.html

Friday, May 09, 2008

Network

Rate my network diagram -
Cool site which has several network diagrams so you can review what others are doing:
http://www.ratemynetworkdiagram.com/


Site which discusses Network Documentation and Network Mapping - free.
http://www.networkdocumentation.com/

Monday, May 05, 2008

Learning some HTML and ASP

I like some of the quick references and examples on this site.

http://www.w3schools.com/

Monday, April 28, 2008

Perl Script into EXE

App::Packer - is a Perl Module to help get your script into a free running program - no dependencies. Its worked with a ntp time check script I have. Now I have a script that will pull a list of the OUs in AD and create a batch file to dsacls is run for each OU.


This link has more details on running p2e.pl the script that runs to create the exe:
http://www.perlmonks.org/?displaytype=print;node_id=215299

Thursday, April 17, 2008

Mysql Cheat Sheet

I was having some problems using the LOAD DATA INFILE.

This guy's cheatsheet helped me out.

http://www.nparikh.org/unix/mysql.php

Tuesday, April 15, 2008

Windows 2003 SP2 install with no backup

Just a reminder that this is the way to run a Windows 2003 SP2 install choosing not to backuup the files.

i386\update\update.exe /nobackup

Monday, April 07, 2008

Cheap diag tool

I like Visio, and I like DIA (GPL - I think ) - here is edraw.


http://www.edrawsoft.com/Network-Diagrams.php

Thursday, April 03, 2008

Some Good Cheat Sheets

Some good cheat sheets from sloppycode.net

I like the programming cheat sheet here lets you see perl next to php, vbscript.
http://www.sloppycode.net/tools/language-reference.aspx

the unix one seems handy as well.
http://www.sloppycode.net/Tools/unix-cheat-sheet.aspx

Friday, March 21, 2008

Nortel VPN Device and Passive FTP problems

We have some site with problematic FTP trasnfers, found that Active FTP was working, Passive FTP was not working. Found IE and FileZilla both have ways to change default behavior. We needed to get FTP working.

Found a note on Nortel's site known issues with specific firmware and passive FTP.

Here is my test file, first line is active, second is passive - the second line was failing. The test downloads a 3 meg file from Microsoft.

I also found this guide:
Active FTP vs. Passive FTP, a Definitive Explanation

ftptesting.cmd
curl ftp://anonymous:wow@ftp.microsoft.com/PSS/Tools/NetMon/netmon2.zip > netmon2-norm.zip
curl --disable-epsv ftp://anonymous:wow@ftp.microsoft.com/PSS/Tools/NetMon/netmon2.zip > netmon2-disable.zip


After the firmware it worked as expected.

Tuesday, March 11, 2008

Reloading Laptop After some Problems

Step 1. Pull down corporate apps
Step 2. Install Office 2007 (team thing)

Installed 7.10 Ubuntu Desktop, tried to update the network with Wicd, had some failures will need to redo. The install was nice, I just told it the new size of the ntfs partition during the Ubuntu install.



Here is a program I love - Tea Timer
http://users.adelphia.net/~dceubank/

I am trying to add it to my GTD work.



Other apps
Putty
WinSCP
SongBird
Juice
Cygwin
Hotkeys ( trying to force myself to do this more )

Friday, November 09, 2007

resolv.conf and inetd and telnet and reverse dns

Interesting I recently had seen on a unix box after the resolv.conf was changed, telnet sessions were taking 20 seconds to initiate.

I told the unix guys to change the name servers for their machines as we were decommissioning a dns name server. After they made the change name resolution was working as expected, however there was a 20 second delay for telnet sessions and rlogon sessions. I was able to connect via ssh without a delay. I went to troubleshoot dns with nslookup and found the expected results without delay.

My first question was how do you get unix to re-read the manually edited resolv.conf - answer is the file is read on each dns request - most unix systems I have read about linux, freebsd, and hpux all are configured like this. The idea is the operating file system cache will have the file in memory and the file is quite small. So it is true that it is read on each request.

So telnet was configured to be called from inetd, the answer for this was to restart the inet daemon. I should state rather then a restart or reload, one of the admins had found many suggested simple killing and restarting the inetd deamon.

Friday, October 12, 2007