UbuntuUbuntu Based

How To Install FreeFileSync on Ubuntu 24.04 LTS

Install FreeFileSync on Ubuntu 24.04

In this tutorial, we will show you how to install FreeFileSync on Ubuntu 24.04 LTS. FreeFileSync stands as one of the most powerful open-source file synchronization and backup tools available for Linux users. If you’re running Ubuntu 24.04 LTS (Noble Numbat) and need a reliable way to keep your files synchronized across different locations, FreeFileSync offers a robust solution. This comprehensive guide will walk you through everything you need to know about installing and using FreeFileSync on Ubuntu 24.04 LTS, from basic setup to advanced configuration options.

Understanding FreeFileSync

FreeFileSync is a free, open-source file synchronization utility designed to create and manage backup copies of your important files efficiently. Unlike traditional backup methods that copy every file regardless of changes, FreeFileSync intelligently identifies differences between source and target folders, transferring only the minimum amount of data necessary.

Key Features and Capabilities

FreeFileSync offers an impressive array of features that make it stand out from other synchronization tools:

  • Folder comparison with visual difference highlighting
  • Multiple synchronization modes (Mirror, Two-Way, and Update)
  • Custom filtering options to include or exclude specific files
  • Detection of moved files to avoid unnecessary copying
  • Support for handling locked files using Volume Shadow Copy Service
  • Capability to work with long file paths (over 260 characters)
  • Full Unicode compatibility
  • FTP/FTPS synchronization support
  • Batch job creation and scheduling
  • Real-time synchronization monitoring

The latest version (14.3 as of the time of writing) includes improvements such as support for internationalized domain names for FTP connections, performance statistics for file content comparison, and better terminal integration on Linux systems.

Why Use FreeFileSync on Ubuntu 24.04

Ubuntu 24.04 LTS (Noble Numbat) benefits significantly from FreeFileSync’s capabilities due to several Linux-specific advantages:

  • Seamless integration with the Ubuntu file system
  • Resource efficiency optimized for Linux environments
  • High performance with support for multi-core processing
  • Free and open-source nature aligns with Ubuntu’s philosophy
  • Cross-platform compatibility allows synchronization between Ubuntu and other operating systems
  • Support for Linux-specific file attributes and permissions

The software takes full advantage of 64-bit architecture and multiple CPU cores when available, ensuring optimal performance on modern Ubuntu systems.

Prerequisites for Installation

Before proceeding with the installation, ensure your system meets the following requirements:

  • Ubuntu 24.04 LTS operating system
  • Administrative (sudo) privileges
  • At least 100MB of free disk space
  • Stable internet connection for downloading the installer
  • Basic familiarity with the Terminal

A properly configured Ubuntu 24.04 system should meet all hardware requirements for running FreeFileSync without issues.

Pre-Installation Steps

Proper preparation ensures a smooth installation process. Follow these steps before installing FreeFileSync:

1. Update Your System

Always start with a system update to ensure all packages are current:

sudo apt update
sudo apt upgrade

This ensures any dependencies are updated and your system is in optimal condition for the installation.

2. Install Required Dependencies

FreeFileSync requires certain libraries to function properly. Install them with:

sudo apt install libgtk-3-0 libwebkit2gtk-4.0-37

3. Create a Backup (Optional)

While not strictly necessary, it’s good practice to back up any critical data before installing new software.

Method 1: Installing via Official Installer

The recommended way to install FreeFileSync on Ubuntu 24.04 LTS is through the official installer provided on the FreeFileSync website.

1. Download the Official Installer

Visit the FreeFileSync website and download the Linux package. As of writing, the latest version is 14.3.

Alternatively, you can use wget to download directly from the terminal:

wget https://freefilesync.org/download/FreeFileSync_14.3_Linux.tar.gz

2. Extract the Downloaded Package

Navigate to your Downloads folder and extract the downloaded tarball:

cd ~/Downloads
tar -xvf FreeFileSync_14.3_Linux.tar.gz

