Using GParted to fix an Ubuntu Install

So, I needed to fix up a Ubuntu install that went wacko. I guess a couple of partitions weren’t deleted and left, and a new partition layout was created beside the empty ones. Let’s just say, some space needed to be reclaimed.

1. I downloaed GParted, and fixed up my partitions so that I deleted the empty useless ones, and increased the root partition.

Once this was completed, I needed to update Grub to change the drive to boot off.

2. So I Mounted /dev/sda5 to /mnt/sda5 and then proceeded to mount /proc and /dev so that I could access the partitions in my chroot enviroment. Then I ran Grub and viola.

mkdir /mnt/sda5
mount /dev/sda5 /mnt/sda5
mount -t proc /proc /mnt/sda5/proc
mount -o bind /dev /mnt/sda5/dev
chroot /mnt/sda5
grub

Then within grub type the following.

find /boot/grub/stage1

Which will then return something along the lines of “(hd0,4)”. Then you will need to enter this value in Grub.

root(hd0,4)
setup(hd0)

Done!

Gmail Email Address Confusion and MySpace SPAM!

So, I’ve been getting emails address to this guy named Josh Trask. It’s been going on for over a year, and I’ve had this email for a long time, I think it was 2005 when I activated my email account.

Anyways. I’ve been getting these emails for the last year or so. I’ve been replying to the ones that actual humans receive and letting them know they have the wrong email. I also tell them to tell Josh Trask that hes giving out the wrong email. Typically I don’t get a response.

Today, I think his wife/gf emailed me and in the Subject it said “Thinking about you”. Which was kinda funny. So I told her to tell Josh not to give out this email to his friends because it isn’t his.

But what really gets my button is the SPAM this guy signs up for. Well, some of it is just silly stuff that I personally don’t sign up for.

I though he just signed up for MySpace because now I’m getting all this MySpace Junk. So I looked into it and I found out that this guy us using  “[email protected]” which is totally messed up.But this isn’t Josh, this is Justin Trask.

Anyways, if you click show details in Gmail, you will see a (Yes this is You, Learn More). Which links to this.

http://mail.google.com/support/bin/answer.py?hl=en&ctx=mail&answer=10313#

So what do I do? I cancel his myspace account, he had no friends anyways. But I don’t understand why there was no email confirmation to opt in. That’s really messed up. Not only that, but if I want to unsubscribe I have to login and cancel the subscription that I didn’t even confirm to receive. LAME!

Adding your Desktop Admin Groups to One Global Group for Administrators

One idea that has come up and is really handy, is creating a general support user so that you can login to machines and have Administrative rights to that machine. We have many groups, and each group has a Desktop Admin group that we add people to who need Administrative access. But we also use it to remove people that seem to abuse it.

Instead of manually adding the groups one by one, you can use dsquery and dsmod. You simple do a query to find the groups that you’ve created. In this example we’re looking for anything that ends in “Desktop Admin”:

dsquery group domainroot -name “*Desktop Admin”

Which returns all of the groups we need. Next step is to take the Global Desktop Admin group and add it to all of these groups. This is simple with dsmod:

dsquery group domainroot -name “*Desktop Admin” | dsmod group -addmbr “CN=Global Desktop Admin,OU=Network Admin,OU=Groups,DC=DOMAIN,DC=LAN”

Voila! Done.

cPanel Addon Domains and SEO Woes (Google Duplicate Content)

I was doing some web design work for a friend/customer of mine, and he had a Web Hosting account with a company that used cPanel. I’ve used cPanel before, I’ve dabbled in it and fixed problems with it. But never really used it extensively as a client so to speak. Anyways, included in the customers Web Hosting package was 20 Addon Domains. What are “Addon Domains”?

http://cpanelguide.net/addon.php

Basically it allows you to run mutiple websites off your single account/domain name. Brilliant idea, if it was done properly. When you add an Addon Domain, it creates a folder in your main sites public_html folder, typically its name is that of your domain name. Lets just say that my customer has two domain names, the main one bob.com and an additional one jill.com

The customer creates jill.com as an Addon Domain, all is swell. Until they find out they can access the addon domain at “jill.com” and “bob.com/jill.com”. Why is this bad? Well google will see it as duplicate conent and your site will either never get indexed or have funky SEO results.

How do you fix it? Change the root directory to not be placed inside the public_html folder and viola, no duplicate content. Also make sure to edit the subdomain to forward to the correct URL as well or more duplicate content will exist.

How To Install VMWare Tools on Debian Lenny

This article will step you through the required steps to install VMWare Tools on Debian Lenny. Although this article is for Ubuntu, it will still work. I’ve successfully done it. http://ubuntuforums.org/showthread.php?t=987631

How To Remove Roles After An Exchange Server Re-install Or Dead Exchange Server

I had run into a little bit of an issue when install Exchange 2007, which lead me to revert my VMWare ESXi Snapshot back to a later date. Once I did this, I had a fresh install of the same PC. When I tried to install Exchange 2007 I got hte following error message.

“[ERROR] The Client Access server role is already installed on this computer.”

For each rolle that I had installed on said server. I didn’t know why it was doing this. I suspected that ESXi left some reminents of the Exchange Install and that VMWare ESXi Snapshots weren’t really “Snapshots”. So I did a full re-install and still was receiving the above message.

I think starting doing some research and found out that there is Active Directory information that states what roles a server has, and the setup checks this before installing. All I had to do was delete this information. Here is the steps, that I found on the web.

1. Click Start, point to Programs, point to Windows 2000 Support
Tools, point to Tools, and then click ADSI Edit.
2. Expand each of the following items:
Configuration Container
CN=3DConfiguration, DC=3DDomain_Name,DC=3Dcom
CN=3DServices
CN=3DMicrosoft Exchange
CN=3DYour_Organization_Name
CN=3DAdministrative Groups
CN=3DYour_Administrative_Group_Name_Or_Exchange5.5_Site_Name
CN=3DServers

Note In this procedure, Domain_Name is a placeholder for the name of
your domain, Your_Organization_Name is a placeholder for the name of
your organization, and
Your_Administrative_Group_Name_Or_Exchange5.5_Site_Name is a
placeholder for the name of your administrative group or Exchange 5.5
site.
3. Right-click the Exchange 2003 server object, and then click
Delete.
4. Click Yes in every adsiedit dialog box that prompts you to confirm
the deletion.

Once I completed this, I was able to install Exchange 2007 again. I had to process this on the Domain Controller which is a separate machine.