Category Archives: linux problem

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

How to correctly configure and use the Windows Network on Ubuntu 10.04 LTS

At the beginning it appeared as a no-solved mystery because in all the many posts I read, there were no effective solutions. On my Ubuntu 10.04 LTS I was no able to use the external hard disk I had connected to the LAN and every time I tried to mount it I only received this message: Unable to mount location – Failed to retrieve share list from server


In few words it was not possible to use the Windows Network and all the people with the same problem (which is specific for the Ubuntu 10.04) suggested to reconfigure Samba but all the configuration and scripts I tried were no effective to let me use the external hard disk.

At the end I found someone who talked about a possible firewall misconfiguration and I tried in many ways to bypass the situation using ufw commands and opening ports and services over the LAN:

$ sudo ufw status
[sudo] password for *****:
Status: active

To                                      Action            From
–                                        ——                —-
135,139,445/tcp           ALLOW       Anywhere (log)
137,138/udp                  ALLOW       Anywhere (log)
Samba                             ALLOW       Anywhere
192.168.0.3 Samba     ALLOW       10.0.0.0/8
10.0.0.0/8                    ALLOW       192.168.0.3 Samba

Unfortunately, every new permission I granted to Samba on my Firewall was not a real solution but when I tried to stop the Firewall (System –> Administration –> Firewall Configuration) using the default firewall manager, Ubuntu was able to find and work on the external hard disk.

For this reason I made some tests and found this solution:

1 – enter your router settings and find the list of the attached device

2 – find the name and the MAC address of the LAN device you want to connect to your PC

3 – find the menu for the Lan Setup and add an Address Reservation for the above device. Now you are sure that the router will always assign the same address to the device

4 – back to Ubuntu, install and launch Firestarter (for some incomprehensible reasons the default firewall manager is not able to create rules for Samba services and ports)

5 – on Firestarter, go to Preferences —> Policy Editor and click on “Apply policy changes immediately”

6 – try to connect again to Windows Network, obviously (sic) it will not work but then go to Firestarter —> Events and you will notice that the last line is the “missing” external disk which has an “unknown” service

7 – right-click the mouse on this line and “Allow connections from source”. Now the external hard disk is visible from Ubuntu 10.04 LTS and it is possible to work on it!

8 – to be sure that your LAN device will be rightly connected to Ubuntu 10.04 every time you boot up it: go to System –> Preferences –> Startup Applications

9 – add a new Firestarter rule typing the following command: sudo firestarter

That’s all! I hope you can find this post useful! AddThis

Ubuntu to Windows XP folder sharing

Computer networks are sometimes comprised of various OS and while operating a network made up fully of Ubuntu desktop and server computer systems would definitely be enjoyable, some community environments can consist of both Ubuntu and Microsoft Windows systems working together.
If you want to make an Ubuntu shared folder be accessible to Windows XP,  run the NTFS configuration tool on the drive.
Don’t forget that it is advisable to have admin rights to do that modification.
Select application->Accessories->Terminal
then type the following:

sudo gedit /etc/samba/smb.conf

and in the [global] section add the following line:

usershare proprietor only = false

AddThis mp3 link

How to convert pdf to html on Ubuntu 9.04

This week, in our Linux Page (in Spanish), we tried to find how to freely convert pdf to html files. Unfortunately we have not been able to discover a satisfying solution. In fact, first of all (1) we upload our complex pdf file (text, color drawing and pictures) on Gmail email and we sent it to ourself. When we opened the email we click on “view as html” option and we were able to read the text (unfortunately too tiny) without drawings and pictures. It was not bad but we were really far from what we were looking for. As second experiment (2) we tried to use Kword and we had (as html) text and pictures but there were many incongruences between the texts and the borders and we missed some phrases. In few words, we had a better look but a worse result. Then (3) we installed pdftohtml using Synaptic Package Manager but unfortunately we were not satisfied from the html file we obtained. At this point we concentrated our researches on a free online solution and in order we tried: “Online conversion tools for Adobe PDF documents“, “convertpdftohtml“, “pdftextonline“, and “pdf-search-engine” but the results were not good. Unfortunately, we dismissed and I confess we could not find a solution to solve the task but we think that the “Kword solution”, if improved, is not far from a good solution in converting the file from pdf to html.  Please, if you have suggestions about this topic, feel free to add a comment. Thank you. AddThis mp3 link

