Pages

How to set up ( Fedora php ruby on rails )

Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Wednesday, August 5, 2009

How to install Mplayer from source code

Installing Mplayer from source code


first you need to download the source code you can find that on link below


http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2


now locate the downloaded file and give following command


[ismail@localhost ~]$ tar -jxvf MPlayer-1.0rc2.tar.bz2

[ismail@localhost ~]$ cd MPlayer-1.0rc2

[ismail@localhost MPlayer-1.0rc2]$ ./configure

[ismail@localhost MPlayer-1.0rc2]$ make

[ismail@localhost MPlayer-1.0rc2]$ su -c 'make install'

Locate the media file and open with following command


[ismail@localhost Songs]$ mplayer bourne.mp3 /code>

playing WMV and WMA file format follow this link


how to play windows media format on mplayer

How to play wmv and wma on Fedora and linux (windows media video and audio)

Windows media files playing on fedora and other distributions (Linux)



Lets play windows media files on linux just few steps and you be done


[ismail@localhost ~]$ cd /tmp

[ismail@localhost tmp]$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

[ismail@localhost tmp]$ tar -jxvf all-20071007.tar.bz2

[ismail@localhost tmp]$ su -c 'mkdir -p /usr/local/lib/codecs'

[ismail@localhost tmp]$ su -c 'cp all-20071007/* /usr/local/lib/codecs'

[ismail@localhost tmp]$ rm -rf /tmp/all-20071007*

Optional


add this line in command line so other applications may also be able to play windows media


[ismail@localhost tmp]$ su -c 'ln -sf /usr/local/lib/codecs /usr/lib/codecs && ln -sf /usr/local/lib/codecs /usr/local/lib/win32 && ln -sf /usr/local/lib/codecs /usr/lib/win32'

Tuesday, August 4, 2009

how to play audio and video on fedora

How to play audio video music files on linux (VLC mplayer )


playing audio video on fedora is kinda easy work to do you need to just follow these commands and in end you will have number of player with which you can play almost all video format on your fedora operating system


Fedora is not shipped with audio video codec like mp3 or avi so first of all you need some repositories so copy and paste into your terminal the below commands


[ismail@localhost ~]$ su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm'

[ismail@localhost ~]$ su -c 'rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'


[ismail@localhost ~]$ su -c 'rpm -Uvh http://rpm.livna.org/livna-release.rpm'

Downloading and installing codec from livna


[ismail@localhost ~]$ su -c 'yum install gstreamer-plugins-bad gstreamer-plugins-bad-extras gstreamer-plugins-ugly xine-lib-extras-nonfree totem-xine'

That is what you want it now others are optional choose your favourite player or install all


Audicious


[ismail@localhost ~]$ su -c 'yum install audacious-plugins-nonfree-aac audacious-plugins-nonfree-alac audacious-plugins-nonfree-mms audacious-plugins-nonfree-mp3 audacious-plugins-nonfree-tta audacious-plugins-nonfree-wma audacity-nonfree'


ffmpeg


It must be install its good for internet audio and video play


[ismail@localhost ~]$ su -c 'yum install ffmpeg ffmpeg-libs ffmpeg2theora gstreamer-ffmpeg'

VLC


one of the popular video and audio player VLC


[ismail@localhost ~]$ su -c 'yum install vlc'

Rhythmbox


[ismail@localhost ~]$ su -c 'yum install rhythmbox-lirc rhythmbox-upnp'

Mplayer


one of the finest media player


[ismail@localhost ~]$ su -c 'yum install mplayer mplayer-doc mplayer-gui mplayerplug-in gnome-mplayer'

Sunday, August 2, 2009

Ruby on rails Apache passenger Fedora how to install passenger on feodra

Running rails using apache
After you have install ruby on rails on your system you just need to follow these steps to use apache server as you web server for development or for production environment.

sudo gem install passenger

sudo passenger-install-apache2-module






   LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so    PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4    PassengerRuby /usr/bin/ruby 




you may have different line as shown in the image so copy these lines in your httpd.conf file right after the modules






Now next step is to create a Virtual host in httpd.conf file of your apache server .

<virtualhost * >
ServerName ror.blog.com
DocumentRoot /home/ismail/www/blogs/public
RailsEnv development
RailsBaseURI /blogs

</virtualhost>


last of all now you have to make a symbolic link to make rails up and running



ln -s /home/ismail/www/blogs/public  /var/www/html/blogs 
The folder of rails is public so what so ever your application is your symbolic link must point toward the public folder of that application.
Now you may restart you web server and enjoy using ruby on your favorite server.