Category Archives: Ubuntu tips

How to configure Firestarter to use VPN services on Linux

VPN LinuxIn my experience Firestarter is a effective firewall and, on Linux, it starts automatically every time we boot up Ubuntu. But, when I decided to use a VPN tunnel through openvpn, I had some connection problems. In fact I was able to initialize my VPN services but, after a while, all the internet connections were mysteriously shut down.

The “problem” was Firestarter which cut off the connection as forbidden considering my inbound/outbound Policy.

To solve this matter you have to open a tunnel on Firestarter to allow VPN working:

1- open the configuration file my VPN provider gives to its users (generally its a text file containing all the configuration info used, in my case, by openvpn) and I searched for the IP address of the default starting connection used to authenticate the VPN services (e.g. 177.458.563.25). Save somewhere or memorize this VPN IP address.

2- open a Terminal and type:

sudo nautilus

3- using nautilus go to File System (it’s before home folder) and open etc–>firestarter and open the file user-pre using Gedit (or your preferred text editor)

4- the user-pre file is usually empty so don’t panic and write these lines into it:

iptables -A INPUT -j ACCEPT -s xxx.xxx.xxx.xxx -p esp
iptables -A INPUT -j ACCEPT -s xxx.xxx.xxx.xxx -p udp -m multiport -sports isakmp,10000
iptables -A INPUT -j ACCEPT -i tun+
iptables -A OUTPUT -j ACCEPT -d xxx.xxx.xxx.xxx -p esp
iptables -A OUTPUT -j ACCEPT -d xxx.xxx.xxx.xxx -p udp -m multiport -dports isakmp,10000
iptables -A OUTPUT -j ACCEPT -o tun+

Now you have to substitute the xxx.xxx.xxx.xxx with the VPN IP address you have found at step 1 (in my example was 177.458.563.25).

5- Save the user-pre file and close Gedit and Nautilus

6- open a new Terminal and restart Firestarter typing:

sudo /etc/init.d/firestarter restart

That’all! Now your VPN works on your Linux computer and Firestarter has accepted a new Routed IP Tunnel into its allowed policies configuration.  AddThis

Solve audio troubleshooting on Ubuntu and start planning to migrate to another Linux OS

It was just a simple system update which dropped off audio on my Ubuntu 12.04. It was really strange to admit that I had experienced a crash (better: an audio crash) on a Linux but the 12.04 Ubuntu actually caused similar problems to a numerous bunch of long-term aficionados around the world.

The real problem with the last Ubuntu versions is that this OS is not supporting properly “old” hardware as it did previously during so many years. Reading some other bug reports on the web I discovered that these audio troubleshooting crashes happen principally to “old” IBM ThinkPad and Dell. I hope Ubuntu developers will consider to solve immediately these kind of issues or many users certainly migrate to other Linux version.

In any case the best and complete guide to solve audio troubleshooting has been developed by Ubuntu itself. The guide is very detailed but, if you want to definitively solve this bug, you have to spend more or less 40 (forty…. sic!) minutes and follow all the 17 (seventeen… sic!) steps.

In my case the audio was back after the first step and I decided not to follow the other instructions but the audio troubleshooting comes back, more or less, every two months. Just to you if you want to spend 40 minutes only one time or a couple of minutes every two/three months.

When I consider all the problems I had with Ubuntu on “old” hardware starting from the 12.04 version, my advice is to start thinking about a migration to another Linux OS. I am testing some Ubuntu alternatives and in the next weeks I will post something about the tests I’m doing on old laptops. Stay connected!   AddThis

How to install Ubuntu 12.04 on old computers with non PAE CPU

When I tried to install Ubuntu 12.04 on an old ThinkPad X40 I was surprised to discover this warning on my screen:

This kernel requires the following features not present on the CPU:
pae. Unable to boot - please use a kernel appropriate for your CPU.

In few words I wasn’t able to install Ubuntu 12.04 because the kernel on Ubuntu 12.04 was not supporting my CPU and I was really upset because I have always promoted Linux distributions as the most versatile and appropriate OS to keep using “old” hardware.

Sincerely, as described in an older post, I previously decided to install MATE desktop environment because the graphic cards on many laptops didn’t support Unity and Gnome 3 but this was the first time I had to renounce the installation of Ubuntu. I didn’t want to surrender to this difficulty (that appeared to me as a bug)!

