Tag Archives: Cloud

Fix Dropbox Indicator Menu Not Working In Ubuntu 17.04 Zesty Zapus (Unity)

The Dropbox indicator is broken in Ubuntu 17.04 Zesty Zapus (currently in beta): the menu doesn’t work and Dropbox uses a different icon, probably because it tries to use the tray instead of the indicator.

Dropbox indicator menu bug Ubuntu 17.04 Zesty Zapus

This is caused by the fact that the XDG_CURRENT_DESKTOP environment variable was changed from “Unity” to “Unity:Unity7” for Ubuntu 17.04.

Until this is fixed in Dropbox, here’s a quick fix / workaround. To get the Dropbox indicator to work in Ubuntu 17.04 Zesty Zapus (with Unity), you’ll need to launch Dropbox with “env XDG_CURRENT_DESKTOP=Unity”, like this:

dropbox stop
env XDG_CURRENT_DESKTOP=Unity dropbox start -i

To get this to work automatically is a bit tricky because Dropbox overwrites any modifications to its autostart file.

Here are all the steps required to fix the Dropbox indicator menu in Ubuntu 17.04 Zesty Zapus so that Dropbox works when you login / when launched from the menu:
  • rename the Dropbox autostart file from ~/.config/autostart and edit it, changing the “Exec” line to “Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i”;
  • disable the built-in Dropbox autostart because it automatically creates an autostart file. This can be done using the “dropbox autostart n” command;
  • optional: if you want to also fix the Dropbox menu entry (this isn’t used in most cases since Dropbox starts automatically), copy the Dropbox desktop file from /usr/share/applications/ to ~/.local/share/applications/, so it’s not overwritten by updates, and change the “Exec” line to “Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i”

To do all this from a terminal, you can use the following commands:

cp ~/.config/autostart/dropbox.desktop ~/.config/autostart/start_dropbox.desktop
sed -i 's/^Exec=.*/Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i/' ~/.config/autostart/start_dropbox.desktop
dropbox autostart n
mkdir -p ~/.local/share/applications/
cp /usr/share/applications/dropbox.desktop ~/.local/share/applications/
sed -i 's/^Exec=.*/Exec=env XDG_CURRENT_DESKTOP=Unity dropbox start -i/' ~/.local/share/applications/dropbox.desktop

And finally, restart the session (logout/login). The Dropbox indicator menu should now work and it should use the correct icon.

via Dropbox forums

Read More

Rclone 1.36 Released With SFTP And Local Symlinks Support, More

cloud storage

Rclone 1.36 was released recently, bringing support for SFTP, local symbolic links support, mount improvements, along with many other new features and bug fixes.
For those not familiar with Rclone, this is a cross-platform command line tool for synchronizing files and folders to multiple cloud storages, which supports Dropbox, Google Drive, Amazon S3, Amazon Drive, Microsoft One Drive, Yandex Disk, and more.

It can be used to sync files either from your machine or from one cloud storage to another.
As a reminder, Rclone doesn’t provide real-time file monitoring, and the synchronization is performed on demand (so you must run it manually or using a script, etc.)

For more about Rclone, check out our initial article.

Important changes in Rclone 1.36 include:

  • SFTP remote;
  • re-implement sync routine to work a directory at a time reducing memory usage;
  • logging revamped to be more inline with rsync;
  • implement –backup-dir and –suffix;
  • implement –track-renames;
  • add time-based bandwidth limits;
  • rclone cryptcheck: checks integrity of crypt remotes;
  • allow all config file variables and options to be set from environment variables;
  • add –buffer-size parameter to control buffer size for copy;
  • comply with XDG Base Directory specification (this moves the default location of the config file in a backwards compatible way);
  • MIPS/Linux big and little endian support;
  • local:
    • implement -L, –copy-links flag to allow rclone to follow symlinks;
    • open files in write only mode so rclone can write to an rclone mount;
  • mount:
    • implement proper directory handling (mkdir, rmdir, renaming);
    • make include and exclude filters apply to mount;
    • implement read and write async buffers – control with –buffer-size;
  • crypt:
    • add –crypt-show-mapping to show encrypted file mapping;
    • fix crypt writer getting stuck in a loop (this bug had the potential to cause data corruption when reading data from a network based remote and writing to a crypt on Google Drive).

