Dolphin 7 and Ubuntu 12.04 LTS Setup

This is an updated topic on how to install Ubuntu on a box to run Dolphin 7.x, this one is without photos.

http://www.boonex.com/forums/?action=goto&my_flags=1#topic/D7-Ubuntu-9-10.htm

This is what I did to get D7.x working on a server.

Download Ubuntu 12.04 LTS server edition iso burn it to a disc.

Insert your Ubuntu install CD into your system and boot from it. Select your language:

Then select Install Ubuntu Server:

Choose your language again (?):

Then select your location:

Choose a keyboard layout (you will be asked to press a few keys, and the installer will try to detect your keyboard layout based on the keys you pressed):

Enter the hostname. In this example, my system is called server1.example.com, so I enter server1:

Now you have to partition your hard disk. For simplicity's sake I select Guided - use entire disk and set up LVM - this will create one volume group with two logical volumes, one for the / file system and another one for swap (of course, the partitioning is totally up to you - if you know what you're doing, you can also set up your partitions manually).

Select the disk that you want to partition:

When you're asked Write the changes to disks and configure LVM?, select Yes:

If you have selected Guided - use entire disk and set up LVM, the partitioner will create one big volume group that uses all the disk space. You can now specify how much of that disk space should be used by the logical volumes for / and swap. It makes sense to leave some space unused so that you can later on expand your existing logical volumes or create new ones - this gives you more flexibility.

When you're finished, hit Yes when you're asked Write the changes to disks?:

