How to synchronize your configuration files with ubuntu one
We are living in the area of cloud computing where lot of free services are available that let us sync our important data for the sake of backup to the remote cloud storage. But what if we do not want to store our confidential data on cloud? well, thankfully FreeFileSync is available. It is a cross platform, free utility which allows users to create backup of important data to local system’s disk or any external USB drives. When installed, it keeps syncing your specified source and target directories; you can have peace of mind that your important data is continuously being synced. It is not a resource hungry application, it consumes very limited amount of system resources and runs efficiently on all kinds of modern day operating system ( Microsoft Windows, Mac OS, Linux ). It has a very long feature list which we will review later in this article, but lets first see the list of supported operating system by this application. It is available for:
It supports almost all modern versions of above mentioned Linux flavors. Let’s review its important features and then we will get to the part of installing this application on Ubuntu 16.10.
FreeFileSync’s Salient Features
FreeFileSync is not a new application, it has been under the radar of IT professionals for quite a time now and has successfully won the trust of industry professionals. Here are some of the noteworthy features of this application.
- It has been developed using a very unique “Fail-safe” algorithm which avoid any kind of data corruption during sync process.
- This utility uses an “optimal sync sequence” method which prevents disk space related bottlenecks.
- It can not only synchronize local disks but its capabilities include the syncing of Network shares as well.
- FreeFileSync uses an intuitive directory tree structure to better get an overall of disk space consumption.
- It can copy locked files and detect any conflicts among source and target folders.
- You can automatically handle batch jobs and it also handles the “Symbolic Links” so you get accurate amount of data backed up.
- It comes in both, portal and local installation versions. You can install it on your local system for regular use, or you can use portable version for temporary use. The portable version is even lighter.
- Many utilities of this nature use the concept of file/folder size only, but FreeFileSync uses the concept of File’s content size comparison, so in this way any tiny change in source or target directories are properly synced/backed up.
- It uses “Case Sensitive” mechanism to ensure that complete data is being synchronized.
- It properly handles files/folders sync process dependencies for both the FAT and NTFS partitions types.
The feature list can go on and on, but the above mentioned are most prominent of all. Grab a cup of tea, we are going to start the installation of FreeFileSync on Ubuntu.
Installing and Using FreeFileSync on Ubuntu 16.10
For the sake of demonstration, we will be installing this application on Ubuntu 16.10. First of all make sure that your Ubuntu sytem is properly connected to the internet and run system updates so that all packages are on the latest available releases.
Once our Ubuntu system is done with system updates, run following command on the terminal to download FreeFileSync package file to your system.
Extract the downloaded file using following command.
Go into the extracted directory .
We are almost done, we need to create a launcher now so that we may be able to start using this utility directly from desktop. Run following command, it will let our Ubuntu system enable the capability to create .desktop files.
Now use following command to invoke the “Create Launcher” wizard.
Specify Name for this new launcher and browse and select path for “FreeFileSync” utility which you will be able to locate under its extracted directory.
Thats’ it, go to your system’s launch bar and you will be able to find it there now.
Launch it and start using this wonderful application. As shown in the following screenshot, the two boxes show the source and destination directories. Use Browse button on both parts to select source and destination directories for synchronization. You can save, refresh, or open your sync jobs from same window. This main windows is one location where you comprehensively see all required options and with few clicks, you can configure your important stuff to sync on your specified location or external disks. Enjoy the power of open source and simplicity.
You can easily customize the way this application works, simply click Settings button and here is what it will show you. You can choose the file comparison variant from here. The available variants are “File Size and Time”, “File Content” and “File Size” .
These variants allow you to control the way your data is being synchronized.”Filter” tab lets you include and exclude directories, similarly you can modify many settings from “Synchronization” tab of the following window.
Let’s perform an exmaple compare job using this utility. We have two directories on our system named “/home/aun/Download” and “/home/aun/Download1”. “/home/aun/Download” is containing some good number of files, while /home/aun/Download1 is currently an empty directory, we will choose “/home/aun/Download” as source directory and “/home/aun/Download1” as target directory as shown in the following screenshot.
Click “Compare” button and you should be able to see the difference.
Click “Synchronize” button to sync these two directories.
That’s it, data has been synced successfully.
Conclusion
Hope you enjoyed this tutorial. In this tutorial we have reviewed the important features, installation process and usage of FreeFileSync utility. It is a must-have utility for desktop users. It works flawlessly, but if you run into any issues using this application, please note that it has very detailed error logging and reporting and it is under constant development phase. Reported errors are fixed on regular intervals and you can install the latest version of this application without uninstalling the previous one, as the new binary/executable will be able to identify and clean up any old versions. Try it today, hope you will enjoy using this utility.
Lsync is a lightweight syncing alternative to Rsync. It works roughly in the same way in that it scans a set directory for changes and syncs it to any place that the user wants. The application works as a background service and is readily available for installation on many mainstream Linux distributions. To get Lsyncd on Linux, open up a terminal window and follow the instructions that correspond to your operating system.
Note: be sure to install the app on all of the computers you wish to sync to.
Ubuntu
Debian
Arch Linux
Lsyncd is available for Arch Linux, though it’s not in the primary software sources, so installing it with the Pacman package management tool isn’t possible. Instead, those looking to use the Live Sync Daemon on Arch must download, build and set it up from the AUR.
To get the application working on Arch Linux, launch a terminal and follow the instructions below.
Step 1: Using Pacman, install both Base-devel and Git. These packages are essential, and you will not be able to interact with the Lsyncd AUR package without them.
Step 2: Clone the latest Lysncd AUR snapshot from the official Arch Linux User Repository website.
Step 3: Change the terminal’s starting directory from the home folder to the newly cloned “lsyncd” directory using the CD command.
Step 4: Compile and generate an installable package for your Arch Linux PC by executing the makepkg command. Please note that when you’re using makepkg, the package may fail to build. If this happens, refer to the Lsyncd AUR page and read the user comments for guidance.
Fedora
OpenSUSE
Generic Linux
Can’t find Lsycnd for your Linux operating system? If so, you may need to download the program and build it from source. Open up a terminal and follow the step-by-step instructions to learn how to get Lsycnd built and running.
Step 1: The app has a lot of dependencies that must be installed. Check the list below and grab each of these packages.
- Cmake
- Lua (5.2 or later)
- Liblua (5.2 or later)
- GCC compiler
- Lua compiler
- Make
- Binutils
- Git
More information on needed dependencies can be found on GitHub.
Step 2: Use Git and clone the source code to your Linux PC.
Step 3:Move into the Lsyncd code folder with the CD command.
Step 4: Make a new build directory in the code folder.
Step 5: Move the terminal session into the new build directory.
Step 6: Run cmake to start the code compilation process.
Step 7: Finish up the compilation process with the make command.
Step 8: Install the app to your Linux computer with make install.
Configure Lsyncd
The Lsyncd service runs in the background. Unfortunately, the service doesn’t start up and enable itself manually. As a result, before we can interact with Lsyc, we must start the background service using the systemctl command.
With the service started, we can make a new configuration file using the touch command.
Please note that on some operating systems, creating a file at /etc/lsynd.conf may not work. It may be necessary to create a configuration file in /etc/lsyncd/ instead.
Open up the configuration file with the Nano text editor.
Or, if you set the configuration in /etc/lsyncd/, do:
Paste the code below into the configuration file:
settings logfile = “/var/log/lsyncd/lsyncd.log”,
statusFile = “/var/log/lsyncd/lsyncd.stat”,
statusIntervall = 1,
nodaemon = false
>
After the code is in the Nano text editor, save it by pressing the Ctrl + O keyboard combination. Then, exit it with Ctrl + X.
Set up shared folder
Now that the core of the configuration folder is set up, we need to set up a syncing system. To set up a syncing system, go back to Nano and paste the code in lsyncd.conf, directly below what was added earlier.
Note: be sure to go through the sync code and change it so that it suits your needs.
sync default.rsyncssh,
source = “/source/folder/location”,
host = “remote-pc-or-server-ip”,
targetdir = “/remote/directory”
>
Once again, save the edits to the lsyncd.conf folder in Nano with Ctrl + O.
Start the sync
Lsync is all set and ready to go. Now it’s time to start the synchronization process. In a terminal, use the service command to restart it.
By rebooting Lsync with the service command, it’ll read the new configuration file and instantly start syncing data.
Leave a Reply Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
There are many instructions to syncronize your files with OneDrive cloud-based storage in Linux. However they typically address multiple Linux distributions that often causes a confusion or an use of some commands which have not been actually tested before publishing. This instruction is for Ubuntu 18.04 and 20.04 (64 bit) only.
In order to install onedrive, first you need to install some dependencies and set up git.
Let us open the Terminal application and enter the following:
Lets us move to Downloads directory
DMD compiler installation
Some instructions recommend using snap to install some dependencies, for example here:
If you are using Ubuntu 18.04 or newer, use snap to install dmd
I tried that and found that after such installation some dependencies are not met!
So I recommend you to install those dependencies using classical method like this:
We download the 64-bit package from
and install it at system level
Then we clone the required repository files with git:
Then compile and install it:
The next step, you need to authorize onedrive with Microsoft so it can access your account:
Copy the web address appeared in the terminal window right after Authorize this app visiting: , then open any web browser and paste it into the web browser address line.
Log in into your account and grant the application permission to acess your account.
Wait for response .
Then copy and paste the web address of response into corresponding part of the terminal window with prompt Enter the response uri: .
Now the installation has been done.
Before syncronization, let us create a onedrive directory for current user
and copy a configuration file into default directory
Now we can leave the installation directory
It is a time to check our current configuration
You will see something like this
For one time sync, run
or if you want to monitor your OneDrive storage for changes
Do not forget that onedrive doesn’t start when the user logs in. To run automatically when you log in, you can add onedrive –monitor command to your startup application.
This comment has been minimized.
Copy link Quote reply
abraunegg commented Nov 9, 2020
For Ubuntu 18.x, your instructions are not entirely accurate – refer to:
For Ubuntu 20.x – follow the same 18.x x86_64 directions, or use the Ubuntu PPA
- © 2021 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
In the past on AddictiveTips, we’ve talked about Symbolize, a Linux app that works with Dropbox to keep your config files in sync. However, not everyone has a Dropbox account.
If you do not have a Dropbox cloud account but still want your Linux configs to stay in sync, the next best tool to use is Syncthing. In this guide, we’ll show you how to set up a Syncthing system that will always keep your configuration files on Linux in sync.
Installing Syncthing GTK on Linux
Syncthing GTK is the preferred tool for syncing on the Linux desktop, as Syncthing is a web server app, and the GTK tool makes it easy to use on the desktop. However, the Syncthing GTK tool does not come pre-installed. As a result, we will need to go over how to install it before continuing.
The Syncthing GTK application is available for installation on Arch Linux, Debian 10, Ubuntu, OpenSUSE Leap, and Flatpak. To start installing the app on your computer, open up a terminal window and follow the command-line installation instructions down below.
Ubuntu
On Ubuntu, the Syncthing GTK application is installable via the Apt command.
Debian 10
If you are using Debian 10, you will get Syncthing GTK working with the Apt-get command below.
Arch Linux
Syncthing-GTK is in the Arch Linux “Community” repo. To install it, run the Pacman command.
Fedora
Syncthing-GTK is available on Fedora 30 via the Dnf command. However, Fedora 30 is out of date (2 years to be exact). If you use Fedora and need to get Syncthing GTK working, you will need to follow the Flatpak installation instructions instead.
OpenSUSE
Syncthing GTK is available on OpenSUSE 15.1 and 15.2 via the “Oss” software repository. Ensure you have “Oss” enabled. Then, enter the command below to get Syncthing GTK working.
Flatpak
Syncthing GTK is available for installation as a Flatpak. So, if you’re a Fedora Linux user (or any other distribution that doesn’t have Syncthing GTK available) and need to install it, this is the way to go.
Installing Syncthing GTK via Flatpak requires the Flatpak runtime. To install the runtime, follow this guide on the subject. Once the runtime is set up, please enter the two commands below to get it running.
Set up Syncthing GTK
Syncthing GTK requires configuration before use. To configure it, launch the app on your Linux desktop. Then, follow the on-screen Wizard to get the app working on your PC. Be sure to read what the Wizard tells you in detail, so you can understand how Syncthing operates on your computer.
Please note that you will need to set up Syncthing GTK on all computers that you plan to sync config files between.
Syncing config files
Syncing configuration files with Syncthing on Linux is done with the symlinking function. To set it up, follow the step-by-step instructions below.
Step 1: Pick the Linux PC that you use the most. This PC will be the one that we take configuration files from and the one that will do the config file hosting.
For example, if all of your essential configuration files are on your Desktop, set up the sync in Syncthing GTK on the desktop, and move all the config files into the “Sync” folder on this PC sync with other Linux systems.
Once you’ve figured out what PC you use as your primary, use the mv command to place your configuration files into the Syncthing “Sync” directory.
This command above will move most of your configuration files into the “Sync” folder handled by Syncthing. To sync other configuration files on your PC, you will need to change
/.config in the command above to whichever folder you wish to keep in sync.
Step 2: In Syncthing GTK, click on the “Gear” icon next to the minimize button to access the menu button. Inside of the menu, click on “Add device” and select it. Then, use the menu to add other Linux PCs on your network to the sync.
Note: you may need to click on “Show ID” on computers you wish to add to the sync to get their ID before attempting to add it to the PC that you are hosting the sync from.
Step 3: On the PC doing the sharing, access Syncthing GTK, right-click on “Default Folder,” and select the “Edit” button. Then, look for “Share With Devices” and select it with the mouse.
Inside of the “Share With Devices” area, check the boxes next to the PCs you’ve added to your Syncthing folder, giving them access to the sync.
Step 4: After adding a device to the share, go to the device you are adding and look at the Syncthing GTK app. You will see a notification asking if you want to connect to the share. Select “Accept” to accept the connection.
Step 5: Once you’ve accepted the connection on the Linux PC attempting to connect to the Syncthing GTK share, you’ll see another notification. This notification will ask if you wish to add the “Default Folder.” Select “Yes” to add the “Sync” folder to the Linux devices that you’ve added to the sync.
Step 6: Allow the connected PCs to download the configuration files from the sync over your network. When the process is done, run the following commands on all PCs to keep your configuration files in sync using Syncthing GTK.
With the two commands run above, your configuration files will be in sync. However, keep in mind that Syncthing must be running to receive file updates.
Just Give Me the Beans!
Synchronizing my Desktop and Laptop
I have Ubuntu 11.04 installed on both my laptop and Desktop.
I need to make them look identical in terms of all the application installed and all the configuration files.
I want to sync files like vim configuration files and the latest score in Armagetron to the latest python library that I have installed in the desktop.
I do not want to sync all those mp3’s and movie files between the systems.
How could I achieve that?
Any software that I could use to achieve that?
- View Profile
- View Forum Posts
- Private Message
- Visit Homepage
Quad Shot of Ubuntu
Re: Synchronizing my Desktop and Laptop
Originally Posted by meadhikari
I have Ubuntu 11.04 installed on both my laptop and Desktop.
I need to make them look identical in terms of all the application installed and all the configuration files.
I want to sync files like vim configuration files and the latest score in Armagetron to the latest python library that I have installed in the desktop.
I do not want to sync all those mp3’s and movie files between the systems.
How could I achieve that?
Any software that I could use to achieve that?
Thanks in advance
not sure if it could natively do it. is 2 options. sign up to ubuntu one. open the file browser, go into where the folders are for those files etc and c if u can click the txt box to sync wit ubuntu one.
or make symbolic links!
do tht in both comps. (replaceing the file path with the config files path and the link name to whatever you think is relevant for it) it will link the configuration files into ur ubuntu one folder, which will sync it to ur other computers ubuntu one folder (via the cloud), the links will put the changes into the other config folder. job done
EDIT: note, i’ve nvr actually done this. all just guess work. tho i might try it for my minecraft saves
Ubuntu One is a widely used cloud storage service by canonical which works much like SugarSync and Dropbox . Ubuntu One comes installed with the Ubuntu operating system and also has apps for Android and iPhone .
After a long era of success with Linux users, Ubuntu One has finally released a version for the Windows operating system. This means that you can easily sync your files between, Ubuntu, Windows, Android and iPhone using Ubuntu One. Moreover, you can login to your Ubuntu one account from the developer’s website to access and manage your files anytime. In this post I will provide you with a complete overview of the Ubuntu One Windows client. You can also check out my review of the Linux client of Ubuntu One here: Ubuntu One – Cloud Storage Service For Ubuntu, iPhone And Android Users .
The Windows client of Ubuntu one works more or less in the same manner as the Linux client. Once Ubuntu One for Windows is launched, you are provided with the choice to login with an existing account or to create a new one. A new account can be created either directly from the Ubuntu One website or the desktop client.
After logging in, you can start uploading items by placing them in the Ubuntu one folder located at: C:\Users\username\Ubuntu One(in Windows).
All items placed in this folder are synced automatically with your shared devices (just like Dropbox or SugarSync). You can place files or folder directly into this folder or use the Add a folder button from the main interface of the Ubuntu One client.
Devices tab provides a complete list of all connected devices (including PCs, laptops and smartphones) with your Ubuntu One account.
Settings tab allows place a bandwidth limitation for the files being synchronized with the Ubuntu One service. you can se t a download an upload speed to avoid choking your current bandwidth. From here, you can also enable Ubuntu One to start synchronization automatically at system startup, enable device notifications and sync all shared files shared with you by other users. Account Information tab allows getting redirected to your Ubuntu One account (via a browser) to change account credentials such as email address, password, etc.
The Windows version for Ubuntu One seems to be the right step by Canonical to diversify its market share for it’s cloud storage service to the market of Windows OS based users.
Lsyncd (Live Syncing Mirror Daemon) is a lightweight Linux solution for synchronizing remote and local directories. The use of this Linux solution does not affect the performance of your local filesystem in any way.
Once you fully install and configure Lsyncd, your local and remote directories will be synced such that any data modification on the local directory is noted and updated on the remote server directory. The frequent directory updates and synchronization actions ensure that the targeted local and remote directories remain identical.
Install Lsyncd in Linux Server
This Lsyncd synchronization solution is supported across various Linux operating system platforms. Depending on the Linux distribution you are using, you can install Lsyncd from one of the following commands:
Install Lsyncd in RHEL-based Distributions
Install Lsyncd in Fedora Linux
Install Lsyncd in Debian, Ubuntu & Mint
Install Lsyncd in OpenSUSE
Install Lsyncd in Arch Linux
Using Lsyncd to Synchronize Local and Remote Directories in Linux
You need to be on your local machine and have authenticated access to a remote machine or server for two-way directory syncing to be successful. On my end, the remote server I am using has the IP address 18.118.208.XX.
On the local machine, we need to set up passwordless ssh login to the mentioned remote machine/server.
Passwordless ssh login enables the automation of Lsyncd’s local-to-remote directories synchronization to be seamless.
Set Up SSH Passwordless Login to Remote Linux
1. Generate the SSH key on the local machine for passwordless access to the remote server.
When prompted to enter a passphrase, leave the field blank by hitting [Enter] on your keyboard.
Create SSH Key in Linux
2. Copy the generated SSH public key to your remote machine. We now need to transfer a copy of the generated SSH public key to the mentioned remote server/machine.
Copy SSH Key to Remote Linux
With this achievement, any future access to this remote server (18.118.208.79) via the SSH command (ssh [email protected]) should be passwordless.
SSH Passwordless Login in Linux
You might also want to make sure your remote machine’s /etc/ssh/sshd_config file has PubKeyAuthentication set to yes and PermitRootLogin set to without-password.
Configure SSH in Linux
Restart the sshd service on the remote machine.
If the PubKeyAuthentication and PermitRootLogin fields were not enabled on your server and you managed to enable them, begin from step 1 to re-generate the public SSH key and then re-copy it (step 2) to the remote server.
Synchronize Local Directories with Remote Using Lsyncd
Create the needed remote/destination directory on your remote machine
Create the needed source directory on your local machine.
Populate this source directory with some files:
Create Files in Linux
Create Lsyncd Log and status files.
Create associated lsyncd configuration directory.
Under this directory, create the lsyncd.conf.lua configuration file.
Populate it with data similar to the following screen capture
Lsyncd Configuration
On this file, the source is the path to the files we want to sync on the local machine, host points to the username+IP address of the remote server, and targetdir is the destination directory on the remote server.
Next, start and enable Lsyncd.
Access remote server to confirm the presence of the synced directory files. See if any file synchronization took place.
Confirm File Synchronization in Linux
As you can see, the ls command before starting lsyncd on local machine displayed zero files and the one after running it displays the copied files from the local machine.
You only need to install Lsyncd on the host/source machine with the directory files you need to synchronize. It is easy to implement and gives you a file synchronization solution that works for local-to-remote machines and also local-to-local directories.
You might have set up cron jobs that runs at a specific time to backup important files or perform any system related tasks. Or, you might have configured a log server to rotate the logs out of your system at regular interval time. If your clock is out-of-sync, those jobs will not execute at the right time. This is why setting up a correct time zone on the Linux systems and keep the clock synchronized with Internet is important. This guide describes how to set up time synchronization on Ubuntu Linux. The steps given below have been tested on Ubuntu 18.04, however they are same for other Ubuntu-based systems that uses systemd’s timesyncd service.
Set Up Time Synchronization On Ubuntu
Usually, we set time zone during installation. You can however change it or set different time zone if you want to.
First, let us see the current time zone in our Ubuntu system using “date” command:
Sample output:
As you see in the above output, the “date” command shows the actual date as well as the current time. Here, my current time zone is UTC which stands for Coordinated Universal Time.
Alternatively, you can look up the /etc/timezone file to find the current time zone.
Now, let us see if the clock is synchronized with Internet. To do so, simply run:
As you can see, the “timedatectl” command displays the local time, universal time, time zone and whether the system clock is synchronized with Internet servers and if the systemd-timesyncd.service is active or inactive. In my case, the system clock is synchronizing with Internet time servers.
If the clock is out-of-sync, you would see “System clock synchronized: no” as shown in the below screenshot.
Time synchronization is disabled.
Note: The above screenshot is old one. That’s why you see the different date.
If you see “System clock synchronized: value set as no, the timesyncd service might be inactive. So, simply restart the service and see if it helps.
Now check the timesyncd service status:
If this service is enabled and active, your system clock should sync with Internet time servers.
You can verify if the time synchronization is enabled or not using command:
If it still not works, run the following command to enable the time synchronization:
Now your system clock will synchronize with Internet time servers.
Change time zone using Timedatectl command
What if I want to use different time zone other than UTC? It is easy!
First, list of available time zones using command:
You will see an output similar to below image.
List time zones using timedatectl command
You can set the desired time zone(E.g. Asia/Kolkata) using command:
Check again if the time zone has been really changed using “date” command:
Or, use timedatectl command if you want the detailed output:
As you noticed, I have changed the time zone from UTC to IST (Indian standard time).
To switch back to UTC time zone, simply run:
Change time zone using Tzdata
In older Ubuntu versions, the Timedatectl command is not available. In such cases, you can use Tzdata(Time zone data) to set up time synchronization.
Choose the geographic area in which you live. In my case, I chose Asia. Select OK and hit ENTER key.
configure time zone using tzdata command
Next, select the city or region corresponding to your time zone. Here I’ve chosen Kolkata.
configure time zone using tzdata
Finally, you will see an output something like below in the Terminal.
Configure time zone in graphical mode
Some users may not be comfortable with CLI way. If you’re one of them, you can easily change do all this from system settings panel in graphical mode.
Hit the Super key (Windows key), type settings in the Ubuntu dash and click on Settings icon.
Launch System’s settings from Ubuntu dash
Alternatively, click on the down arrow located at the top right corner of your Ubuntu desktop and click the Settings icon in the left corner.
Launch System’s settings from top panel
In the next window, choose Details and then Click Date & Time option. Turn on both Automatic Date & Time and Automatic Time Zone options.
Set automatic time zone in Ubuntu
Close the Settings window an you’re done! Your system clock should now sync with Internet time servers.
Ubuntu Touch is awesome. Nextcloud is also awesome. Put them together and you have awesome… squared. How cool would it be to have your photos automatically sync to your own Nextcloud sever? Well, you can do it today and here is how.
EDIT DEC 24, 2018 – Important Security Warning before beginning!
Currently as of the time of this post, UBsync is not very secure. The volunteers who forked it are not security experts and the password file is not secure and is in plain text. Therefore, be warned that if your content is of extremely private nature, do not use this blog contents until the app has been properly updated.
However, if you are just trying to move your selfies from your phone to your Nextcloud for safe-keeping, this blog will suffice and hopefully in the next little while we’ll have some helpers in the project to improve the way the password is handed.
Also, there is a way to mitigate some risk so that at least your main NC user/password cannot be high jacked. When you log in to your Nextcloud user settings through a browser and go to ‘Security’ and ‘Create new app password’. Be sure to save this password right away during creation and in a safe place because you can only see the password one time (you can’t come back and see it again).
Once you have this password ready, continue with the blog.
- Make sure that you have a user account and password from a Nextcloud server.
If you don’t have a nextcloud user account, consider strongly hosting your own. You can do this on an unused computer, or using Nextcloudpi on a Raspberry pi, or host a more ‘serious server’. - In your Nextcloud user directory, create an appropriate directory to put your Ubuntu Touch files in. If you don’t touch anything everything will go into your ‘Photos’ folder by default.
- Make sure you have the UBsync app installed from the OpenStore
- Go to System Settings in Ubuntu Touch
- Go to ‘Accounts’
- Select ‘Add Account’
- Select ‘Nextcloud’
Note: If you try to add an account and it doesn’t respond and take you to the next step, you may need to reboot your device. - Enter your Nextcloud credentials (from the ‘new app password’ you created at the very beginning)
- Open UBsync App on your Ubunt Touch device
- Select ‘Add a New Account’
- Select ‘allow’ if the prompt is showing the correct username with the correct server address
- Go back to ‘General Settings’ screen of UBsync
- Set your sync frequency.
- Select any other changes you want on this page.
- Go back another screen with the back button top left
- Select the folders on your device that you want to sync to your Nextcloud with the ‘Sync Folders’ option.
The default option will put your Ubuntu Touch photos (unedited) into the /photos directory (which is a default directory when Nextcloud creates a new account) from the following Ubuntu Touch directory
- Add a new folder with the + plus sign on the top right.
Select the directory on your UT device you want to sync. NOTE: This is the tricky part, the big ‘tick’ check mark in the center of the screen is not ‘touchable’ but is trying to direct you to hit the ‘tick’ in the top right menu!
Do the same actions for the remote folder.
If the Folder doesn’t exist you can create a new one easily by just typing it. After creating it, touch it again and hit the ‘tick’ in the top right to make it real.