ZM on Sony PS3
Posted: Wed Jan 02, 2008 12:58 am
Before you do anything insure that you have updated your PS3's main OS
Follow this guide to help you get YDL on your PS3:
http://www.terrasoftsolutions.com/suppo ... _guide.pdf
Install YDL 5.0.2 on your PS3 insuring that you choose the default partition layout (or you will get an exception error at end of install if you use custom layout). (This will take 1 Hour)
The PS3 doesn't have a lot of memory so I highly recommend trimming the fat by:
Edit your /etc/inittab and change id:5:initdefault: to id:3:initdefault: this will boot linux into a command line only interface.
Reboot your PS3. Now you will see only a command line.
Login and type "setup" (without quotes)
Unselect all services except the following:
crond
irqbalance
network
readahead_early
sshd
syslog
Now lets prevent bloated modules from loading at startup:
Edit /etc/modprobe.d/blacklist and add the following to the bottom of the file:
#Trimming the fat
blacklist soundcore
blacklist snd
blacklist snd_timer
blacklist snd_page_alloc
blacklist snd_pcm
blacklist snd_mixer_oss
blacklist snd_pcm_oss
blacklist snd_seq_device
blacklist snd_seq
blacklist snd_seq_midi_event
blacklist snd_seq_oss
blacklist snd_seq_dummy
blacklist snd_ps3
blacklist bluetooth
blacklist hci_usb
blacklist dm_mod
blacklist dm_mirror
blacklist ipv6
Reboot your PS3 by typing /sbin/shutdown now -r
Add these repo files to your /etc/yum.repos.d directory:
Create livna-stable.repo file containing:
[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/5/ppc
gpgcheck=0
Create fedora-extras.repo file containing:
[fedora-extras]
name=Fedora Extras
baseurl=http://download.fedora.redhat.com/pub/f ... tras/5/ppc
gpgcheck=0
Create dribble.repo file containing:
[dribble]
name=Dribble for Fedora 5 - ppc
baseurl=http://dribble.org.uk/repo/5/ppc
enabled=1
gpgcheck=0
Run an update:
yum -y update
Run the following commands to install zoneminder dependent packages:
yum install -y ffmpeg*
yum install -y mysql-server
yum install -y mysql-devel
yum install -y pcre*
yum install -y gnutls*
yum install -y libjpeg*
yum install -y perl-DateManip
yum install -y perl-Device-SerialPort php-pear-XML-Serializer
yum install -y php-mysql
wget http://ftp.iasi.roedu.net/mirrors/reb00 ... noarch.rpm
rpm -Uvh perl-PHP-Serialization-0.27-1.n0i.1.noarch.rpm
yum install -y perl-Module-Load
yum install -y perl-Archive-Tar
yum install -y perl-Archive-Zip
yum install -y perl-MIME-Lite
yum install -y perl-MIME-tools
Download the latest zoneminder and do:
tar -xzvf ZoneMinder-1.23.0.tar.gz
cd ZoneMinder-1.23.0
./configure --with-webdir=/var/www/html --with-mysql=/usr --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr --with-webuser=apache --with-webgroup=apache --disable-debug --disable-crashtrace
Edit src/zm_mpeg.cpp and go to line 281 and add & in front of ofc so that the line looks like:
url_fclose(&ofc->pb);
make
make install
cp scripts/zm /etc/rc.d/init.d/
chmod 755 /etc/rc.d/init.d/zm
/sbin/chkconfig zm on
Edit /etc/httpd/conf/httpd.conf and set it to parse php code:
Change this line: DirectoryIndex index.html index.html.var
to:
DirectoryIndex index.html index.php
Uncomment this line:
AddType application/x-tar .tgz
and add this line directly underneath it:
AddType application/x-httpd-php .php
Now lets start apache and mysql:
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/mysqld start
Create the database and set permissions:
mysql
create database zm;
use zm;
GRANT ALL PRIVILEGES ON zm TO zmuser@localhost IDENTIFIED BY 'zmpass';
GRANT ALL PRIVILEGES ON zm.* TO zmuser@localhost IDENTIFIED BY 'zmpass';
exit
Import the database schema:
mysql zm < db/zm_create.sql
Get out of the zm build directory:
cd ..
Start Zoneminder:
/etc/rc.d/init.d/zm start
Set httpd, mysqld, and zm to start up automatically on reboot:
Type "setup" (without quotes)
put a * by the following services by hitting your space bar:
httpd
mysqld
zm
Now if you reboot...your services should automatically start.
These were just some notes that I jotted down quick to help others use ZM on their PS3s. I am also going to hook up a USB hard drive and mount it as /var/www/html/events so that I have plenty of storage.
Thanks again to Phil for creating/maintaining ZM
Please donate to the ZM project!
Follow this guide to help you get YDL on your PS3:
http://www.terrasoftsolutions.com/suppo ... _guide.pdf
Install YDL 5.0.2 on your PS3 insuring that you choose the default partition layout (or you will get an exception error at end of install if you use custom layout). (This will take 1 Hour)
The PS3 doesn't have a lot of memory so I highly recommend trimming the fat by:
Edit your /etc/inittab and change id:5:initdefault: to id:3:initdefault: this will boot linux into a command line only interface.
Reboot your PS3. Now you will see only a command line.
Login and type "setup" (without quotes)
Unselect all services except the following:
crond
irqbalance
network
readahead_early
sshd
syslog
Now lets prevent bloated modules from loading at startup:
Edit /etc/modprobe.d/blacklist and add the following to the bottom of the file:
#Trimming the fat
blacklist soundcore
blacklist snd
blacklist snd_timer
blacklist snd_page_alloc
blacklist snd_pcm
blacklist snd_mixer_oss
blacklist snd_pcm_oss
blacklist snd_seq_device
blacklist snd_seq
blacklist snd_seq_midi_event
blacklist snd_seq_oss
blacklist snd_seq_dummy
blacklist snd_ps3
blacklist bluetooth
blacklist hci_usb
blacklist dm_mod
blacklist dm_mirror
blacklist ipv6
Reboot your PS3 by typing /sbin/shutdown now -r
Add these repo files to your /etc/yum.repos.d directory:
Create livna-stable.repo file containing:
[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/5/ppc
gpgcheck=0
Create fedora-extras.repo file containing:
[fedora-extras]
name=Fedora Extras
baseurl=http://download.fedora.redhat.com/pub/f ... tras/5/ppc
gpgcheck=0
Create dribble.repo file containing:
[dribble]
name=Dribble for Fedora 5 - ppc
baseurl=http://dribble.org.uk/repo/5/ppc
enabled=1
gpgcheck=0
Run an update:
yum -y update
Run the following commands to install zoneminder dependent packages:
yum install -y ffmpeg*
yum install -y mysql-server
yum install -y mysql-devel
yum install -y pcre*
yum install -y gnutls*
yum install -y libjpeg*
yum install -y perl-DateManip
yum install -y perl-Device-SerialPort php-pear-XML-Serializer
yum install -y php-mysql
wget http://ftp.iasi.roedu.net/mirrors/reb00 ... noarch.rpm
rpm -Uvh perl-PHP-Serialization-0.27-1.n0i.1.noarch.rpm
yum install -y perl-Module-Load
yum install -y perl-Archive-Tar
yum install -y perl-Archive-Zip
yum install -y perl-MIME-Lite
yum install -y perl-MIME-tools
Download the latest zoneminder and do:
tar -xzvf ZoneMinder-1.23.0.tar.gz
cd ZoneMinder-1.23.0
./configure --with-webdir=/var/www/html --with-mysql=/usr --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr --with-webuser=apache --with-webgroup=apache --disable-debug --disable-crashtrace
Edit src/zm_mpeg.cpp and go to line 281 and add & in front of ofc so that the line looks like:
url_fclose(&ofc->pb);
make
make install
cp scripts/zm /etc/rc.d/init.d/
chmod 755 /etc/rc.d/init.d/zm
/sbin/chkconfig zm on
Edit /etc/httpd/conf/httpd.conf and set it to parse php code:
Change this line: DirectoryIndex index.html index.html.var
to:
DirectoryIndex index.html index.php
Uncomment this line:
AddType application/x-tar .tgz
and add this line directly underneath it:
AddType application/x-httpd-php .php
Now lets start apache and mysql:
/etc/rc.d/init.d/httpd start
/etc/rc.d/init.d/mysqld start
Create the database and set permissions:
mysql
create database zm;
use zm;
GRANT ALL PRIVILEGES ON zm TO zmuser@localhost IDENTIFIED BY 'zmpass';
GRANT ALL PRIVILEGES ON zm.* TO zmuser@localhost IDENTIFIED BY 'zmpass';
exit
Import the database schema:
mysql zm < db/zm_create.sql
Get out of the zm build directory:
cd ..
Start Zoneminder:
/etc/rc.d/init.d/zm start
Set httpd, mysqld, and zm to start up automatically on reboot:
Type "setup" (without quotes)
put a * by the following services by hitting your space bar:
httpd
mysqld
zm
Now if you reboot...your services should automatically start.
These were just some notes that I jotted down quick to help others use ZM on their PS3s. I am also going to hook up a USB hard drive and mount it as /var/www/html/events so that I have plenty of storage.
Thanks again to Phil for creating/maintaining ZM
Please donate to the ZM project!