Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Wednesday, October 27, 2010

How to set, run update automatically in linux with yum

If you need keep you Linux PC up to date, you have to update your system every time.
But if you can set this thing happens automatically you do not want to worry by manually updating your system. Here i show how do we can enable or set the yum update manager to run start up as a service.

To run the yum update service at the system start up, you have to enable it. Issue the following command to enable it.
# chkconfig --level 345 yum-updatesd on

If you want to verify your configuration issue,
# chkconfig  --list yum-updatesd
or
# service yum-updatesd status       // this gives whether the service running or not

Tuesday, July 27, 2010

Use Virtual Machine for Linux

Do you use Linux before ?.Would you want to install and test Linux ?. But do you have fear to install Linux to your PC and that will corrupt your PC's existing partitions. Don't worry !. There is a best solution for it. That is using a Virtual Machine (VM). Virtual Machine software can install any supported operating system inside Windows or Linux or MacOS. Virtual Machine gets all physical resources of your existing PC, as an ex : Network card, CD-DVD ROM, Modem, HDD, eand etc. This VM do not corrupt your HDD drive partitions. VM create all things in virtually. So no need to fear.

VMware and Virtual Box are best Virtual Machine Software we can found today. Just try it if you interested.

Here is another best PTC ( or BUX ) site which i found from the Internet, that'll made our payments Instantly using AlertPay. Just sign up and see you'll also get paid Instantly !!!!.


Tuesday, July 13, 2010

Installing Binary and Scripts (.bin/.sh) Files

Here are the commands that you need to install binary(.bin) or Scripts(.sh) files

For .bin files
01. Make sure that the file is set to "executable" .
      chmod +x file_name
02. Then run the file
      ./file_name

For .sh files
01. Make sure that the file is set to "executable" do the step 01 above.
02.Then run the file either with the same command use as previous installing on .bin file or like this:
     sh file_name


Using VI editor on Linux

Here are the commands that you need to Use VI editor on Linux

Open the terminal and issue,
 # vi


Eg : # vi myfirstfile

Insert Text in to the file Using i, a, o, and O

The first way to switch to insert mode is to type the letter i, which, mnemonically enough,inserts text into the file. The other commands that accomplish more or less the same thingare a, to append text to the file; o, to open up a line below the current line; and O, to open up a line above the current line.

Deleting Text

The simplest form of the delete command is the x command, which functions as though you are writing an X over a letter you don’t want on a printed page: It deletes the character under the cursor. Type x five times, and you delete five characters.

Writing A little shell scripting

Here we are going to write a little shell Program.
First open the terminal and then issue following commands
vi firstscript.sh

Now you are created a file called "firstscript" and going to enter shell programming syntax. Enter following simple script.

#!/bin/bash //make this document a script file
# Display text using a function
function textdis
{
echo "Welcome to my Shell Scripting world";
}
textdis; //execute the function



Press Ctrl^d // on your keyboard to save the document

Now give permission for execution -> chmod +x firstscript.sh
Now execute the script file -> ./firstscript.sh



Installing Source files

Sources files comes as ".tar.gz", "tar.bz2" and ".zip" files. So what we want to do is unzip these zip files. It is better to use "usr/local/src" directory to unzip them.
  • For .tar.gz -> use : tar -zxvf < file_name_of_zip>
  • For tar.bz2 -> use : tar -jxvf < file_name_of_zip>
  • For .zip -> use : unzip < file_name_of_zip>
Now go in to the unzip file directory and issue follwing commands.(It is better read README.txt or INSTALL.txt files before you installing the source packages).
  • First configure the source -> ./configure
  • Then compile the source -> make
  • Last install the source -> make install
  • To clean up temp files -> make clean