Archive

Archive for the ‘Linux’ Category

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.

Experience with Xubuntu

February 7th, 2010 Dhaval Thakar No comments

In my previous post I have expressed my love to use Linux on my OLD COMPUTER, which is Celeron 1.1Ghz with 256 MB Ram.
For a long time I have used Fedora on this computer, but with the latest versions I have experienced limitation of my pc. Since I use Laptop at home for most of the time, I never cared to find better Linux OS for my old desktop and continued using SliTaz.
Using Slitaz / Puppy linux was always option but I was looking for a OS on which I can run latest version of Firefox & Google Chrome with ofcourse openoffice & torrent clients. With the other light weight version of Linux OS it is difficult to find latest softwares.
Till now I ignored using Xubuntu, as it being light version of Ubuntu I was under impression it will not perform on my old computer. Having free time I thought of giving try to Xubuntu. Unlike my expectation it runs fast enough to not letting me realize that I am using old computer.
Seems like it was worth trying Xubuntu, which eventually made me keep it installed.

Try it.

Minimum system requirements

You need 192 MB RAM to run the Live CD or 128 MB RAM to install. The Alternate Install CD only requires you to have 64 MB RAM at install time.
To install Xubuntu, you need 2.0 GB of free space on your hard disk.
Once installed, Xubuntu can run with starting from 192 (or even just 128) MB RAM, but it is strongly recommended to have at least 256 MB RAM.

Wpad file for Multiple Networks

January 25th, 2010 Dhaval Thakar No comments

WPAD.DAT

Many of us use this proxy configuration file to automate proxy configuration for users.

It is easy to configure wpad.dat for single network, but for some reason if you wish to use same wpad.dat file for multiple networks following might help you.


function FindProxyForURL(url, host)
{
if (shExpMatch(url, "http://localhost*")) { return "DIRECT"; }
if (shExpMatch(url, "https://127.0.0.1*")) { return "DIRECT"; }
if (shExpMatch(url, "https://192.168.2*")) { return "DIRECT"; }
//this is for networks
if (isInNet(myIpAddress(), "192.168.10.0", "255.255.255.0"))
return "PROXY 192.168.10.20:3128";
else
return "PROXY 192.168.2.20:3128";
}