Exchange Server: Creating a Clean Priv.edb

At that point if all the Microsoft Utilities like ESEUTIL or ISINTEG have failed, the client has no choice but to send their corrupted Exchange priv priv1 edb stm to a data recovery company.

How To Create A Blank Clean PRIV1 edb for Microsoft Exchange Server
The Exchange Information Stores are located in the MDBDATA folder (unless you have moved them to a custom location), usually on the second partition in a 2 partition Exchange Installation. In most cases the Information Stores Services are already shut down due to the tragedy that brought you to this page. If not, stop the Information Stores Services.

Now you will be able to rename the MDBDATA folder to something like MDBDATA-old or whatever you want. Now create a blank MDBDATA folder, go back and start your Information Stores Service.

At this point you can go into your Exchange Administration right click on the Private Mail Store (priv1.edb) and click “mount”. You will get a nag screen that complains about there being no edb and life will come to an end in the galaxy if your not careful, but ignore all that and hit OK. It now creates a brand new PRIV1.edb and PRIV1.stm file! In Exchange 5.5 there is only a PRIV.edb, but this works in version of Exchange, the only difference is that in 5.5 it pulls the user list out of the DIR.edb as opposed to the Active Directory in 200x.

That is all. Your users will have empty mailboxes, but at least they can send and receive mail until your Exchange data recovery company can return your mailboxes back.

Ethernet Broadband puts cable Internet to shame!

Reliable Internet is a top priority when you work from home. My cable provider was never able to provide this, so it was time to make a change. I made a switch to Interlync.com Asymmetric Ethernet. I work from home 90% of the time, I had to make this change due to constant cable internet outages, speed slow downs during “family” hours (4pm-10pm), and did you know cable companies do most maintenance during normal business hours, crazy!

When I ordered this service, I started with the one of the lowest speeds Interlync offers, 20Mb, figuring I would up my speed after my initial trial. Well, it’s been over 8 months, and happy to report, there is no need to upgrade. I was shocked my Ethernet at 20Mb performed so much faster then my old 50Mb cable service. Its night and day!

What’s even better then the performance is the reliability of this connection, I haven’t had to run into the office or find a wifi hotspot due to cable outages. My wife and son no longer complain daily the “internet is down again”, “why does Netflix keep stopping” or “why can’t I use youtube anymore.”

Convert ipa file into deb file for Cydia Repo Distribution

Ok some or most ipa’s can be turned into a deb file.

i’ll use the eJuice app as an example.

1.) Rename eJuice.ipa to eJuice.zip

2.) Extract eJuice.zip then look for AppName.app inside the extracted files. Mine will be eJuice.app.

3.) Create a folder called eJuice App and inside that create 2 directories – DEBIAN and Applications

4.) Drag the extracted eJuice.app into the newly created Applications folder.

5.) Go to the DEBIAN folder and create a new text document and name it control (no .txt extention, please remove it)

Inside the control file: it needs to look like this:

Package: com.company.appname
Version: Version Here
Name: App Name
Section: Section Name Here
Description: App Description.
Architecture: iphoneos-arm
Author:
6.) You should chmod the file 755

7.) then SSH it to your iphone in /var/mobile and run dpkg-deb -b “eJuiceApp” and you will then have a File called eJuiceApp.deb and there.

Connect to the device via SSH, Install your app from .deb file, login, rebuild the UI cache, and re-spring the device:

# dpkg –install eJuiceapp.deb
# uicache
# killall backboardd

Building and Running iOS Applications Without A Paid Developer License

The following guide explains how to build an unsigned iOS application in Xcode, add the necessary SHA1 hashes to the compiled binary, and transfer the application to an iOS device. Typically, Xcode will only allow applications to be built and run in the iOS Simulator unless you have paid the $99 for an Apple developer’s license. I strongly recommend that you eventually purchase said license so Apple continues to provide Xcode itself and their on-line development resources for free. However, bypassing these restrictions is very useful for those that aren’t quite ready to begin submitting apps to the iTunes Application store or those that want to create jailbreak-only applications or extensions.

This guide was put together after my first attempt of running my application on my device. I found many different tutorials explaining this process, but they all seemed to follow different procedures and none of them completely worked. The following process worked for me and seemed to be the simplest method. As I continue learning more about iOS application and jailbreak extension development, I will revise this guide.

