Enable Grub multi-boots after re-installing Windows

My current working PC is a Dell Studio 1537 Laptop. This Laptop is configured with two Operating Systems; the first is Windows XP Pro, the second is Linux, more precisely Kubuntu.

Kubuntu is my [favourite] working OS, however the rest of my family “prefer” Windows for “Gaming”, I occasionally need to be able to use Windows in native mode for my work (I am a Webmaster for several Websites) so I need to see how they work using Internet Explorer :-(, mind you I usually use Virtualbox on Kubuntu to achieve this [but it’s a little slow], so I have a Dual boot which is managed by Grub. I have been playing with different versions of Windows on this Computer, the pre-installed OS was Windows Vista, which quite frankly, sucks. So I tried to install Windows XP Pro pretty much straight away. I gave up when I encountered the Blue Screen Of Death (BSOD) and subsequently installed the 90 days Windows 7 Enterprise trial.

This Version worked very well, only to shut down every hour as it was,after all, a trial version. So I had to find a solution to this, I finally decided to retry installing Windows XP Pro as there was no way that I’d re-install that joke of an Operating system called Vista.

The other problem, is that MS Operating System overwrites the MBR (Master Boot Record) and therefore prevents me from having Grub giving me the options of which partition I want to boot from.

So here is walk through of how to:

  1. Backup the MBR (which is always a good idea by the way)
  2. Change the BIOS “Onboard Devices>SATA Operation”
  3. Install Windows XP Pro on the first Partition
  4. Install [almost] all the missing Drivers
  5. Re-install the backed up MBR and reconfigure Grub afterwards

In the past, every time I was re-installing [any] Windows, I never managed to figure out how to overcome the MBR being overwritten, the HowTo’s where very daunting and I always resolved the problem by re-installing the Linux OS afterward due to lack of spare time, as a side note, one of the recommendation I have is that: it is always a good idea to have a home (/home) partition separated from the root (/) partition*.

Linux is more forgiving than Windows (and, shall I say, less monopolistic) by gladly allowing several OS’es living side by side on the same Hardware and thus performs a multi-boot initialisation operation after each fresh install.

The other challenge is that this particular version of Hardware [Studio 1537] is not supported by Dell to run Windows XP Pro. That makes work just a little more difficult.

So here are the steps in more details…

1) Backup the MBR

To backup the MBR of a Disk with Linux is really simple. Open a terminal window and type:

sudo dd if=/dev/sda of=/media/External/sda.mbr count=1

Where /media/External can be an external Hard drive or USB stick etc… It’s best to have this file saved out-with the Hard Disk Drive that will be worked on, just to be on the safe side.

2) Change the BIOS

At boot. press F2 and go to the Onboard Devices>SATA Operation and change AHCI to ATA. Save the configuration then reboot. (this operation is only needed once, subsequent re-installs do not require this step)

3) Install Windows XP Pro on the first Partition

My System has a couple of Partitions:

  • sda1 = Windows + MBR
  • sda5 = Linux / + Grub
  • sda6 = Linux /home
  • sda7 = swap

Obviously Windows must be installed on the first Partition and that’s where the MBR is.

Simply insert the Windows XP Pro installation CD, tell it to use the first Partition (optionally format it as NTFS) and follow the installation instructions. This will install a working version of windows with minimal functions.

4) Install all the missing drivers

Once windows has finished being installed, all the drivers [that have not been already installed, and that’s quite a few] must be installed. This is where it is getting a little tricky. Due to the futile nature of the web, it is like looking for a needle in a haystack in most parts, not to mention the huge amount of websites that try to entice you to install their rogueware.  The first descent source of information regarding the required drivers I have come across is Dell Studio 1535 converted to XP Professional  (this link is now rotten) by “Wickman Studios”. Most of the drivers are available here. For my particular configuration, it’s been trials and errors, as I haven’t kept tab on the different drivers’ executables I tried, it is kind of difficult to be specific.

The last few drivers I needed that Wickman Studio Post did not have were the “unknown” device which I managed to solve with I found on Dell Studio 1537 Windows XP Drivers / Downgrade (this link is now rotten) written by “AZ cloud tech” which is also a good source of information.

