Archive for category Open Source Apps
avidemux compile or I just wanted to rotate some video…
Posted by james in IT Tips, Open Source Apps on November 9, 2009
Ubuntu 9.10… avidemux is crashing everytime I try to run the rotate filter with a partial frame range.
So I’m trying to compile it from source to see if I can get it running.
What they don’t tell you in the online install instructions is you have to compile both the application…
apt-get build-dep avidemux cd /home/jimmy/avidemux/avidemux_2.5.1 mkdir build cd build cmake .. sudo make install
and you also have to compile the plugins separately as-well…
cd /home/jimmy/avidemux/avidemux_2.5.1/plugins cmake -DAVIDEMUX_SOURCE_DIR=/home/jimmy/avidemux/avidemux_2.5.1 -DAVIDEMUX_INSTALL_PREFIX=/usr/local -DAVIDEMUX_CORECONFIG_DIR=/home/jimmy/avidemux/avidemux_2.5.1/build/config/ .. sudo make install
And after all the above I still get a crash when trying to rotate a partial segment of video:
Text of crash:
Assert failed :0 at line 380, file /home/jimmy/avidemux/avidemux_2.5.1/avidemux/ADM_filter/filter.cpp/usr/local/lib/libADM_core.so(ADM_backTrack+0x6d) [0x8f8b6d] avidemux2_gtk [0x80c0b9e] avidemux2_gtk(_Z19getFirstVideoFilterv+0x31) [0x80c0cb1] avidemux2_gtk [0x81add64] /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c) [0x2689fc] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x1b2) [0x25b072] /usr/lib/libgobject-2.0.so.0 [0x2707a8] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd) [0x271b2d] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0x271fb6] /usr/lib/libgtk-x11-2.0.so.0(gtk_button_clicked+0x8a) [0x6d1388a] /usr/lib/libgtk-x11-2.0.so.0 [0x6d14ea8] /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x7c) [0x2689fc] /usr/lib/libgobject-2.0.so.0 [0x2596f9] /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0xd8) [0x25af98] /usr/lib/libgobject-2.0.so.0 [0x2700b0] /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7bd) [0x271b2d] /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x26) [0x
In fact with my compiled version I can get it to crash more frequently now… Excellent!
A rather long and painful process when all I wanted to do was rotate some video…
This is going to be the year of Linux on the desktop. No this is the year of Linux on the desktop. No this is…
Ubuntu… sexy but unstable. Maybe it’s time to have a gander at Fedora 12… Hopefully they have the Intel Video driver sorted for this release.
Sweet Home 3D
Posted by james in Open Source Apps on November 4, 2009
Check out the 3D drawing I did from a cool Java application Sweet Home 3D
This is approximately an hours work after following the tutorial and using an imported 2D floorplan. This isn’t using the best quality rendering setting and I found my old P4 was struggling a little but still the result is OK.
Medium render quality 1024 pixels wide (Looks like a corrupted thumbnail… Will fix later.)
Best render quality 2048 pixels wide
Sweet Home 3D has a cool virtual walk-through feature. So if you’re having trouble envisaging a plan and how furniture affects a space Sweet Home 3D really brings it alive.
KDE4
Posted by james in Open Source Apps on May 22, 2009
So I have haunted the linux-users mailing list for about um (1999-2009) 10 years.
And the discussion turned to KDE4 and well frankly there wasn’t many people saying it ‘completes me’. Quite the opposite.
So seeing I’m running Ubuntu 9.04 I though I would install it…. and well to coin a phrase: “KDE4 is to KDE what Vista is to Microsoft”.
Immediate problems:
PrtScn and ALT+PrtScn don’t
The KDE menu allows you to go down a limb but there is no obvious way to get back to the trunk…
Usually I Google the problem and get a Ubuntu forums work-a-round or fix almost immediately. Nada.
It’s sad really… KDE traditionally has provided a nice balance to the Gnome over-simplicity, but now, it’s well, hundreds of knobs and levers not connected to the functionality it’s supposed to control.
I don’t normally do ‘opinion’ blogging. I prefer posting the Problem, Cause, Resolution style of blogs because they are the most helpful. But in this case. Come on KDE what happened?
One hopes that, like Microsoft, the KDE4 roadmap committee hears the criticism, and gets out of the sand dunes and back onto the pavement for the next major release.
svn working copy inside ecryptfs file name gotcha
Posted by james in Open Source Apps on May 19, 2009
So encrypting your stuff is wise from a security standpoint. Yes?
Here is a little problem I ran into when I copied my svn working copy into an ecryptfs directory. The actual copy operation gave an error message about “file name too long” which I ignored. But then I tried to do an svn update and the error as below appeared
user@linuxbox:~/Private/svn/work/company/docs$ svn update
A DR
svn: Can't check path 'DR/Disaster recovery of a Local Windows 2000 or Windows 2003 computer (includes non-authoritative restore of Active Directory for a domain controller).mht': File name too long
Tried all sorts of things to fix this ended up moving the working copy out of the encrypted directory and then running svn to rename, commit, update before moving it back into the encrypted directory
svn mv "Disaster recovery of a Local Windows 2000 or Windows 2003 computer (includes non-authoritative restore of Active Directory for a domain controller).mht" ashortnamehere.mht svn commit -m "renamed too long a file name"
It appears ecryptfs has a file name length limit. I don’t know the exact restriction but the above file name is 151 characters long and it’s too long.
Ubuntu – PuTTY GTK2 Package
Posted by james in Open Source Apps on May 18, 2009
I wrote some stuff on compiling PuTTY with GTK2.
Here is a deb for Ubuntu (I compiled it on 8.04 and have tried it on 9.04)
md5sum: 2f0926105d949dcb7fc7ce0c818b2088
I think I did it with checkinstall and if it’s broken you get to keep both peices however if it’s useful then knock yourself out.
The package puts plink, pscp, psftp, pterm, putty, puttygen & puttytel in /usr/local/bin
GtkPod Fails to Convert ogg to MP3
Posted by james in Open Source Apps on May 11, 2009
Just tried to install some oggs onto my wife’s iPod Shuffle 1G and using the add Files button from within GTKPod I get an error similar to:
/usr/share/gtkpod-aac/scripts/convert-2mp3.sh exit status 5
I had to install the following to make it work.
sudo apt-get install id3v2 lame vorbis-tools
Gallery Upload to Dreamhost
Posted by james in Open Source Apps on May 8, 2009
So I just finished transferring my Gallery 2.3 installation from my old server to Dreamhost.
gFTP has been replaced by FileZilla
In the past on Linux I have used GFTP to do FTP uploads but have found it buggy.
This time I used FileZilla and I must say it performed very well 15,000+ files totalling 5GiB. It took almost 2 days to complete the transfer my connection was 384kbps upload. I did speed it up a bit when I discovered FileZilla has a “maximum simultaneous transfers” setting, bumping it up to about 8 helped 10 was too far and I got failed transfers.
Delete Gallery Caches Before Doing A Gallery 2.3 Server to Server Transfer
One problem with the Gallery 2.3 to Gallery 2.3 transfer was I didn’t think to delete the cached templates and files before I uploaded I’m sure that would have helped.
Comparing the Gallery Photo Data directory size on the old server and on the new after I finally finished the transfer 4.7G and 4.4G respectively proves I should have deleted the cached files before I uploaded.
So it’s all good Gallery is now safely ensconced in it’s new locale
Migrating the WordPress MYSQL Database to a New Table Prefix the Hard Way.
So I have moved my domain to dreamhost.com
Why?
- Got sick of my home computer being a VMWare Server. Couldn’t reboot or upgrade when I wanted
- Computers are evil time suckers. Moving my website means I don’t have to worry if it’s up, down or sideways. dreamhost.com can do the worrying
- I had heard good things regarding dreamhost from my Sister whose websites flourish like the fleas on a mangy dog (I mean she has a lot of Websites)
- They are heavily open source
- They have a one click install for packages I use (wordpress, gallery, joomla)
To start I dived into the dreamhost.com control panel and did a one click WordPress install, then copied my wp-content folder over the new install. (As a side point the guys at dreamhost are obviously high end propeller heads to be able to provide so many features, I wonder if they wear Bow Ties and Cummberbunds to parties?)
Dumping your database from the command line
I dumped my old WordPress DB using the command
mysqldump --tables wordpress -p -u root > wordpress.sql
Notice the use of the --tables command line option that stops the sql file from containing any USE dbname or DROP dbname statement and just exports the tables alone.
Dreamhost.com has a per customer instance of phpmyadmin so changes and updates to the mysql database can be done with ease.
WordPress Table Prefix Change
Dreamhost uses a random seeming table prefix for wordpress db tables something like wp_xjsirsl_tablename (e.g. wp_xjsirsl_comments) and this mean’t I couldn’t just load the DB up through phpmyadmin because my table prefix was wrong wp_tablename (e.g. wp_comments)
I thought of opening my DB dump file (wordpress.sql) and changing all the table names but … when I opened it in gedit it froze (I think gedit was spending wayyy too much time trying to syntax highlight the file) so I canned that and loaded the file using phpmyadmin which loaded the old tables with the wrong wp_ prefix.
I ended up doing a labourious table rename procedure. Dropping each table with the wp_xjsirsl_ prefix and then rename my uploaded table to be correct wp_xjsirsl_tablename
This caused some issues when trying to log into the wordpress admin console something like “you don’t have permission to access this page” or similar (can’t remember now). However searching on the error message in Google turned up some sql updates that I did manually in phpmyadmin
Anyway it’s all installed and seems to be functioning properly.
Perhaps now I can leave it alone for a while and get to the important things, like my rear deck renovation.
Changing Mozilla Thunderbird Forward as Attachment to Forward Inline
Posted by james in IT Tips, Open Source Apps on May 5, 2009
When I forward a message I like to have the option of scrolling through the content and commenting in between the paragraphs of the forwarded message.
Thunderbirds default behaviour is to forward messages as attachments:
However to be able to edit the forwarded email you need to Go to Tools ==> Options ==> Composition ==> General Tab and change the Forwarded Messages: field from As Attachment to Inline as shown in the next screen shot:









