pdftk pdf_file_to_watermark.pdf background image.pdf output out.pdf
Saturday, November 17, 2007
Adding watermarks into a pdf file
Friday, August 17, 2007
How to say Emacs this is an ENTER
I wanted to replace all the newline caracters of an ascii text for a single space. The way to say to emacs in the search/replace menu for the ENTER is ctrl-q ctrl-j, so it understands it is an ENTER character.
It could be good for me to know how to do the same in openoffice and kate
It could be good for me to know how to do the same in openoffice and kate
Tuesday, May 22, 2007
Correct HorizSync & VertRefresh for XFree86 in a ViewSonic E40 Monitor
This values worked sucessfully in my system:
Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-54
VertRefresh 50-100
Option "DPMS"
EndSection
Thursday, May 17, 2007
Sunday, April 8, 2007
geexbox & dropbear (sshd): issues
in scripts/gentree add :
mkdir -p $INSTALL/root
mkdir -p $INSTALL/.ssh
in packages/initrd/scripts/linuxrc add:
cp -a "$GEEXBOX/root" /
progress 47000 "copying system into ram"
cp -a "$GEEXBOX/.ssh" /
progress 48000 "copying system into ram"
in packages/dropbear create a directory named init.d and put there the following script, naming it as 51_sshd :
#!/bin/sh
#
# start ssh daemon
#
# runlevels: geexbox, debug
# get options
test -f /etc/network || exit 1
. /etc/network
/usr/bin/dropbear >/dev/null 2>&1 &
exit 0
mkdir -p $INSTALL/root
mkdir -p $INSTALL/.ssh
in packages/initrd/scripts/linuxrc add:
cp -a "$GEEXBOX/root" /
progress 47000 "copying system into ram"
cp -a "$GEEXBOX/.ssh" /
progress 48000 "copying system into ram"
in packages/dropbear create a directory named init.d and put there the following script, naming it as 51_sshd :
#!/bin/sh
#
# start ssh daemon
#
# runlevels: geexbox, debug
# get options
test -f /etc/network || exit 1
. /etc/network
/usr/bin/dropbear >/dev/null 2>&1 &
exit 0
Saturday, April 7, 2007
geexbox & nano mini how-to
In order to include the nano editor inside the geexbox linux distribution, the following steps has to be made:
- Download the geexbox sources
- Compile it in order to have a working toolchain
- In the sources directory create a new directory named nano
- Download the last distribution of nano from http://www.nano-editor.org/dist/v2.0/nano-2.0.3.tar.gz and put it in the nano directory
- Now in the packages directory, add a directory named nano and create the following files here:
packages/build :
#!/bin/sh
. config/options
$SCRIPTS/build toolchain
$SCRIPTS/build ncurses
CFLAGS="-L$LIB_PREFIX -lncurses"
cd $BUILD/$1*
./configure --host=$TARGET_NAME \
--build=$HOST_NAME \
--libdir=$LIB_PREFIX\
--includedir=$LIB_PREFIX/include\
--enable-tiny
make
packages/install :
#!/bin/sh
. config/options
cp $BUILD/$1*/src/$1 $INSTALL/usr/bin
packages/url:
http://www.nano-editor.org/dist/v2.0/nano-2.0.3.tar.gz - Nano uses ncurses library, so in the packages/ncurses/install file, add:
$SCRIPTS/build nano
and in the line:
libstrip $SO $BUILD/$1*/lib/libncurses.a "$BUILD/dialog*/dialog $BUILD/util-linux*/fdisk/cfdisk $BUILD/gdb*/objdir/gdb/gdb"
insert:
$BUILD/nano*/src/nano
after ".../gdb" - In scripts/gentree add:
$SCRIPTS/install nano $1 - Finally, a make will build a new .iso, including the nano editor
Subscribe to:
Posts (Atom)