Create a user, for example the user Administrator with the user name administrator (don't use the user name admin as it is a reserved name on Ubuntu 12.04LTS):

then enter in a username and a password and verify password on the next screens

I don't need an encrypted private directory, so I choose No here:

Next the package manager apt gets configured. Leave the HTTP proxy line empty unless you're using a proxy server to connect to the Internet:

I'm a little bit old-fashioned and like to update my servers manually to have more control, therefore I select No automatic updates. Of course, it's up to you what you select here:

We need a DNS, mail, and LAMP server, but nevertheless I don't select any of them now because I like to have full control over what gets installed on my system. We will install the needed packages manually later on. The only item I select here is OpenSSH server so that I can immediately connect to the system with an SSH client such as PuTTY after the installation has finished:

The base system installation is now finished. Remove the installation CD from the CD drive and hit Continue to reboot the system:

when the server reboots log in with the username and password you set up either with ssh or at the server terminal


Enter:

sudo su


enter password if it asks for one.

Type the following the following commands each line you need to press return/enter on your keyboard

apt-get update 
apt-get upgrade

Install java:

apt-get install openjdk-7-jdk

sudo apt-get install proftpd

Then:

tasksel

on tasksel a window will open select lamp or webserver select it by pressing spacebar and follow the instructions

once that is done  move on to next

add the next all on 1 line and press return/enter

apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev php5-cli php5-gd build-essential unzip

then...

apt-get install imagemagick

then...

cd /usr/local/src

now we download some package

wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz

wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2

wget http://sourceforge.net/projects/lame/files/lame/3.98.2/lame-398-2.tar.gz

wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2

wget http://downloads.xiph.org/releases/ogg/libogg-1.1.4.tar.gz

wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.3.tar.gz

wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2

wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2

wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz

Now we extract files

tar zxvf lame-398-2.tar.gz

tar zxvf libogg-1.1.4.tar.gz
tar zxvf libvorbis-1.2.3.tar.gz
tar zxvf flvtool2-1.0.6.tgz

tar jxvf essential-20071007.tar.bz2

tar jxvf ffmpeg-php-0.6.0.tbz2

bzip2 -cd amrnb-7.0.0.2.tar.bz2 | tar xvf -

bzip2 -cd amrwb-7.0.0.3.tar.bz2 | tar xvf -

tar zxvf libtheora-1.1.1.tar.gz

install ruby on rails, subversion & ncurses

apt-get install subversion ruby libcurses-ruby

get latest mplayer and latest ffmpeg from trunk

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

Install gawk

apt-get install gawk

install GIT

apt-get install git
apt-getinstall libglade2-0 libglade2-dev

cd /usr/local/src/mplayer

svn update

Copy the codecs
mkdir /usr/local/lib/codecs

mv /usr/local/src/essential-20071007/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

Create TMP

mkdir /usr/local/src/tmp

chmod 777 /usr/local/src/tmp

export TMPDIR=/usr/local/src/tmp

Install Lame

cd /usr/local/src/lame-398-2

./configure

make && make install

Install Libogg

cd /usr/local/src/libogg-1.1.4

./configure && make && make install

Install libvorbis

nano /etc/ld.so.conf

add

/usr/local/lib

to a line close and save

ldconfig

cd /usr/local/src/libvorbis-1.2.3

./configure && make && make install

Install Flvtool2

cd /usr/local/src/flvtool2-1.0.6

ruby setup.rb config

ruby setup.rb setup

ruby setup.rb install

Install mplayer & mencoder

wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz -O- | tar zxvf -

cd yasm-1.1.0

./configure --disable-nls --prefix=/usr

make

make install

cd /usr/local/src/mplayer

./configure --yasm --enable-jpeg

make && make install

Install AMR

cd /usr/local/src/amrnb-7.0.0.2

./configure

make && make install

cd /usr/local/src/amrwb-7.0.0.3
./configure
make && make install

Install libtheora
cd /usr/local/src/libtheora-1.1.1
./configure
make && make install

Install ffmpeg
cd /usr/local/src/ffmpeg/

./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared --enable-nonfree --enable-libtheora

make
make install

Install ffmpeg-php

cd /usr/local/src/ffmpeg-php-0.6.0/

I got to this using Google. We had this issue on CentOS but its the same error so I'm pretty sure it will solve your issues as well --

With the latest version of ffmpeg-php (0.6.0), update ffmpeg_frame.c and replace every instance of
PIX_FMT_RGBA32 with PIX_FMT_RGB32
then it compiled fine.
For those who don't know how to do this -


vi ffmpeg_frame.c

:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

:w
:q!

phpize

./configure --with-ffmpeg=/usr/local/ffmpeg && make && make install

./configure

make

make install

echo 'extension=ffmpeg.so' >> /etc/php5/apache2/php.ini

echo

apt-get install php5-curl

apt-get install php5-xsl

/etc/init.d/apache2 restart

crontab -e

crontab will ask for default editor i used nano

when the file opens paste in the cron job that dolphin 7 gives you during installation

mine for instance is this

MAILTO=youremailaddress@mail.com
* * * * * cd /var/www/periodic; /usr/bin/php -q cron.php

Make these settings to your php.ini, I just didn't want to deal with errors for max issues.

nano /etc/php5/apache2/php.ini

max_execution_time = 30

changed to

max_execution_time = 300

max_input_time = 60

changed to

max_input_time = 600

memory_limit = 8M

changed to

memory_limit = 512M

post_max_size = 8M

changed to

post_max_size = 100M

upload_max_filesize = 8M

changed to

upload_max_filesize = 100M

save and exit that file

now type

a2enmod rewrite

now last thing i did was

nano /etc/apache2/sites-available/default

change everything that says AllowOverride None to AllowOverride All

save and close then

/etc/init.d/apache2 restart

change permissions on files, SSH into the site

chmod 777 ./inc ./backup ./cache ./cache_public ./langs ./media/app ./media/images ./media/images/banners ./media/images/blog ./media/images/classifieds ./media/images/membership ./media/images/profile ./media/images/profile_bg ./media/images/promo ./media/images/promo/original ./tmp ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/Test ./plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI     
chmod 777 ./flash/modules/board/files ./flash/modules/chat/files ./flash/modules/photo/files ./flash/modules/im/files ./flash/modules/mp3/files ./flash/modules/video/files ./flash/modules/video_comments/files    chmod 666 inc/prof.inc.php    
chmod 666 ./flash/modules/global/data/integration.dat ./flash/modules/board/xml/config.xml ./flash/modules/board/xml/langs.xml ./flash/modules/board/xml/main.xml ./flash/modules/board/xml/skins.xml ./flash/modules/chat/xml/config.xml ./flash/modules/chat/xml/langs.xml ./flash/modules/chat/xml/main.xml ./flash/modules/chat/xml/skins.xml ./flash/modules/desktop/xml/config.xml ./flash/modules/desktop/xml/langs.xml ./flash/modules/desktop/xml/main.xml ./flash/modules/desktop/xml/skins.xml ./flash/modules/global/xml/config.xml ./flash/modules/global/xml/main.xml ./flash/modules/im/xml/config.xml ./flash/modules/im/xml/langs.xml ./flash/modules/im/xml/main.xml ./flash/modules/im/xml/skins.xml ./flash/modules/mp3/xml/config.xml ./flash/modules/mp3/xml/langs.xml ./flash/modules/mp3/xml/main.xml ./flash/modules/mp3/xml/skins.xml ./flash/modules/photo/xml/config.xml ./flash/modules/photo/xml/langs.xml ./flash/modules/photo/xml/main.xml ./flash/modules/photo/xml/skins.xml ./flash/modules/video/xml/config.xml ./flash/modules/video/xml/langs.xml ./flash/modules/video/xml/main.xml ./flash/modules/video/xml/skins.xml ./flash/modules/video_comments/xml/config.xml ./flash/modules/video_comments/xml/langs.xml ./flash/modules/video_comments/xml/main.xml ./flash/modules/video_comments/xml/skins.xml  
chmod 777 flash/modules/global/app/ffmpeg.exe


then I was good to go

then use your ftp manager like filezilla to login using your server ip (192.168.1.127 or whatever you have) and use the username and password that you set ubuntu up with

if you dont know your server ip

type in server command

ifconfig

haven't seen a need to install RMS (Rays Media Server) because you already install everything that is needed to handle dolphin 7's video encoding etc.

As for RMS, its purpose is to supply the video and audio communication features of Dolphin. Basically, if you do not need voice or audio chats on your site, you don't really need RMS. Video uploads will work with or without RMS, as it is a separate feature.

It's mainly for the chat application, where if you have RMS installed and enabled, you will see new sections available, such as a video panel where you can set-up your camera and microphone.

RMS is an absolute requirement for that?

RMS is needed for those two features to function.

The process to go about this would be a bit different, as CentOS is based on Red Hat and Ubuntu is based on Debian. Mainly, package installs would be different, but from there on out, should be about the same.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 16 Jul 2012

Now onto controlling and managing your new Ubuntu system.

For those that like an easier method to edit and update their Ubuntu servers,

Webmin is highly recommended.

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup 

user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix 

configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

Preparing your system

 Open the terminal and run the following command

 

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show

-versions python

 

Now you need to dpwnload webmin deb package using the following command

 

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.590_all.deb

 

Install downloaded package using the following command

 

sudo dpkg -i webmin_1.590_all.deb

 

This will install webmin now you need to access https://192.168.1.127:10000

 

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 19 Jul 2012

I too recommend webmin, I run webmiin and virtualmin for my server at my house.

I have 3 copies of dolphin running.

1 is the live site

1 is the dev site

and 1 is the BONE stock version with no mods whatsoever.

I use the dev site to develop mods that work with my existing setup.

Once done, I use the bone stock site to test deployment.

Plus I enjoy hosting web sites, so the virtulamin on top of webmin is fun stuff for me!

http://www.mytikibar.com
Quote · 19 Jul 2012

Looks like I made a typo in the first post..

apt-getinstall libglade2-0 libglade2-dev



Should be

apt-get install libglade2-0 libglade2-dev

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 19 Jul 2012

Nice writeup Newton!

 

I too am a fan of webmin, but have yet to use virtualmin.

 

My vps accounts are all running Centos, so that's what I put in the lab at home.. but my preference has always been ubuntu.

Skype: shawn.nelson
Quote · 19 Jul 2012

 

Nice writeup Newton!

 

I too am a fan of webmin, but have yet to use virtualmin.

 

My vps accounts are all running Centos, so that's what I put in the lab at home.. but my preference has always been ubuntu.

 Thanks,

I just finished an install Virtualmin over the top of my Webmin with only a minor problem getting Postfix set correct to a virtual mail directory. I was amazed how simple the install went.

Follow the above setup gives you a server that is guaranteed to process and encode videos perfectly. 

All webmasters should make it a rule to change the Admin>Modules>Flash Apps>Comments Video Player and Video Player Setting "Use H264 codec" OFF, is set to ON for default.

Processing five minute video goes from 30-60 minutes to process to about 2 minutes depending on your resources.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 19 Jul 2012

Thank you for adding this info Newton... very much appreciated.  Any updates since you posted it last year?

http://pkforum.dolphinhelp.com
Quote · 6 Sep 2013

 

Thank you for adding this info Newton... very much appreciated.  Any updates since you posted it last year?

Nothing, just updates of course. I'm still at version 12.04

 

Thanks back. Smile

Your welcome as always.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 6 Sep 2013

 

All webmasters should make it a rule to change the Admin>Modules>Flash Apps>Comments Video Player and Video Player Setting "Use H264 codec" OFF, is set to ON for default.
Processing five minute video goes from 30-60 minutes to process to about 2 minutes depending on your resources.

 This is no longer recommended, if you do this and have the HTLM5 player installed, the videos or sounds will playback with the "older" version from 7.0.x.

[edit]

This is the server running at home using the above setup and RMS.

http://jacksonville.dyndns.tv/

http://jacksonville.dyndns.tv:5090

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 6 Sep 2013

Those sites load quite fast; what sort of connection do you have to the interweb?

Geeks, making the world a better place
Quote · 6 Sep 2013

cable, business class

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 6 Sep 2013

I have also fine tuned all the settings to the max according to AlexT's recommendations.

The servers are beast too, lol. They have there own bedroom!

servers

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 6 Sep 2013

 

I have also fine tuned all the settings to the max according to AlexT's recommendations.

The servers are beast too, lol. They have there own bedroom!

I bet the cooling cost for that room is high :-).

Are Alex's recommendations on the Wiki?  If not, then where?  I have not really done any optimisations on the server and it is time I did so.

Geeks, making the world a better place
Quote · 6 Sep 2013

 

 

I have also fine tuned all the settings to the max according to AlexT's recommendations.

The servers are beast too, lol. They have there own bedroom!

I bet the cooling cost for that room is high :-).

Are Alex's recommendations on the Wiki?  If not, then where?  I have not really done any optimisations on the server and it is time I did so.

 Yes the room is nice in the winter!

http://www.boonex.com/trac/dolphin/wiki/HostingServerSetupRecommendations

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 6 Sep 2013

Too many issues following your notes.  There must be a more direct/simpler approach... anyone find a better reference for installing Ubuntu 12.04 LTS then Dolphin?

http://pkforum.dolphinhelp.com
Quote · 9 Sep 2013

I may have over looked that "ysam" needs to be installed along too.

I have never failed with this install..

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 9 Sep 2013

 

Install mplayer & mencoder
wget http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz -O- | tar zxvf -
cd yasm-1.1.0

 This is maybe one overlooked?

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 9 Sep 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.