Linux on Laptops!

This week, in our Linux Page (in Spanish) we added a brief post about www.linux-on-laptops.com: a very useful website where you can find tons of useful information about the best Linux version for your laptop. Linux-on-laptops is graphically very poor but the information it contains are terrific; in fact you just select your laptop brand and in a new webpage you are able to find all the laptop models related to that specific brand. With a couple of clicks you select your favourite Linux OS and you are redirect to external webpages and blogs where you receive all the necessary information to quick install that specific Linux version on your laptop. In a week time we made many tests and we found all the infos we were looking for. Moreover, linux-on-laptops is really updated with the most recent laptop models and Linux versions. Recommended! AddThis mp3 link

How to install the WI-FI Realtek RTL8187SE drivers on Ubuntu 8.10 – Intrepid Ibex

Today, in our Linux Page (in Spanish) we have added a brief post to install the Realtek RTL8187SE WI-FI card on Ubuntu 8.10. Surfing Internet we found different possible solutions and well done manuals to solve our problem but at the end we decided to select only the most effective. In particular we would like to focus your attention on the third discovered link http://boskastrona.ovh.org/download_en.html which contains the most effective solution we have tested. Useful! AddThis mp3 link

Clonezilla-SysRescCD 1.3.0: the best free rescue and backup/restore system for ext2, ext3, reiserfs, xfs, jfs, fat and ntfs!

Clonezilla-SysRescCDClonezilla-SysRescCD is something we have been looking for since months. In our Linux Page (in Spanish) we have posted a brief (full of links) review about this rescue Cd in its 1.3.0 version. Clonezilla-SysRescCD is a very interesting merge (multi boot CD) between Clonezilla and SystemRescueCD which allows you to solve many (better quite all, for what we read) “disasters”; that can be made by everyday pc users like us. Just to sum up the features contained in Clonezilla-SysRescCD we add some brief notes about the two different “parts”; contained in it. Clonezilla is a fast and reliable OpenSource clone system (OCS) which supports ext2, ext3, reiserfs, xfs, jfs, fat and ntfs partitions. On the other hand SystemRescueCD, based on a bootable Linux OS, allows you to repair your system and/or recover your data after a crash. We simulated some “disasters”; on an old Pentium4 (running Windows XP) and the results we obtained were substantially very positive. AddThis mp3 link

Hardinfo: simple, efficient hardware and system profiler for Linux.

Linux PageToday, in our Linux Page (in Spanish) we have posted a brief but effective review about Hardinfo: the best system and OS profiler we have never found for Linux. Hardinfo is a very useful program specifically created to deeply scan your hardware and create reports in HTML or in plain text formats. We suggest to use this software before upgrading your pc or when you suspect something is wrong with your hardware. Moreover, Hardinfo let you to easily benchmark your pc performance with just a click. Last but not least, you can download the source code or, if you prefer the autopackage file (suggested) which will automatically install the program in your computer. AddThis

Gnome Sensors Applet (GSA): a -must have- applet for your hardware security in Gnome OS!

Gnome Sensors AppletToday, in our Linux Page (in Spanish) we strongly suggest a very useful applet for every Gnome OS: GSA. The Gnome Sensors Applet let you constantly check the hardware sensors, including CPU temperature, fan speeds and voltage. GSA is very easy to install and manage; its intuitive graphical interface allow you to decide what alarms you prefer to display in case of emergency. GSA is recommended for all the Linux users who constantly push the limits of their pc. AddThis

BUM (Boot-UP Manager): the boot configuration utility for Ubuntu

Boot-Up ManagerToday, in our Linux page we post a review about BUM a powerful, graphic Boot-up Manager for Ubuntu. Using this light software you can modify and decide what programs run at startup. BUM is a very useful tool, precious especially when you notice that your Ubuntu boot is becoming slower than in the past. Initializing the Boot-up Manager is very simple and fast: recommended for the Linux beginners (like us)! AddThis