For a complete changelog, see THIS page.

To use Rclone with a graphical user interface, you may want to check out RcloneBrowser (WebUpd8 provides an Ubuntu PPA for RcloneBrowser so you can easily installing updates).

Download Rclone

(binaries available for Linux: 32bit, 64bit, arm, arm64 and mips big and little endian, Windows :32bit and 64bit, MacOS: 32bit and 64bit, FreeBSD: 32bit, 64bit and arm, and more)

In Linux distributions that support snap packages (Ubuntu and many others), you can install rclone using the following command:

sudo snap install rclone --classic

If you already had Rclone installed using a snap, it should already be up to date (this depends on the snapd version you’re using). Alternatively, you can update it using the following command:

sudo snap refresh rclone --classic

For how to use Rclone, you may want to check out its documentation.

Important: if you use the Rclone snap package, you won’t be able to mount any cloud storage (bug report). When attempting to mount Google Drive, Dropbox, etc., you’ll get an error similar to the following:
Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount": executable file not found in $PATH
The solution, at least for now, use the Rclone binary downloaded from its website.

To download the source, report bugs, etc., see the Rclone GitHub page.

Read More

Rclone Is Now Available As A Snap Package [Quick Update]

cloud storage

[Quick Update] Rclone is now available as a snap package, making it easy to install and update on a wide range of Linux distributions which support Snaps, like Ubuntu, Debian, Fedora, Gentoo, Arch Linux, openSUSe and more.

Rclone is a command line tool for synchronizing files and folders to multiple cloud storages (either from your machine or from one cloud storage to another). It supports Dropbox, Google Drive, Amazon S3, Amazon Drive, Microsoft One Drive, Yandex Disk, and more.

For more information about Rclone, as well as a GUI for it, see the following articles:

To install the Rclone (currently the snap provides a development version, 1.3.5-dev) snap package, use the following command:
sudo snap install rclone --classic

This should install the Rclone binary under /snap/bin/. The “–classic” argument is used because it puts the snap in classic mode and disables the security confinement. This is required for Rclone to work, or else it won’t be able to access some user files.

Later on, if you want to update the Rclone snap, use:

sudo snap refresh rclone

You can update all the installed snaps using:

sudo snap refresh

For the “snap” command to work, you need the “snapd” package. This should be installed by default in recent Ubuntu versions, like 16.04 and 16.10 or 17.04. For Ubuntu 14.04, you can install it from the repositories:
sudo apt install snapd

For other Linux distributions, installing snapd is detailed on the Rclone installation page @ GitHub.

I should also mention that there’s currently only one Rclone version – 1.35-dev -, available as a snap, no matter what channel you choose (stable / candidate / beta / etc/):
$ snap info rclone
name: rclone
summary: ""rsync for cloud storage" "
publisher: fireeye
description: |
"rsync for cloud storage" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze
B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files
commands:
- rclone
tracking: stable
installed: 1.35 (55) 5MB -
refreshed: 2017-02-15 22:00:31 +0200 EET
channels:
stable: 1.35 (55) 5MB -
candidate: 1.35 (55) 5MB -
beta: 1.35 (55) 5MB -
edge: 1.35 (55) 5MB -

Read More

Jam: Listen To Google Play Music From The Console

A couple of weeks ago I wrote about GPMDP, a Google Play Music desktop application that integrates Google Play Music with the desktop and adds various features on top. If you don’t need all those desktop features and all you need is a lightweight, console Google Play Music client, you can try Jam.

Jam Google Play Music console player

