Wednesday, October 30, 2013

Enable mp3 playback in RhythmBox player in CentOS

Playing mp3 in centos is easier with RhythmBox player. Here how it is -

Step 1:  Open Linux console as a root.
Step 2: Go to the yum directory by -
cd /etc/yum.repos.d/
Step 3: Get the yum repository for Rhythmbox by the following command -
wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo

Step 4: Now install by yum --

          yum install rhythmbox

Step 5: Now install 2 plug-in for .mp3 extension.

yum install gstreamer-plugins-ugly 
yum install gstreamer-plugins-bad
You are done!

Install MPlayer in CentOs or Unix

Step 1:  Open linux console in root .

Step 2: Go to the yum directory by -

cd /etc/yum.repos.d/
Step 3: Get the yum repository for MPlayer by the following command -

wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo

Step 4: Now install by yum --

          yum install mplayer .


You are done!

Monday, October 28, 2013

Install VLC in Centos or Unix

Step 1:  Open linux console in root .

Step 2: Go to the yum directory by -

cd /etc/yum.repos.d/
Step 3: Get the yum repository for VLC by the following command -

wget http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo

Step 4: Now install by yum --

          yum install vlc .


You are done!


error:: sql.h: No such file or directory in Centos or Unix

This error arise when we want build an data base related class or function in our native project in centos or unix.


 error:: sql.h: No such file or directory

Solution: 

Install ODBC in your system.

Command:

yum install unixODBC*  --->>> for centos


Sunday, October 13, 2013

How to copy file from and to remote PC in linux, centos

Case 1: How to downloading or copying file from remote PC?

Ans: Do it by the following  command --


scp -r user@remote_pc_ip:/path/to/downloadable/file  /your/pc/path

After that the command line will ask for password. Give it and download the file.


Case 2: How to upload or copy file to remote PC?

Ans: Do it by the following  command --


scp -r  /your/pc/path/for/file  user@remote_pc_ip:/path/to/upload/a/file

After that the command line will ask for password. Give it and upload the file.

How to Generate and use the ssh key on Gerrit, github.io, gitlab, and bitbucket.

 Details can be found here -