"Life is binary, one or zero, life or death"
  • About Me

  • January 14th, 2010

    GMail as default KDE mail client

    It’s more simple and fast then you think:

    • Open System Settings -> Default Applications -> Email Client
    • Check “Use a different email client
    • type the following: /usr/bin/rekonq https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=%t&su=%s&%u

    Where instead of /usr/bin/rekonq, you must type the path to your favorite browser. %t is the destinatary, %s is the subject and %u is the full mailto URL (needed if you want to add the body too).

    Kheers!

    May 4th, 2009

    How to set the icon in KDE Kicker menu

    To change the Kicker menu icon you have to change ${icons_dir}/places/start-here-kde.png icon.

    For example, to set archlinux-icon-crystal-128.svg, from archlinux-artwork package, as Kicker menu icon you must run this (you need librsvg):

    # for i in 16 22 32 48 64 128; do rsvg-convert /usr/share/archlinux/icons/archlinux-icon-crystal-128.svg -f png -h $i -w $i -o /usr/share/icons/default.kde4/${i}x${i}/places/start-here-kde.png; done

    Now re-apply your icon theme and enjoy ours logo ;)

    November 25th, 2008

    -docs, offline documentation

    When I’m traveling or when I’m in university, sometime, I work. So I need the documentation of the language in which I’m developing, but I haven’t Internet connection and so I have to give up or use an old copy of the docs that I had saved some months ago.

    This is no longer a problem. I discovered the -docs packages. They are in community and unsupported. Through -docs packages, you can always have an updated version of the docs stored on disk (are installed in /usr/share/doc/).

    For example, I’m using:
    $ pacman -Qqs docs
    bash-docs
    css-docs
    gcc-docs
    gtk2-docs
    html-docs
    mysql-docs
    python-docs
    xhtml-docs

    Enjoy ;)

    November 13th, 2008

    Gran Paradiso e Hotmail, fix!

    Da qualche giorno M$ ha cambiato Windows Live Hotmail, ora ha un’interfaccia nuova, bla bla bla le solite cose…

    Bene, questa nuova interfaccia fa un controllo sul browser che state utilizzando: se non usate Internet Explorer, Firefox, Chrome, Opera non potete scrivere/inviare nuove mail.

    Tutte le distribuzioni GNU/Linux, o meglio, tutte le distribuzioni GNU/Linux che ricompilano Firefox da sorgenti devono cambiare il nome del browser con uno a loro scelta. Il controllo di M$ legge il valore della chiave general.useragent.extra.firefox che su Arch Linux assume il valore GranParadiso/3.0.3 essendo questo il nome scelto dai DEV.

    Per poter tornare ad inviare mail dovremo cambiare il valore della chiave in Firefox/3.0.3.

    In realtà non so perchè scrivo questo post…è un’ottima occasione per far passare tutti ad altri servizi di posta elettronica come GMail, Yahoo

    October 18th, 2007

    Pacman: Tips and Trick

    Tips e trick per pacman

    • Cancellare tutti i pacchetti non installati dalla cache:
      # pacman -Sc
    • Cercare tra i nomi e nella descrizione di un pacchetto:
      # pacman -Ss <parola>
    • Cercare tra i nomi e nella descrizione di un pacchetto (con uso di grep):
      # pacman -Ss <parola> | grep <ulteriore_parola>
    • Lista dei file di un pacchetto:
      # pacman -Ql <pacchetto>
    • Lista dei pacchetti installati come dipendenza ma non più necessari:
      # pacman -Qtd
    • Riscaricare (senza installare) tutti i pacchetti installati:
      # pacman -Sw `pacman -Qq`
    • Rendere la ricerca di pacchetti e/o dipendenze più veloce:
      # pacman-optimize
    • Mirror per trovare versioni vecchie dei pacchetti:
    • http://arm.konnichi.com/

    • Colorare l’output di pacman quando installiamo un pacchetto:
      • Inserite in /root/.bashrc queste righe:
        alias pacmancolor="pacinstall"
        pacmancolor () {
        echo -e "$(pacman -Sy $@ | sed \
        -e 's#core/.*#\\033[1;31m&\\033[0;37m#g' \
        -e 's#extra/.*#\\033[0;32m&\\033[0;37m#g' \
        -e 's#community/.*#\\033[1;35m&\\033[0;37m#g' \
        -e 's#^.*/.* [0-9].*#\\033[0;36m&\\033[0;37m#g' )"
        }
      • Quindi create il file /usr/bin/pacmancolor con le righe:
        #!/bin/bash
        echo -e "$(pacman -Sy $@ | sed \
        -e 's#core/.*#\\033[1;31m&\\033[0;37m#g' \
        -e 's#extra/.*#\\033[0;32m&\\033[0;37m#g' \
        -e 's#community/.*#\\033[1;35m&\\033[0;37m#g' \
        -e 's#^.*/.* [0-9].*#\\033[0;36m&\\033[0;37m#g' )"
      • Diamo al file i permessi d’esecuzione:
        # chmod 755 /usr/bin/pacmancolor
      • Ora per installare un file potrete dare pacinstall e ricevere l’output colorato :)
    • E non dimenticate, $ man pacman !
    September 4th, 2007

    MountPoint Univoci per device USB (2° Metodo)

    Secondo metodo realizzato con la collaborazione di voidnull

    • Collegate il device, aprite il terminale e da/come root date # less /etc/fstab;
    • Prendete nota di dove è montato il device, quindi usciamo da less (Q);
    • Potete ricavare l’UUID con # blkid /dev/sdb1
    • Editate /etc/fstab inserendo la riga con
      UUID=${UUID_DISPOSITO} /${MOUNTPOINT} vfat defaults,noauto 0 0
    • Salvate, rimontate il dispositivo e fatemi sapere!
    September 4th, 2007

    MountPoint Univoci per device USB

    L’altro giorno mi chiedevo se è possibile impostare dei mountpoint unici per ogni penna che collego al pc e ho visto che si può fare, basta seguire questi passi:

    • Collegate il device, aprite il terminale e da/come root date # less /etc/fstab;
    • Prendete nota di dove è montato il device, quindi usciamo da less (Q);
    • Da root date # lshal in modo da prenderci le seguenti informazioni:
      block.device = '/dev/sdb1' (string) ***
      volume.uuid = '30A3-239E' (string)
      usb_device.serial = '00339070201108000052' (string)
      usb_device.vendor = 'ALi Corp.' (string)
      usb_device.product = 'Audio Player' (string)

      NOTA: sdb1 è il dispositivo a cui associare sempre lostesso mountpoint
    • Aprite un editor di testi e inserite questo codice:
    • <deviceinfo version="0.2">
      <device>
      <match key="block.is_volume" bool="true">
      <match key="volume.fsusage" string="filesystem">
      <match key="@block.storage_device:@storage.physical_device:usb.serial" string="00339070201108000052">
      <match key="@block.storage_device:@storage.physical_device:usb.vendor" string="ALi Corp.">
      <match key="@block.storage_device:@storage.physical_device:usb.product" string="Audio Player">
      <merge key="volume.policy.desired_mount_point" type="string">${MOUNTPOINT}</merge>
      </match>
      </match>
      </match>
      </match>
      </match>
      </device>
      </deviceinfo>
      dove /${MOUNTPOINT} è il vostro mountpoint e le altre info sono quelle che recuperate con # lshal (magari salvatele in un file per comodità)
    • Salvate il file dentro /usr/share/hal/fdi/95userpolicy/, potete chiamarlo come volete ricordando che dovrà avere estenzione .fdi
    • Rimontate il dispositivo e fatemi sapere ;)
    CC-BY NC SA
    This blog is licensed under the CC-BY NC SA version 3.0 or later.
    Theme is aav1 by Aaron Adams, modified by Andrea Scarpino

    Arch Linux  Wordpress  kde-developer
    FireStats icon Powered by FireStats