Jam is a new Google Play Music console player for Linux and Windows. The application, which is written in Go, had its first alpha release about two weeks ago, and it’s currently at version 0.4.0.

Jam features a console interface very similar to that of Cmus, with easy keyboard navigation. While the interface is easy to use, it currently lacks a help screen, so for a list of keyboard shortcuts, see the Jam GitHub page.

Jam features:

  • console interface inspired by Cmus;
  • Last.fm scrobbling;
  • play, pause (this is buggy), stop, previous / next track;
  • populates a local database with the artists and albums you saved through the web interface (or by any other means) and allows searching artists in this database.

Jam is still very new, so it lacks a few features, but its developer hopes to improve it further, by making its interface detachable like MOC or to allow controlling the playback via command line arguments. If there’s some feature you’d like to see in Jam, you can submit a bug report.
It’s important to mention for Jam to work, you need to login using the same account used for Google Music on your mobile device. Without this, you will get a “no valid devices” error when trying to login with Jam.
If you use the Google two-factor authentication, you’ll need to generate an app password for Jam. You can do this by visiting THIS link.

Download Jam (64bit binary)

Download Jam (64bit binaries are available for Linux and Windows)

To install the 64bit binary on Linux, download it from GitHub (it’s the first one, called simply “jam”) and place it in your home folder. Then to install it to /usr/local/bin/ (so it’s available in your PATH), use the following command:
sudo install jam /usr/local/bin/

How to install Jam from source

Note: the instructions below were tested on Ubuntu 16.04+ / Linux Mint 18.x and may not work on older Ubuntu versions (golang-go may be too old).

To install Jam from source, you’ll need Go, Git and libpulse-dev. Install these in Ubuntu / Debian / Linux Mint using the following command:

sudo apt install golang-go git libpulse-dev

Next, you’ll need to set the GOPATH environment variable and make the GOPATH/bin folder available in your PATH. To do this (and use ~/.go as GOPATH), use the commands below:
mkdir ~/.go
echo "export GOPATH=$HOME/.go" >> ~/.bashrc
echo "export PATH=$PATH:$GOROOT/bin:$GOPATH/bin" >> ~/.bashrc
source ~/.bashrc

And finally, install Jam from source (the binary will be available in ~/.go/bin/) using the following command:

go get github.com/budkin/jam

If you encounter bugs, report them @ GitHub.

Read More

RcloneBrowser (Rclone GUI) Lets You Manage Multiple Cloud Storage Services From A Single Desktop App

RcloneBrowser is a Qt5 Rclone graphical user interface, available for Linux, Mac and Windows.

Rclone Browser

In case you’re not familiar with Rclone, this is a command line tool for synchronizing files from or to cloud storage services, which supports Google Drive, Google Cloud Storage, Dropbox, Microsoft One Drive, Amazon S3, Amazon Drive, Openstack Swift / Rackspace cloud files / Memset Memstore, Hubic, Yandex Disk, and Backblaze B2. 
Rclone can synchronize files either directly between these cloud services, or to / from your local filesystem.

For more about Rclone, check out our article: Rclone Synchronizes Files Between Multiple Cloud Storage Services (Command Line)

RcloneBrowser allows browsing and modifying (upload / download / remove, etc.) remote repositories, such as Google Drive, Dropbox, oneDrive and so on, including encrypted ones, using the same configuration file as Rclone, so you don’t have to configure remote services twice.

Besides performing various operations on your cloud files, RcloneBrowser can also mount and unmount your remote cloud storage, and it can stream media files with an external player, such as mpv.

Rclone Browser

Note that Rclone (and thus, RcloneBrowser too) performs the synchronization on demand, without any real-time file monitoring and automatic uploading / downloading of changed files.

