If you are using a distro which is rpm base then you must be know how to install a .rpm package in your distro it s too simple just use some commands.
1. make superuser by using "$su"
2. then go to download folder where your .rpm file is downloaded.
3. "$ rpm -ivh filename.rpm"
and your .rpm file is now installed.
here the terms "-ivh" shows
-i = install
-v = verbose
-h = hash
if you want to know more about rpm then type "man rpm" in your terminal.
Sunday, August 30, 2009
Set line number in vi and vim editor
If you are doing programming in vi/vim editor then you need line number for finding error easily.If you want set the line number in your vi/vim editor then follow some basic command
if you want set line number just for a file then open that file with vi/vim and press "Esc" then type ":set number". it show you the line number.
Or if you want line number in defaults the you edit "virc/vimrc" file
1. first make superuser " $su"
2."gedit /etc/virc"
3. Now in that file you just add "set number" after "set ruler" and then save it now you can open any file with line number.
if you want set line number just for a file then open that file with vi/vim and press "Esc" then type ":set number". it show you the line number.
Or if you want line number in defaults the you edit "virc/vimrc" file
1. first make superuser " $su"
2."gedit /etc/virc"
3. Now in that file you just add "set number" after "set ruler" and then save it now you can open any file with line number.
| Reactions: |
Monday, August 24, 2009
Remove error in mysql error 1045(28000):access denied for user 'root '@' localhost' (using password: NO)
If you are using mysql in linux and when you start it show error like
"error 1045(28000):access denied for user 'root '@'localhost' (using password: NO)" to get out this problem you need change mysql config. file use following steps
1. Stop the mysql "$ /etc/init.d/mysqld stop"
2 Open mysql config file "$ gedit /etc/my.cnf"
3. Add the following line under [mysqld] section: "skip-grant-tables"
4. Now restart the server"$/etc/init.d/mysqld start"
5. Then execute the following command:"$mysql -u root mysql"
"error 1045(28000):access denied for user 'root '@'localhost' (using password: NO)" to get out this problem you need change mysql config. file use following steps
1. Stop the mysql "$ /etc/init.d/mysqld stop"
2 Open mysql config file "$ gedit /etc/my.cnf"
3. Add the following line under [mysqld] section: "skip-grant-tables"
4. Now restart the server"$/etc/init.d/mysqld start"
5. Then execute the following command:"$mysql -u root mysql"
| Reactions: |
Install Codeblock in Fedora
Codeblock is simple IDE for c and c++ and it is very nice IDE you just follow some simple steps and install it
1. make superuser "$su"
2. "$yum install codeblocks"
After that you must install xterm by using "$yum install xterm"
1. make superuser "$su"
2. "$yum install codeblocks"
After that you must install xterm by using "$yum install xterm"
| Reactions: |
Sunday, August 23, 2009
Proxy setting in linux
Proxy setting in any linux distro is very simple you just execute following command
1. first make superuser "$su".
2."$export http_proxy=http://[proxy server ip]:[port];"
let proxy server ip is "10.0.0.1" and port is "3128"
then "$export http_proxy=http://10.0.0.1:3128;"
and your proxy setting is done.
Only for fedora user-:
if you want to use graphical interface then go to "system->preferences->network proxy" and here you set your proxy settings.
1. first make superuser "$su".
2."$export http_proxy=http://[proxy server ip]:[port];"
let proxy server ip is "10.0.0.1" and port is "3128"
then "$export http_proxy=http://10.0.0.1:3128;"
and your proxy setting is done.
Only for fedora user-:
if you want to use graphical interface then go to "system->preferences->network proxy" and here you set your proxy settings.
| Reactions: |
Install audio and video plugin in fedora11
Initially you are not able to play any audio and video file in fedora but do not take panic I tell you how to install audio and video plug-ins
1. first make superuser "$su"
2. then execute following command "$ yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg"
It take 5-6 min. but after that you can play any audio and video file.
1. first make superuser "$su"
2. then execute following command "$ yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg"
It take 5-6 min. but after that you can play any audio and video file.
| Reactions: |
Saturday, August 22, 2009
Add repository in fedora 11
For add free and Non-free repository you just following steps
1. Open your web browser and just open "http://rpmfusion.org/ "


2. After click that you save "rpmfusion-free-release-stable.noarch.rpm" and "rpmfusion-nonfree-release-stable.noarch.rpm" it download default in download folder.
3. now open your terminal and make superuser "$su"
4. after that "$cd Download"
5. "$ rpm -ivh rpmfusion-free-release-stable.noarch.rpm"
6. "$ rpm -ivh rpmfusion-nonfree-release-stable.noarch.rpm"
7. "$ yum repolist"
It take some time for refreshing packages.
1. Open your web browser and just open "http://rpmfusion.org/ "


