Accedere ad una VPN Cisco da Ubuntu utilizzando un file PCF

La Virtual Private Network (VPN) è un ottimo modo per accedere alle risorse del tuo ufficio da casa o da qualsiasi altra rete in sicurezza e la VPN Cisco è una delle più efficienti e robuste.

Una VPN Cisco può essere configurata in due modi: utilizzando direttamente i dati di autenticazione oppure un file PCF.

In questo articolo, vedremo come configurare una VPN Cisco utilizzando un file PFC su di un sistema Ubuntu.

Prima di tutto, assicuriamoci che il client vpnc sia installato. Quindi apriamo un terminale e digitiamo:

$ sudo apt-get install vpnc
Continua a leggere

Connect to Cisco VPN from Ubuntu using PCF file

Virtual Private Network (VPN) is a great option to access to your office resources from home in secure way and Cisco VPN is one of more efficient and robust type of VPN.

Cisco VPN configuration can be setup in 2 ways: using authentication data or PCF file.

In this article, we will describe how to setup Cisco VPN using PCF on an Ubuntu system.

First of all, we need vpnc client, so let’s open a terminal and digit:

$ sudo apt-get install vpnc
Continua a leggere

Delete history of on your own SparkleShare server

SparkleShare is a little Open Source software that allows users to share documents and files with version control and client side encryption system.

To put it simply, it acts like Dropbox or Ubuntu One, but it works on top of a Git repository. This means that, if you want, you can simply setup you own a SparkleShare server and share office documents with your colleagues having all infrastructure under your control using Git.

This is exactly my office’s approach and it works very well.

There’s only an issue about this: sometimes you need to share big files for a limited period of time. Actually, SparkleShare (v 1.1) has no feature to clear history and this means that Git repositories contain all data needed to access to revisions. In simple words: each repository has disk size equal to the sum of each version of each file (also deleted).

In this case it could be useful to clear repository history in order to free a lot of disk space both on server and client.

Continua a leggere

Setup Oracle JDK 7 + Netbeans 7.0.1 on Ubuntu 12.04 LTS

In this post we will see how to setup a basic environment to develop Java applications on a Ubuntu Precise Pangolin. Normally this setup should be a very simple operation, anyway I had some trouble during process, so I decided to write down and describe all steps I followed to sort out.

First of all, I installed Oracle Java Development Kit using specific webupd8team repository.

Please note that this step is mandatory because using ubuntu openjdk package, Netbeans won’t be able to work correctly: in fact new project window will lock down on “please wait…” message.

Continua a leggere

Fix Hibernation after swap partition resize

Hibernation can be an important feature for many users: it allows people to turn on the PC and get it in the exact state session of when it was turned off (open files, running applications, configurations edited, terminals, etc.).

This feature is based on usage of swap partition. In poor words: when user hibernate PC, all content of RAM memory is stored in this partition and is fetched at next startup time. For this reason, the swap partition must be bigger (or at least equal) than RAM size and, in case of RAM update, must be enlarged.

The problem

The problem is that, after a resize operation, swap partition’s UUID is modified and initramfs is unable to recognize swap partition. This means that when you try to hibernate your PC, it don’t wake up correctly and boots as you turned it off normally.

The solution

The solution is very simple: after swap partition resize operation, let’s inform initramfs about new UUID. Let’s see how.

Continua a leggere