RcloneBrowser features:

  • allows to browse and modify any Rclone remote, including encrypted ones;
  • allows to upload, download, create new folders, rename or delete files and folders;
  • uses same configuration file as Rclone, no extra configuration required;
  • supports encrypted .rclone.conf configuration file;
  • simultaneously navigate multiple repositories in separate tabs;
  • lists files hierarchically with file name, size and modify date;
  • all Rclone commands are executed asynchronously, no freezing GUI;
  • file hierarchy is lazily cached in memory for faster traversal of folders;
  • can process multiple upload or download jobs in background;
  • drag & drop support for dragging files from local file browser for uploading;
  • streaming media files for playback in players like mpv or similar;
  • mount and unmount folders on macOS and GNU/Linux;
  • optionally minimizes to tray, with notifications when upload/download finishes.
While RcloneBrowser integrates pretty much all the Rclone features in its user interface, adding a new remote storage service is not supported by it, and the configuration must be performed via command line. However, for most, the configuration is as easy as entering “y” a few times in a terminal.

RcloneBrowser does add easy access to the Rclone configuration – simply click “Config” on the RcloneBrowser “Remotes” tab, and it will launch a new terminal window with the Rclone configuration.

Tip: The RcloneBrowser user interface lets you select a local file or folder when uploading to a cloud storage service, however, it can also copy / move / sync files from one cloud storage to another. To do this, you must enter the exact path to the file from the other remote source, like this:

Rclone Browser

Rclone Browser

Download RcloneBrowser

To make it easier to install, I’ve uploaded RcloneBrowser to the main WebUpd8 PPA, for Ubuntu 16.04 and 16.10.

To add the PPA and install RcloneBrowser in Ubuntu 16.10 or 16.04 / Linux Mint 18.x, use the following commands:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install rclone-browser

If you don’t want to add the PPA, you can grab the deb from HERE.

Important: the WebUpd8 package only includes RcloneBrowser, but you’ll also need Rclone for this to work. You can download precompiled Rclone binaries @ GitHub. To use it, simply extract the downloaded binary archive, then from RcloneBrowser Preferences select Rclone binary location.
Arch Linux users can install RcloneBrowser via AUR.
For other Linux distributions, Windows and Mac, see the Rclone Browser GitHub page.

Those new to Rclone may also want to check out its documentation.

Read More

GPMDP Is A Feature-Packed Google Play Music Desktop Application

Google Play Music Desktop Player (GPMDP) is an unofficial Google Play Music desktop application available for Linux, Windows and Mac.

Google Play Music Desktop Player
Google Play Music Desktop Player with a custom theme

The application is built using Electron, so it’s a wrapper for the Google Play Music web interface, with various desktop features added on top, like media keys support, tray/indicator and much more.

Google Play Music Desktop Player desktop integration features include:

  • tray / appindicator which allows controlling the playback as well as thumbs up/down;
  • option to minimize to tray for background music playing;
  • supports media keys (play, pause, stop, next, previous) as well as customizable hotkeys;
  • MPRIS v2 support (integrates with the Ubuntu Sound Menu, etc.);
  • desktop notifications on track change;
  • task bar media controls (media controls embedded into the taskbar) for Windows;
  • allows choosing your audio output device from within the player.

On top of these, GPMDP ships with quite a few extra features, such as:
  • last.fm scrobbling and now playing support;
  • experimental voice controls;
  • a simplistic mini player;
  • customizable light and dark themes;
  • HTML5 audio support;
  • can automatically scroll lyrics while playing (beta);
  • Chromecast support;
  • a free mobile remote control app for Android (iOS coming soon).

Google Play Music Desktop Player
GPMDP mini player

Furthermore, its website says that Google Play Music Desktop Player should use less resources than having Google Play Music open in a regular Google Chrome tab.
I should add that the voice controls feature (which is experimental) didn’t work in my test under Ubuntu. Also, the GPMDP website mentions that the application comes with a built-in equalizer however, that’s not the case any more due to a bug in Chromium – hopefully this feature will return in a future release.
For the remote control and Chromecast features, you’ll need to install avahi. In Debian/Ubuntu (and derivatives), make sure “avahi-daemon” is installed. For the remote control app to work, you’ll also need to enable the Playback API option in the application settings:

