Saturday, October 24, 2009

Compile Scribus from SVN

I've made another script for compiling Scribus desktop publishing app from it's SVN repository.

As all my scripts for compiling stuff, I've published it at my github account.

Do clone the git repository go here. To download the script click here.

Compile cinepaint from CVS

Cinepaint is a fork of GIMP version 1.0.4 that emerged from the needs of the movie industry which were not being considered by the GIMP developers at the time. It's main purpose is to be a tool for frame-by-frame retouching, dirt removal, wire rig removal, render repair, background plates, and painting 3D model textures .It is widely used in the movie making industry, Hollywood, and has been used by the following companies for their movies:


  • Amalgamated Pixels (Elf, Looney Tunes)

  • Computer Cafe (League of Extraordinary Gentlemen)

  • Flash Film Works (Duplex, The Last Samurai)

  • Hammerhead (Showtime, Blue Crush, 2 Fast, 2 Furious)

  • Rhythm & Hues (Harry Potter, Cats & Dogs, Dr. Dolittle 2, Little Nicky, Grinch, Sixth Day, Stuart Little, Planet of the Apes)

  • Sony Pictures Imageworks (Stuart Little II, Spider-Man)



Since there is no version of Cinepaint packaged for Debian anymore, since it used to rely on GTK 1, I've decided to create another script for compiling it. It is based on Robin Rowe's ubuntu-cvs.sh script

I've published it with my other scripts for compiling Apps at my acount at github.com. To visit the project page at github click here. To download the latest version click here.

Tuesday, August 4, 2009

Compiling the GIMP from GIT

As the GIMP, as well as all gnome packages, have switched from SVN to GIT I've updated my compiling script to use the GIT sources.

You can download the script form here

Below is the listing of the script


#!/bin/bash

co_compile_install()
{
DIR=$1
PARAMS=$2
COMMAND=$3
echo "Installing $DIR"

# bash check if directory exists
if [ -d $DIR ]; then
echo "Directory exists - UPDATING"
cd $DIR
#svn update
git pull
else
echo "Directory does not exists - CHECKING OUT"
#svn checkout "http://svn.gnome.org/svn/$DIR/trunk" "$DIR"
git clone git://git.gnome.org/$DIR
cd $DIR
fi

if [ -n $COMMAND ]
then
eval $COMMAND
fi

./autogen.sh
pwd
./configure --prefix=/opt/gimp-svn $PARAMS && make && make install
cd ..
}

# GLIB
co_compile_install "glib"

export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig

# GTK
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc" "sed -r 's#(automake|aclocal)-1.7#\1#g' -i autogen.sh"
#co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc"
# BABL
co_compile_install "babl"
# GEGL
co_compile_install "gegl" "" "sed -r 's:#include :#include :g' -i operations/external/ff-load.c"

export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig

# GIMP
co_compile_install "gimp" "--enable-gimp-remote --prefix=/opt/gimp-svn/ --with-gimpdir=.gimp-svn"

Compiling Sane from GIT

My trusty old scanjet 4c just gave up a few months ago and all I was left with was a crappy Scanjet ScanJet G2710, which has a really basic driver. And basic I mean it can only be trusted to scan BW drawings, not even grayscale gets a decent result.

But that was not the only problem. Even though I use Debian SID (unstable) in all my workstations the sane backends were not detecting my scanner so I've had to compile from the sources. Being lazy, one of the big virtues of a hacker according to Eric Raymond, I've created a bash script to fetch the sources from CVS, compile and install sane.

Now that sane has switched to GIT I've rewrote the script and added a patch to xsane so I would not have to manually declare the SANE_CAP_ALWAYS_SETTABLE constant, which has been removed by sane but is still used by xsane. I seems Oliver Rauch has some problems with the way the sane development is going and is not updating xsane to conform to the changes made to the sane backends.

You can download the script form here

Below is the listing of the script

#!/bin/bash

co_compile_install()
{
DIR=$1
PARAMS=$2
COMMAND=$3
if [ -d $DIR ]; then
echo "Directory exists - UPDATING"
cd $DIR
#svn update
git pull
else
echo "Directory does not exists - CHECKING OUT"
git clone git://git.debian.org/sane/$DIR
cd $DIR
fi

if [ -n $COMMAND ]
then
eval $COMMAND
fi

./autogen.sh
pwd
./configure --sysconfdir=/etc --prefix=/usr && make && make install
cd ..
}