I still had issues with the ITECIR Driver which I eventually found on the Lenovo website (this link is now rotten) (the link from the Wickman Studios was throwing a “zip file corrupted” error during install).

The final problem I still have is the 1394 Firewire Network adapter not being recognised, but I have disabled it as I don’t really need it, if you have any idea let me know 🙂

Once I got [almost] everything working, I installed all the Windows Updates and the [free!?] Microsoft Security Essentials (MSE) which is the only thing I will ever recommend to use from Windows, that’s rare coming from me, trust me.

 5) Re-install the MBR and reconfigure Grub

For this part, I wish to thank John S. Denker for his information regarding  How to Reinstall Grub Onto Your MBR which was extremely useful and the first clear and concise Howto I managed to follow and recover my Dual boot system with.

After a few lots of trials and errors I managed to get the Dual boot working. Here’s the final order I used:

  1. Back up the MBR before anything else
  2. Restore the MBR without disturbing the current partition table
  3. Get the system to boot, note: my $partition on point 6 is sda5 but it might be something else for your System, So I am not responsible if your system fails!

In my first atempt to install Windows, I had a fail due to a problem with the sda1 Partition, there was a formatting issue (probably due to the fact I installed winXP without reformatting the old Win7 Partition first), so when I tired to do a Follow up I got a “Stage 1 error”  this problem got fixed when I did a full NTFS format prior to installing Windows XP again.