Google Play Music Desktop Player

Note that the GPMDP settings aren’t available in its system menu. You can access the settings either from the tray/AppIndicator, or from the left app sidebar (“Desktop Settings”).
Some of you may be aware of Nuvola Player, an application that integrates various web-based music streaming services (Google Play Music included) with the Linux desktop, and you may be wondering how Google Play Music Desktop Player compares to it.
Well, Nuvola Player offers pretty much all the desktop integration you’d need in such an application, however, Google Play Music Desktop Player has some extra features, including customizable theme, a mini player, scrolling lyrics, as well as an Android remote control app. So if you find these features useful, give Google Play Music Desktop Player a try.

Download Google Play Music Desktop Player

Download Google Play Music Desktop Player (binaries available for Linux – deb and rpm, Windows and Mac)

Note: the latest Google Play Music Desktop Player version doesn’t work properly on Linux, that’s why there are no Linux binaries available for download for this version. Until this is fixed, grab version 4.0.5.
Debian / Ubuntu users can use the Google Play Music Desktop Player repository. You’ll find instructions for how to add it HERE.
Arch Linux users can use the Google Play Music Desktop Player AUR package.

Thanks to Alexander for the tip!

Read More

Rclone Synchronizes Files Between Multiple Cloud Storage Services (Command Line)

cloud storage

There are command line tools available for synchronizing files from / to cloud storage services, but they usually only support one service. Like Grive2 for Google Drive, the official Yandex.Disk console client, Dropbox Uploader, and so on.

But what about synchronizing files and folders from or to multiple cloud storage services? For such cases, you can use Rclone, a Rsync-like program for cloud storage.

Rclone can synchronize files and directories between Google Drive, Google Cloud Storage, Dropbox, Microsoft One Drive, Amazon S3, Amazon Drive, Openstack Swift / Rackspace cloud files / Memset Memstore, Hubic, Yandex Disk, and Backblaze B2.

The synchronization can be done either directly between these services, or to / from your local filesystem.

The tool is useful for backup purposes, but it can also be used as a solution for cases in which there’s no official sync client available on a certain platform (either GUI, command line, or both, like Google Drive or Microsoft One Drive on Linux).
Although, for the latter, it’s important to mention that there’s no real-time file monitoring, and the synchronization only happens on demand (you must run it manually or via a script, etc.).

Rclone features:

  • MD5/SHA1 hashes checked at all times for file integrity;
  • timestamps preserved on files;
  • partial syncs supported on a whole file basis;
  • copy mode to just copy new/changed files;
  • sync (one way) mode to make a directory identical;
  • check mode to check for file hash equality;
  • can sync to and from network, eg two different cloud accounts;
  • is available for Linux, Windows, Mac, FreeBSD, NetBSD, OpenBSD, Plan 9 and Solaris.

Besides being able to synchronize files and folders, Rclone can list remote objects, display the size of remote objects, create, remove, and delete remote objects, and dedupe (find duplicates and offers to delete all but one or rename them).

There are also options to limit the bandwidth, set the connection timeout, and much more. Check out the Rclone docs for more information.

Rclone seems pretty fast too. As an example, I did a quick test and Rclone was able to upload a 141 MB / 52 items folder to Google Drive in about 23 seconds, while Grive2 took about 64 seconds for the same folder, with a second test being roughly the same. Copying the same folder from Google Drive to Dropbox took about 40 seconds.
This can depend on multiple factors, like the Internet connection fluctuating, server load, and so on, so don’t take my word for it and give it a try.

The Rclone webpage provides extensive documentation for how to use it, including how to authenticate it with each cloud storage service, so I won’t get into details about this here. See rclone.org for more information.

Download Rclone

Download Rclone | The source code can be found on GitHub.

For how to install Rclone, either from source or using the Linux binary, see THIS page.

seen @ Korben

Read More