In English

    Tips & Tricks

    Note to myself.
    I found that my /var/amavis/tmp has thousends of files.

    du -sg tmp/
    26 tmp/

    Actually 26Gb of crap. Now, how to delete all files excluding these with current date and one day before?

    Here is one line magic spell:

    find /var/amavis/tmp -type f -mtime +1 -exec rm -f {} \;

    Results?

    du -sm tmp/
    9 tmp/

    Bingo! ;)
    Thx to aniou #netbsd.pl



    In English

    Broken border when maximizing window in Ubuntu Gutsy

    This will be in English, due to common problem with broken border even in fresh install on Gutsy.

    As I said, sometimes after installing Ubuntu Gutsy when You maximize window (no matter which application) border with buttons „minimize”, „maximize” and „close” just turn white. However window still works, it can wobbly, buttons do right action, it just looks ugly, and is difficult to locate buttons. When You unmaximize window everything back to normal. I also discovered that this happens only on themes that have hoveron buttons feature (buttons glow or something when You hover mouse on it).

    So, I was playing with double monitors on my IBM T40, and finally I somehow „turned” this bug on :/

    It looks like that: (sorry for junky screenshot, but I can’t recreate this bug after fix ;)

    Broken Border

    Restart computer or Xorg server won’t fix problem. Then I changed type of monitor from LCD Panel to Standard (or Generic, don’t know how is in English), restarted Xorg server and bug just gone.
    Monitor Settings
    Even when I changed back to LCD Panel to recreate this bug to take some screenshots it won’t apper, that’s good, and hope it will work for someone else. I also found that if You have small amount of RAM on Your video card You can add this line:

    < option name="allow_large_textures" value="2" / >

    to file /etc/drirc.

    If this also fails, change theme to some that haven’t got hover on feature, for example Foresight Linux.

    Good Luck !



    Gry/Games

    The Witcher Promo Video!


    Whoa! Vader, the most popular polish metal band created promo video for the polish game The Witcher, just look and listen, awesome!



    Fun

    How Lucky(?) I Am ;)

    So, there is this regexp (in bash) [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo „Still alive”

    I survived 4 times, wanna try ? :)

    If You cannot see what’s on the movie – here is what it looks like:

    bash-3.2# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Still alive"
    Still alive
    bash-3.2# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Still alive"
    Still alive
    bash-3.2# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Still alive"
    Still alive
    bash-3.2# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "Still alive"
    the end :/
    rm: /usr/home: Device busy
    rm: /usr: Device busy
    rm: /var: Device busy
    rm: /kern/boottime: Read-only file system
    rm: /kern/copyright: Read-only file system
    rm: /kern/hostname: Read-only file system
    rm: /kern/hz: Read-only file system
    rm: /kern/loadavg: Read-only file system
    rm: /kern/msgbuf: Read-only file system
    rm: /kern/pagesize: Read-only file system
    rm: /kern/physmem: Read-only file system
    rm: /kern/rootdev: Read-only file system
    rm: /kern/time: Read-only file system
    rm: /kern/version: Read-only file system
    rm: /kern: Device busy
    rm: /: Device busy
    Still alive
    bash-3.2# the end :/
    bash: the: command not found
    bash-3.2# ls
    bash: ls: command not found
    bash-3.2# cd /
    bash-3.2# ls
    bash: ls: command not found
    bash-3.2#

    Family / Rodzina

    Playing Vista Speach Recognition

    Today I installed Vista Ultimate on new computer for customer. I wanted to test „infamous” Vista Speach Recognition. Well, it was quite funny in tutorial, and simpliest commands works fine, but using it to navigate computer is a disaster :) Then my 3 years old Sister -in-law came in and start to do some mumbling to the microphone just like I was doing in English (she of course don’t know any word in English becouse is Polish :). So when she wanted „Start listening” it was something like „stert listuping” and so on. Then I had an idea to „Start Wordpad” and get imagination of little thing to spread. And here are the results –

    And that at all of that at that while cracked out that not a hard lesson rusher last look at the pact will set an all out that then they'll have to have the card debt and the Bartlett and Taiwan has gotten barring a as buyers by a head north to south park behind her bow and burial to theory up that he or she should. The life you like

    And I'll

    Remember that she cannot say anything in English ;)

    In English

    My favorite small programs

    Every admin have it’s own collection, here is mine with short description:

    slurm - produces graph of RX and TX speed of interace

    pfqueue - ncurses based program to manage deffered, active, incoming queue of postfix

    xtail - can monitor as many directories and logs as You want

    colorize - it can be attatched to any other command via pipe, I use it mostly with `xtail /var/log | colorize`

    pkg_tarup - I'm using in mainly to create set of actually working packages in case of update failure

    smartmontools - it is not so small and do many things but it does exactly what i need

    uptimed - collects and sends mails of best uptimes and os versions

    mercurial - very very very fast sync of pkgsrc

    I will add some tools when I find something new or remember something i forgot :)

    In English

    NetBSD 4 Release Soon!

    It supposed to be :) As it’s written on netbsd.org:

    Join the NetBSD Hackathon on IRC starting on Monday, May 21st. This hackathon is dedicated to preparing for the upcoming NetBSD 4.0 release. See the hackathon page for details.

    So join and commit as many bugfixes as You can :)

    Related Posts with Thumbnails
    Add your widget here