iFolder

I was tasked with removing access to dropbox, but also with creating an internally-hosted dropbox-like solution. This is about as creative as I could get as most of the users were on Windows, with another handful of developers using their Macs:
iFolder 3.8.x

Installed Ubuntu 10.04.2 LTS x32
LAMP, MySQL, Mail Server

Change the password for the root user
sudo passwd root

Log in as root
su

Add the PPA repositories to your system
nano /etc/apt/sources.list
Add the following lines at the bottom of the file:

deb http://ppa.launchpad.net/marceloshima/ifolder/ubuntu lucid main
deb-src http://ppa.launchpad.net/marceloshima/ifolder/ubuntu lucid main

Save and Close
Add the signing of the packages
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ED649F97DE6BFD99
Test configuration
apt-get update

Install ifolder3-enterprise
apache2ctl stop
apt-get install ifolder3-enterprise

Create the self-signed cert/Allow Apache features
make-ssl-cert generate-default-snakeoil
a2enmod ssl
a2enmod rewrite

Link the conf files
ln -sf /etc/ifolder-server/apache/ifolder_apache.conf /etc/apache2/conf.d/
a2ensite default-ssl

Install .net files
apt-get install liblog4net1.2-cil
apache2ctl restart

Test by navigating to http://IPADDRESS/admin
You must create a user before you can use http://IPADDRESS/ifolder or the locally installed applications.

To change any configuration, just run either of these commands:
ifolder-admin-setup
ifolder-web-setup

Molly-Guard

After having someone reboot the wrong linux machine (again), we decided to take some action:

apt-get install molly-guard

This works on Debian/Ubuntu systems. After install, try running reboot or shutdown commands – the molly-guard will force you to type in the name of the system you’re trying to reboot/power off before it will actually allow the command to continue.

Cannot Mount New Database Exchange 2010

I had created a new Exchange infrastructure for a customer:
2x Mailbox Role servers, each will have 4x 40GB databases
1x CAS and Hub role server
OK, so it sounded more impressive before I typed it out, but I digress…

I created a new database and attempted to mount it and received some cryptic MAPI error. Googled it:
http://support.microsoft.com/kb/977960

Basically AD isn’t replicating fast enough when you have multiple domains in the same forest.
Fix:
Open Exchange PowerShell
Set-ADServerSettings -PreferredServer FQDN.of.your.primary.global.catalog

Console Performance Windows VMWare

I had been installing plenty of Windows Server 2008/R2 servers on the VMWare infrastructure as of late. The only issue I could find was after installation – the console connection would drag. It seemed like the server was very slow at responding. RDP into the server and blamo, everything slow about the console went away. I didn’t really think much of it until a fellow IT worker (Bib) brought it up after his first time using ESXi. Apparently it all comes down to a driver that doesn’t get installed by default.

ESXi 4.1 patched through April 2011 (two outstanding updates slated for install next month)
Windows Server 2008 R2 as a test
VM Tools fully up to date
Windows Updates fully patched

Here’s the fix:
Open Device Manager
Expand Display adapters – you should see Standard VGA Graphics Adapter
Right-click on this and choose Update Driver
Select Browse my computer for driver software
Browse to C:\Program Files\Common Files\VMware\Drivers\wddm_video
Finish the wizard, then reboot the guest

Next time you’re in the console you should see VMware SVGA 3D driver listed for the display adapter. And you’ll notice the system seems a lot more peppy.

Software I Use – May 2011 Edition

I was trying to come up with a list of software that I “must have” on a new system (links to come hopefully later):

Dual boot Windows 7 x64 Pro/Ent/Ultimate with Ubuntu 11.04 x32
Inssider – Great for finding SSIDs, models of access points, security information, and channels of wireless networks
Angry IP Scanner – My favorite IP scanning utility is great for finding open web servers, DNS servers, or anything with RDP open
Putty – Terminal emulation software
FireFox – I still enjoy this more than Chrome, but they both have their place. Include Adblock Plus, Web Developer, NoScript, and GreaseMonkey with Youtube Auto Buffer and experts-Exchange
Terminals – My favorite RDP saving utility
CDBurnerXP – Burns ISOs, music, data
ISORecorder – Creates ISOs from folders or drives
CPUID’s CPU-Z and HWMonitor – Monitoring hardware in your system
NMAP-Zenmap GUI – NMAP for windows
WinSCP – SCP client for windows
Notepad++
NetIQ ADCheck
Filerfrog
TheDude
TightVNC
ThreatFire
Secunia PSI
Nod32
Filezilla

5 Years

I just realized that I’ve been keeping this blog alive for the past 5 years.

Despite my desires to migrate to the new hostname, I find it’s fairly easy to find several of my posts via google on THIS site. So here it’ll stay. Happy birthday, IT.thelibrarie.com!

Import Export PST Exchange 2010

In 2003 we could use a standalone utility called Exmerge. In 2007/2010 we’re forced to utilize the built-in standards of the PowerShell. I’m not complaining too much as I really enjoy the command line more than the GUI, but I’d prefer if Microsoft would keep to the same standard through all the version increases (exmerge worked in 5.5, 2000, and 2003 exchange).

So first thing is first – assign the Mailbox Import Export role to your user. Note: even if you’re using the domain administrator account with which you installed Exchange 2010, you will have to do this – by default NO users have this ability.
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User YOURUSERNAMEHERE
Or if you want to give an AD group this role, and avoid any future powershell typing:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -Group ADGROUPHERE

Now you must install Outlook 2010 x64 on the Exchange Server. I honestly have no idea why this is required, but apparently you get the following message if it’s not installed:

To export to or import from a .pst file, the 64-bit version of Outlook 2010 or later must be installed on the server to which you are connecting (server fqdn).

So then run the following command to export:
Export-Mailbox -Identity USERNAME -PSTFolderPath c:\path\to\saving\file.pst

Then you can import using a similar command:
Import-Mailbox -Identity USER@EMAILADDRESS.TLD - PSTFolderPath c:\path\to\saved\file.pst

If you want to import all of the pst files in a certain directory, make sure the pst is named with ‘alias.pst’ where alias is the name of the mailbox to which the data shall be imported.
Dir c:\path\to\pstfiles | Import-Mailbox -StartDate 01/01/2010
If you leave off the startdate, it will merge all mail in the PST

http://technet.microsoft.com/en-us/library/bb629586.aspx

***EDIT***
So apparently the above did not work on the Exchange 2010 SP1 system I was running against – command not found. Perhaps it was because I refused to install Outlook 2010 x64 on the system. Perhaps that was meant for pre-SP1? Or maybe 2007? I stopped really caring.

You still have to assign the Mailbox Import Export role to the user running the command.
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User USERNAMEHERE

Export the mailbox to a PST
New-MailboxExportRequest -Mailbox MAILUSERNAME -FilePath "\\path\to\dir_or_c:\path\to\dir\FILENAME.pst"

Check the progress of your export
Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

Remove the request after completion
Get-MailboxExportRequest | Remove-MailboxExportRequest

Thanks to Stevieg http://www.stevieg.org/2010/07/using-the-exchange-2010-sp1-mailbox-export-features-for-mass-exports-to-pst/

Ramblings Of An IT Person