D7 + Ubuntu 9.10

This is what I did to get everything working in D7 on a test server

Download Ubuntu 9.10 server edition iso burn it to 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 9.10):

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


then i typed sudo su


enter password if it asks for one.

then i type the following the following commands each line you need to press return/enter on your keyboard

apt-get update 
apt-get upgrade

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://www3.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/download
wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download
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
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
cd /usr/local/src/mplayer
./configure --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/
phpize
./configure --with-ffmpeg=/usr/local/ffmpeg

make

make install

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

/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=awaftershock@live.com
* * * * * cd /var/www/periodic; /usr/bin/php -q cron.php

and i changed that to

MAILTO=awaftershock@live.com
*/1 * * * * cd /var/www/periodic; /usr/bin/php -q cron.php

so it will check for encoding every 1 minute, 1 minute might not be suitable for you, but im impatient lol

then i made a couple tweaks to php.  these settings that i made are in now way good safe or whatever I just didnt want to deal with errors for max issues.

nano /etc/php5/apache2/php.ini

max_execution_time = 30

changed to

max_execution_time = 3000

max_input_time = 60

changed to

max_input_time = 6000

memory_limit = 8M

changed to

memory_limit = 512M

post_max_size = 8M

changed to

post_max_size = 1000M

upload_max_filesize = 8M

changed to

upload_max_filesize = 1000M

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

then I was good to go

durring the installation it showed some permissions that needed to be changed all of that was very easy when it says something needs permissions just type

chmod 777 /directory-needing-chmodded/some-other-directory/somefile.php

or what i did was just

chmod -R 777 /var/www

because im on a test server

but you will have to go back and re chmod some other files when dealing with the flash modules most of those will go back to 666 permission.

I am a noob to linux and a noob to dolphin so i hope this helps other nooob

Quote · 27 Dec 2009

forgot to add

sudo apt-get install proftpd

then use your ftp manager like filezilla to login using your server ip (192.168.2.3 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

Quote · 27 Dec 2009

One more thing lol

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

TBH im not sure what the purpose of RMS is anyways, the way I set it up everything works.

Quote · 27 Dec 2009

I'm going to have to give you a medal for this. Nice job!

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.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Dec 2009

What worked for me was running XAMPP in Ubuntu 9.10. Gives you a very nice interface to play with and was super easy to set up. But, I give you mad props for giving everyone the setup instructions!

FuGuM

Quote · 27 Dec 2009

I'm going to have to give you a medal for this. Nice job!

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.

Keep in mind that any video or audio server will eat a ton of bandwidth. Just be sure your hosting package or internet connection can handle it.

Quote · 27 Dec 2009

video and audio communication features of Dolphin.?

where is that at? i havent tested that

Quote · 27 Dec 2009

video and audio communication features of Dolphin.?

where is that at? i havent tested that

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.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Dec 2009

thanks I must test that! :)

RMS is an absolute requirement for that?

Quote · 27 Dec 2009

thanks I must test that! :)

RMS is an absolute requirement for that?

RMS is needed for those two features to function.

Also, as said, keep in mind that it can be a real bandwidth sucker if people start to take advantage of it.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Dec 2009

tyvm for the info, I will see if I can install that somehow, just for testing purposes to add to the original post etc.  I won't ever use it personally cuz Dolphin 7 will just be a video tutorial site for a game that I play. :)

Quote · 27 Dec 2009

Try very very very much!

Is it the same process in centos also??

Quote · 27 Dec 2009

Try very very very much!

Is it the same process in centos also??

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.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 27 Dec 2009

quick question when RMS has you edit red5.sh to add your directory for JAVA_HOME how do i know exactly where jre is?

I used command "whereis java" and it gave me this...

java: /usr/share/java

so i mend the line like this?

JAVA_HOME=/usr/share/java;

or does it have to point directly to jre?

when i do whereis jre

i get nothing but ...

jre:

atm the way it is now when i start ./run_daemon.sh

it spits out

