Archive

Archive for the ‘Ubuntu’ 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

Google Buzz

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.

Google Buzz

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.

Google Buzz

Tata / Reliance Mobile broadband on Ubuntu

November 7th, 2009 Dhaval Thakar 2 comments

Few days back I had configured Tata plug2surf on Ubuntu 9.10, it was easy.

During procedure I discovered Reliance netconnect & tata photon can be configured with same ease.

Here I am sharing steps I used to configure tata plug2surf on Ubuntu 9.10

Edit your network settings

select mobile broadband
click on add
tata1
modem is detected –> click forward –> choose country
tata2
select tata plug2surf
tata3
enter username & password as internet
tata4
connect using tata indiacom.

tata5


Google Buzz

Change Ubuntu 9.10 Resolution

November 4th, 2009 Dhaval Thakar 33 comments

By default Ubuntu 9.10 supports 1024×768 resolution, which is not enough for me. I needed to increase it to 1240×1024. To achive my desired resolution I run through few commands. Its easy, take a look.
Here I am trying to get 1240×1024 resolution, if you are trying to achive any other change it with 1240×1024

Use xrandr to find current mode used & output name.
e.g here VGA1 is used, it is easy to use current output name.

xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 310mm x 230mm
   1024x768       85.0*+   75.1
   800x600        75.0
   640x480        75.0     60.0
   720x400        70.1

Run following command to find modeline details for resolution 1240×1024. Modeline is required for xrandr.

cvt 1240 1024
# 1240x1024 59.93 Hz (CVT) hsync: 63.71 kHz; pclk: 105.50 MHz
Modeline "1240x1024_60.00"  105.50  1240 1320 1448 1656  1024 1027 1037 1063 -hsync +vsync

Use modeline config with xrandr to add resolution mode.

xrandr --newmode "1240x1024_60.00"  105.50  1240 1320 1448 1656  1024 1027 1037 1063 -hsync +vsync

e.g output of command xrandr with new resolution

 xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 310mm x 230mm
   1024x768       85.0*+   75.1
   800x600        75.0
   640x480        75.0     60.0
   720x400        70.1
  1240x1024_60.00 (0x102)  105.5MHz
        h: width  1240 start 1320 end 1448 total 1656 skew    0 clock   63.7KHz
        v: height 1024 start 1027 end 1037 total 1063           clock   59

Use following command to add new mode

xrandr --addmode VGA1 1240x1024_60.00

Use following to change output imidiately Or use System–> Preferenses –> Display

xrandr --output VGA1 --mode 1240x1024_60.00

Since above command is not permanent sollution to add new resolution, you need to edit /etc/gdm/PreSession/Default
Enter followings at the end of file /etc/gdm/PreSession/Default

xrandr --newmode "1240x1024_60.00"  105.50  1240 1320 1448 1656  1024 1027 1037 1063 -hsync +vsync
xrandr --addmode VGA1 1240x1024_60.00

After reboot this will enable one more resolution mode in System–> Preferenses –> Display
all you need to do is to select desired mode once.

if you wish to remove any mode

xrandr --rmmode 1240x1024_60.00

Refer

Google Buzz