Hoe Cloudcross te installeren op Linux Ubuntu, Redhat & Arch

De CloudCross multi-cloudclient is een open sourceproject dat synchronisatie van bestanden en mappen op het Linux-besturingssysteem mogelijk maakt.Het kan bestanden en mappen synchroniseren tussen het lokale systeem en cloudplatforms. De gebruiker kan CloudCross vertellen welke specifieke bestanden/mappen hij wil opnemen of uitsluiten, anders dan back-uppen of synchroniseren. Het geeft een voordeel over welke bestanden/mappen op lokale of cloudopslag moeten staan.

De CloudCross is puur ontwikkeld op QT zonder gebruik van bibliotheken van derden. De cloudopslag die het ondersteunt zijn CloudMail, Google Drive, OneDrive, Dropbox en Yandex Disk.

Andere functies van ClouCross zijn onder meer de tweerichtingsconversie van documenten die zijn gemaakt in MS-Office, Libre of Open Office-formaat naar Google Docs; het beheren en aanmaken van nieuwe versies van bestanden op Google Drive, het uploaden en downloaden van bestanden naar de cloud en het aanmaken van links om bestanden te downloaden.

CloudCross kan worden geïnstalleerd op Ubuntu, Redhat, Gentoo & Arch. Hier gebruiken we Ubuntu voor andere OS-installaties. U kunt de officiële pagina voor de repository-installatie bekijken.Koppeling

Er is een CloudCross GUI beschikbaar, dus alles wat we hoeven te doen is de opdrachtregelterminal gebruiken.

De CloudCross Github-projectpagina is ook beschikbaar om het project te downloaden, mocht iemand het willen installeren of verder willen ontwikkelen.

CloudCross Multi-cloudclient voor Linux installeren en instellen

Stap 1: Toegang tot uw Ubuntu-systeem

Stap 2: Open de opdrachtterminal (CTRL+ALT+T)

Stap 3: CloudCross is afhankelijk van qtbase5, dus we moeten het samen met andere afhankelijkheden installeren.

Voer de onderstaande opdracht uit voor de installatie, afhankelijk van uw platform:

Voor Ubuntu/Debian/Linux Mint

sudo apt-get install build-essential qt5-default qtbase5-dev qt5-qmake libcurl4-openssl-dev

Voor RPM Packager (Redhat, CentOS, Fedora, Alt Linux)

yum groupinstall 'Development Tools'

yum install qt5-qtbase qt5-qtbase-devel curl-devel

Voor Arch Linux

pacman -S base-devel qt5-base curl

Stap 4: Download CloudCross voor Redhat, CentOS, Fedora, Alt Linux, Ubuntu/Debian/Linux Mint of een andere Linux-versie.

Het CloudCross-project is beschikbaar opGithub. Hier is delink om te downloadenhet gecomprimeerde ZIP-bestand van CloudCross.

Stap 5: Ga na het downloaden naar de map Downloads met behulp van onderstaande opdracht.

cd Downloads

Stap 6: In de Downloads ziet u het ZIP-bestand met de naam CloudCross-mastert.zip

Gebruik deze opdracht om de gecomprimeerde map van CloudCross uit te pakken:

unzip CloudCross-master.zip

Stap 7: Ga naar de Unpack- of uitgepakte map van CloudCross.

Het commando is

cd CloudCross-master

Stap 8: Maak een build-directory waarin we CloudCross compileren.

Gebruik hiervoor de onderstaande opdracht:

mkdir build

Stap 9: Ga naar de build-directory

cd build

Stap 10: Maak CloudCross gereed voor compilatie.

Gebruik de onderstaande opdrachten:

sudo apt-get install qmake
qmake ../CloudCross.pro
make

De uitvoer van de bovenstaande opdracht:

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

Stap 12: Voer na de bovenstaande opdracht de onderstaande twee opdrachten uit:

sudo cp "./ccross-app/ccross" "/usr/bin"
sudo cp "./ccross-curl-executor/ccross-curl" "/usr/bin"

Stap 11: Nu verbinden we verschillende clouddiensten met CloudCross.

Zoals we weten is de CloudCross een multi-cloud client, dus we kunnen het gebruiken om verbinding te maken met bijvoorbeeld OneDrive, Google Drive, Dropbox of Yandex Disk of Cloud Mail.ru. We hoeven alleen maar de Command terminal te openen en dekruis -aoptie samen met een syntaxis –provider [naam].

Zie dit voorbeeld. Stel dat we Google Drive willen verbinden, zodat de opdracht

ccross -a --provider google

Wanneer u de cloudprovider toevoegt, wordt er een link weergegeven als uitvoer in uw opdrachtterminal. Kopieer deze en open deze in de browser.

Uitvoerlink in ons geval

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&ltmpl=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.


Stap 12: Open de link in de browser

Als we de link in de browser openen, zal deze vragen om de inloggegevens om in te loggen en namens ons toegang te krijgen tot de Cloud-service. Voer de gebruikersnaam en het wachtwoord in en geef CloudCross vervolgens toegang tot uw Cloud-drive.

Stap 13: Hoe synchroniseer je een map tussen PC en Cloud Drive met behulp van CloudCross

Nu om te beginnen met het synchroniseren van de map die op uw PC staat met cloud drive met behulp van CloudCross. Ga eerst naar die directory en voer een opdracht uitkruiszonder enige optie. Het zal automatisch alles wat zich in die map bevindt uploaden/downloaden naar Cloud. Als u meerdere cloudservices gebruikt, moeten we de servicenaam opgeven na dekruiscommando.

Stap 14: Voor meer hulp met de opdrachtsyntaxis voor CloudCross kunt u het volgende gebruiken:

ccross --help

U kunt ook de officiële pagina voor het gebruik van opdrachten van CloudCross bekijken: Hier is depagina link.

Uitvoer van de helpopdracht:

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$

Op deze manier kunnen we toegang krijgen tot de Google Drive op Linux, inclusief andere cloudservices voor synchronisatie met behulp van CloudCross multi-cloud client. Onthoud de CloudCross GUI-interface die beschikbaar is, het is puur een commando-gebaseerde synchronisatietool voor Linux-platforms.

Andere nuttige bronnen:

Related Posts