2. After click that you save "rpmfusion-free-release-stable.noarch.rpm" and "rpmfusion-nonfree-release-stable.noarch.rpm" it download default in download folder.
3. now open your terminal and make superuser "$su"
4. after that "$cd Download"
5. "$ rpm -ivh rpmfusion-free-release-stable.noarch.rpm"
6. "$ rpm -ivh rpmfusion-nonfree-release-stable.noarch.rpm"
7. "$ yum repolist"
It take some time for refreshing packages.
| Reactions: |
“Cannot retrieve repository metadata (repomd.xml)” error in Fedora
If you are in http server region then you will face a new problem about command "$ yum repolist " it give you some error like "Cannot retrieve repository metadata (repomd.xml)"
you no need to worry about that just follow simple steps and you solve this error yourself
step 1:- open your terminal and make superuser by using "$ su"
step 2:- "$cd /etc/yum.repos.d"
step 3:- "$ls"
here you see two files "fedora.repo and fedora-update.repo"
step 4:- "$gedit fedora.repo"
method- 1:-
here you also see that the mirrorlist link start with "https" you just make it "http" in every lines which start with mirrorlist. save it and do same process with "$gedit /etc/yum.repos.d/fedora-update.repo"
method- 2:-
Now un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist and do same process with "$gedit /etc/yum.repos.d/fedora-update.repo"
If you are in proxy region then first you set your system proxy and then use "$ yum repolist".
It surely work properly now.
you no need to worry about that just follow simple steps and you solve this error yourself
step 1:- open your terminal and make superuser by using "$ su"
step 2:- "$cd /etc/yum.repos.d"
step 3:- "$ls"
here you see two files "fedora.repo and fedora-update.repo"
step 4:- "$gedit fedora.repo"
method- 1:-
here you also see that the mirrorlist link start with "https" you just make it "http" in every lines which start with mirrorlist. save it and do same process with "$gedit /etc/yum.repos.d/fedora-update.repo"
method- 2:-
Now un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist and do same process with "$gedit /etc/yum.repos.d/fedora-update.repo"
If you are in proxy region then first you set your system proxy and then use "$ yum repolist".
It surely work properly now.
| Reactions: |
Manually Partition of hard disk for installation Linux
If you want to partition your hard disk manually for linux then you just remember following instructions -:
1. Root partition - where Fedora-11 is installed. This should be at least 6GB.
2. Home partition - where your files are kept.it size is depend on your choice.
3. Swap partition - this need only be twice the size of your memory.
Warning:- A hard disk can only have 4 primary partitions.However you can create a logical partition instead. This allows another 2 extended partitions to be created within it.
If u want to get more information about hard-disk partition just click on below link
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/ch-partitions.html
1. Root partition - where Fedora-11 is installed. This should be at least 6GB.
2. Home partition - where your files are kept.it size is depend on your choice.
3. Swap partition - this need only be twice the size of your memory.
Warning:- A hard disk can only have 4 primary partitions.However you can create a logical partition instead. This allows another 2 extended partitions to be created within it.
If u want to get more information about hard-disk partition just click on below link
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/install-guide/ch-partitions.html
| Reactions: |
Fedora-11 installation with screenshots
hi Friends
The installation process of fedora 11 is very simple if you follow following simple steps you can easily install it in your system.
Installation Screen shots:-






Now the disk partition comes up which is most important for new beans there are five option but three of them are used frequently in which partition you want to install your fedora-11.
1:- use intire hard disk
2:- replace linux partition
3:- use free space
if you had a previous distro then you choose 2 option and if you want window and fedora 11 in dual boot then you first you partition your hard disk (minimum 10GB) and then unallocate it and during installation use option 3.

Here you click on "write changes to disk"



After reboot you will get following screens :-




At last you can click on "Sending" or "No,do not send" option
After finish you will get screen in which you just enter your password and you enter the Land of linux
The installation process of fedora 11 is very simple if you follow following simple steps you can easily install it in your system.
Installation Screen shots:-






Now the disk partition comes up which is most important for new beans there are five option but three of them are used frequently in which partition you want to install your fedora-11.
1:- use intire hard disk
2:- replace linux partition
3:- use free space
if you had a previous distro then you choose 2 option and if you want window and fedora 11 in dual boot then you first you partition your hard disk (minimum 10GB) and then unallocate it and during installation use option 3.

Here you click on "write changes to disk"



After reboot you will get following screens :-




At last you can click on "Sending" or "No,do not send" option
After finish you will get screen in which you just enter your password and you enter the Land of linux
| Reactions: |
Subscribe to:
Posts (Atom)
