Linux

Fedora 18 Multimedia How-To

Submitted by sklav on Fri, 01/18/2013 - 14:58

Just remember the following steps all need to be done as the “root” user.

Step 1: Add the livna Repo for DVD Playback

rpm -ivh http://rpm.livna.org/livna-release.rpm

Step 2: Add the Adobe Flash Repo

rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm

Step 3: Install RpmFusion Repos

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm'

Fedora 15 Multimedia Howto

Submitted by sklav on Fri, 06/10/2011 - 00:21

Step 1: Add the livna Repo for DVD Playback

rpm -ivh http://rpm.livna.org/livna-release.rpm

Step 2: Add the Adobe Flash Repo

rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

Step 3: Install RpmFusion Repos

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

Step 4: Install Multimedia Applications

Selinux howto for the impatient

Submitted by sklav on Thu, 05/05/2011 - 00:27

But i find that in general when I setup a box I leave Selinux in permissive mode and then go threw the paces of connecting to every service i want running and all associated options so for example if you setup a website that makes use of scripts i would recommend you run them all and after completed and hopefully before you ever connect the box to the internet you run the steps below to create a policy module. I find that this has prevented me from having major issues and i get the benefits of Selinux.

To create a rule that pretty much allows all AVC denials:

Scientific Linux and Centos 6.x Multimedia How-to 32-bit and 64-bit

Submitted by sklav on Thu, 05/05/2011 - 00:21

**** Update i recommend you install yum priorities plugin to avoid base system files getting replaced. As of this writing the files replaced are alsa based files and causes no system issues, but for some modifying the base system is an issue, so i have tested the whole install again with the priorities plugin and all works as expected. ****

Now just to be clear all this works for both 32-bit and 64-bit Scientific Linux.

Mysql Cheat Sheet for Grant Permissions

Submitted by sklav on Fri, 02/04/2011 - 11:11

An example of how to add SELECT privileges to a user using GRANT

GRANT SELECT ON projectdb.* TO user@'localhost' IDENTIFIED BY 'passwd';

If SELECT is not enough for our user we can add more privileges using a query similar to the one below:

An example of how to add a selection of privileges to a user using GRANT

GRANT SELECT, INSERT, DELETE ON projectdb.* TO user@'localhost' IDENTIFIED BY 'passwd';

If you want to GRANT ALL the privileges to a user then use this query:

An example of how to Grant Privileges in MySQL

software integrity on Centos Linux 5

Submitted by sklav on Mon, 05/19/2008 - 10:59

To install AIDE, using following command:

# yum install aide

To configure AIDE, customize the /etc/aide.conf to meet the requirements of the system. For more detailed information about the AIDE configuration file, please refer the man page of aide.conf.

To generate a new database and install it on AIDE system:

# aide --init
# cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz

Flac to Mp3 Simplified for Linux

Submitted by sklav on Wed, 09/19/2007 - 09:49

The script listed below takes arguments in the following fashion. either you can specify a single file name to convert or you can specify a wildcard as example 2 shows.
Example 1: Flac2Mp3 01-The Black Parade.flac
Example 2: Flac2Mp3 *.flac

To use this script just copy and paste the section below and to a filename Flac2Mp3 and the chmod+x Flac2Mp3

If you have any questions please feel free to register and post a comment and i will do my best to answer.

***Update***
make sure that the (lame) package is installed if you using fedora / centos