Archive for the 'software' Category

Adding pdftk to 1and1 shared hosting

UPDATE 2010-09-03: I updated a couple links to reflect newer downloads. Because is on an older debian (etch) system I had to tweak the steps for using lenny based packages. ENJOY!

There are some cases where you might need a powerful to use with . 1and1 does not come with any built in processors or libraries built into . Here is the process I used to integrate phptk into my 1and1 account.

Requirements: 1and1 shared plan that has ssh support

- Download pdftk deb file for debian lenny:

wget http://ftp.us.debian.org/debian/pool/main/p/pdftk/pdftk_1.41-3_i386.deb

- Extract the pdftk deb file:

ar xv pdftk_1.41-3_i386.deb

- Extract the data.tar.gz file:

tar xvzf data.tar.gz

- Download libgcj deb file for debian lenny:

wget http://ftp.us.debian.org/debian/pool/main/g/gcj-4.2/libgcj8-1_4.2.4-4_i386.deb

- Extract the libgcj deb file:

ar xv libgcj7-0_4.1.1-20_i386.deb

- Extract the data.tar.gz file:

tar xvzf data.tar.gz

- Download libstdc++ deb file for debian lenny (backport file http://packages.debian.org/lenny-backports/i386/libstdc++6/download):

wget http://mirror.linux.org.au/backports.org/pool/main/g/gcc-4.3/libstdc++6_4.3.4-6~bpo50+1_i386.deb

- Extract the libstdc++6 deb file:

ar xv libstdc++6_4.3.4-6~bpo50+1_i386.deb

- Extract the data.tar.gz file:

tar xvzf data.tar.gz

- Create a script to link libgcj and libstdc++6 for pdftk (use nano or vi):

#!/bin/bash

LD_LIBRARY_PATH="usr/lib:$LD_LIBRARY_PATH" usr/bin/pdftk $*

- Chmod the pdftk script so it can run:

chmod 755 pdftk

Now you can run pdftk from your main directory and process files from or cronjobs.

If you run into any problems try running the pdftk command with some test files. If you have any problems please leave a comment. Thanks!

Adding PECL Uploadprogress to 1&1 shared hosting for Drupal FileField

Drupal 6.x is the platform we use to build great websites. There are modules FileField and ImageField 3.0 that allow the ability to update a progress meter when uploading a file. This requires installing a PECL extension to called uploadprogress. Here is the process I used to get it working on a 1and1.com package. You will need a package with ssh support currently the Business and Developer packages do.

  • Download PECL uploadaccess to your 1&1 account
  • Extract the package
    tar xvzf uploadprogress-1.0.0.tgz
  • Go into the directory
    cd uploadprogress-1.0.0
  • Run phpize5
    phpize5
  • Change -config to -config5 in configure script
    sed -i 's/=-config/=-config5/g' configure
  • Change include directives in Makefile
    sed -i 's#-I/usr/local/include/#-I/usr/include/php5#g' Makefile
  • Run make and make test
    make
    make test
  • Make new extensions folder for new extension to go in
    mkdir ~/extensions
  • Copy uploadprogress extension to new folder
    cp .libs/uploadprogress.so ~/extensions/
  • Create new .ini under your main folder (or under a single subfolder for just that application) to add new extension_dir then add this code to the file
    extension_dir=/kunden/homepages/6/d87663654/htdocs/extensions/
    extension=uploadprogress.so

That should be it. You should now be able to see the “Upload progress Enabled (PECL uploadprogress)” on the admin/reports/status page in Drupal.

Links that helped me with the above info:

Suggest topics for me to write about: Skribit

I would love for those who read this blog (all 3 of you lol) to suggest topics for me to blog about. I was alerted to a very kewl service called Skribit that allows people to suggest items. Please post your suggestions there or use the box on the right. Thanks alot!

Online Banking Setup for GnuCash 2.2.6 under Windows XP

gnucash-logo

Since my linux raid decided to futz up (read I screwed it up) I’ve been using my Windows partition out of necessity until I have the time to rebuild my software raid 5 and gentoo. Until then we’ve been using GnuCash under Windows which has worked ok, but it is not as nice as the linux version by far. We use for our business and it is critical that we have all the functions working in it. One of the things that I really missed was online banking. I could pull in all the transactions and clear them under as well as making reconciling alot easier. The reason that could not connect to my online bank was that the version of libofx it was saying it was an older version of Quicken and thus was denied from my bank. I read some more online and …
Continue reading ‘Online Banking Setup for GnuCash 2.2.6 under Windows XP’

TextMate is the best editor evaaaaar!

Yeah, so I love TextMate. It is in my opinion one of the greatest text editors. It is easy to use, has great features (see below), makes it easy to program (especially in ) and is all around great. Yeah I know I could expound more, but I’m doing other things so read the features below or check out the site. Definitely worth the money (OSX only).

* Ability to Search and Replace in a Project
* Auto-Indent for Common Actions Like Pasting Text
* Auto-Pairing of Brackets and Other Characters
* Clipboard History
* Column Selections and Column Typing
* Completion of Words from Current Document
* CSS-like Selectors to Pinpoint the Scope of Actions and Settings
* Declarative Language Grammars for Graceful Mixing and Hacking
* Dynamic Outline for Working With Multiple Files
* Expand Trigger Words to Code Blocks With Tab-able Placeholders
* File Tabs when Working With Projects
* Foldable Code Blocks
* Function Pop-up for Quick Overview and Navigation
* Plug-able Through Your Favorite Scripting Language
* Recordable Macros With No Programming Required
* Regular Expression Search and Replace (grep)
* Run Shell Commands from Within a Document
* Support for Darcs, Perforce, SVK, and Subversion
* Support for More Than 50 Languages
* Switch Between Files in Projects With a Minimum of Key Strokes
* Themable Syntax Highlight Colors
* Visual Bookmarks to Jump Between Places in a File
* Works As External Editor for (s)ftp Programs
* Works Together With Xcode and Can Build Xcode Projects

Setting up Azureus and SafePeer in Linux

azureus_splash.png So there are tons of utilities to keep the SafePeer plugin up-to-date in Windows (like BlueTack’s Blocklist Manager), but Linux and the Mac have been left out in the cold. We’ll I found a way to get those 190k+ ips blocked in azureus without having to use Peerguardian or MoBlock (MoBlock is still safer in my mind) in Linux. First we need to download the lists like we would for MoBlock. Here is the script I use:
Continue reading ‘Setting up Azureus and SafePeer in Linux’

SuSE SLES 10 Migrating from NIS using MigrationTools

So we were moving a NIS database to LDAP under SUSE SLES 10 using the MigrationTools-47 scripts. It generated the ldif file, but would not import because it was failing on adding groups. This was the error we were getting:

(65) no structural object class provided

All we had to do is change this:

objectClass: posixGroup
objectClass: top

to this:

objectClass: posixGroup
objectClass: namedObject
objectClass: top

for each group in the ldif file. Then we redid slapadd -l file.ldif and everything worked.
Continue reading ‘SuSE SLES 10 Migrating from NIS using MigrationTools’

Mozy is your backup buddy!

I have been using mozy for backing up the data on my mac (works in windows too) for awhile now and it is great so I figured I would let everyone know. Go to mozy.com to check it out! Mozy Backup

DTV released as Democracy (Linux Preview)

The long awaited, open-source Democracy platform is a project of the Participatory Culture Foundation allowing you to subscribe to video RSS feeds (including podcasts, video blogs, and BitTorrent feeds), watch fullscreen and share with friends.

So I checked out Democracy and was impressed at the layout and that I was actually able to download content right away from the predefined feeds. I started watching a recent rocketboom without a hitch. That isn’t to say that there are no bugs. Full screen works, but with multiple monitors it scretches across both screen thus not supporting xinerama. The channel menu does not work for me and when I went to the channel guide and clicked on “more…” for a channel it bombs out. I later found out that I needed to make sure you add the mozilla prefs as specified on the DemoTV wiki. There are alot of options for IPTV and I’m sure it will only grow. Democracy allows one to view all of these options easily and subscribing to feeds is straight forward and the interface seems intuative. It looks very promising and I look forward to a stable build soon. See screenshots inside….

Continue reading ‘DTV released as Democracy (Linux Preview)’

mtink: Status Monitor for EPSON inkjet printers

mtinkI found a great little print monitor for linux called mtink. It works great for my Epson Stylus Photo 825 printer when hooked up via usb and I can reset, clean, and nozzle check the printer all from this little program. If using my particular printer you will need to select the Stylus Photo printer as the option because the 825 is not specifically handled, but most other models are.




SEO Powered by Platinum SEO from Techblissonline