Sunday, September 11, 2011

Upgrading the kernel in Ubuntu


Upgrade of the kernel in Debian or Ubuntu Linux


Use apt-get command. First find your kernel version:
 uname -r


Next find available kernel images:


 apt-cache search linux-image


Now install kernel by explicitly specifying version number:
 apt-get install linux-image-x.x.x-xx


OR


 sudo apt-get install linux-image-x.x.x-xx


Search for kernel  header version (must to use in Vmware)


 apt-cache search linux-headers-$(uname -r)
Install linux-header package


 sudo apt-get install linux-headers-$(uname -r)


Let's now configure all packages that are still unconfigured :
 sudo dpkg --configure -a

First things to do after installing Fedora

i
yum -y update kernel

yum -y install kernel-devel kernel-headers dkms gcc gcc-c++

To enable root login in gui

    su -c gedit /etc/pam.d/gdm

Comment the following line  'auth required pam_succeed_if.so user !=root quiet'

    # auth required pam_succeed_if.so user != root quiet

Do the same for /etc/pam.d/gdm-password

Save the file and logout from GUI. Now you can login as root 

Some useful excel tips


tab for horizontal moving


enter for vertical moving


shift + tab for  backing horizontally


shift + enter for backing vertically


ctrl + home to go to A1


home to reach the first row of the selected column


to navigate vertically faster


press the page down key


to go up faster


press the page up key


to navigate horizontally faster


alt+shift+page down


to go back


alt+shift+page up


to change or delete the content of a cell you need to select the cell and start typing


to use the clipboard click the x sign of the clipboard bar at the left upper corner


now you can have multiple values in your clipboard as


click and highlight any cell and click the copy button in the clipboard area,the value of the cell will be copied in the clipboard,now if you select any cell and clik one of the stored value in the clipboard the value will be put on the selected cell


undo=ctrl+z


redo=ctrl+y


to select adjacent group of cells


ctrl+shift+down arrow for vertical group of cells until it encounters an empty cell


ctrl+shift+right arrow for horizontal group of cells until it encounters an empty cell


to select non adjacent cells use ctrl + left click


current region=adjacent cells those have data


to select current region ctrl+shift+space


to select the entire worksheet


ctrl +a or the triangle sign at the right corner

Thursday, August 11, 2011

Modify speed and duplex settings in ubuntu

apt-get install ethtool

ethtool -s eth0 autoneg off speed 10 duplex half

ethtool eth0

Some basic networking commands in ubuntu

ifconfig eth0 Ip

ifconfig eth0 netmask subnetmask

route add default gw gatewayip

ifconfig eth0 up

/etc/init.d/networking restart

gedit  /etc/resolv.conf

nameserver dnsserverip

/etc/init.d/networking restart