Log de desenvolvimento da obra Interart, da exposição “Toque para Mover Sentidos”,

da Escola de Arte e Tecnologia Oikabum! Salvador.

Compilado e escrito por Fernando Krum (www.ferkrum.com) | 14/jun/2012

http://tips.webdesign10.com/how-to-take-a-screenshot-with-ubuntu-linux&usg=ALkJrhjHROZ_Nvpx6wi3CSYSVEEsUL0xUw

How to Take a Screenshot in Linux With the Terminal (scrot)

Another way to take a screenshot from the terminal is with scrot. I learned about this at UbuntuForums.org.

To install scrot (on Ubuntu) type:

sudo aptitude install scrot

To take a screenshot in Linux from the terminal with scrot type:

scrot MyScreenshot.png

To get a screenshot and immediately open it in the GIMP, type:

scrot -q 85 -d 5 screenshot.png && gimp screenshot.png &

The -q option sets the quality. The -d sets the delay. The && means that if the first command is true, then execute the second. The final & means to run the commands in the background so that you can still use that terminal for other commands.

For more information about using scrot, read the man pages by typing the following in the terminal:

man scrot

install mail utils (http://www.quietearth.us/articles/2006/09/25/Ubuntu-Sending-command-line-mail)

I needed to send email from the command line, specifically for cron jobs, and there are many programs which can do this. I'm going to use the gnu mailutils package so first off let's install the mailutils package:

# apt-get install mailutils

configure exim4 (http://www.manu-j.com/blog/wordpress-exim4-ubuntu-gmail-smtp/75/)

Step 1

Run dpkg-reconfigure exim4-config

Step 2

Step 3

That should be it. You can test by using the command line mail client.

This was on an Ubuntu server. I believe that this instructions will also work on Debain without any need for modifications.

teste de email (http://www.quietearth.us/articles/2006/09/25/Ubuntu-Sending-command-line-mail)

Now lets try sending a test mail:

# echo testing | mail -s Bla myemail@somewhere.com

checar spool de email com:

        gedit /var/log/exim4/mainlog

enviando attachment pelo programa mail

(http://www.review-ninja.com/2009/10/e-mail-attachment-ubuntu-command-line.html)

uuencode filename.jpg filename.jpg | mail -s 'subject' recipient@email.com

criando script bash para envio do email e armazenamento do arquivo em uma pasta do pc

()

http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-9.html

http://linux.byexamples.com/archives/82/run-multiple-commands-consequently/

instalando wacom no ubuntu 10.04

https://help.ubuntu.com/community/Wacom

instalando driver novo

https://help.ubuntu.com/community/Wacom/LatestDriver

        

recomeçar

funcionou.

mas dá problema do cursor ficar parado logo depois de fazer um clique.

(erro descrito aqui: https://bugs.launchpad.net/ubuntu/+source/xf86-input-wacom/+bug/730877)

listando as ocorrências de wacom no sistema:

        dpkg -l | grep wacom

remover a versão mais nova, e instalar a versão mais antiga:
        sudo apt-get purge xserver-xorg-input-wacom

download do arquivo .deb (http://archive.ubuntu.com/ubuntu/pool/main/x/xf86-input-wacom/xserver-xorg-input-wacom_0.10.5-0ubuntu4_i386.deb)

instalar arquivo:

sudo dpkg -i *.deb

listar denovo ocorrências:

        dpkg -l | grep wacom

        deve dar a resposta assim:

ii wacom-dkms 0.8.10.2-1ubuntu1 Wacom kernel driver in DKMS format

ii xserver-xorg-input-wacom 1:0.10.5-0ubuntu4 X.Org X server -- Wacom input driver

funciona !

testando entradas dos dispositivos

(fonte: http://www.clshack.com/en/linux-xinput-simple-keylogger.html)

xinput --list

        lista os dispositivos conectados

⎡ Virtual core pointer                                id=2    [master pointer  (3)]

⎜   ↳ Virtual core XTEST pointer                          id=4    [slave  pointer  (2)]

⎜   ↳ PIXART USB OPTICAL MOUSE                            id=8    [slave  pointer  (2)]

⎜   ↳ Macintosh mouse button emulation                    id=11    [slave  pointer  (2)]

⎜   ↳ Wacom BambooFun 2FG 6x8 Pen eraser                  id=12    [slave  pointer  (2)]

⎜   ↳ Wacom BambooFun 2FG 6x8 Pen                         id=13    [slave  pointer  (2)]

⎜   ↳ Wacom BambooFun 2FG 6x8 Finger pad                  id=14    [slave  pointer  (2)]

⎜   ↳ Wacom BambooFun 2FG 6x8 Finger                      id=15    [slave  pointer  (2)]

⎣ Virtual core keyboard                               id=3    [master keyboard (2)]

        ↳ Virtual core XTEST keyboard                         id=5    [slave  keyboard (3)]

        ↳ Power Button                                        id=6    [slave  keyboard (3)]

        ↳ Power Button                                        id=7    [slave  keyboard (3)]

        ↳   USB Keyboard                                      id=9    [slave  keyboard (3)]

        ↳   USB Keyboard                                      id=10    [slave  keyboard (3)]

para testar os devices:

        xinput test ID

        no caso,

        xinput test 14

                (são os botões da tablet Wacom BambooFun)

instalar xbindkeys:

        sudo apt-get install xbindkeys

executar xbindkeys

seguir as instruçoes

gedit ~./xbindkeysrc

DESABILITANDO TOQUE DO TOUCHPAD !!!

(ref: http://www.nico.schottelius.org/blog/xorg-disable-touchpad-with-xinput/) 

        1. testar qual dos devices:

                xinput --list

                xinput test 15

                        mover o dedo para ver se responde algo.

                        responde. logo o id do dispositivo é o 15.

                

2. listar as propriedades do dispositivo:

xinput list-props 15

Device 'Wacom BambooFun 2FG 6x8 Finger':

    Device Enabled (128):    1

    Device Accel Profile (248):    0

    Device Accel Constant Deceleration (249):    1.000000

    Device Accel Adaptive Deceleration (251):    1.000000

    Device Accel Velocity Scaling (252):    10.000000

    Wacom Tablet Area (479):    0, 0, 740, 500

    Wacom Rotation (480):    0

    Wacom Serial IDs (482):    211, 0, 3, 0

    Wacom TwinView Resolution (483):    0, 0, 0, 0

    Wacom Display Options (484):    -1, 0, 1

    Wacom Screen Area (485):    0, 0, 1680, 1050

    Wacom Proximity Threshold (486):    42

    Wacom Capacity (487):    -1

    Wacom Pressure Threshold (488):    61

    Wacom Sample and Suppress (489):    2, 4

    Wacom Enable Touch (490):    1

    Wacom Hover Click (491):    1

    Wacom Tool Type (492):    "TOUCH" (498)

    Wacom Button Actions (493):    "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0), "None" (0)

                desabilitar o touch !!!:

        xinput set-prop 15 270 0

        xinput set-prop 15 480

feito !

id 12: eraser

id 13: pen

id 14: teclas !!

id 15:

adicionando um repositório ao sistema:

sudo add-apt-repository ppa:ubuntu-x-swat
sudo apt-get update
sudo apt-get dist-upgrade

editar

gedit ~/.xbindkeysrc

xbindkeys

interface gráfica:

xbindkeys-config

referencias:

http://tutori.alitility.com/doku.php?id=ubuntu:xbindkeys

http://hanschen.org/2009/10/13/mouse-shortcuts-with-xbindkeys/