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!
ZM on Sony PS3
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
I have been running 4 Axis 210 cameras on the PS3 for about 18 hours now and it all seems to be working good. I am in Modect mode to keep the storage and MySQL transactions down. I noticed that high MySQL transactions will take a toll on memory so I switched from Mocord to Modect. Max FPS is set to 8 and Max Alarm is set at 9. All the cams are recording in 320x240 at this point. I haven't seen the load go above 1.45 even when our facility is really busy with motion. The PS3 normally idles away between 0.50-0.85 load with these 4 cameras.
Oh..I ditched the USB drive that I was using for external storage too. It required another module to load (more resources) and the drive that I was using didn't have very good performance. Plus I think that if I were to use external USB storage...I would probably want to modify the kernel to not allow power savings on the USB devices. This drive would power down if there wasn't any activity. It did power up and still recorded everything. I like the idea of the internal drive even though I only have about 23GB to work with.
After I am done with load testing it here at work I am going to take it home where it will idle most of the day because there isn't a lot of activity in my garage or front yard. Then when the munchkins stop over all I do is type boot-game-os at the kboot: brompt and they can resume their saved MX vs ATV Untamed games.[/img]
Oh..I ditched the USB drive that I was using for external storage too. It required another module to load (more resources) and the drive that I was using didn't have very good performance. Plus I think that if I were to use external USB storage...I would probably want to modify the kernel to not allow power savings on the USB devices. This drive would power down if there wasn't any activity. It did power up and still recorded everything. I like the idea of the internal drive even though I only have about 23GB to work with.
After I am done with load testing it here at work I am going to take it home where it will idle most of the day because there isn't a lot of activity in my garage or front yard. Then when the munchkins stop over all I do is type boot-game-os at the kboot: brompt and they can resume their saved MX vs ATV Untamed games.[/img]
I also added the freelancing business that I run on the side to the consultants area of the wiki. I can provide commercial support for Zoneminder if anyone needs help with anything from running ZM on your PS3 to larger applications. The largest single install that I have running is a Dell PowerEdge 2950 with 8 cores, 8GB RAM, and an extensive RAID array. I am also planning on setting up a grid or cluster of older matching servers running a single instance of ZM to see how far it will scale. I will make it a policy to donate a percentage of my labor earnings to the Zoneminder project. I have been testing/running several Zoneminder installations for about two years on distributions including CentOS, Fedora, Ubuntu, and Yellow Dog Linux. If you don't need audio recording, ZM on Linux is in my opinion the most robust & reliable surveillance solution out there today.
miket, I hope you know that you are the man! Thank you so much for the very detailed procedure on the PS3!! It worked like a charm for me! I have a couple of questions for you that I hope you could shed some light on.
1. Could you give a functionality description of all of the services that you outlined before that should be disabled or blacklisted? I am curious because I just don't want to permanently disable something that I may need for another application.
2. I use a Logitech diNovo Edge bluetooth keyboard/mouse with my PS3, but after the ZM installation I could not pair it with the internal BT on the PS3. Would ZM have anything to do with my bluetooth troubles so far?
When I do:
hidd --search
It just says "Searching..." then sends me back to a command prompt. I have confirmed that the hidd server is running, but I'm wondering if ZM is using the hidd port or something. Ever seen this?
3. Have you tried running ZM on both YDL 5.0.2 and Ubuntu 7.10 Gutsy Gibbon? I've run Ubuntu 7.10 on my ps3 and it runs pretty smooth, but I've never gotten ZM installed on it. Do you think that ZM runs better on
YDL as compared with Ubuntu, or is there any noticeable difference?
Thanks for all your efforts!!
1. Could you give a functionality description of all of the services that you outlined before that should be disabled or blacklisted? I am curious because I just don't want to permanently disable something that I may need for another application.
2. I use a Logitech diNovo Edge bluetooth keyboard/mouse with my PS3, but after the ZM installation I could not pair it with the internal BT on the PS3. Would ZM have anything to do with my bluetooth troubles so far?
When I do:
hidd --search
It just says "Searching..." then sends me back to a command prompt. I have confirmed that the hidd server is running, but I'm wondering if ZM is using the hidd port or something. Ever seen this?
3. Have you tried running ZM on both YDL 5.0.2 and Ubuntu 7.10 Gutsy Gibbon? I've run Ubuntu 7.10 on my ps3 and it runs pretty smooth, but I've never gotten ZM installed on it. Do you think that ZM runs better on
YDL as compared with Ubuntu, or is there any noticeable difference?
Thanks for all your efforts!!
How much does it cost for one PS3 play station in India in mumbai?
I am planning to start a playstation. So plz tell me how much it will cost for one ps3 playstation? What are the other requirements for opening playstation?
________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite
I am planning to start a playstation. So plz tell me how much it will cost for one ps3 playstation? What are the other requirements for opening playstation?
________________
keyword research ~ keyword tool ~ keyword tracking ~ affiliate elite