Celso R.

Zim – Post-it

Posted in GNU/Linux by Celso R. on 3 de Janeiro de 2008

Uso a Zim há algum tempo. Sempre na área de notificação é o bloco de notas rápido onde vou guardando links ou pequenas coisas que por mais simples que sejam são fáceis de esquecer. Contém corrector ortográfico, pesquisa particular (no documento) e geral (na wiki toda), dá para ter wikis separadas (escolhem-se no início a directoria podendo no entanto passar isso e colocar uma padrão) e grava tudo em pastas e ficheiros de texto.

Zim


Ex.:
Quick how-tos
Created Terça 21/08/2007

Extrair .deb e volta a compactar
cd /where/the/PROGRAMA.deb/package/is
mkdir PROGRAMA
dpkg-deb –extract XXXXXXXX.deb PROGRAMA
dpkg-deb –control XXXXXXXX.deb PROGRAMA/DEBIAN
gedit PROGRAMA/DEBIAN/control

dpkg –build PROGRAMA
sudo dpkg -i PROGRAMA.deb

______________

./configure CFLAGS=”-O3 -march=pentium4 -pipe -fomit-frame-pointer -msse2 -mmmx -mfpmath=sse”
make -j 3
checkinstall make install

EMT64
./configure CFLAGS=”-O3 -march=core2 -Wall”

32bit
./configure CFLAGS=”-march=prescott -O2 -pipe -fomit-frame-pointer” –enable-mp
make -j 3
_______

Imagemagick Script
http://www.imagemagick.org/script/convert.php

#!/bin/sh

numero
echo “coloque o numero”
read numero
convert -crop 820×610+200+100 img-${numero}.jpg img-${numero}.jpg
echo “done”
exit 0

____________

Sudo
pico /etc/sudoers
# User privilege specification
root ALL=(ALL) ALL
USER ALL=(ALL) ALL
___________________-

aptitude install mail-notification-evolution

____________

export CONCURRENCY_LEVEL=2
make-kpkg blah blah blah

in: http://forums.debian.net/viewtopic.php?t=11396&highlight=nutshell

ET:
su
echo “etqw.x86 0 0 direct” > /proc/asound/card0/pcm0p/oss

Creating an ISO image using mkisofs

If you need to generate your own ISO, mkisofs is a great tool for doing it. You don’t need fancy tools or GUI front ends to use it, either (though you may wish to employ your favorite graphical file manager). Just follow these simple steps:

1.

Create a temporary directory from which the ISO’s files will be read.
2.

Insert files into that directory and arrange them in the manner you would like them to appear in the ISO.
3.

From a directory outside of the tempoary ISO directory, run the following command:

mkisofs -f -R -r -l -J -Vvolid -Aappid -Ppubid -odest.iso src

where

volid
is the volume ID to be written into the master block;
appid
describes the application contained within the ISO;
pubid
names the publisher of the ISO (CD-ROM), usually including adequate contact information, such as a phone number or email address;
dest.iso
is the destination filename of the newly created ISO image;
src
is the temporary ISO directory containing the files and file structure you wish to have included in the ISO image.

4.

These parameters are good defaults. You can customize them, however. For more information, see man mkisofs.

in: http://sharkysoft.com/tutorials/linuxtips/cdcommands/

Comentários Desativados em Zim – Post-it

%d bloggers like this: