grive2 icon indicating copy to clipboard operation
grive2 copied to clipboard

Feature : an easy way to install on Linux (flatpak, snap,PPA)

Open hubyhuby opened this issue 3 years ago • 9 comments

I am willing o update to the latest version released 7 days ago. Since it would make grive2 work again. But the following PPA doesn t seem to work anymore : https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8

It would be very nice to have a maintained easy way to install for endusers, like a package either : flatpak, snap, appimage, .deb , or PPA...

hubyhuby avatar Nov 16 '22 05:11 hubyhuby

I know it looks daunting and it definitely isn't as easy as installing a flatpak, but it wasn't very difficult to install Grive2.

First, go to the terminal and run the command to install the dependencies (just copy the command on the installation instructions).

On the "Code" page, click on the green button "< > Code" and choose "Download as zip". Extract the zipped file to the location of your preference (in my case, $/Downloads/Grive2).

Open the terminal and use the "cd" command to move to the folder in which you stored the downloaded files (in my case, "cd Downloads" and then "cd Grive2"). Once you find yourself in the right folder, just run the command dpkg-buildpackage -j4 --no-sign, as indicated in installation instructions.

After that you just wait for the scripts to run. When they're done you should get a .deb file along with some other files whose purpose I don't know.

jvmachados avatar Nov 27 '22 18:11 jvmachados

Thanks @jvmachados for the instruction. The thing is that I first used launchpad PPA...now it doesn t work anymore... I am afraid it will conflict with the PPA install.... I have one of my drive that s still work with the previous version....google didn t ban people already logedin apparentely. So I am afraid it will fail... So for now I keep it like this

hubyhuby avatar Nov 28 '22 08:11 hubyhuby

Trying to compile on Ubuntu 22 following tjis procedure : http://yourcmc.ru/wiki/Grive2#Installation On ubuntu library are different image

Then I get this error : image

EDIT: Did this apt-get install libcurl4-openssl-dev Now I have this image

I am not really a C programmer... I am just wanting to use grive 2 :( then image

Now this sudo apt-get install libboost-all-dev

I have downloaded about 1GB of "dev" package (the equivalent of a good old windows 7) and still no compilation.... I think I will live it here...hopping for an grive2 installer up to date :( image

hubyhuby avatar Dec 28 '22 08:12 hubyhuby

install dependencies

sudo apt-get install git cmake build-essential libgcrypt20-dev libyajl-dev \
    libboost-all-dev libcurl4-openssl-dev libexpat1-dev libcppunit-dev binutils-dev \
    debhelper zlib1g-dev dpkg-dev pkg-config

clone and build

git clone https://github.com/vitalif/grive2.git
cd grive2
mkdir build
cmake ..
make -j4 install

jumoog avatar Dec 30 '22 17:12 jumoog

inside the grive2 folder you can run pkg-buildpackage -j4 --no-sign. That builds the deb file

jumoog avatar Dec 30 '22 17:12 jumoog

@jumoog thanks thats working and i got grive installed. Im using grive since years and now had to switch the server after 2 years. I already have the google api key etc from before but cant use it and have to run grive -a again. I go to the site and accept everything but then i land on a localhost page ?

http://localhost:44089/auth?code=4/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&scope=https://www.googleapis.com/auth/drive

Why does this happen ? I trief with Chrome and Firefox its not working as im always getting redirected to this localhost page but everytime with a different port.

//EDIT: Okay i saw that you have to open that url on the PC youre trying to use grive. Thats pretty bad if you dont have a GUI as im using grive on my VPS to save my Wordpress and mySQL Backups. But opening the url youre getting redirected to with

wget http://localhost:44089/auth?code=4/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&scope=https://www.googleapis.com/auth/drive

is working and after that i could use grive normally and didnt even had to pass the id and secret i just can run

grive -s Backups_Website

Thx :)

romestylez avatar Dec 31 '22 10:12 romestylez

Oura it works @jumoog

image

little modification

git clone https://github.com/vitalif/grive2.git cd grive2 mkdir build cd build cmake .. sudo make -j4 install

SH file untested here : https://github.com/hubyhuby/linux-scripts/blob/main/grive2_compile_install.sh

hubyhuby avatar Jan 04 '23 15:01 hubyhuby

Same here. Wiki instructions do not work, github instructions work. nevertheless PPA support would be great especially for auto update

UsefulVid avatar Jan 31 '23 11:01 UsefulVid

https://github.com/vitalif/grive2/issues/375 has instructuons how to build an appimage... I wonder if this could be adapted into a makefile/github action workflow and uploaded to a release...?

jankatins avatar Jan 31 '23 11:01 jankatins