TurnKey Linux Virtual Appliance Library

TKLPatch - ClipBucket (update) - v0.4

Jeremy's picture

[update v0.3] Bugfix - added libx264 from Oneric (download and install debs) to fix issue with ffmpeg not compiling with default libx264 (version too old).

[update v0.4] Updated ClipBucket version to latest stable.

I have just updated Adrian's ClipBucket patch.

That is one nifty looking piece of kit! Thanks so much for your original patch Adrian! The update is pretty straight forward, please refer to Adrian's original patch announcement for full details (it's more or less the same except for what is noted below).

Please note that Adrian's original (and this update) install to Core (not LAMP). I may update this patch to rebase off LAMP, in which case some of the files included may be removed.

What's changed (v0.2 - my first release, assuming  Adrian's being v0.1):

  • Updated FFMPEG to latest stable (v0.8.5 - patch builds deb version: 0.8.5+src20111002 - to comply with Adrian's naming convention)
  • Updated ClipBucket to v2.5.1
  • Added MySQL firstboot scripts (ie set MySQL root pass - robbed from LAMP appliance)
  • and a few other little bits and pieces, probably best viewed on GitHub if you're interested...

Random weird stuff:

  • Despite using ClipBucket v2.5.1, in the Admin panel it reports:
    Currently you are running 2.0.91 STABLE
    Latest Version 2.6 stable - I will update the patch again soon...

  • While building FFMPEG it reports lots of errors and warnings, not sure if any of these are issues or not? Not sure if Adrian's original did the same (I didn't install it - only this update). Perhaps may have something to do with bug(s) reported?

To Do:

  • Update ClipBucket to v2.6-r738 (I have only just realised that this is the latest stable - originally thought it was RC) Done as of patch v0.4
  • Set admin password on firstboot (currently just "admin")
  • Random MySQL password for clipbucket DB on firstboot (currently just static predefined)
  • Set admin email on firstboot

I haven't done extensive testing (I have only tested that it installs and the site starts and admin can log in). It probably still has bugs (such as this). Looking at stuff like that will be my next job... Any feedback please fell free to post.

I have uploaded this to my GitHub account here (as well as posting here).

script need to update for libx264

 

just try ur patch ...
 
root@lamp src/ffmpeg-0.8.5# ./configure --enable-libx264 --enable-libxvid --enable-libfaac --enable-libvorbis --enable-libmp3lame --enable-libtheora --enable-postproc --enable-pthreads --enable-gpl --enable-nonfree
ERROR: libx264 version must be >= 0.115
Jeremy's picture

Right you are...!

Thanks for testing.

I just tested this and you are correct. The newest stable version of ffmpeg appears to depend on a newer version of libx264 than is installed in Lucid. I don't know what happened there as I'm sure it worked initially, although the running server I have only has ffmpeg 0.6 installed... So perhaps I must've acidentally built using 0.6?! But I'm sure it worked! Obviously it doesn't now regardless!

I think l'll update the patch to download and install the deb from the Oneric repos (it's got v0.116). While you wait for me to do that feel free to do it manually (I just checked and it builds ok). Sorry about that...

apt-get remove --purge libx264-85 libx264-dev
wget http://archive.ubuntu.com/ubuntu/pool/universe/x/x264
               /libx264-116_0.116.2042+git178455c-1ubuntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/x/x264
               /libx264-dev_0.116.2042+git178455c-1ubuntu1_i386.deb
dpkg -i libx264-116_0.116.2042+git178455c-1ubuntu1_i386.deb
dpkg -i libx264-dev_0.116.2042+git178455c-1ubuntu1_i386.deb

Then do the rest of the conf script

[update] I split the wget lines as the end of them was getting cut off.

[another update] Patch updated on GitHub and just uploading new (v0.3 v0.4) patch here.
 

Jeremy's picture

Found an interesting thread on Ubuntu forums

While i was considering my options re fixing the above bug I came across this forum post over on Ubuntu forums. As you can see I didn't end up doing it, but I thought I'd include it here, because it is possibly worthy of consideration for future builds.

yup ... iam looking on that

yup ...

iam looking on that source too

its really pain to get ffmpeg up and running on my experimental machine

but its work ...

i hope TKL have one appliance that stable enough and easy or scripting

no need latest ffmpeg, just stable and work is must

thanks ...

another shoot with ur script

another shoot with ur script ...

still need some fix...

mysqladmin: connect to server at 'localhost' failed

error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Module rewrite already enabled
Module ssl already enabled
Site default already disabled
ERROR: Site clipbucket does not exist!
ERROR: Site clipbucket-ssl does not exist!
chmod: cannot access `install': No such file or directory
cp: cannot stat `install/dbconnect.php': No such file or directory
sed: can't read includes/dbconnect.php: No such file or directory
sed: can't read includes/dbconnect.php: No such file or directory
sed: can't read includes/dbconnect.php: No such file or directory
sed: can't read includes/dbconnect.php: No such file or directory
sed: can't read includes/dbconnect.php: No such file or directory
conf: 62: cannot create install/cb_v2_turnkey.sql: Directory nonexistent
sed: can't read install/cb_v2_turnkey.sql: No such file or directory
conf: 64: cannot open install/cb_v2_turnkey.sql: No such file
conf: 65: cannot open /tmp/cbturnkey.sql: No such file
cp: cannot stat `install/install.lock': No such file or directory
 
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
stop and restart mysql
fix for mysqld 
 
must create file install.me, i look on clipbucket file, there no install.me (weird)
cp install/dbconnect.php includes/dbconnect.php
i think thats not install, but cb_install
www/clipbucket# chmod 777 files files/conversion_queue files/logs files/original files/temp files/thumbs files/videos files/mass_uploads files/temp/install.me images images/avatars images/backgrounds images/category_thumbs images/groups_thumbs cache install
chmod: cannot access `files/temp/install.me': No such file or directory
chmod: cannot access `install': No such file or directory
 
what is cb_v2_turnkey.sql ?
sed "s/{tbl_prefix}/cb_/" install/cb_v2.sql > install/cb_v2_turnkey.sql
-bash: install/cb_v2_turnkey.sql: No such file or directory
 
just another feedback ...
Jeremy's picture

Are you using TKLPatch to apply the patch?

Ie

tklpatch turnkey-core-11.2-lucid-x86.iso clipbucket-0.2.tar.gz

or

tklpatch-apply / clipbucket-0.2.tar.gz

?

If not then you'll need to also make sure you copy across the contents of the overlay folder. It needs to overwrite the / (root) directory prior to the script being run. Even if you do run the script and overlay the correct files, the MySQL commands will still fail as the script assumes that there is no root MySQL password. You can tweak the script (ie the conf file) to ask for a MySQL password by adding the -p switch to the MySQL commands.

Not sure about the other issues you're experiencing. I'll have to have a beeter look at this when I get a chance, although sorry I'm not sure when that'll be - I've got a fair bit on ATM.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)