Der CloudCross Multi-Cloud-Client ist ein Open-Source-Projekt, das die Synchronisierung von Dateien und Ordnern auf dem Linux-Betriebssystem ermöglichen soll.Es kann Dateien und Ordner zwischen dem lokalen System und Cloud-Plattformen synchronisieren. Der Benutzer kann CloudCross mitteilen, welche Dateien/Ordner er einschließen oder ausschließen möchte, unabhängig davon, ob er sie sichert oder synchronisiert. Es bietet einen Vorteil bei der Entscheidung, welche Dateien/Ordner lokal oder in der Cloud gespeichert werden sollen.
CloudCross wurde ausschließlich auf QT entwickelt, ohne Verwendung von Drittanbieterbibliotheken. Die unterstützten Cloud-Speicher sind CloudMail, Google Drive, OneDrive, Dropbox und Yandex Disk.
Zu den weiteren Funktionen von ClouCross gehören die bidirektionale Konvertierung von Dokumenten, die im MS-Office-, Libre- und Open Office-Format erstellt wurden, in Google Docs, das Verwalten und Erstellen neuer Dateiversionen auf Google Drive, das Hoch- und Herunterladen von Dateien in die Cloud und das Erstellen von Links zum Herunterladen von Dateien.
CloudCross kann auf Ubuntu, Redhat, Gentoo und Arch installiert werden. Hier verwenden wir Ubuntu. Für die Installation anderer Betriebssysteme können Sie die offizielle Seite zur Repository-Installation aufrufen.Link
Es ist eine CloudCross-GUI verfügbar, sodass wir nur das Befehlszeilenterminal verwenden müssen.
Auf der Github-Projektseite von CloudCross steht das Projekt auch zum Herunterladen zur Verfügung, falls es jemand installieren oder weiterentwickeln möchte.
Installieren und Einrichten des CloudCross Multi-Cloud-Clients für Linux
Schritt 1: Greifen Sie auf Ihr Ubuntu-System zu
Schritt 2: Öffnen Sie das Eingabeaufforderungsterminal (STRG+ALT+T)
Schritt 3: CloudCross ist von qtbase5 abhängig, daher müssen wir es zusammen mit anderen Abhängigkeiten installieren.
Führen Sie für die Installation je nach Plattform den folgenden Befehl aus:
Für Ubuntu/Debian/Linux Mint
sudo apt-get install build-essential qt5-default qtbase5-dev qt5-qmake libcurl4-openssl-dev
Für RPM Packager (Redhat, CentOS, Fedora, Alt Linux)
yum groupinstall 'Development Tools' yum install qt5-qtbase qt5-qtbase-devel curl-devel
Für Arch Linux
pacman -S base-devel qt5-base curl
Schritt 4: Laden Sie CloudCross für Redhat, CentOS, Fedora, Alt Linux, Ubuntu/Debian/Linux Mint oder ein anderes Linux herunter.
Das CloudCross-Projekt ist verfügbar aufGithub. Hier ist dieLink zum Downloaddie komprimierte ZIP-Datei von CloudCross.
Schritt 5: Wechseln Sie nach dem Herunterladen mit dem folgenden Befehl zum Download-Verzeichnis.
cd Downloads
Schritt 6: In den Downloads sehen Sie die ZIP-Datei mit dem Namen CloudCross-mastert.zip
Verwenden Sie diesen Befehl, um den komprimierten CloudCross-Ordner zu entpacken:
unzip CloudCross-master.zip
Schritt 7: Gehen Sie in den Entpack- oder extrahierten Ordner von CloudCross.
Der Befehl lautet
cd CloudCross-master
Schritt 8: Erstellen Sie ein Build-Verzeichnis, in dem wir CloudCross kompilieren.
Verwenden Sie hierzu den folgenden Befehl:
mkdir build
Schritt 9: In das Build-Verzeichnis einsteigen
cd build
Schritt 10: Machen Sie CloudCross bereit für die Kompilierung.
Verwenden Sie die folgenden Befehle:
sudo apt-get install qmake qmake ../CloudCross.pro make
Die Ausgabe des obigen Befehls:
h2s@h2s-VirtualBox:~/Downloads/CloudCross-master$ cd build h2s@h2s-VirtualBox:~/Downloads/CloudCross-master/build$ qmake ../CloudCross.pro h2s@h2s-VirtualBox:~/Downloads/CloudCross-master/build$ make cd MSHttpRequest/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/h2s/Downloads/CloudCross-master/MSHttpRequest/MSHttpRequest.pro ) && make -f Makefile make[1]: Entering directory '/home/h2s/Downloads/CloudCross-master/build/MSHttpRequest' g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../MSHttpRequest -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs /linux-g++ -o main.o ../../MSHttpRequest/main.cpp g++ -c -pipe -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../MSHttpRequest -I. -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o mshttprequest.o ../../MSHttpRequest/mshttprequest.cpp
Schritt 12: Führen Sie nach dem obigen Befehl die folgenden beiden Befehle aus:
sudo cp "./ccross-app/ccross" "/usr/bin" sudo cp "./ccross-curl-executor/ccross-curl" "/usr/bin"
Schritt 11: Jetzt verbinden wir verschiedene Cloud-Dienste mit CloudCross.
Wie wir wissen, ist CloudCross ein Multi-Cloud-Client, sodass wir ihn mit Verbindungen wie OneDrive, Google Drive, Dropbox oder Yandex Disk von Cloud Mail.ru verwenden können. Wir müssen nur das Befehlsterminal öffnen und denccross -aOption zusammen mit der Syntax –provider [Name].
Sehen Sie sich dieses Beispiel an. Angenommen, wir möchten Google Drive verbinden, dann lautet der Befehl
ccross -a --provider google
Wenn Sie den Cloud-Anbieter hinzufügen, wird in Ihrem Befehlsterminal ein Link als Ausgabe angezeigt. Kopieren Sie diesen und öffnen Sie ihn im Browser.
Ausgabelink in unserem Fall
h2s@h2s-VirtualBox:~/Downloads/CloudCross-master/build$ ccross -a --provider google -------------------------------------Please go to this URL and confirm application credentialshttps://accounts.google.com /ServiceLogin?passive=1209600&continue =https://accounts.google.com/o/oauth2/v2/auth?response_type%3Dcode%26redirect_uri%3D https://127.0.0.1:1973 %26client_id%3D834415955748-oq0p2m5dro2bvh3bu0o5bp19ok3qrs3f .apps.googleusercontent.com%26access_type%3Doffline%26scope%3D https://www.googleapis.com/auth/drive%2Bhttps://www.googleapis.com/auth/userinfo. email%2Bhttps://www.googleapis.com/auth/userinfo.profile%2Bhttps://docs.google.com/ feeds/%2Bhttps://docs.googleusercontent.com/%2Bhttps://spreadsheets. google.com/feeds/%26state%3D1%26approval_prompt%3Dforce%26from_login%3D1%26as%3DDz3gIG vQ634pCd0Ts2WqSA&followup=https://accounts.google.com/o/oauth2/v2/auth?response_type% 3Dcode%26redirect_uri%3Dhttps://127.0.0.1:1973%26client_id%3D834415955748-oq0p2m5dr o2bvh3bu0o5bp19ok3qrs3f.apps.googleusercontent.com%26access_type%3Doffline%26scope% 3Dhttps://www.googleapis.com/auth/drive%2Bhttps://www.googleapis.com/auth/userinfo .email%2Bhttps://www.googleapis.com/auth/userinfo.profile%2Bhttps://docs.google.com /feeds/%2Bhttps://docs.googleusercontent.com/%2Bhttps://spreadsheets.google.com /feeds/%26state%3D1%26approval_prompt%3Dforce%26from_login%3D1%26as%3DDz3gIGv Q634pCd0Ts2WqSA<mpl=nosignup&oauth=1&sarp=1&scc=1 Token was successfully accepted and saved. To start working with the program run ccross without any options for start full synchronize.
Schritt 12: Link im Browser öffnen
Wenn wir den Link im Browser öffnen, werden wir nach den Anmeldeinformationen gefragt, um uns anzumelden und in unserem Namen auf den Cloud-Dienst zuzugreifen. Geben Sie den Benutzernamen und das Passwort ein und erlauben Sie CloudCross dann, auf Ihr Cloud-Laufwerk zuzugreifen.
Schritt 13: So synchronisieren Sie einen Ordner zwischen PC und Cloud Drive mit CloudCross
Starten Sie nun die Synchronisierung des Ordners auf Ihrem PC mit dem Cloud-Laufwerk mithilfe von CloudCross. Gehen Sie zunächst in dieses Verzeichnis und führen Sie einen Befehl ausKreuzohne Option. Es wird automatisch alles, was sich in diesem Ordner befindet, in die Cloud hochgeladen/heruntergeladen. Wenn Sie mehrere Cloud-Dienste verwenden, müssen wir den Dienstnamen nach dem angebenKreuzBefehl.
Schritt 14: Weitere Hilfe zur Befehlssyntax für CloudCross erhalten Sie unter:
ccross --help
Sie können auch die offizielle Befehlsverwendungsseite von CloudCross sehen: Hier ist dieSeitenlink.
Ausgabe des Hilfebefehls:
h2s@h2s-VirtualBox:~/Downloads$ ccross --help CloudCross v1.4.4 for Linux is a opensource program for sync local files with a many cloud storages. Options: -h [ --help ] Produce help message -v [ --version ] Display CloudCross version -a [ --auth ] Request authorization token -p [ --path ] arg Path to sync directory --dry-run Only detect which files need to be uploaded/downloaded, without actually performing them. -s [ --list ] Print remote cloud file list --use-include Use .include file. Without this option by default use .exclude file. If these files does'nt exists, they are ignore --prefer arg Define sync strategy. It can be a one of "remote" or "local". By default it's "local" --no-hidden Not sync hidden files and folders --no-new-rev Do not create new revisions of files, overwrite their instead --convert-doc Convert office document to Google Doc format when upload and convert him back when download --force arg Forcing upload or download files. It can be a one of "upload" or "download". This option overrides --prefer option value. --provider arg Set cloud provider for current sync operation. On this moment this option can be a "google", "yandex", "mailru", "onedrive" or "dropbox". Default provider is Google Drive --login arg Set login for access to cloud provider. Now it used only for Cloud Mail.ru --password arg Set password for access to cloud provider. Now it used only for Cloud Mail.ru --http-proxy arg Use http proxy server for connection to cloud provider. <arg> must be in a ip_address_or_host_name:port_number format --socks5-proxy arg Use socks5 proxy server for connection to cloud provider. <arg> must be in a ip_address_or_host_name:port_number format --cloud-space Showing total and free space of cloud --filter-type Filter type for .include and .exclude files. Can be set to "regexp" or "wildcard". Ignored if it set in files --single-thread Run as single threaded --low-memory Reduce memory utilization during reading a remote file list. Using of this option may do increase of synchronization time --empty-trash Delete all files from cloud trash bin. --no-sync If this option is set synchronization mechanism will be disabled and remote file list not be a readed. Local files will be uploaded without consideration of existence of this files on remote. Use with carefully h2s@h2s-VirtualBox:~/Downloads$
Auf diese Weise können wir unter Linux auf Google Drive zugreifen und mithilfe des CloudCross-Multi-Cloud-Clients andere Cloud-Dienste zur Synchronisierung nutzen. Denken Sie daran, dass die CloudCross-GUI-Schnittstelle verfügbar ist. Es handelt sich lediglich um ein Befehlsbasis-Synchronisierungstool für Linux-Plattformen.
Weitere nützliche Ressourcen: