Tips to Increase Laptop Battery Life

March 22nd, 2009
    1. Dont always use the laptop with in A/C power. Switch off the adapter when the battery is fully charged (use it in battery mode) and switch on the adapter again when the battery level goes very low.
    2. Keep your WIFI radio switch always off when not required.
    3. Drain your battery completely at least twice a month. (Make the laptop get shutdown automatically when the battery is critically low, switch it on again and keep in BIOS page some time to drain it completely, till it gets switched off).
    4. Unplug un-used devices connected via USB (like camera, joystick, external keyboard, mobile, external hard disk etc) when not required.
    5. Avoid using StandBy/Sleep option rather use Hibernate option.
    6. Use the right adapter to charge your laptop battery.
    7. Temperature is a silent killer, temperature reduces the life of battery for all electronic devices (even mobile phones). Take measure to avoid over heating of your laptop. (People who play high graphics games rather keeping your laptop in a flat surface leave a gap between your laptop and the surface).
    8. Use your LCD screen with low brightness as possible.
    9. Do not pack the laptop in your carry case as soon as you shut down. Give a little time to cool.
    10. Other less significant tips are, avoid using high graphics screen savers, reduce the start up process as much as possible, delete the unwanted back ground process, use power options in the operating system efficiently.

      All the above tips, I have put with my own experience. Generally lithium ion batteries have a life of 2-3 years. People who use there laptops for more hours a day, take little care to have a good battery life. If no care the battery wont last more than a year.

      Rosario Laptop

      Installing Ruby on Rails in Ubuntu 8.04(Hardy)

      January 31st, 2009

      Ruby on Rails is a web application programmers based on Ruby. It helps the programmers creat best web applications easily.

      Here are the steps to set up Ruby on Rails in your Ubuntu or Debian based systems

      Step 1: First step is to install some inportant packages that are recured,

      sudo apt-get -y install build-essential libssl-dev libreadline5-dev zlib1g-dev

      Step 2: Install ruby

      RUBY="ruby-1.8.6-p111" //Current stable version

      wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/$RUBY.tar.gz

      tar xzf $RUBY.tar.gz cd $RUBY

      ./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr –with-zlib-dir=/usr

      make clean

      make

      make install

      make install-doc

      make clean will clear any make files in that folder, previosly created that was configured without right options Checking whether ruby is installed properly

      ruby -ropenssl -rzlib -rreadline -e "puts :success"

      Step 3: Install Gem

      Gem is a installer similar to apt, for ruby and ruby related packages

      RUBYGEMS="rubygems-1.0.1" //Current stable version
      wget http://rubyforge.org/frs/download.php/29548/$RUBYGEMS.tgz
      tar xzf $RUBYGEMS.tgz
      cd $RUBYGEMS
      /usr/local/bin/ruby setup.rb
      	

      Step 4: Install Rails

      gem install rails //This will install rails successfully.

      Or gem install <paths to rails gem file>

      Main Errors during Installation:

      Error 1:

      /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — zlib (LoadError)

      using the following step for configuring ruby, that is before make, will remove this problem

      ./configure --prefix=/usr/local --with-openssl-dir=/usr --with-readline-dir=/usr –with-zlib-dir=/usr

      Error 2:

      no such file to load — mysql

      undefined symbol: rb_Digest_MD5_Init – /usr/local/lib/ruby/1.8/i686-linux/digest/md5.so (LoadError)

      Installing the mysql dev package and mysql library for ruby will clear this error,

      sudo apt-get install libmysqlclient15-dev

      sudo gem install mysql

      Rosario Applications, Ubuntu

      Installing XMMS in Ubuntu Hardy

      January 6th, 2009

      XMMS2 is not a replacement to XMMS in the Ubuntu Hardy (8.04)  repo. There is an offical ubuntu xmms pacakage, unfortunately wich is not available in Ubnuntu repo. We have to manually download and install it. You can download from the link

      https://launchpad.net/ubuntu/hardy/i386/xmms/1:1.2.10+20070601-1build2

      There are both soruce packages and ubuntu build deb packages in the above link…
      But inturn dont mistake that installing XMMS2 from the repo is the XMMS player. After intallation there may be some combatibility problems. But there wont be any probleming in playing songs.

      Rosario Applications, Ubuntu ,

      Samba File sharing between two ubuntu systems in LAN

      November 3rd, 2008

      With two systems connected in LAN is so easy to share files and folders in Ubuntu. Here i tell you how to share files and folders with samba file server between two ubuntu systems with few clicks. The Ubuntu Iam using here is Hardy.

      The system that has source contents to be shared should have Samba server, (That can be installed in course of the procedure how to share). And the remote system that wish to access the source contents should have the Samba client. Samba client will installed be default in ubuntu, if not install it with the command

      $sudo apt-get install smbclient

      Here comes the procedure how to share.

      Soruce Side

      1. On the source system login to ubuntu, right click on the folder you wish to share and select ‘Sharing Options’.

      2. In the Dialog box that apears select ‘Share this Folder’ check box, you will be prompted to install a service. Clicking on Install will open synaptic package manager and install the Samba Server packages.

      3. On successful Installation of the packages, the part in the server side is over.

        This will create a share automatically in Samba server on the the username you have logged in (here ‘rosario’) with its password.

      Destination Side

      1. Check whether the smbclient package is installed, if not install it with the above command.

      2. Use the command like
      3. $sudo smbclient \\\\192.168.1.33\\photos -U rosario

        • where rosario is the username of the source system,
        • 192.168.1.33 is the IP address of the source system
        • photos is the name of the folders shared in the source system(In small characters)
      4. The above command first will prompt the local system password as sudo is used. And then it will prompt for the password of the remote samba server for the username rosario
      5. On giving the right password, it will take to the samba promt.

      Smb: \>

      Some usefull commands

      • help- To know all possible commands
      • dir- To list out all the shared directories, or contents inside the current directory
      • cd- Change Directory
      • get- To copy a specified file from the source system to the local system
      • put- To copy contents from local system to the server system

      Enjoy Easy File Sharing With Ubuntu…

      Rosario Linux Networking, Ubuntu ,

      Vedio Recording using webcam in any Linux Distro

      October 14th, 2008

      For vedio recording in linux, mplayer alone may not be enough, one additional package that comes with mplayer is needed. Its mencoder. To install mencoder in a debian based distro use the command

      $sudo apt-get install mencoder

      For other distros like redhat you can use relevant tools like YUM to install mencoder.

      Then for vedio recording follow the commad below

      Video Recording Without Sound

      $ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -nosound -ovc lavc -o filename.avi

      Video recording With Sound

      $ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o filename.avi

      To change/increase the rate of frames captured use the fps option of the above command.

      Use it like

      -fps 24

      Rock with you webcam….

      Rosario Bash, Linux

      Set GRUB Password after the Installation of any Distro

      October 1st, 2008

      If you forgot to set the password during the time of installing the linux distribution, and if you feel to set the password for your grub boot loader. Then here is the answer…

      Switch to root using ’su’ command and execute ‘grub’ command in terminal/konsole. Prompt will change to ‘grub>’
      execute md5crypt to generate password hash.

      grub> md5crypt

      it will prompt you for password, enter the password which you are going to set for GRUB. it will display encrypted password hash.

      Password: *******
      Encrypted: $1$X2jZi$KeCC6NuRp0BJDt32jCvnw0

      note down encrypted password hash or copy it and exit grub mode using the grub command.

      grub> quit

      Now edit the
      edit /boot/grub/menu.lst file and insert encrypted password above the “title” lines or insert near commented examples of password line.

      password –md5 <password-hash>
      ## ## End Default Options ##
      title        Ubuntu 8.04.1, kernel 2.6.24-19-generic

      save edited file and reboot.

      Rosario Bash, BootLoader, Ubuntu ,

      Unable to check account usage with DataOne- BSNL Broadband

      October 1st, 2008

      Hi folks if you are not able to check your account usage or not able to goto the admin page using the path http://www.dataone.in-> Check Account Usage, use one of the following urls to go to your admin page.

      One of this links will take you to the user login page of DataOne.

      Rosario BSNL BroadBand, Internet ,

      nVidia Driver Problem with Hardy Solved- EnvyNG

      September 30th, 2008

      Hi folks, if you are still in a head ache of searching a driver for your nvidia graphics card, your head ache is solved here. Iam using my Dell XPS 1530 Lap, and the problem with the driver installation for nvidia graphics card is solved here.

      EnvyNg in a package that searches the packages and required driver and installs it, reducing our head ache of finding a right driver.

      Update the repositories list in Synaptic Package Manager, using the command

      $sudo apt-get update

      Now install the following the packages

      • envyng-gtk
      • envyng-qt
      • envyng-core

      using the command

      • $sudo apt-get install envyng-gtk
      • $sudo apt-get install envyng-qt
      • $sudo apt-get install envyng-core

      Now go to the Main menu, Applications->SystemTools->EnvyNG, and select whether nVidia or ATI and click Apply. Your driver will be installed and restart your computer.

      Other debian derivative distros and other ubuntu versions donwload the envy package clicking below.

      Click here to Download

      Rosario Applications, Ubuntu ,

      Something about OpenDNS

      September 30th, 2008

      Folks somebody want to know about OpenDNS, as my previous entry fo about it. So let me share what i learned with you all.

      OpenDNS is a Domain name system with great free features. Its a DNS, working fast when compared to the other DNS. OpenDNS runs a really big, smart cache, this benifits every DNS users attracted to use OpenDNS. Also thanks to some clever traffic routing and load-balancing technology, OpenDNS can also deliver Web pages faster. Open DNS works same as all other DNS systems, with many features that comes for free. The main features are

      • DNS to block Phishing Web sites
      • Auto-correct common misspelled URLs.

      Web Forgery (also known as “Phishing”) is a form of identity theft that occurs when a malicious Web site impersonates a legitimate one in order to trick you into giving up sensitive information such as passwords, account details, or credit card numbers. Phishing attacks usually come from email messages that attempt to lure the recipient into updating their personal information on fake, but very real looking, Web sites. OpenDNS uses PhishTank, which is an online collaborative anti-phishing database. The PhishTank data, when tied to OpenDNS, protects users by blocking DNS lookup queries that match an entry in the database.
      Also if you missspell any URL, OpenDNS matches with the database with the more relavent correct URLs and displays you the list. Making you easy to choose or correct yourself.

      • 208.67.222.222
      • 208.67.220.220

      Thest Ips are nothing but the, Ip addresses of the DNS server of Open DNS. So you can request this IP addresses for DNS service. To setup in a BSNL broad band router, check my previous entry. And to setup in other connection in your pc use the steps in the below link.

      https://www.opendns.com/smb/start/computer/

      You can use OpenDNS for any sort of internet connections.

      Rosario Internet , ,

      Speed up your BSNL Broadband connection

      September 21st, 2008

      Open DNS is most accepted DNS and its performance is more good when compared to others. Also is any spelling mistakes in the domain names or urls, Open dns will display similar possibilities. If you feel that the broadband connection you are using is often getting disconnected and it takes time to reconfigure, or if you feel that the dns service is slow switch to Open DNS. You can do this by changing the Primary and Secodary DNS in your network settings in your Operating system. But, you will have to do this changes in the network setting, when ever you reconnect the internet. If you feel to permanently change it, login to the adsl router and change it. How to do this,

      Check whether your ADSL modem is connected to your computer, and check whether the lan is established. Now open a new browser, enter the ip, 192.168.1.1 (router ip) in the address bar. Enter the user name and password (default username and password is admin, admin). The ADSL router setup page will appear, in that click Interface Setup-> LAN and then in the DHCP section change Primary and Secondary DNS to the following Open DNS IPs

      • 208.67.222.222
      • 208.67.220.220

      And feel the difference…

      changedns

      Rosario Connecting Internet, Internet ,