Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hubyhuby opened this issue Nov 16, 2022 · 9 comments
Open

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

hubyhuby opened this issue Nov 16, 2022 · 9 comments

Comments

@hubyhuby
Copy link

hubyhuby commented Nov 16, 2022

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...

@jvmachados
Copy link

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.

@hubyhuby
Copy link
Author

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
Copy link
Author

hubyhuby commented Dec 28, 2022

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

@jumoog
Copy link

jumoog commented Dec 30, 2022

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
Copy link

jumoog commented Dec 30, 2022

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

@romestylez
Copy link

romestylez commented Dec 31, 2022

@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 :)

@hubyhuby
Copy link
Author

hubyhuby commented Jan 4, 2023

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

@UsefulVid
Copy link

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

@jankatins
Copy link

#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...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants