Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 06-04-2006, 07:04 PM   #1
Member (10 bit)
 
rightcoast's Avatar
 
Join Date: Nov 2004
Posts: 800
Ubuntu Dapper 6.06 mplayer install script

For anyone who just installed the Ubuntu 6.06 final (Dapper). You can paste the code below into your text editor saving it as mplayer.sh or whatever you want as long as it has a .sh extension in your home directory and just do a:
[CODE]sh mplayer.sh[CODE]
Code:
#!/bin/bash

sudo apt-get install manpages-dev build-essential autoconf automake libtool flex bison gcc-doc g++-3.4 libgtk1.2-dev libpng-dev build-essential

wget http://www.people.virginia.edu/~drf8f/MPlayer/releases/MPlayer-1.0pre7try2.tar.bz2
wget http://www.people.virginia.edu/~drf8f/MPlayer/releases/codecs/essential-20060501.tar.bz2
wget http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
wget http://www1.mplayerhq.hu/MPlayer/skins/Blue-1.5.tar.bz2

tar -xjf essential-20060501.tar.bz2
sudo mkdir -p /usr/local/lib/codecs
sudo cp essential-20060501/* /usr/local/lib/codecs/

tar -xjf MPlayer-1.0pre7try2.tar.bz2
cd MPlayer-1.0pre7try2
./configure --enable-gui
sudo make
sudo make install
cd
tar -xjf font-arial-iso-8859-1.tar.bz2
sudo cp font-arial-iso-8859-1/font-arial-14-iso-8859-1/* /usr/local/share/mplayer/font/
tar -xjf Blue-1.5.tar.bz2
sudo mkdir -p /usr/local/share/mplayer/Skin/default
sudo cp -r Blue/* /usr/local/share/mplayer/Skin/default/
sudo cp MPlayer-1.0pre7try2/etc/* /usr/local/etc/mplayer/

## I remember having to do this in my hoary install, looks like it isn't needed anymore
## Uncomment if the firefox plugin doesn't work right or if it is <= breezy I think, hoary for sure
## cd /usr/lib/mozilla-firefox/plugins
## sudo mkdir totem
## sudo mv libtotem* totem

## you will need to either leave this in or edit your default sources.list if you haven't already
## you may want to further customize sources.list with security repos etc, but you don't have to
## for this so I left it out
sudo cp /etc/apt/sources.list /etc/apt/backup_sources.list
sudo chmod 646 /etc/apt/sources.list
sudo echo "deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse" >> /etc/apt/sources.list
sudo echo "deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse" >> /etc/apt/sources.list
echo "deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free" >> /etc/apt/sources.list
echo "deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free" >> /etc/apt/sources.list
sudo chmod 644 /etc/apt/sources.list
sudo apt-get update
sudo apt-get install mozilla-mplayer
sudo apt-get install libdvdcss2
# This is my symlink for DVD's, you may require a different one depending on what your
# drive is called
sudo ln -s /media/cdrom0 /dev/dvd
Disclaimer for US citizens.The use and distribution of libdvdcss is controversial in a number of countries, including the United States because of its Digital Millennium Copyright Act. So don't break the law if you reside there and just live with no ability to play DVD's and all that jazz. I know not everyone here is from the US though so there ya go.
rightcoast is offline   Reply With Quote
Old 06-11-2006, 05:37 PM   #2
Member (1 bit)
 
Join Date: Jun 2006
Posts: 1
Quote:
Originally Posted by rightcoast
For anyone who just installed the Ubuntu 6.06 final (Dapper). You can paste the code below into your text editor saving it as mplayer.sh or whatever you want as long as it has a .sh extension in your home directory and just do a:
[CODE]sh mplayer.sh[CODE]
Code:
#!/bin/bash

sudo apt-get install manpages-dev build-essential autoconf automake libtool flex bison gcc-doc g++-3.4 libgtk1.2-dev libpng-dev build-essential

wget http://www.people.virginia.edu/~drf8f/MPlayer/releases/MPlayer-1.0pre7try2.tar.bz2
wget http://www.people.virginia.edu/~drf8f/MPlayer/releases/codecs/essential-20060501.tar.bz2
wget http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
wget http://www1.mplayerhq.hu/MPlayer/skins/Blue-1.5.tar.bz2

tar -xjf essential-20060501.tar.bz2
sudo mkdir -p /usr/local/lib/codecs
sudo cp essential-20060501/* /usr/local/lib/codecs/

tar -xjf MPlayer-1.0pre7try2.tar.bz2
cd MPlayer-1.0pre7try2
./configure --enable-gui
sudo make
sudo make install
cd
tar -xjf font-arial-iso-8859-1.tar.bz2
sudo cp font-arial-iso-8859-1/font-arial-14-iso-8859-1/* /usr/local/share/mplayer/font/
tar -xjf Blue-1.5.tar.bz2
sudo mkdir -p /usr/local/share/mplayer/Skin/default
sudo cp -r Blue/* /usr/local/share/mplayer/Skin/default/
sudo cp MPlayer-1.0pre7try2/etc/* /usr/local/etc/mplayer/

## I remember having to do this in my hoary install, looks like it isn't needed anymore
## Uncomment if the firefox plugin doesn't work right or if it is <= breezy I think, hoary for sure
## cd /usr/lib/mozilla-firefox/plugins
## sudo mkdir totem
## sudo mv libtotem* totem

## you will need to either leave this in or edit your default sources.list if you haven't already
## you may want to further customize sources.list with security repos etc, but you don't have to
## for this so I left it out
sudo cp /etc/apt/sources.list /etc/apt/backup_sources.list
sudo chmod 646 /etc/apt/sources.list
sudo echo "deb http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse" >> /etc/apt/sources.list
sudo echo "deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe multiverse" >> /etc/apt/sources.list
echo "deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free" >> /etc/apt/sources.list
echo "deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free" >> /etc/apt/sources.list
sudo chmod 644 /etc/apt/sources.list
sudo apt-get update
sudo apt-get install mozilla-mplayer
sudo apt-get install libdvdcss2
# This is my symlink for DVD's, you may require a different one depending on what your
# drive is called
sudo ln -s /media/cdrom0 /dev/dvd
Disclaimer for US citizens.The use and distribution of libdvdcss is controversial in a number of countries, including the United States because of its Digital Millennium Copyright Act. So don't break the law if you reside there and just live with no ability to play DVD's and all that jazz. I know not everyone here is from the US though so there ya go.

Nice script, my problem is I'm running xgl/compiz and would like opengl support. Mplayer only has two drivers I can select now. Thank you.
Jatilq is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:33 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2