MAL - Memória Auxiliar do Lutieri

terça-feira, outubro 27, 2009

customizing ls time output

ls -l --time-style="+%d-%m-%Y %H:%M:%S" /var/log/xxxxxxx


It's the same syntax used by date command

Marcadores:

terça-feira, julho 07, 2009

Monitoring keyboard and mouse events

For some unknown reason the key combination ctrl+alt+f1 through f6 are not working, as well as ctrl+alt+backspace.

I'm still working on that but for now I have found some interesting ways to capture keyboard and mouse events:

For keyboard and mouse you can use a small app called xev. After installed just call xev from a terminal, a new blank window will pop up where you can test you mouse and the pressed keys will show up on the terminal.

If you have a touchpad synclient -m 1 can be useful to you.

I'm going to come back here to finish this post as soon as I figure out what's wrong with those key combinations.

Marcadores:

terça-feira, junho 23, 2009

Frame buffer modes

I'm always wondering my options for the "vga" setting at the grub command line. Here is:



Color depth | 640x480 800x600 1024x768 1280x1024
-----------------+-------------------------------------
256 (8bit)| 769 771 773 775
32000 (15bit)| 784 787 790 793
65000 (16bit)| 785 788 791 794
16.7 Mill.(24bit)| 786 789 792 795


The vga= setting only effects the frame buffer, not X (unless you're using the fbdev driver in X). This'll mean that your console will display at this resolution.

Source: http://www.mepis.org/node/2992#comment-10710

Marcadores: ,

sábado, janeiro 17, 2009

status dd

Quando se estah executando o comando dd e se deseja saber o status do processo rode o seguinte:


killall -USR1 dd


Na janela onde estah rodando o dd ira aparecer o status, por exemplo:

2370977+0 records in
2370977+0 records out
1213940224 bytes (1.2 GB) copied, 336.863 s, 3.6 MB/s

Marcadores:



Chat with Lutieri G. B.

Subscribe in a reader