./run_daemon.sh: line 6: gawk: command not found

Quote · 27 Dec 2009

I'd imagine it'd be /usr/bin/java, but I'm not certain on that.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 28 Dec 2009

hehehehe java wasn't installed, classic noob :)

Ill try installing and see if it works :)

Quote · 28 Dec 2009

ok i install jre

when i do whereis java i get

java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz

i tried entering these different locations into red5.sh like this...

not all at the same time just tried one, then deleted it and tried another

and still gettting the "./run_daemon.sh: line 6: gawk: command not found"

JAVA_HOME=/usr/share/java;

JAVA_HOME=/usr/share/java

JAVA_HOME=/usr/bin/java;

JAVA_HOME=/usr/bin/java


im not sure if its wanting the path to some file or some folder

as it is i cant find anything resembling

JAVA_HOME=/opt/ray_server/jre1.x;

like an actual jre file to point too or something, not sure

Quote · 28 Dec 2009

nvmd its all working lol

all i had to do was install java and point it to usr/share/java

that gawk error isn't an error

./run_deamon.sh works just fine, testing it all out

LOVE THIS SCRIPT!! thanks boonex :)

Quote · 28 Dec 2009

lol now on to rewriting the template :)

Quote · 28 Dec 2009

Could someone please explaint this same for Centos aswell?

This tutorial is excelent and work as a charm on my home computer wuth ubuntu!

My server is centos and I would really appreciate a tutorial for centos server!

Quote · 28 Dec 2009

How would the installation be on Redhat?  Instead of apt-get I write yum? that is the only difference?

Quote · 11 Jan 2010

All is working except for video processing, after cron job runs this is out put... can anyone help?

error code removed...have figured it out

I followed these directions several times, with the same problem, results; video processing not correct... My main question is why add the "wget http://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2/download" if the ffmpeg comes with the Dolphin script? This is where I'm confused. My RMS server configured fine.. was that file used during the install process for the RMS

Testing server running Ubuntu 9.10 RMS and Dolphin 7.0.0 http://www.duvallocals.info

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 21 Feb 2010

quick question when RMS has you edit red5.sh to add your directory for JAVA_HOME how do i know exactly where jre is?

I used command "whereis java" and it gave me this...

java: /usr/share/java

so i mend the line like this?

JAVA_HOME=/usr/share/java;

or does it have to point directly to jre?

when i do whereis jre

i get nothing but ...

jre:

atm the way it is now when i start ./run_daemon.sh

it spits out

./run_daemon.sh: line 6: gawk: command not found

to get around the gawk error I had install "gawk"

I also had problems with the make make install finishing for ffmpeg-php..

I have to add this

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!
./configure make make install

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 22 Feb 2010

Those super Unix Ubuntu specialists, lend me your ears for a day..

I used this topic to setup my first server two years ago, went to do a simple upgrade and lost the whole server. UGH!!!! Two years wiped out in a second, and no, not a single backup.. lol

rebuilt the server yesterday, and all is working but as usual I'm having a problem figuring out my cron on Ubuntu 10.04.3 LTS, BTW think twice b4 upgrading to 11.04 Natty... that's what crashed the server..

I had it (cron)saved in a text file, * * * * * cd /var/www/periodic; /usr/local/bin/php -q cron.php

it now will not run cron.php 

Can anyone help? Thanks

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 22 Oct 2011

use the command "crontab -e" to edit the crontab settings ...

http://www.boonex.com/market/posts/paansystems - your resource for Dolphin Pro
Quote · 22 Oct 2011

 thanks for advice, I know how to setup crons on the server..

I figured out the problem...

I had this cron running "* * * * * cd /var/www/periodic; /usr/local/bin/php -q cron.php"

this is the correct one for Ubuntu system.. * * * * * cd /var/www/periodic; /usr/bin/php -q cron.php

removed "local" from the command and crons are running as scheduled

I used this topic to setup my first server two years ago, went to do a simple upgrade and lost the whole server. 

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 22 Oct 2011
 
 
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.