co_compile_install sane-backends.git
co_compile_install sane-frontends.git

wget ftp://ftp.sane-project.org/pub/sane/xsane/xsane-0.996.tar.gz
tar -zxvf xsane-0.996.tar.gz
cd xsane-0.996

rm -f /tmp/xsane-back-gtk.h.diff
cat >> /tmp/xsane-back-gtk.h.diff << EOF
55a56
> #define SANE_CAP_ALWAYS_SETTABLE 7
EOF
patch src/xsane-back-gtk.h /tmp/xsane-back-gtk.h.diff
rm -f /tmp/xsane-back-gtk.h.diff

./configure --sysconfdir=/etc --prefix=/usr && make && make install

Monday, June 1, 2009

TRIP-SL - FISL 10

According to Ricardo Soares GuimarĂ£es there are only a few spots on the bus. Below is the logo I developed for the trip.

For more information about the trip check TRIP-SL.

Sunday, March 15, 2009

Compile Inkscape from svn - packaged

As it my seem obvious to anyone who know me, I do not like to wait for new features to fall into the stable releases of debian, especially when the subject are ilustration and design apps. I've been compiling and running paralell versions of gimp, inkscape and scribus for a quite a few years now. Today, while compiling inkscape into my notebook, 'cause my desktop is "in mantainance" provenient of a font failure, I decided to package the script into a debian package which will install all the dependencies for compiling, check out inkscape from it's SVN repository and compile it with inkboard, python and perl suport.

The package is at: inkscape-frustrado-svn_0.0.1-1_all.deb

To install it run:

wget http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb
dpkg -i http://www.frustrado.com.br/download/inkscape-frustrado-svn_0.0.1-1_all.deb


Be patient. It may take quite a while.

Wednesday, March 11, 2009

Installing GIMP from SVN

I've been a great fan o the GIMP for many years now. The problem is that I'm not patient enough to wait until the new features apear on he stable versions so I've been running 2 versions of GIMP on my computer: the debian packaged one and one compiled from the project SVN repository.

Below is my bash script to install/update. If you want to download the shell script I have uploaded it here.



#!/bin/bash

co_compile_install()
{
DIR=$1
PARAMS=$2
COMMAND=$3
echo "Installing $DIR"

# bash check if directory exists
if [ -d $DIR ]; then
echo "Directory exists - UPDATING"
cd $DIR
svn update
else
echo "Directory does not exists - CHECKING OUT"
svn checkout "http://svn.gnome.org/svn/$DIR/trunk" "$DIR"
cd $DIR
fi

if [ -n $COMMAND ]
then
eval $COMMAND
fi

./autogen.sh
./configure --prefix=/opt/gimp-svn $PARAMS && make && make install
cd ..
}

apt-get install automake1.7

# GLIB
co_compile_install "glib"

export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig

# GTK
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc" "sed -r 's#(automake|aclocal)-1.7#\1#g' -i autogen.sh"
co_compile_install "gtk+" "--with-xinput=yes --disable-gtk-doc"

# BABL
co_compile_install "babl"

# GEGL
co_compile_install "gegl" "" "sed -r 's:#include :#include :g' -i operations/external/ff-load.c"

export PATH=/opt/gimp-svn/bin:$PATH
export LD_LIBRARY_PATH=/opt/gimp-svn/lib
export PKG_CONFIG_PATH=/opt/gimp-svn/lib/pkgconfig

# GIMP
co_compile_install "gimp" "--enable-gimp-remote --prefix=/opt/gimp-svn/ --program-suffix=-svn --with-gimpdir=.gimp-svn"

Monday, March 9, 2009

Web Services Tutorial

Uzed asked me to write a tutorial about SOAP using languages other than PHP. After much thought I decided to do a Introduction to Web Services tutorial as I think many of the people he was trying to explain soap do not have a good grasp on the basics of web servrices.

OBS: The tutorial is in Portuguese (pt_BR)

Friday, February 27, 2009

Create ISO images from cd and dvd

Just a quick one

dd if=/dev/dvd of=dvd.iso # for dvd
dd if=/dev/cdrom of=cd.iso # for cdrom
dd if=/dev/scd0 of=cd.iso # if cdrom is scsi