This will create a new directory containing the FreeFileSync files.

3. Run the Installer

Navigate to the extracted directory and run the installer:

cd FreeFileSync
sudo ./FreeFileSync_14.3_Install.run

4. Follow the Installation Prompts

The installer will start in a terminal window. You’ll need to:

  1. Type ‘y’ and press Enter to accept the license terms (or ‘s’ to show details)
  2. Choose the installation type:
    • Type ‘1’ for current user only
    • Default (just press Enter) for system-wide installation to /opt/ directory
  3. Optionally type ‘2’ to change the installation directory
  4. Type ‘3’ to choose whether to add desktop icons
  5. Press Enter to start the installation process

If everything goes well, you’ll see a confirmation message indicating the installation is complete.

Method 2: Manual Installation

For users who prefer more control over the installation process, a manual installation is possible.

1. Create an Installation Directory

First, create a directory to hold the FreeFileSync files:

mkdir -p ~/Software

2. Extract the FreeFileSync Files

Extract the downloaded tarball to your chosen directory:

tar -xf FreeFileSync_14.3_Linux.tar.gz -C ~/Software/

3. Extract Icons

Extract the program icons for desktop integration:

cd ~/Software/FreeFileSync
unzip Resources.zip FreeFileSync.png RealTimeSync.png
mkdir -p ~/.local/share/icons/hicolor/256x256/apps/
mv {FreeFileSync,RealTimeSync}.png ~/.local/share/icons/hicolor/256x256/apps/

4. Create Desktop Entries

Create desktop entries to make FreeFileSync accessible from your application menu:

mkdir -p ~/.local/share/applications/

Create a desktop file for FreeFileSync:

cat > ~/.local/share/applications/freefilesync.desktop << EOF
[Desktop Entry]
Name=FreeFileSync
Comment=Keep files and folders synchronized
Exec=~/Software/FreeFileSync/FreeFileSync %f
Terminal=false
Type=Application
Icon=FreeFileSync
MimeType=application/x-freefilesync-ffs;application/x-freefilesync-batch
Categories=Utility;FileTools;GTK;
StartupWMClass=FreeFileSync
StartupNotify=true
EOF

And for RealTimeSync:

cat > ~/.local/share/applications/realtimesync.desktop << EOF
[Desktop Entry]
Name=RealtimeSync
Comment=Start synchronization in real time
Exec=~/Software/FreeFileSync/RealTimeSync %f
Terminal=false
Type=Application
Icon=RealTimeSync
Categories=Utility;FileTools;GTK;
MimeType=application/x-freefilesync-real
StartupNotify=true
EOF

5. Add to PATH

Add FreeFileSync to your PATH to run it from any terminal:

echo "PATH=\$PATH:\$HOME/Software/FreeFileSync" >> ~/.bashrc
echo "PATH=\$PATH:\$HOME/Software/FreeFileSync" >> ~/.profile
source ~/.bashrc

Log out and log back in to apply these changes.

Post-Installation Configuration

After installation, a few additional steps will ensure FreeFileSync runs optimally.

Enable Desktop Icons

The desktop icons may not be usable due to permission issues. To fix this:

  1. Right-click on each desktop icon
  2. Select “Allow Launching”

Alternatively, you can delete the desktop icons since FreeFileSync is accessible from the application menu.

Install FreeFileSync on Ubuntu 24.04 LTS

First-Time Configuration

When first launching FreeFileSync, consider configuring these recommended settings:

  1. Default comparison settings (binary or content)
  2. Default synchronization mode (Mirror, Two-Way, or Custom)
  3. Filter preferences for excluding unnecessary files
  4. Language and interface preferences

Basic Usage Tutorial

Now that FreeFileSync is installed, let’s learn how to use it for basic file synchronization.

