Upgrading Etch

Before Upgrade

Take a complete backup of your debian etch server

Procedure to follow

First you need to take a backup of your sources.list file using the following command

#cp /etc/apt/sources.list /etc/apt/sources.list.backup

Now edit the /etc/apt/sources.list file

#vi /etc/apt/sources.list

Now you need to replace “etch” with “lenny“.

deb http://ftp.gb.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.gb.debian.org/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free

after replacing etch with lenny the file will look like this

deb http://ftp.gb.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.gb.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib non-free

The above example is for  a system using the main UK mirrors; your file might use a different local one

WARNING: if for some reason your apt sources doesn’t use etch, but “stable” then your apt commands will start to use lenny the moment it is released. This can result in wrongfully performing the upgrade while you don’t want to do this or even upgrade by mistake.We would always recommend people to use the release name (like etch, lenny) instead of generic names (like stable, testing); this way you will have the control on when you want to upgrade.

Perform upgrade

After changing apt sources we need to update source list using the following command

#aptitude update

Once this is done we will want to upgrade first the core apt packages

#aptitude install apt dpkg aptitude

and finally perform the full upgrade

#aptitude full-upgrade

Note:-dist-upgrade was renamed to full-upgrade in lenny’s aptitude; or you can use:apt-get dist-upgrade

This will take a while depending on what packages you have installed (that will need to be upgraded) and on your internet connection speed. After this is done you will have to reboot your system in order to activate the kernel upgrade to the lenny 2.6.26 kernel. Also you will want to check and see that all the applications you are using are still working as expected after the upgrade.

Some of the source from here

G2 Gallery Spam

f’ing spammers, well hopefully with the disabling of the comments things should be a bit more secure. That said, gee it runs better without 20k with of spam comments…

See teh rest of the post for the Comments Blaster script, just change the 500 limit to whatever ya want and it makes removing spam a piece of cake..mmm cheesecake….gotta go..

Read More

Uploader Reborn

Well kind of, up and running again, a few key points to remember for the future, to ensure this installs smoothly verify the following:

1) Apache mod_rewrite is installed

2) Correct Directive exists in the apache conf.

<Directory /home/
AllowOverride All
</Directory>

3) The .htaccess file is in place and correctly edited.

Note the software can run without the mod_rewrite but its get fugly, merely changing an option in the config.php sorts it out.

Setting up VPN for IPCOP

http://www.openvpn.eu/index.php?id=73

http://thinkhole.org/wp/2006/03/28/ipcop-openvpn-howto/

pretty much sums it up!

Remember to run client as Administrator on Vista:

add the following to rc.local if things dont get pused down.

iptables -A INPUT -i tun+ -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A INPUT -i tap+ -j ACCEPT
iptables -A FORWARD -i tap+ -j ACCEPT

When installing Open VPN (Zerina) remove the “if” block checking for the IPCOP version – cause that will completely stop it 🙂

Hardrive Failure – Read/Write Head

Always the worst kind of failure in the box…

The top few common causes of Harddrive Failure:

1) Physical abuse failure – this can be from transportation, dropping or even normal wear and tear in a laptop environment, HDD’s are very delicate items and when you get the nust and bolts of it, its precision disk spinning bloddy fast with a needle on it, remember what happened when you bumped the record player?! Basically head crashes are the most common physical failure. So next time windoze drops the BSOD on ya, resist the urge to smack that bitch-ass computer around 🙂

2) Heat – I reckon this rates pretty high, plenty of times when transferring data from one drive to another outside of a case and its quite incredible how hot the casing can get, almost to the point of not being able to touch it! Keep those drives fan cooled at all times, at the very least ensure the primary drive is fan cooled.

3) Power malfunction – power surge, static, lightning strike, whatever…these are all ways to zap a drive, always use a surge protecter, don’t run around the house in your sunday best shoes on teh carpet then touch the hardrive 🙂 and well lighting…cross ya fingers…

Nonetheless, fun and games aside, lets look at that HDD head closely…

