Archive

Author Archive

Save Power using Wake On Lan

March 8th, 2010 Dhaval Thakar No comments

Apart from Virtulization we can shut servers whenever it is not being used to save power.

At my office, we used to keep Antivirus server running 24×7, to get latest definition updates & to let users fetch. This was not necessary to keep server ON whole night as there was no user. Also we had same situation for Squid server & Samba, NFS share.

All these servers were required to be up & running before employees enters office.
In other words we required to keep all servers running 5 days a week. It was of no use to keep it running during nights & weekend.

Using Wake-on-lan we could get all server up before office hours.

We use NAGIOS, this one is ON 24×7 to monitor links & live servers.
By configuring Cronjob on Nagios we got all servers UP before office hours.

etherwake / ether-wake is available on almost all distro. you can get server up
ether-wake MACADD

to install ether-wake
Centos – yum install ether-wake
Ubuntu – apt-get install etherwake

Create Linux / Windows 7 Bootable USB -Ultraiso

March 4th, 2010 Dhaval Thakar No comments

In Previous posts we have covered creating usb boot for fedora & ubuntu.

Apart from unetbootin, you can use UltraISO to create usb boot.

Following is the easy procedure to create bootable usb.

1) Connect USB device & select it int UltraISO.

2) Select Live CD iso image.

3) Click on Bootable from menu, choose Write Disk Image.

From here you can format your USB drive & start writing image by clicking on Write.

Windows Admin can use this tool to write Windows 7 bootable usb (I have not tested on Vista).

And the best part is that, ultraiso supports usb writing in trial version.

Recover Ubuntu & Win7 – after upgrading from XP

March 2nd, 2010 Dhaval Thakar No comments

If you are using Ubuntu & XP dual boot, & if at all you are planing to upgrade / have upgraded to Win7, this post may be helpful for you.

When you upgrade to Win7, due to Win’s unsocial behaviour to coexists with other OS, grub boot loader is lost.
Here we assume, when you installed xp partition was fat32. Later system upgraded to windows 7 with ntfs filesystem.

Due to MBR overwritten grub is missing, follow this link to recover.

Now on booting you’ll find XP in boot option instead of Win7. If you try booting with XP option, you’ll get error.
To fix it
goto ubuntu recovery mode

in recovery menu
select grub (Update grub bootloader)

reboot the system. All should be fixed.

Uptill XP, it was ok with windows overwrite MBR, but same behaviour with Win7 is bit annoying. Atleast now MS should respect other OS and should learn to coexist.

Recover Firefox Lost Bookmarks

February 18th, 2010 Dhaval Thakar No comments

Most time of the day I surf through many web sites & come across many interesting articles / posts which can be useful in future. Like every web user I bookmark all these URLs. I use both Xmarks & Mozilla Weave to keep bookmark backedup, as bookmark is really important for me I do not wish to take any chance to loose it.

Today by mistake I lost one of my bookmark folder. Ofcouse, I wasn’t worried as I had multiple backup on Xmarks. All I had to do was to restore old backup from Xmarks. Rather restoring old backup from Xmarks I started looking for alternatives to recover bookmarks. While searching I endedup on this link which describes how to recover lost Firefox bookmarks without using any additional extension.

* In Firefox 1.5 and above, five daily bookmark backup files are saved in the bookmarkbackups folder, located in the Firefox profile folder. You must recover one of these five backups before they are overwritten by newer versions.

* In Firefox 2 and below, and in other Mozilla browsers, bookmarks are stored in the file “bookmarks.html”, located in the profile folder. There is also a “bookmarks.html” file in the program folder, but this one is only a template and does not hold your bookmarks. To make sure you have the right file, you can open the bookmarks.html file or any bookmark backup file using “File -> Open File” from the menu (see above).

* Starting in Firefox 3, bookmarks are stored in the places.sqlite file and bookmarks*.html files are only used for importing and exporting. As of Firefox 3 Beta 5 bookmarkbackup files are stored in JSON format.

As per above description all you need to do is to restore old .json files from Bookmarks => Organize Bookmarks => Import and Backup => Restore => select date (to restore backup of that particular date).

This is how you can recover your Bookmarks from JSON files.

In case you wish to restore JSON file of another computer / profile.

Copy JSON file from source location as mentioned below.

JSON file location ~home/$USER/.mozilla/firefox/$PROFILE/bookmarkbackups/

To find profile path cat ~home/$USER/.mozilla/firefox/profiles.ini

To restore

Bookmarks => Organize Bookmarks => Import and Backup => Restore => Choose File..

Resource

Yum – How to Exclude package update

February 15th, 2010 Dhaval Thakar No comments

In previous post we have covered openoffice-3.2 installation,
by mow many must have noticed while running yum update, yum is trying to upgrade openoffice.org-ure-1.6.0-9483.i586.rpm which belongs to openoffice-3.2 installation. This package is being replaced by openoffice.org-ure-3.1.1-19.14.fc12.i686 as a result openoffice does not work, to fix you need to reinstall openoffice.org-ure-1.6.0-9483.i586.rpm.

To avoid it further, you need to configure yum to exclude openoffice.org-ure-3.1.1-19.14.fc12.i686 from updates.
this can be done by adding any of  below mentioned line in /etc/yum.conf

exclude=openoffice.org-ure-3.1.1-19.14.fc12.i686

Or

exclude=openoffice*