You may or may not have noticed some uptime / server response issues with geekhut – this is because we have moved! Our friend Randy Powell at GSMCall has graciously donated several powerful VPS boxes for geekhut, rappiddev and enumplus (among others) and we could not be happier. Since I was so pleased with this service Randy and I came to an agreement to host all of our clients on a similar VPS box complete with a User Panel I have been tirelessly working on for a few weeks now.
One of the biggest problems switching hosts is migrating email accounts, luckily we use Zimbra and it was extremely simple – this is how I did it :
imapsync –nosyncacls –subscribe –syncinternaldates –host1 old.server.tld –user1 user@domain.tld –password1 password –host2 new.server.tld –user2 user@domain.tld –password2 password
IMAP Sync is a wonderful application that can easily be installed on RHEL5 / CentOS using the DAG repository (just google “DAG”). There are three or four Perl dependencies to get it working however once you have everything installed you are ready to import.
This is more or less a note for my own records – hopefully you will find it useful as well.
I have been up all night working on this template for a local business and have been running into some major issues with IE6 (what else is new?). I have used !important in the past but not as heavily as for this project, sure learned a lot.
For those who don’t know – creating stylesheets that render identically in both Internet Explorer and Good browsers is a saught after talent. I could get into a whole mess about how yucky it is working with IE but instead you can Google it yourself, someone else has no doubt already written about this much better than I can.
A quick explanation of !important is as follows :
Firefox renders it, Internet Explorer doesn’t. For Example :
margin-left:10px !important;
margin-left:5px;
Firefox will push whatever div over 10 pixels while Internet Explorer will get confused, skip the line and render the 5px margin.
It is important to put !important before any other “contradicting” statements as it could play mind games and mess you up something awful.
Take a look at the in-progress template and tell me what you think…
I have been in Denver Colorado for the past week at a natural health conference (I was the IT insurance in case something broke). It turned out quite well, though I never got to see the rockies – a crying shame! Anyway all was not lost, I was able to hit up the duty free in Niagara Falls late Wednesday evening for some wicked deals!
I ended up walking away with a 40oz bottle of rum (with Mai Tai mixer) and a carton of delicious Marlboro Reds for $50 on the dot – I couldn’t be happier! Anyway it is Friday night and time to get full use of my purchases.
Let’s say you just dumped an entire database and are looking to import it elsewhere, possibly on a new host. As soon as you install mysql-server on the new box a new password is set for user debian-sys-maint.
# mysqldump –all-databases -u root -p > dump.sql
Once you import this database on the new host there is a good chance you will not be able to restart mysql as the debian-sys-maint user account passwords will not match.
# mysql -u root -p < dump.sql
So the easiest way to fix this issue is to :
web:~# cat /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = PASSWORD
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = PASSWORD
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
So often after installing VMWare on my Debian based hosts I get this error :
desktop gregory # vmware
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
You have probably seen this yourself if running any Ubuntu flavored distributions, heres my fix :
desktop gregory # rm /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
desktop gregory # ln -s /usr/lib/gcc/i486-linux-gnu/4.2/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
Now I wil never forget…