Setting Up Source and Target Directories

  1. Launch FreeFileSync from the application menu or desktop icon
  2. Click the “Browse” button in the left panel to select your source directory
  3. Click the “Browse” button in the right panel to select your target directory
  4. The middle dropdown lets you select your synchronization method:
    • Two-way: Updates both folders with the newest files
    • Mirror: Makes the right folder identical to the left
    • Update: Copies new/updated files from left to right

Comparing Folders

After selecting your directories, click the “Compare” button. FreeFileSync will analyze both locations and display differences between them.

The comparison results show:

  • New files (files that exist in one location but not the other)
  • Modified files (files that exist in both locations but have different content)
  • Deleted files (files that were removed from one location)

Executing Synchronization

  1. Review the comparison results
  2. Adjust any specific file actions if needed
  3. Click the “Synchronize” button
  4. In the confirmation dialog, click “Start” to begin the synchronization
  5. A progress dialog will show the status of the operation

Once complete, both directories will be synchronized according to your chosen method.

Advanced Features

FreeFileSync offers several advanced features for power users:

Creating Batch Jobs

Batch jobs allow you to save your synchronization settings for future use:

  1. Set up your synchronization as usual
  2. Click “Save as Batch Job” from the File menu
  3. Choose a location to save the .ffs_batch file
  4. This file can be executed directly to run the same synchronization

Scheduling Automated Synchronization

You can schedule FreeFileSync batch jobs to run automatically:

  1. Create a batch job as described above
  2. Use Ubuntu’s built-in task scheduler (cron) to run it periodically:
crontab -e

Then add a line like:

0 14 * * * env DISPLAY=:0 /path/to/FreeFileSync /path/to/your/job.ffs_batch

This will run your synchronization daily at 2:00 PM.

Cloud Storage Integration

FreeFileSync supports synchronization with various cloud storage services:

  • Google Drive (via mounted folders)
  • FTP/FTPS servers
  • SFTP connections
  • Network shares

Troubleshooting Common Issues

Here are solutions to common problems you might encounter:

Permission Problems

If you encounter permission errors during synchronization:

  1. Verify that you have read/write permissions for both source and target directories
  2. For system directories, you may need to run FreeFileSync with sudo
  3. Check file ownership and adjust if necessary

Application Crashes After Comparison

If FreeFileSync crashes after comparison, try removing the configuration file:

rm ~/.config/FreeFileSync/GlobalSettings.xml

This often resolves the “std::bad_alloc” error.

Desktop Icons Not Working

If desktop icons don’t work:

  1. Right-click on the icon
  2. Select “Allow Launching”
  3. If that doesn’t work, try recreating the desktop entry files as shown in the manual installation section

Updating FreeFileSync

To update FreeFileSync to a newer version:

  1. Download the latest version from the official website
  2. Follow the same installation steps as before
  3. The new version will replace the old one, preserving your settings

For system-wide installations, use:

sudo ./FreeFileSync_NewVersion_Install.run

For manual installations, replace the entire directory and update desktop entries if necessary.

Uninstalling FreeFileSync

If you need to remove FreeFileSync:

For Official Installer Installations:

  1. The installer doesn’t provide a built-in uninstaller
  2. Remove the installation directory:
    sudo rm -rf /opt/FreeFileSync
  3. Remove desktop entries:
    rm ~/.local/share/applications/freefilesync.desktop
    rm ~/.local/share/applications/realtimesync.desktop

For Manual Installations:

  1. Remove the FreeFileSync directory:
    rm -rf ~/Software/FreeFileSync
  2. Remove desktop entries:
    rm ~/.local/share/applications/freefilesync.desktop
    rm ~/.local/share/applications/realtimesync.desktop
  3. Remove icons:
    rm ~/.local/share/icons/hicolor/256x256/apps/FreeFileSync.png
    rm ~/.local/share/icons/hicolor/256x256/apps/RealTimeSync.png

Congratulations! You have successfully installed FreeFileSync. Thanks for using this tutorial for installing FreeFileSync on Ubuntu 24.04 LTS system. For additional help or useful information, we recommend you check the official FreeFileSync website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button