Curious case of Redmine Upgrade

Well i call it curious cos i been just told to upgrade Redmine without giving any other details.

some strange situation :–

[php]

$ dpkg -l rails [/php]

gave me nothing (omg my redmine instance running without Rails)

After some googling and #redmine irc channel i figured out like python easy_install and ubuntu/debian ruby uses gem.

So on typing

[php]

$ gem list –local

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastthread (1.0.7)
passenger (2.2.11)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rmagick (2.13.1)

[/php]

Told me these are the magical pkgs allready installed.

I also figured out with help of dpkg -l that i have mod_rails(http://www.modrails.com) and ruby 1.8 installed.

I had to spend some time to figure out what is current version of redmine installed on my server.there was a simple way to find that.

[php] $ elinks http://myredmine/admin/info[/php]

Redmine 0.9.6.stable (MySQL) <– this was my configuration.

Then i followed steps provided at http://www.redmine.org/wiki/redmine/RedmineUpgrade

And yes,

I took mysql backup and filebkp too along with changing directory location in my virtualhost.

My 1$ Advice, please install additional plugins one by one from the repo which has latest release of it rather upgrading and moving the plugin from older version of Redmine else you will end up going in lot of shit. Most of the older plugin are still not supported in 1.0.X version of Redmine.

Recovering the deleted JPG files.

Its been some time i posted here, my apology.
It was great last evening as me Achet and Tanya wer out 4 dinner and at same time we been clicking our photos.

Tanya unknowingly deleted all the photographs we had taken that evening and she was feeling way to bad. I knew there must be some way to recover the data and hence i was relaxed.

After googling and speaking with Shastry i figured out the way to recover all the deleted images with a FOSS software name “Foremost”

Installing the software was 2 easy easy like always on ubuntu.

Checking the man of foremost i got basic idea about it.

steps i followed:–

1. installing foremost

[php]$ sudo apt-get install foremost
[/php]

2. Figuring out the device name and mount point

[php]$ mount
[/php]

it told me my drive is /dev/sdb1

3.final execution

[php]$ sudo foremost -t jpg -i /dev/sdb1
[/php]

4.output

I got a directory with name “output” in my current working directory with a subdirectory name “jpg” and i could see all my deleted images there.

I slept at 4 am and woke up at 9 and felt like sharing it with all of you so i wrote about it right away.

Cheers!!

Curious case of denyhost and ssh.

I been using denyhost on my own server and many other boxes i been taking care of.

I was getting error whenever i tried connecting to my server
“ssh_exchange_identification: Connection closed by remote host”

After checking logfile i figured that its happening because of the denyhost. The documentation at the denyhost website explains how to remove the blacklisted Ip

Now i had to find real issue why is my legitimate IP getting blacklisted again and again?

My logfile gave me a Warning

Aug 25 16:39:34 vm27 sshd[13147]: reverse mapping checking getaddrinfo for server62.xyz.net.in [200.99.04.24] failed – POSSIBLE BREAK-IN ATTEMPT!

To get this error removed what i did was, I had to add UseDns no to /etc/ssh/ssd_config file.

This removed warning messages and also i was not getting anymore issue of getting IP blocked from denyhost.