I also played with Using Grub Command Directly as before the re-install I was faced with the grub> command prompt at boot :-(, so just for the record, my root device is /dev/sda5. In addition as I had grub 2 installed, the correct command went from root (hd0,<tab> to:

set root='(hd0,<tab>

which in full is (don’t ask! It’s for the Record):

set root='(hd0,msdos6)'

Subsequently, the next command looks like:

linux /boot/vmlinuz-... root=/dev/sda5

Well, that’s it in a nutshell, I hopefully will not need to perform any of this again, as I made an disk image of sda1 with partimage and dd which is safely stored on an external USB Hard Disk Drive, I also have a complete backup of all the web pages, Zip archives and exectuables mentionned in this post just in case. One knows the elusive nature of the Web these days… So I hope this was worthwhile and may prove useful to someone else, in which case, good luck and let me know how you did.

*That way I can format / without losing all my stuff and simply mount my home Partition as /home after my install. This is also very useful when doing an upgrade as I know that none of my Data will be overwritten, I also do regular backups, that goes without saying.

Kmail migration – for the record

Transfer mail and settings to another computer (or another user account on the same machine)

Solution: The messages are typically in ~/.kde/share/apps/kmail/. For very old installations of KMail, the messages can also be in ~/Mail. Note that KMail uses hidden sub-directories inside that directory, so you need to make sure to copy hidden directories as well.

For settings you will need to copy the following files:

  • ~/.kde/share/config/kmailrc,
  • ~/.kde/share/config/mailtransports, (since KDE 4.0)
  • ~/.kde/share/config/emaildefaults and
  • ~/.kde/share/config/emailidentities .

Your address book is usually stored in ~/.kde/share/apps/kabc/. Calendar data is in ~/.kde/share/apps/korganizer

Be aware that some distributions use ~/.kde4 instead of ~/.kde/ for their KDE configuration data.

From version 4.4 you may have some Akonadi-controlled entries that also need to be kept. Add to the above list –

  • Everthing under ~/.local/share/
  • Everything under ~/.config/akonadi/.
  • ~/.kde/share/config/nepomukserverrc
  • Everything under ~/.kde/share/apps/nepomuk/ (KAddressBook stores contact groups in Nepomuk.)

Network manager not enabled on Kubuntu 10.04

For some unknown reason, kubuntu network manager caked on me, the way to restore it is to do the following:

sudo service network-manager stop
cd /var/lib/NetworkManager/
sudo rm NetworkManager.state
sudo service network-manager start

After these commands, the network manager was back on. Now why would this be needed? This is the one thing that really gets me to think that Windows might be bloated but it always kind of “works”

Excluding unmatched entries from logwatch

Let’s say you’ve got a logwatch report and the report throws 100’s of lines that aren’t really important, say ftp sessions opened by a application you know and have configured yourself.

Well the way to exclude these from the report is to edit the /etc/logwatch/conf/ignore.conf file!

Simply enter the matching string (i.e. IP address) in this file and the 100’s of lines will be history.

Simple

Detecting printer from (k)ubuntu

Debian and Windows Shared Printing mini-HOWTO
Ian Ward
2005-07-01
Revision History
Revision 1.6           2005-07-01            Revised by: iw
Clarified hpijs requirement, added lpinfo and lpoptions commands
Revision 1.5           2005-06-19            Revised by: iw
Added note about becoming root to execute commands
Revision 1.4           2004-01-05            Revised by: iw
Wording corrections
Revision 1.3           2003-11-18            Revised by: iw
Removed incorrect lpadmin -h usage
Revision 1.2           2003-10-03            Revised by: iw
Note about woody and gs-esp, conflict with bash's enable command and
fix for XP/2000 clients
Revision 1.1           2003-06-26            Revised by: iw
Added passwords on windows shared printers, Corrections
Revision 1.0           2003-05-15            Revised by: tmm
Initial release, reviewed by LDP
Revision 0.8           2003-04-11            Revised by: iw
converted from LaTeX
----------------------------------------------------------------------
Table of Contents
1. Introduction
2. Getting Started
2.1. Linux Printing Components
2.2. Required Packages
2.3. CUPS Local Printer Configuration
2.4. Linux Printing Basics
3. Printing To Windows PCs
3.1. Connecting To Windows
3.2. CUPS Configuration
4. Sharing Printers With Windows PCs
4.1. Sharing Basics
4.2. Samba Configuration
4.3. CUPS Configuration
5. Troubleshooting
5.1. Failing To Connect To Windows Printers
5.2. Other Failures
6. License
1. Introduction
Debian GNU/Linux ([http://www.debian.org] http://www.debian.org) is
the premier volunteer-supported Linux distribution. Unfortunately,
setting up printers in Debian can be difficult. Also, simple
step-by-step instructions for sharing printers between Windows and
Linux using the latest tools are hard to find. This HOWTO was written
to address both problems.
This HOWTO will demonstrate how to use command-line tools to configure
your Debian system for printing. It will explain how to send documents
from Linux to Windows printers and how to share Linux printers with
Windows PCs. Some troubleshooting examples are also given.
The primary url for this document is [http://excess.org/docs/
linux_windows_printing.html]  http://excess.org/docs/
linux_windows_printing.html. The source Docbook/XML and EPS files for
this document may be downloaded from [http://excess.org/docs/src/]
http://excess.org/docs/src/. Please forward bug reports, corrections
and suggestions regarding this document to ian at excess dot org.
--------------------------------------------------------------------
2. Getting Started
2.1. Linux Printing Components
The main components we will be using include:
*  CUPS
The Common UNIX Printing System ([http://www.cups.org] http://
www.cups.org) is a print spooler and a set of support programs for
using and administering printers.
*  Samba
Samba ([http://www.samba.org] http://www.samba.org) is software that
allows non-Windows computers to act like Windows computers on a
network by implementing Windows file and printer sharing protocols.
*  Printer Drivers
LinuxPrinting.org ([http://www.linuxprinting.org] http://
www.linuxprinting.org) offers the largest number of printer drivers
and maintains a database of printers supported under Linux. You must
download a printer driver for each model of printer you want to use in
Linux. A printer driver consists of a PPD file and a filter program,
or only a PPD file for PostScript printers.
---------------------------------------------------------------------
2.2. Required Packages
All of the required programs and libraries are part of the standard
Debian archive. You may download and install these packages with the
usual Debian packaging tools. The following is a list of packages you
need:
cupsys
CUPS server
cupsys-bsd
CUPS BSD commands
cupsys-client
CUPS client programs
foomatic-bin
LinuxPrinting.org printer support programs
samba
Samba SMB/CIFS server for UNIX
smbclient
Samba SMB/CIFS client for UNIX
gs-esp
ESP Ghostscript ([http://www.cups.org/ghostscript.php]  http://
www.cups.org/ghostscript.php)
Not available as a Debian GNU/Linux 3.0 (a.k.a. woody) package, use
"gs" instead.
a2ps
GNU A2PS ([http://www.gnu.org/software/a2ps/]  http://www.gnu.org/
software/a2ps/)
The following commands will install these packages. You will have to
become root or use sudo to execute these commands:
apt-get update
apt-get install cupsys cupsys-bsd cupsys-client foomatic-bin samba
smbclient gs-esp a2ps
Additional packages may be required for specific printers. For
example, the hpijs package must be installed for many HP InkJet,
DeskJet and LaserJet printers to function properly. The PPD files for
these printers are identified by the string hpijs in their filenames.
----------------------------------------------------------------------
2.3. CUPS Local Printer Configuration
The lpadmin command is used to configure printers. The following is an
example of setting up a laser printer with CUPS. You will have to
become root or use sudo to execute these commands:
/usr/sbin/lpadmin -p Laser -v parallel:/dev/lp0 -P /root/laser.ppd
/usr/bin/enable Laser
/usr/sbin/accept Laser
/usr/sbin/lpadmin -d Laser
Please note that bash has a builtin command called enable, so bash
users must use the full path (/usr/bin/enable) to enable printers.
The first command creates a new printer called "Laser" that is
connected to the first parallel port and is using the PPD file
/root/laser.ppd. "Laser" is then enabled and told to accept jobs with
the enable and accept commands. The last command sets "Laser" as the
default printer.
If your printer is connected to a USB port or if you do not know the
correct device-uri for your printer try running /usr/sbin/lpinfo -v
to get a list of available printer devices.
Make sure your printer's page size and other options are set correctly
by running /usr/bin/lpoptions -l. More detailed information about
printer configuration is available in the CUPS documentation.
----------------------------------------------------------------------
2.4. Linux Printing Basics
Figure 1. Printing Locally
[printing_basics]
Documents are spooled by using either lpr or lp followed by the file
name.
You may view the printer queue and check the printer status with the
command lpstat -o or lpstat -p. To cancel a print job use either
cancel or lprm followed by the job id.
The CUPS spooler daemon is called cupsd. It converts documents to
PostScript, then converts them to a format native to the printer
Figure 1.
Printers that do not understand PostScript use a rasterized, or
bitmap, format for documents. Rasterized formats can be much larger
than the original PostScript, and will take longer to send to the
printer.
Filters are programs used to convert documents from one format to
another.
The CUPS spooler will do its best to find a suitable filter for the
documents you send. If no filter suitable for converting your document
is installed you will receive an error similar to lpr: unable to print
file:
client-error-document-format-not-supported.
Many applications do not include filters for their documents formats.
Documents created with these applications can only be printed from
within the application itself, unless the document is exported to
PostScript or another standard format.
---------------------------------------------------------------------
3. Printing To Windows PCs
3.1. Connecting To Windows
Figure 2. Network Printing
[to_windows]
SMB and CIFS are the Windows file and printer sharing protocols. We
use Samba to speak to the Windows PCs using these protocols. Before
configuring CUPS we should make sure we can connect to the Windows PC
with smbclient, the Samba SMB/CIFS client Figure 2.
The following is an example of creating a connection to a Windows PC:
/usr/bin/smbclient -L rice -U fred
added interface ip=10.6.7.234 bcast=10.6.7.255 nmask=255.255.255.0
Got a positive name query response from 10.6.7.8 ( 10.6.7.8 )
Password: (not shown)
Sharename  Type  Comment
PRINTER$   Disk
INKJET     Printer
STUFF      Disk
IPC$       IPC    Remote Inter Process Communication
The command shown asks for a list of shares on a Windows PC named
"rice", with the user id "fred". The result shows a printer named
"INKJET".
If Windows naming service is unavailable you will need to specify the
IP address of the Windows PC with the -I switch as in:
/usr/bin/smbclient -I 10.6.7.8 -L rice -N
For more information see the Samba documentation about smbclient
usage.
---------------------------------------------------------------------
3.2. CUPS Configuration
Once you have found a Windows printer you may configure CUPS. First
verify that your installation of CUPS has the smb backend with the
following command:
ls -l /usr/lib/cups/backend/smb
If this file does not exist create it by issuing the following:
ln -s `which smbspool` /usr/lib/cups/backend/smb
The following is an example of setting up the printer shown above.
You will have to become root or use sudo to execute these commands:
/usr/sbin/lpadmin -p RicePrinter -v smb://fred:mypass@rice/INKJET  \\
-P /root/inkjet.ppd
/usr/bin/enable RicePrinter
/usr/sbin/accept RicePrinter
/usr/sbin/lpadmin -d RicePrinter
As mentioned above, bash has a builtin command called enable, so bash
users must use the full path (/usr/bin/enable) to enable printers.
The "lpadmin" command sets up a the shared Windows printer by giving
the username, password, netbios name and printer name as a single
parameter. See Section 2.3 for a further explanation of the commands
above.
Your printer is now ready to test. Send a file to the printer with the
lp command followed by a filename, or by printing a document from
within an application.
---------------------------------------------------------------------
4. Sharing Printers With Windows PCs
4.1. Sharing Basics
Figure 3. Printer Sharing
[from_windows]
Samba uses nmbd and smbd daemons to share files and printers with
Windows PCs. nmbd acts as a Windows naming service, broadcasting your
computer's name to Windows PCs on the LAN. smbd accepts file and
printer requests from Windows PCs Figure 3.
You will need to download and install Windows printer drivers for each
Linux printer you are sharing. Windows printer drivers can be found by
searching the web site of your printer manufacturer.
---------------------------------------------------------------------
4.2. Samba Configuration
If you are allowing anonymous access to your printer you will need to
create a user account for remote print jobs:
/usr/sbin/adduser --system --disabled-password smbprint
This command adds a user called "smbprint" to your system. Make sure
there is enough disk space in /home/smbprint, the "smbprint" user's
home directory, to spool files. Check that the "smbprint" user does
not have permission on your system to read or modify sensitive files
and directories. If you have configured CUPS to restrict printing to
certain users on your system, you must allow the "smbprint" user to
access printers you want to share.
The Samba configuration file is /etc/samba/smb.conf. The following is
an example configuration file set up to use CUPS with the "smbprint"
user:
[global]
printcap name = cups
printing = cups
security = share
[printers]
browseable = yes
printable = yes
public = yes
create mode = 0700
guest only = yes
use client driver = yes
guest account = smbprint
path = /home/smbprint
Please note that this configuration will allow printing by anyone that
can make a network connection to your computer and is not recommended
for computers on untrusted networks, such as computers with direct
Internet connections. If you need to implement access control, set
 security = user or security = domain and read the Samba man pages for
further information.

Once you have added the above settings to your Samba configuration
file you must restart Samba with the command:
/etc/init.d/samba restart
---------------------------------------------------------------------
4.3. CUPS Configuration
Windows printer drivers format their output for the printer before
sending it across the network. You must configure CUPS to accept the
pre-formatted output by uncommenting the following line from
/etc/cups/mime.convs:
application/octet-stream   application/vnd.cups-raw   0   -
Also uncomment the following line from /etc/cups/mime.types:
application/octet-stream
Now CUPS must be told to allow connections from other machines on the
network. Add these lines to /etc/cups/cupsd.conf:
AuthType None
Order Deny,Allow
Deny From None
Allow From All
As in the Samba configuration, this configuration allows any computer
to connect to your printers and is not recommended for computers on
untrusted networks. For information about tightening access control to
your printers, see the cupsd.conf man page and the CUPS documentation.
Finally, restart cups with the following command:
/etc/init.d/cupsys restart
Your Linux printers should now be shared to Windows PCs on the LAN.
Follow the usual steps for adding a network printer to your Windows
PCs, and remember to print a test page.
---------------------------------------------------------------------
5. Troubleshooting
5.1. Failing To Connect To Windows Printers
When smbspool, the smbclient utility CUPS uses, fails to connect
properly it emits error messages that are humorous but not very
helpful. One such message is Unable to connect to SAMBA host: Success.
Another sign of connection failures is when documents seem to get
stuck on the queue when printing to Windows printers.
View the most recent entries in the CUPS log with the following
command:
/usr/bin/tail /var/log/cups/error_log
If you see a message similar to cli_connect() failed... then smbspool
could not find the Windows PC you are trying to connect to. Check the
spelling of the Windows PC's host name. Check that the Windows PC is
turned on and that its network connection is functioning properly.
Make sure you can connect to it using smbclient as shown in Section
3.1.
If you see a message similar to SMB tree connect failed: ERRSRV -
ERRinvnetname then smbclient connected to the Windows PC but could not
connect to the printer you requested. Check the spelling of the shared
printer using smbclient as shown in Section 3.1.
----------------------------------------------------------------------
5.2. Other Failures
Other failures include being unable to print to a local printer and
having your print jobs disappear from the queue without being printed.
You may also see vague error messages such as Child process 2384
exited with status 32.
Increase CUPS' logging level to "debug" to see more messages about
what happened before the print job failed.
1.  Open the main CUPS configuration file /etc/cups/cupsd.conf in a
text editor.
2.  Change the line that reads "LogLevel warn" to "LogLevel debug".
3.  Save the configuration file and exit the text editor.
4. Restart the CUPS server with the command:
/etc/init.d/cupsys restart
You can follow the CUPS log with the following command:
/usr/bin/tail -f /var/log/cups/error_log
You should see a line that reads Scheduler shutting down due to
SIGTERM.
This indicates that the CUPS server was stopped successfully.
Send your print job again and watch for useful debug messages that
appear.
One example of a useful debug message is GNU Ghostscript 7.05: Can't
start ijs server 'hpijs'. In this case the solution is to install the
"hpijs" package.
If you cannot determine the cause of the failure, do an Internet
search for key terms in error messages you see; it is likely that
someone has solved your problem before. You may also try upgrading the
packages listed in Section 2.2 to their latest versions.
---------------------------------------------------------------------
6. License
Copyright © 2003 Ian Ward.
This manual is free software; you may redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
This is distributed in the hope that it will be useful, but without
any warranty; without even the implied warranty of merchantability or
fitness for a particular purpose. See the GNU General Public License
for more details.
A copy of the GNU General Public License is available as /usr/share/
common-licenses/GPL in the Debian GNU/Linux distribution or on the
World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also
obtain it by writing to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307, USA.

HotSanic – Thumbnail generation problem

My new server has never been able to show the main HotSanic index page with thumbnails images, all I got was resized images. This problem had never happened on the old server.

I eventually gave up, then I really wanted to find out why I could not get these thumbnails, I had ImageMagick installed after all and the log files were not showing any errors, and no specific resources are available on the web about this problem.

After some investigating I found out the cause.

In the main HotSanic settings file, there is a CONVERTMETHOD variable.

The options available are explained above this variable.

My settings was CONVERTMETHOD=”HTML” all I had to do is change it to CONVERTMETHOD=”ImgMgck”

Simple.

After that I ran the makeindex.pl and convert.pl and presto, my thumbnails were there.

http://www.scothorse.net/HotSanic/

AOL and emails not getting through

Okay, this problem always seems to happen every time I move to a new server, so if I document it I might actually get it sorted before it starts happening

My server cannot send emails to AOL. The problems comes from the fact that the IP address seen by AOL when receiving emails is apparently xxx.xxx.xxx.xxx (obfuscated to protect address, throughout this post)

I use the instructions from this URL:

http://postmaster.aol.com/Postmaster.Troubleshooting.html#vrfIP

and the email I get back from AOL using webmail on my dedi is:

Your connecting IP is: xxx.xxx.xxx.xxx

Please visit our web page at: http://postmaster.aol.com for more information about AOL Email Policies and methods to fix delivery issues.

Postmaster Group
America Online, Inc.

If I test this IP on this page:

http://postmaster.aol.com/cgi-bin/plugh/rdns.pl

I get an error

Here is the email I receive on my AOL email address (after several hours and having added the sender’s email address in my list of contacts, as AOL seems to tell to do that):

Return-Path:
Received: from mtain-mb03.r1000.mx.aol.com (mtain-mb03.r1000.mx.aol.com [1×2.x9.96.×3]) by air-mc04.mail.aol.com (v127_r1.1) with ESMTP id MAILINMC042-a9304b7dd0981d4; Thu, 18 Feb 2010 18:43:20 -0500
Received: from srv–.——-.co.uk (unknown [92.xx.69.187])
by mtain-mb03.r1000.mx.aol.com (Internet Inbound) with ESMTP id C6E7B3800009A
for ; Thu, 18 Feb 2010 18:43:04 -0500 (EST)
Received: (qmail 18299 invoked by uid 48); 18 Feb 2010 18:46:36 +0000
Received: from —–.gotadsl.co.uk (—–.gotadsl.co.uk
[213.xxx.112.119]) by webmail.pastelpals.co.uk (Horde MIME library) with
HTTP; Thu, 18 Feb 2010 18:46:36 +0000
Message-ID: <20100218184636.8cd1edr640og0gcg@webmail.pastelpals.co.uk>
Date: Thu, 18 Feb 2010 18:46:36 +0000
From: —–@—–.co.uk
To: —–@aol.com
Subject: TEST
MIME-Version: 1.0
Content-Type: text/plain;
charset=ISO-8859-1;
DelSp=”Yes”;
format=”flowed”
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.1.6)
x-aol-sid: 3039ac1d60174b7dd0884a98
X-AOL-IP: 92.xx.69.187
X-Mailer: Unknown (No Version)
X-Length: 1203
X-UID: 24645412

As one can see, the IP AOL sees (92.xx.69.187) is not the IP of the sending Server (92.xx.68.118)

I have still got a ticket opened with the DC regarding this…

Tbc…

Local plesk backups – change dump location

All Plesk “local” backups are stored in the following path:

/var/lib/psa/dumps

The problem resides in the fact that if the partition containing /var is small, this can create big problems. Luckily Plesk is happy with symlinks…

So in order to raise the space available for dumps, simply move the content of the dumps directory to the new location and create a symlink:

Commands:

cd /var/lib/psa
mv dumps /home/backups/
ln -s /home/backups/dumps dumps

This creates a symbolic link to the new dump path which has plenty of disk space.

All websites moved

All the websites and email accounts have now been moved. There was a little hicup as the pleskbackup (8.6) did not like me, so I had to backup and restore each websites manually.

There was also a problem with the/usr/ partition overfilling and crashed the Plesk CP by filling up /usr/local/psa/PMM/logs, I had to move some restore logs as they were huge (3.4GB). After that, panic over and all went ok. (I took the safety option not to delete the files as you never know what Plesk can throw up at you, but it did not seem to affect my work, so I don’t know what these files are for except after action review? yes I fancy looking at a 3.4GB log file!)

Plesk does seem to have some issues regarding disk space…

Anyway, the site are all moved and all is working well again. The DNS will be propagated by tonight, as I can already ping the new IP…

The Urchin stats will be replaced by Google Analytics, it seems quite good.

Strange behaviour with Imagemagick’s convert file permission

For some weird reason I haven’t been able to find out why or how to change this, the image conversion on the new server, using Imagemagick’s “convert” command failed to set the right permissions to the output files, I spent a long time searching for some resources on the web about how to change the converted file permission of a converted image by Imagemagick’s convert command but all I got was more or less info about permission preventing the file to be converted.

So at the end I decided to see if inserting a simple system command that chmod the files after conversion would work.

It did.

So the problem is fixed, but I still don’t know why the permission aren’t right to start with, so if anyone’s got an answer feel free to share.