Requirements:
Xcode 4.6 (http://developer.apple.com/xcode/)
iOS SDK 6.1 (http://developer.apple.com/xcode/)
git 1.7.10.2 (http://git-scm.com/downloads)
Jailbroken device running iOS 6.1 (http://evasi0n.com/)
OpenSSH on the iOS device (http://cydia.saurik.com/openssh.html)
Note: The versions listed above are those that were used when this guide was written. The same procedure can likely be used with older or newer versions of each item. Several of the guides I found were specific to a particular SDK or Xcode version, so these are listed for convenience only.

Preparing Xcode To Allow Building Unsigned iOS Applications & Installing ldid Utility:
Open Finder and navigate to the “/Applications/” directory.
Right-click the application “Xcode” and select “Show Package Contents”.

Navigate to the directory:
“Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/”.
Copy “SDKSettings.plist” to the desktop and open it with Xcode.
Expand the section “DefaultProperties”.
Change the property value of “CODE_SIGNING_REQUIRED” from “YES” to “NO”.

Disable Code Signing Requirement

Save the file and copy it back to the directory: “/Applications/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/”
Restart Xcode.
Open Xcode preferences and select the “Downloads” tab.
Click the “Install” button next to “Command Line Tools”.
Open Terminal on the OSX system where the application will be built.
Install Saurik’s ldid utility:

# mkdir -p ~/Documents/Git/
# cd ~/Documents/Git/
# git clone git://git.saurik.com/ldid.git
# cd ldid
# git submodule update –init
# ./make.sh
# sudo cp ldid /usr/bin/
Note: The above steps only need to be performed once. After Xcode is properly prepared and ldid is installed, only the following steps will need to be repeated for building unsigned applications and installing them to a device.

Building An Unsigned Application In Xcode:
Open the project in Xcode which is to be run on a non-provisioned iOS device.
At the top of the Project Navigator, select the project.

Select Project

In the “Code Signing” section, select “Don’t Code Sign” for “Code Signing Identity”.

Disable CodeSigning

Ensure the Build Destination is set to “iOS Device”.

Build Destination

Build the application (⌘-B).

Add Required SHA1 Hashes To Application Binary:
In the Xcode Project Navigator, expand the section “Products”.
Right-click the application binary (HelloWorld.app) and select “Show In Finder”.

Show In Finder

Copy the application binary to the desktop.
Open Terminal on the OSX system where the application was built.
Add the SHA1 hashes to the application binary:

# cd ~/Desktop/
# ldid -S HelloWorld.app/HelloWorld

Copy Application To Device and Reload UI Cache:
Open Terminal on the OSX system where the application was built.
Change to the desktop directory where the application was copied and use the scp utility to copy the application to the device:

# cd ~/Desktop/
# scp -r HelloWorld.app/ root@192.168.1.161:/Applications/

Connect to the device via SSH, login as the user ‘mobile’, rebuild the UI cache, and re-spring the device:

# ssh -l mobile 192.168.1.161
# uicache
# killall backboardd

Create A Blank Clean PRIV1 edb for Microsoft Exchange Server

How To Create A Blank Clean PRIV1 edb for Microsoft Exchange Server
The Exchange Information Stores are located in the MDBDATA folder (unless you have moved them to a custom location), usually on the second partition in a 2 partition Exchange Installation. In most cases the Information Stores Services are already shut down due to the tragedy that brought you to this page. If not, stop the Information Stores Services.

Now you will be able to rename the MDBDATA folder to something like MDBDATA-old or whatever you want. Now create a blank MDBDATA folder, go back and start your Information Stores Service.

At this point you can go into your Exchange Administration right click on the Private Mail Store (priv1.edb) and click “mount”. You will get a nag screen that complains about there being no edb and life will come to an end in the galaxy if your not careful, but ignore all that and hit OK. It now creates a brand new PRIV1.edb and PRIV1.stm file! In Exchange 5.5 there is only a PRIV.edb, but this works in version of Exchange, the only difference is that in 5.5 it pulls the user list out of the DIR.edb as opposed to the Active Directory in 200x.

That is all. Your users will have empty mailboxes, but at least they can send and receive mail until your Exchange data recovery company (hopefully us!) can return your mailboxes back. DTI Data Recovery is a full service hard drive recovery company that operates a class 100 clean room. If your Exchange Server has failed due to a hardware failure, please call 727-345-9665 for 24 hour support with Exchange Server Data Recovery.

Fix for AppLinks on iOS 8 (Cydia)

AppLinks automatically creates shortcuts for all the AppStore Applications, to provide a simplier and faster access to them. This is a great feature for developers creating themes etc. Well, its broken in iOS 8 since apple moved where applications are located. That’s where this SHH symbolic Link comes in. I just created a link to where the new location is and placed it where AppLinks thinks it should be.

SSH into your iDevice:
ssh root@”IP ADDRESS” (Your iDevice Wifi IP Address on the network)

Then enter the below command:
ln -s /private/var/mobile/Containers/Bundle/Application /private/var/mobile/Applications

AppLinks should now work!!!

How to fix Continuity and Handoff issues with iOS 8 – 8.4

Continuity and Handoff are both new iOS 8 and OS X Yosemite features that make for a more seamless multi-device experience than ever before.

Continuity lets you answer phone calls that come in on your iPhone on your iPad, and Mac running OS X Yosemite (10.10). Handoff, one of the major elements of Continuity, lets you start a task on one device, and pick up where you left off on another. Unfortunately, some devices seem to be having issues… Luckily, there’s a pretty easy fix that worked for me!

How to fix Continuity and Handoff issues with iOS 8

Launch the Settings app on your iPhone or iPad running iOS 8.
Tap on General.
Tap on Handoff & Suggested Apps.
Turn the Handoff option Off and then back On again.
Tap General at the top to return to the previous menu.
Tap Settings at the top to return to the previous menu.
Tap on FaceTime.
Turn the iPhone Cellular Calls option Off and then back On again.
You can Reboot your iPhone or iPad if it didn’t work right away.
Repeat this process with every device you’d like to use that is not showing handoff apps like safari or mail in the app switcher (Left of Springboard).