Δευτέρα 8 Σεπτεμβρίου 2014

Encrypted Cloud Storage with copy.com

Recently I have landed on copy.com, while looking for cloud storage for linux.

After registering and getting the linux native client, I started experimanting with the potentials such a service can have, giving me the best out of what it can give me.

The next thing I had to do, was to have my data totaly and completely encrypted on the cloud, so that even in the event of hacking, theft of identity or any other matter, it would be secure.

Using linux, of cource gives you the best and most up to date tools to do whatever you need, even when you don't know any programming language.

An idea came to mind, and after a very short search I came to the very well folder encryption tool, "encfs". The tool was the best thing to have for a service like copy.com.

A little shell messing around and a manual page gave me all I needed to have a complete solution for what I needed.

The outcome of both (copy.com and encfs) is that I have a folder in my PC, which is synchronized automatically on the cloud, while being encrypted.

What I did was in two steps. First step is to have a local folder encrypted and synchronized on the cloud.
The second step took me a little further, having an encrypted folder directly on the cloud.
This means that I have a folder ~/mnt/cloud, which is a direct mount of the encrypted data on the cloud.

How is all done.

First of all you need to create an account on copy.com, which gives you 15 gig for free!
Get you username and password and download the linux application for your distro.
Unzip and run the application (lets say in bin folder in your home folder).
Run the application and register your account and select a synchronization folder (e.g. ~/mnt/copy)

Secondly you have to create the encryption folder (eg ~/mnt/cloud)

Then you have to run the encfs utility, in order to create the appropriate configuration for the encryption. Following the defaults is a safe choice, and finally you have to enter an encryption password for your encrypted folder.

Thats it, you now have a folder (e.g. ~/mnt/cloud) that whatever you create in there will be encrypted and transfered to the cloud. (Also if you already have done the procedure, you will find all your data in threre, unencrypted).

To reconnect your mount points (cloud and encryption) you have to run (or autorun) the copy.com appliation and run the encfs tool (the rest of the times, it only asks for the encryption password.)

On the second approach, you can use a pthon utility to directly mount the cloud storage to a folder on your linux box. The utility is called copy-fuse and it can be downloaded from the git clone https://github.com/copy-app/copy-fuse.

Then the only thing that changes is that you do not need to run the application from copy.com, but mount the drive directly with the utility (copyfuse.py [-h] [-d] [-s] [-f] [-o OPTIONS] EMAIL PASS MNTDIR)

Then you run the encfs utility on the mounted folder and voila, you have an online cloud encrypted folder!

Τρίτη 25 Φεβρουαρίου 2014

Fedora 20 xfce4 Spin

Μετά την εγκατάσταση και την ελαφριά παραμετροποίηση του Fedora 20 με το XFCE4, μπορώ να πω ότι έχω στα χέρια μου ένα γρήγορο και σταθερό λειτουργικό με μια τεράστια ποικιλία εφαρμογών, με το οποίο μπορώ να κάνω την δουλειά μου.

Και εξηγούμαι. Δουλειά μου είναι η πληροφορική, στην οποία δεν χωράνε "παιχνιδάκια", παρ' εκτός, όλα όσα δεν καταστρέφουν την ταχύτητα, λειτουργικότητα και ευχρηστία του υπολογιστή.

Αναλυτικά, η ταχύτητα έγγυται σε δύο πράγματα. Την έναρξη των λιγότερων δυνατών υπηρεσιών, που είναι απαραίτητες για την καθημερινή εργασία. Σε αυτές δεν περιλαμβάνεται βέβαι ούτε web server (apache), ούτε ftp, ούτε dhcp server κλπ. Έχοντας τα απαραίτητα η ταχύτητα εκκίνησης για να μπορέσει να γίνει λειτουργικός ο υπολογιστής μειώνεται αρκετά. Το δεύτερο το οποίο βοηθάει στην ταχύτερη εκκίνιση, είναι σίγουρα το γραφικό περιβάλλον εργασίας. Για αυτό χρησιμοποίησα ένα από τα ελαφρύτερα desktop environments που υπάρχουν στην χώρα του open source κώδικα, το XCFE4. Το XFCE4 παραμένει πιστό στα παλιά, έχοντας την "μπάρα" εργασίας, καθώς και δευτερεύουσα για γρήγορη εκκίνηση των εφαρμογών. Δεν χάνει όμως, σε ευχρηστία και σε εργαλεία που είναι απαραίτητα.

Ένα από τα εργαλεία που είναι απαραίτητο για την εργασία, σίγουρα, είναι η δικτυακή επικοινωνία με αποθηκευτικούς χώρους, και εκεί όπως λειτουργεί και η GNOME επιφάνεια εργασίας, χρησιμοποιείται το πολύ γνωστό gvfs, το οποίο δίνει την δυνατότητα σύνδεσης με CIFS (windows shares), ftp, webdav, sftp, κλπ.

Η επιφάνεια εργασίας τώρα, μπορεί να είναι σύνθετη όσο και λιττή. Προσωπικά έχω προσθέσει τα fonts της google και παραμετροποίησα έτσι ώστε να είναι ευανάγνωστα. Στο background, η δυνατότητα εναλλασόμενων εικόνων είναι κάτι που πάντα μου άρεσε και ευτυχώς δίνεται στο XFCE.

Στο panel, αν προσθεθούν τα plugins και addons που δίνονται για το xfce μπορεί να περιλαμβάνει όλα όσα μπορεί να είναι αναγκαία για την λειτουργία, παρακολούθηση και εργασία που εν δυνάμει θα χρειαστεί. Πράγματα όπως θερμοκρασία, ταχύτητα επεξεργαστών, φωτεινότητα LCD, Windows like menu, ήχος, δίκτυο κλπ, δεν λείπουν.

Όσο για τα πακέτα τα οποία είναι απαραίτητα για την καθημερινή εργασία και λειτουργία, εκτός από όσα παρέχονται κατ' ευθείαν από την κοινότητα του fedora, μπορούν να προσθεθούν και τα rpmfusion repositories, στα οποία μπορεί να βρεί κανείς ότι μπορεί να χρειαστεί. Αυτά τα οποία σίγουρα είναι απαραίτητα είναι ο thunderbird, ο firefox, το libreoffice, καθώς και εργαλεία δικτύου όπως το vnc και το remote desktop connection (προσωπικά προτιμώ το remmina), αλλά και vlc, gimp κλπ.

Όσον αφορά τα "δύσκολα" oracle java, skype και google chrome, μια βόλτα στο www.if-not-true-then-false.com δίνει εξεραιτικά εύκολες και γρήγορες οδηγίες (μερκά command lines ουσιαστικά), για την εγκατάστασή τους.

Για οτιδήποτε άλλο ή νεότερο, αργότερα.