fsck.ext3 unable to resolve UUID missing harddrive?

Sounds like corrupt partition? maybe, maybe not, nonetheless a real real pain in the ass. However, merely botting of knoppix 4.01 and mounting then unmounting the drive (which is recognised by the BIOS and knoppix) then re-booting into ubuntu sorts it all out!?

why it happens? dunno…what i do know, its a pain in the ass to pull all them machines out just to get a CD drive in there to boot knoppix…

Thunderbird & the context Menu ‘Send to’

2. enter “regedit” into command line
3. click “allow” when Windows asks to continue
4. Find \HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Mozilla Thunderbird and clik it
5. In the right pane you should see DLLPath key
6. If it has no value, mark DLLPath, right click and choose modify
7. Enter location of your mozmapi32.dll (C:\Program Files\Mozilla Thunderbird\mozmapi32.dll) and click ok.

and or

1. Click start and enter shell:sendto into command line
2. Sendto folder opens…
3. There should be MailRecipient.MAPIMail file. Probably you dont see extension, as it is Windows default setting.
4. If there is MailRecipient file, you can edit it with notepad (just pay attention to not use notepad as default application for MAPIMail file!)
5. If there is not such file, you can create one with Notepad. Just:
5.1. Make extensions visible (Folder Options> View > Uncheck “Hide Extensions for Known File Types.”)
5.2. Right click onto empty folder area and choose New>Text document
5.3. Edit file and write into it: C:\Program Files\Mozilla Thunderbird\Thunderbird.exe -compose attachment=”file://%1″
5.4. Change name to: MailRecipient.MAPIMail
6. Hopefully end of problems

You can find this solution also in: http://support.microsoft.com/kb/182378

WD10EADS Showing 30mb only

first thought..is you little shitter

however, the following will fix it!

UBCD 4.4.1 or higher (http://www.ultimatebootcd.com/)

run the HDD Tools

-> MHDD32

-> use the Uncut tool, also known as NPHA? refer to help F1

Similar to this but a lot easier!

First Problem: Can’t convert Dynamic Drive back to Basic
– Installed Samsung HD103UJ terabyte drive
– Windows (XP SP3) wanted to make it a Dynamic Drive and I said OK.
– Bad move! Poor performance, like treacle when copying files
– I tried to repartition but discovered Dynamic doesn’t support them 🙁
– I tried to convert back to Basic using Windows tools and also EASEUS Partition Manager but without success

Solution
1. Use gParted Live CD to wipe, repartition and reformat as NTFS
2. Problem solved. I chose two 480GB partitions as XP seems faster that way
3. Tell everyone “whenever Windows wants a Dynamic drive, SAY NO”

Second Problem: HD103UJ partition disappears, drive only 32MB
It had been working well, connected to an old Sil3114 SATA controller. I filled it with my stuff and retired the old drive as a backup. But next day for unknown reason, after reboot the new partitions vanished. Fortunately it wasn’t the system drive so I could still boot.

I tried messing with BIOS settings, reflashed Sil3114 and motherboard BIOS, reinstalled Sil3114 driver etc, all to no avail.

Solution
1. Download Samsung’s ES Tool. I burned the ISO image [1.86MB] onto CD.

2. Boot and run. ES Tool detected my Sil3114 card and HD103UJ no problem.

3. Under VIEW INFORMATION menu option the problem became evident:
Current Size 31 MB (LBA: 65134)
Native Size 953869 MB (LBA: 1953525168)

4. Under “SET MAX ADDRESS” menu option choose “Recover Native Size”.
NB. Don’t use “LBA MODE | Process” because that option needs to wipe your data.

5. Reboot. Drive reappears in all its 931.51GB of glory. Data is restored! 🙂

Mounting LV from USB Drives

Basically the crux of it is as follows. Remember it’s gotta be activated before mounting!

find it!

#fdisk -l /dev/sdb
Scan the drive with pvscan

#pvscan

Scan the drive with lvscan

#lvscan

activate it

#lvchange -a y /dev/volume

mount it

# mount -t ext3 /dev/volume/LogVol00 /mnt/somewhere

deativate when finished

#lvchange -a n /dev/volume

Mental note – don’t use LV, they suck and its more hard work…

Server Upgrade….Debian in, fedora out :)

