KDE 4.4.1 released

Yesterday evening KDE 4.4.1 has been released. We find there mainly bugfixes. Authors recommend updated from older versions to this one.
More info on KDE.org. For users how has ~86 Architecture unmasked, ebuilds are available immediately.

Advertisements

How to crack protected PDF

If you have copy-paste protected pdf, but you need to copy text, how to remove this kind of security. You need Linux only… and make two commands.
First, convert secured pdf to postscript file.

~$ pdftops secured_file.pdf out.ps

next, convert to pdf back

~$ ps2pdf out.ps converted.pdf

after done, you should have unsecured PDF file. Now you can copy and paste to translate.google.com 🙂

polish locale for ubuntu terminals

I’d like to describe how simple way to configure polish characters/locale inside terminal.

  • open terminal
  • generate /var/lib/locales/supported.d/local from /usr/share/i18n/SUPPORTED:
  • cat /usr/share/i18n/SUPPORTED | grep "en\|pl" > /var/lib/locales/supported.d/local

    This example shows all polish and english localization. You can find appropriate inside /usr/share/i18n/SUPPORTED file. If you choose add them to list.

  • generate all localizations
  • dpkg-reconfigure locales

  • choose your locale:
  • update-locale LANG=pl_PL.ISO-8859-2

    In this step you choose langauge of your system and terminal.

  • You can check variables by writing:
  • locale

    mms:// and firefox

    How to create mms:// protocol handler in firefox:

    1. Open Firefox, type about:config in the address window, and click enter.
    2. Right click on the window and choose New, then String from the pop-up menu that appears.
    3. In the first pop-up box, enter: network.protocol-handler.app.mms
    4. In the next pop-up box enter the path to Kaffeine (e.g. /usr/bin/kaffeine).
    5. Now, click in the main window again but choose New Boolean
    6. In the first pop-up box, enter: network.protocol-handler.external.mms
    7. In the second pop-up select True.

    netcat – powerfull tool

    netcat is very useful tool. I will try to describe few examples, how use it.

    Chat
    We can send message to remote host. On first host run nc listen for incoming connections:
    nc -v -l -p 3456
    where:
    - v verbose
    - l listen
    - p port

    On second host:
    nc first_host -p 3456
    If you write something on first you send text on second and vice-versa.

    File sending
    We can send text, so why don’t send files?
    Run nc on first host for listen.
    nc -v -l -p 3456 > file
    Send file:
    nc first_host -p 3456 < file
    Another example – sending via tar pipe
    on listening host:
    nc -l -p 3456 | tar x
    on sending host:
    tar cf - * | nc remote_host -p 3456
    on listening host we can watch process of the sending file with little program pv
    nc -l -p 3456 |pv | tar x
    Of course is is not end of ex. We can use stunnel for encryption these connection, dd for reading partition and sending directly on remote_machine…

    Like telnet
    We can use netcat as telnet – for checking services and sending text.
    echo "GET / HTTP/1.0
    [enter]
    [enter]
    "| nc http://www.host.com 80

    Like netmap – port scanning
    You can scanning port or few ports:
    nc -v -i<seconds> -z remote_host <port>-<port>
    where:
    -i interval in seconds

    and more…