Friday, December 26, 2014

Understanding Linux File Permissions

Linux File Permissions :

Understanding Linux File & Directory Permissions :



Linux File and directory Permission mechanism

Read Write Execute
Owner 400 200 100
Group 40 20 10
Others 4 2 1


If you want to give Read, Write & Execute permission to Owner, Groups & Others, it means full permission.
400+200+100+40+20+10+4+2+1 = 777

If you do not want to give Write permission to Groups Others, it means 
400+200+100+40+10+4+1 = 755

The best thing of this calculation, you can not make sum of a number in two different ways .
It means 644 can be made in this way only that is 400+200+40+4
The meaning of 644 is Read & Write permission to Owner and Read permission to Group and Others only.

To give 777 to a directory :

# chmod -R 777 /path/of/the/directory

where -R means Recursive, it means give this permission to all sub-directories and files.

To give 777 to a file :
# chmod 777 /path/of/the/file
Now you can create & give permissions by your own.

Thursday, December 11, 2014

Install mplayer on CentOS 7.0

Install mplayer on CentOS 7.0 X86_64

If you have tried to install mplayer on CentOS and you have faced dependency errors as well as broken package error, here is the solution for you.

Run these commands on your terminal.
wget https://sites.google.com/site/linuxamination/netembryo-0.1.1-4.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/lirc-libs-0.9.0-11.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/esound-libs-0.2.41-8.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/nas-libs-1.9.3-6.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/libnemesi-0.7.0-0.4.20110215git.fc19.x86_64.rpm

https://sites.google.com/site/linuxamination/dirac-libs-1.0.2-10.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/schroedinger-1.0.11-4.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/svgalib-1.9.25-12.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/arts-1.5.10-22.fc19.x86_64.rpm
These are the required packages which you need to download and install.

Now check if all packages are downloaded. Run this command.
ls -1 *rpm
Now install all packages using following command.
yum localinstall *rpm
Now you can install mplayer on your system. You will not get dependencies error.
yum install mplayer

Install mencoder on CentOS 7.0

Install mencoder on CentOS 7.0 X86_64

If you have tried to install mencoder on CentOS and you have faced dependency errors as well as broken package error, here is the solution for you.

Run these commands on your terminal.
wget https://sites.google.com/site/linuxamination/netembryo-0.1.1-4.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/lirc-libs-0.9.0-11.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/esound-libs-0.2.41-8.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/nas-libs-1.9.3-6.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/libnemesi-0.7.0-0.4.20110215git.fc19.x86_64.rpm

https://sites.google.com/site/linuxamination/dirac-libs-1.0.2-10.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/schroedinger-1.0.11-4.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/svgalib-1.9.25-12.fc19.x86_64.rpm

wget https://sites.google.com/site/linuxamination/arts-1.5.10-22.fc19.x86_64.rpm
These are the required packages which you need to download and install.

Now check if all packages are downloaded. Run this command.
ls -1 *rpm
Now install all packages using following command.
yum localinstall *rpm
Now you can install mencoder on your system. You will not get dependencies error.
yum install mplayer

Install ffmpeg on CentOS 7

Install ffmpeg on CentOS 7.0 X86_64

If you have tried to install ffmpeg on CentOS 7.0, you are not able to install it.
It shows message, "No package ffmpeg found."
It doesn't mean, you can not install this package on your CentOS 7.0.
Here is the solution for you.

Run following command on terminal to download the package.
wget ftp://rpmfind.net/linux/centos/6.5/os/x86_64/Packages/libdc1394-2.1.2-3.4.el6.x86_64.rpm
Now install this downloaded package
yum -y localinstall libdc1394-2.1.2-3.4.el6.x86_64.rpm
Now you need to install the repo atrpms
rpm -ivh http://dl.atrpms.net/el7-x86_64/atrpms/stable/atrpms-repo-7-7.el7.x86_64.rpm
Now install ffmpeg, it will not show the message "No package found."
yum -y install ffmpeg
I hope, it will work for you.