Seemed simple enough at the time, feed down the better hardware thru the lines – reinstall fedora, latest version of course, but alas – in ten words or less…. switched server OS to debian…..now that makes +2 debian, 1 fedora remaining 🙂

Some more detail may be required….the usual story of lack of harddisk space and the lack of sata support on the current mobo was the driving force behind the upgrade, quite a decision since I had just recently replaced the heat sink and fan. The machine was to recieve redundant hardware from my main desktop, typically a abit NFS-7 mobo with a 3000XP althlon from memory, i decided to ditch 2/3rds of the RAm since it was without a doubt flatey at the best of times and failed memtest spectacularly 🙂

Now, as forementioned, fedora 10 was the candidate for the replacement OS, I had been thru a fresh install of Fedora 3 and two upgrades, one to core 5 and the final to core 8. I have found a few funny issues of the years resulting from these upgrades, but all in all they were quite good considering you are upgrading your whole OS, these where done from a CD upgrade rather than a yum upgrade. Fedora 10 had been out for awhileand considering that there are 3 odd beta versions before the release i figured this should be a safe bet, boy was i wrong.

I am sure that many will agree and as many, disagree when I list these deal breakers for me but hey..its a personal thing too… My first mistake was not to check the mailing list and forums for other users who had recently installed core 10 – probably would have stopped me right there before even opening the dvd tray. From the get go I had issues – monitor resoltion was messed up, well cant ask too much as it is on a HP KVM box, tried to setup static IP networking, seemed fine until it tried to find additional sources for yum, it would timeout and I would change the settings thinking I had the wrong network card selected only to find it would crash…. guaranteed.

So when I finally fumbled thru the install using the keyboard only, ’cause I could not see the bloody bottom right hand side of the screen I thought…the hard bits over….nup..

-network settings not saved after reboot

-Network manager needs a bullet

– Package manager fails, everytime

– dbus error

– Perl 5 did not work with thermd (big issue)

If I was a new user and confronted with these issues I would have thrown my hands up and gone elsewhere and this is basically what I did, I struggled with the OS for a few days and finally decided it’s not worth wasting my time, I would just go and use a known version like fedora core 9.

So back to the install disk and fedora core 9 was much much nicer, however I still found irritating bugs which I just could not be buggered spending hours trawling thru mailing lists and forums to find an inadequate work around. My biggest gripe at this point was; to sort out an issue, even a small one was hard work, the net is full of fedora 1 thru to core 10 problems and solutions, this makes finding a solution harder for your one little problem on fedora 10.

So after a few more days of struggling and cursing….I was going to sleep one night and I thought.. really this should not be that hard….I have had excellent service from my only debian install, admittingly a little hard to get going but once up and running satisfactory it has not stoppped (touch wood).

I did consider trying ubuntu, for about…5 minutes :/

So armed with a solid game plan I was convinced this was my only way to go, I download the install disks for etch release 4 (i think) and off I went. Oh did i mention the text based installer had no problems with my HP KVM?! 🙂

I only had to go thru the install process twice…thats good for me and that was only to sort out the logical volumes game, which was a first for me. So the good news is debian is installed and up and running, I did have a few niggling issues:

– apache2 config location and content is different but that was ok, issues from my end 🙂

– php conf different, as above.

– ntfs-3g need to jump into testing to get it installed, kernel still deficent, but I can deal with that.

– mod-rewrite, cause me no end of pain until I realsie it was not enabled.

– I had to work pretty hard to get all my goodies installed, like GD, php5-gd, imagemagick etc, not really a drama but is would have bee much nicer to have a better, correction refining method for choosing softare to install during the OS installation process. The apt-get is a godsend, makes life much much easier, light years ahead of yum imo.

In a nutshell, I am pretty darn happy with it at the moment….