How to Install Subversion 1.4.6 with Apache 2.2.17_1 on FreeBSD

I was having an issue getting subversion 1.4.6 + apache installed on a freebsd 8.1 system without running in to errors. These instructions should work on any version of freebsd (post 6.01).

Eventually i copied the proper port versions over from a different system and got it all working! Avoid rebuilding subversion from source on . . . → Read More: How to Install Subversion 1.4.6 with Apache 2.2.17_1 on FreeBSD

Red Hat Linux cheat sheet commands examples RHEL

Useful Linux Commands (Red Hat)

(http://www.cse.buffalo.edu/~eisner/DLW) Revised 3/1/2000

Getting information man commandname display the manual page for a particular command named commandname man -S sectionnumber commandname display the manual page under a specific section numbered sectionnumber for the command named commandname. Sometimes the same command will exist in more than one section. man alone will . . . → Read More: Red Hat Linux cheat sheet commands examples RHEL

Howto: See if a local port is listening from command prompt

List local/remote socket and PID  for all TCP connections in “Established” state:

netstat -ano | find /i “established”

List local/remote socket for all TCP connections in “Established” state (sometimes you get more than above):

netstat -an | find /i “established”

List connections over time (netstat_check_connections.bat):

@echo off for /L %%X in (1,1,4) do (netstat -b . . . → Read More: Howto: See if a local port is listening from command prompt

Howto: Back up Server 2003 Users Groups Shares Permissions Program Names Network Settings

I cam across two amazing article the other day detailing how to do some great stuff from the windows command line.

synjunkie knows his shit:

Command-Line-Ninjitsu Command-Line Kung Fu

I stumbled upon it because I was about to format a server but wanted to retain this information:

All local groups/users and their respective permissions for . . . → Read More: Howto: Back up Server 2003 Users Groups Shares Permissions Program Names Network Settings

Howto: Resize Virtual PC 2007 Virtual Machine

This is a two step process:

1. Use VHDResizer to resize the partition, download here

2. Use gparted to expand the partition, download here

Details on VHDResizer (from http://vmtoolkit.com/files/folders/converters/entry87.aspx)

VhdExpand is now VhdResize.

VhdResize will resize Microsoft’s VHD files and will also convert between Fixed and Dynamic file types. This is a sector by sector copy operation . . . → Read More: Howto: Resize Virtual PC 2007 Virtual Machine

Howto: Move Windows Update and Service Pack Files to Another Drive

Problem Windows Server 2003 C partition is running out of disk space

Soultion Move service pack and update files

Example d:\1admin will be the path we are copying files to

Move the following files:

c:\windows\$NtUninstall* to D:\1admin\Windows Update Files c:\windows\ServicePackFiles to D:\1admin\ServicePackFiles C:\WINDOWS\ie8updates to D:\1admin\ie8updates

Change these Registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup = D:\1admin\ServicePackFiles\servicepackcache HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup = . . . → Read More: Howto: Move Windows Update and Service Pack Files to Another Drive

Linux find large files

How do you find large files or directories on your disk in freebsd, unix, linux ? Linux find large files examples; find large files on your disk in *nix.

All *nix systems List total size of each directory/file at current path level du -sk * | sort -rn | head

Example output:

[root@centos6 /]# du . . . → Read More: Linux find large files

Howto Backup your Bitnami Instance to a Remote Site for Free

Howto Backup your Bitnami Instance to a Remote Site for Free What you’ll need 1. Install dropbox to c:\My Dropbox 2. The names of the services bitnami uses (from command line type net start to get list of services) 3. A new local user in the administrator group that will just be used to run . . . → Read More: Howto Backup your Bitnami Instance to a Remote Site for Free

How can a sniffer connect to see all traffic?

Connect it to SPAN/mirror/monitor port on switch if available.  All traffic to any port on switch also gets copied to the mirror port (which allows sniffer to see all traffic).  If switch is overwhelmed with traffic the packets may be dropped to the mirror.  Also a hub can be used.

ARP poisoning can be used . . . → Read More: How can a sniffer connect to see all traffic?