First of all, I discovered that pae is “a feature to allow 32-bit x86 processors to access a physical address space (including random access memory and memory mapped devices) larger than 4 gigabytes“. After I clarified this point, I was not sure that my processor was totally inadequate to support Ubuntu 12.04.

After some web surfing I discovery that there are two easy solutions to avoid this problem.

1 – As first solution you can install Lubuntu (my choice) or Xubuntu on your computer then you can install the ubuntu-desktop using the Package Manager.

2 – If you prefer not to use the Package Manager you can install Ubuntu 11.04 or 11.10 and then upgrade Ubuntu to 12.04.

More in general, it is also possible to assume that if you have a non PAE CPU, your hardware could not be able to support the Unity desktop. For  this reason you can keep your Lubuntu – Xubuntu (based on the light but effective LXDE desktop) or switch your desktop environment to Gnome (the Classic, of course) installing the gnome package instead of ubuntu-desktop.

In any case, if you want to know if your CPU supports pae you have to open a Terminal and type:

grep --color=always -i PAE /proc/cpuinfo

If something like “flags: fpu vme de pse tsc msr pae mce cx8…” outputs on your Terminal, you have a pae CPU otherwise your CPU doesn’t support pae.  AddThis

The good third choice: MATE desktop environment. The traditional but rock solid solution for the Unity unhappy users (when also Gnome fails)…

My first Linux OS was a Knoppix but I had so many problems with the hardware drivers, the LAN configuration and the monitor settings that I was really discouraged. After many tests I decided that Ubuntu was the right OS for my notebooks and I continued to use it without any particularly matters till Unity.

Unity is nice to see, intuitive but if you use your OS in a stressful way (I mean doing three or four different tasks all together: reading emails, talking with Skype and writing on LibreOffice), you spend too much time looking for the icon you need to launch the right program. The vertical monitor space has not enough room to visually show all the icons related to programs I use everyday. Surely this is my personal matter but I actually prefer the “old” graphic interface. For this reason I decided to install Gnome 3 but my vetust IBM Thinkpad crashed a couple of time in a week.

To my surprise also the Gnome Classic option encountered some crashes due to the amount and diversity of the software I installed on my laptop during the last years.

As usual, after some web searches I found a solution: MATE. This particular desktop environment is a fork of Gnome 2 and it really looks very intuitive and easy to use. If some software conflicts with the MATE environment, a pop-up message will appear on your sceeen and, if you have the patience to read the Details contained in it, you will able to solve your problems. In my particular case (don’t ask me why) it helped me to focus my attention on Conduit which caused the crashes on Gnome.

To easily install MATE, on almost every Linux distribution, you can read its wiki dedicated page or directly follow the below instruction if you use Ubuntu 12.04.

– open Terminal and type these command lines:

sudo add-apt-repository "deb http://repo.mate-desktop.org/ubuntu oneiric main"
sudo apt-get update
sudo apt-getinstall mate-archive-keyring
sudo apt-get update
sudo apt-get install mate-core
sudo apt-get install mate-desktop-environment

When the Terminal finishes all the upgrade stuff, reboot your Ubuntu 12.04 and select MATE on the login screen (click on the upper right “gear” and choose MATE).

That’s all! Have a good week! AddThis

How to launch Pogoplug online services (as local disk) on Ubuntu 12.04 LTS

I confess that  I use Pogoplug as cloud server for my external hard disks because it is really simple to configure and  trustful.  Unfortunately the Linux version of the Pogoplug management software  is not so simple to configure and  has fewer features than the Windows and MAC versions.

Running Ubuntu 12.04 LTS I can manually mount the drives I connected to my Pogoplug device, following the path Network –> Windows –> etc.., but sometimes this way is not so fast and moreover I cannot access to Pogoplug Cloud.

Waiting for an updated software from the producer I decided to use the current version to automatize  the process and mount the drives connected to the Pogoplug and its cloud as if they were physically attached to my Ubuntu 12.04 LTS.

After a “classic” Google search on this topics I found different suggestions. Unfortunately I also had more than few problems to configure the software provided by Pogoplug because some tips were not so clear or easy as I desired.

By my experience, the fastest and reliable way to configure Pogoplug drives on Ubuntu 12.04 is the following:

– open Terminal and type sudo apt-get install fuse-utils

– open Synaptic Package Manager and be double sure you have yet installed these packages: fusesmb, fusedav, fuseext2, fusefat

– download the Linux software provided into the Downloads section of Plogoplug website, unzip it and save the file in your Home folder

– open Terminal and type: sudo usermod -a -G fuse $(id -u -n)

– log out and then log in again on your Ubuntu account to be sure that Fuse is correctly running

– open Terminal again and create a directory (in Media) to be used as mount point: sudo mkdir /media/pogoplug

– then type: sudo chown root:fuse /media/pogoplug

– and: sudo chmod 0775 /media/pogoplug

– in Terminal launch this command:

/home/yourusernameonubuntu/pogoplugfs --password yourpassword 
--mountpoint /media/pogoplug --user yourusername

where:

1. yourusernameonubuntu means you have to insert the name of User profile you use when you log in Ubuntu on your computer

2. yourusername and yourpassword are the username and password you use on the Plogoplug Website

Now, after some seconds an many automatic text lines, an icon named Pogoplug will appear on your desktop and you will be able to manage the online Pogoplug features as a local disk.

Don’t forget that you have to use keys -control+c-  in Terminal if you want to disconnect from  Pogoplug.

At this point the work is done but you might create a launcher icon in your (e.g.) Applications menu  following this instructions:

–  go to: System Tools –> Preferences –> Main Menu  and click on the group (menu) where you want to create your new launcher (in my case simply was  Applications)

New Item –> Create Launcher

Then fill the required fields with:

Type = Application in Terminal

Name = Pogoplug

Command =

/home/yourusernameonubuntu/pogoplugfs --password yourpassword 
--mountpoint /media/pogoplug --user yourusername

(as for the example above)

If you want to personalize the button you can also choose your favorite icon clicking on the picture on the left high corner.

On my side I also preferred to automatize the launch of Pogoplug command at each boot up in this way:

– go to: System Tools –> Preferences –> Startup Applications
– click on Add

– fill the fields:

Name = Pogoplug

Command = Same command line you used to start Pogoplug drive:

/home/yourusernameonubuntu/pogoplugfs --password yourpassword 
--mountpoint /media/pogoplug --user yourusername

(as for the example above)

So, starting now, you will have your Pogoplug drive connected each time you boot Ubuntu. You will not have any annoying Terminal lines.

Security  Warnings: don’t forget that the data you move to and back Pogoplug, are directed  through the web. This means that they could potentially be  intercepted (and read) by third parties but it’s also necessary to  specify that, if you configure it on the website Settings area,   Pogoplug uses SSL (HTTPS)  to encrypt the connection with its servers.

Anyway, don’t forget that  the data you store into Pogoplug are not encrypted. If you want to join a  better level of security you can encrypt previously your data or  your disks using different softwares as TrueCrypt or the command  dm-crypt (for more details on this topic also visit http://archlinuxarm.org/forum/viewtopic.php?t=1761&p=9723).  AddThis

How to install and manage Screenlets on Ubuntu

Screenlets are small applications to represent things such as sticky notes, clocks, calendars around on your Ubuntu desktop. You can launch a pre-installed screenlet from Screenlet Manager, or install a new one into the Manager for launching it. Here are the steps for installing and launching a screenlet, for example, WaterMark System Information.
– Install Screenlets Manager if it has not been added.
– Go to Applications (or Main Menu) > Ubuntu Software Center.
– Enter screenlets in the Search Box.
– Select Screenlets, click the “Install” button.
– Download the screenlet e.g. “WaterMark System Information” to a folder.
– Go to Applications (or Main Menu) > Accessories > Screenlets.
– Click Install, select Install Screenlet and click OK.
– Browse to the folder, select the file downloaded and click “Open” to install the screenlet into the Screenlets Manager.
– Select the screenlet “WaterMark” and click “Launch/Add”. (Tips: you can add more than one WaterMark screenlet and set it to display other system information.)
More screenlets are available for installation from screenlets.org. AddThis

Recovering deleted files from USB disks on Ubuntu

Everyday we use USB keys to transfer data without transmitting them through the t. The USB keys and portable disks are small, light and their data capacity allow us to move in privacy huge files. This idyll sometimes is broken by a fatal mistake: we unintentionally delete an important file. Normally, if we are smart we recover the erased file in the Trash but in other situations when we realize the mistake we had made is too late.

In this circumstances is very import to stop to use our USB key or portable disk till we are able to use a good software for data recovering. On Ubuntu you have a wise number of dedicated software that can do this job for you, the most powerful run on Terminal as testdisk, foremost, and scalpel but you can also use a “minimal GUI” software as PhotoRec.

PhotoRec is very intuitive to use and it is able to recover many data formats from jpeg to db. After you install it using Synaptic Package Manager or the Software Center you can launch it in Terminal with:

sudo photorec

Immediately a GUI Terminal interface appears and you have just to follow the instruct  ions you visualize on your monitor.

Using the arrows and the Enter keys you have to:

1 – Choose the USB device from where you want to recover the data

2 – Select the partition table (usually Intel)

3 – Specify the partition table

4 – Select the right filesystem where the data were stored

5 – Decide if you want to try the data recovering from all the free space

6 – select the directory where you want to store the recovered data. IMPORTANT: do not store the recovered data on the same USB key you are scanning for recovering

7 – Wait till PhotoRec finishes the recover operations.

PhotoRec is fast and, during our tests, we were able to recover almost the 100% of data. Not bad!!! AddThis

galigio.org: 2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 150,000 times in 2011. If it were an exhibit at the Louvre Museum, it would take about 6 days for that many people to see it.

Click here to see the complete report.

Searching a Gmail notifier for Ubuntu 10.04… an unpredictable Odyssey!

Finding a versatile Gmail notifier for my laptop seemed to be not so difficult and, after a first quick search, I selected a bunch of software I believed interesting. But when I tested them I was not satisfied by they behaviour especially because they didn’t have many of the features I wanted.

First of all I started installing the Gmail software I found in the Screenlets repositories on my Ubuntu but it was not able to update itself. Probably the firewall denied to the screenlet to communicate externally. I didn’t want to spend much time (sic) on the research of a Gmail notifier so I decided do uninstall it.

My second option was Popper and reading the program description I believed tha t was really the right one but.. after the configuration I was not impressed by the final flexibility and interaction this software offers. Just to know, for a quick configuration you need Popper configurator that is in the

The next step was represented by KCheckGmail that is for KDE and runs properly also on Gnome but, in this case, the program is not updated with the last Gmail configuration parameters and so it is nice but useless..

Then I tried with Gmail Notify. The configuration is quick and easy but it offers poor results. I mean that you have just the subject of new emails and no possibility to visualize them with a simple mouse click if you haven’t previously done the login of your Gmail account using the browser.

Finally I installed cGmail through the Ubuntu Software Center and I found what I was looking for: a simple program which let me know about new emails and let me open them with a click. The graphic interface is basic but after a couple of hours wasted on searching an effective solution I was satisfied!

Last but not least, if you don’t want to install a Gmail notifier directly on your Ubuntu, consider to install the add-on Gmail Watcher  on Firefox.

Please, if you have better solution and you want to share them with us, don’t hesitate to comment this post. Thank you! AddThis

Another way to share files between Ubuntu and Windows

This tutorial will show you another way to share and to access the network share folders between Windows and Ubuntu machines. When file sharing is enabled, both systems can access files and folders on any of the PCs. Users with accounts on Ubuntu systems will also be able to access the content directly from your home.

1. To begin, you will need to log on to your Windows operating system. Click ‘Start’ -> search for ‘Network and Sharing Center’ and click on it.

2. Access the ‘Change advanced settings sharing. ” option.

3. Enable file sharing and backup as well.

4. At this point, you need to switch your operating system to Ubuntu. Once you log in, click on ‘Ubuntu menu -> System Tools ”

5. Then select ‘Ubuntu Software Center. ”

6. Find and install ‘Samba‘. This software is required for a better compatibility between the two operating systems.

7. After Samba is installed, you should go to ‘System → Administration –> Samba’.

8. Then click ‘Preferences -> Server Settings’.

9. Write the name of the workgroup you set for your Windows PC(s). If you do not know the exact name because you did not set it, the default name for Windows Workgroups is set to ‘WORKGROUP‘ (capitalizing is not required, however, since Windows is generally not case-sensitive). AddThis