Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to install gitkraken on Fedora [25,26,27] + launcher icon
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/
cd /opt
# Extract the Kraken into /opt directory
tar -xvzf gitkraken-amd64.tar.gz
# you can apply ownership for a specific user too
# chown -R user:group /opt/gitkraken
# Add gitkraken to PATH
echo "export PATH=\$PATH:/opt/gitkraken" >> ~/.bashrc
source ~/.bashrc
# sudo ln -s /usr/lib64/libcurl.so.4 /opt/gitkraken/libcurl-gnutls.so.4
sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
# Create gitkraken launcher icon
# download icon here: http://img.informer.com/icons_mac/png/128/422/422255.png
# or here: https://drive.google.com/file/d/0B-3KQ_ohu-RFVkJyS1Zfa2NLSVE/view
wget http://img.informer.com/icons_mac/png/128/422/422255.png -o gitkraken-icon.png
mv gitkraken-icon.png /opt/gitkraken/
cd /usr/share/applications
cat > gitkraken.desktop <<EOL
[Desktop Entry]
Name=GitKraken
Comment=Git Flow
Exec=/opt/gitkraken/gitkraken
Icon=/opt/gitkraken/gitkraken-icon.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;Development;
EOL
# save it, and voilá!
@skovmand

This comment has been minimized.

Copy link

skovmand commented Jun 26, 2017

Thanks!

@mcabreradev

This comment has been minimized.

Copy link

mcabreradev commented Jun 28, 2017

Great!!! 👍

@t0dd

This comment has been minimized.

Copy link

t0dd commented Aug 19, 2017

Thanks! Works for Fedora 26 as well.

@mackhy

This comment has been minimized.

Copy link

mackhy commented Aug 24, 2017

So far so Good Thanks

@kbtzr

This comment has been minimized.

Copy link

kbtzr commented Sep 3, 2017

Thanks for sharing!
I've put an automated version on my fork 👍

@mjudeikis

This comment has been minimized.

Copy link

mjudeikis commented Sep 8, 2017

cp gitkraken-amd64.tar.gz /opt/ as you copy it to nonexisting folder and ending up with /opt/gitkraken/gitkraken/
makes "blind copy" broken :D
and maybe add wget image.png -o icon.png and echo to .deskptop :)

#lazyscripts

Thanks!!!

@ruffson

This comment has been minimized.

Copy link

ruffson commented Sep 19, 2017

On the current version I get the error libcurl-gnutls.so.4: cannot open shared object file: No such file or directory. Now for Ubuntu there is a package but for Fedora I cannot find anything providing the missing file. Anyone can help? I am on F26.

@rurikhero

This comment has been minimized.

Copy link

rurikhero commented Sep 22, 2017

@ruffson use this command, sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4
GitKraken How To Install

@fiskindal

This comment has been minimized.

Copy link

fiskindal commented Sep 23, 2017

[developersailor@dhcppc8 Masaüstü]$ gitkraken
Gtk-Message: Failed to load module "unity-gtk-module"
Node started time: 1506168154656
libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
Error: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:187:18)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/opt/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:11:12)
at Object. (/opt/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:1025:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/opt/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/versionScripts/v1_5_0.js:7:17)
at Object. (/opt/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/versionScripts/v1_5_0.js:298:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/opt/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/versionScripts/index.js:5:28)
at Object. (/opt/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/versionScripts/index.js:14:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (/opt/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/index.js:7:24)
at Object. (/opt/gitkraken/resources/app.asar/src/appBootstrap/upgradeScripts/index.js:43:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at App.module.exports.app.on (/opt/gitkraken/resources/app.asar/src/appBootstrap/main.js:174:5)
at emitTwo (events.js:111:20)
at App.emit (events.js:191:7)

@ruffson

This comment has been minimized.

Copy link

ruffson commented Sep 25, 2017

@rurikhero That worked, thank you so much!

@kreamweb

This comment has been minimized.

Copy link

kreamweb commented Oct 5, 2017

Thank you!!

@Cryptophobia

This comment has been minimized.

Copy link

Cryptophobia commented Oct 10, 2017

If anybody gets this error on Fedora 25 when trying to open Gitkraken:

libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
Error: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory

You need to create a symlink to curl library inside the /opt/gitkraken directory:

sudo ln -s /usr/lib64/libcurl.so.4 /opt/gitkraken/libcurl-gnutls.so.4
@orlandoaleman

This comment has been minimized.

Copy link

orlandoaleman commented Oct 13, 2017

@Cryptophobia I owe you a coffee! Thanks

@linusdan

This comment has been minimized.

Copy link

linusdan commented Nov 21, 2017

It works on fedora 27! Thanks!!!

@viguirilo

This comment has been minimized.

Copy link

viguirilo commented Dec 18, 2017

It works on Fedora 27 too! Thanks!!!

@adovbos

This comment has been minimized.

Copy link

adovbos commented Feb 16, 2018

+1 Fedora 27!!! Gratz!

@Wolpres

This comment has been minimized.

Copy link

Wolpres commented Feb 27, 2018

THANKS SOO MUCH!!!
Fedora 27

@ghost

This comment has been minimized.

Copy link

ghost commented Mar 12, 2018

Thank you very much! Fedora 27. Also adapted this to Wire App, worked as a charm!.

@vitorbritto

This comment has been minimized.

Copy link

vitorbritto commented Apr 6, 2018

Thanks! =]

@Thialyson

This comment has been minimized.

Copy link

Thialyson commented Apr 9, 2018

valeu!

@SMadani

This comment has been minimized.

Copy link

SMadani commented May 24, 2018

Not working on Fedora 28. Can't install libcurl3 either.

@antoinelpp

This comment has been minimized.

Copy link

antoinelpp commented Jul 2, 2018

Nice !

@aelkz

This comment has been minimized.

Copy link
Owner Author

aelkz commented Jul 4, 2018

@mjudeikis @ruffson
Thanks for the update! already patched with your tips.

@FrankWang1991

This comment has been minimized.

Copy link

FrankWang1991 commented Jul 8, 2018

In fedora 28.I used this.and when I input cat > gitkraken.desktop <<EOL [Desktop Entry] Name=GitKraken Comment=Git Flow Exec=/opt/gitkraken/gitkraken Icon=/opt/gitkraken/gitkraken-icon.png Terminal=false Type=Application Encoding=UTF-8 Categories=Utility;Development; EOL to terminal ,
it has a error:
bash: gitkraken.desktop: Permission denied,I don't know how to fixed this,can you help me?

@TheFlagCourier

This comment has been minimized.

Copy link

TheFlagCourier commented Jul 8, 2018

Note: Requires the libgnome-keyring package to be installed, which is not included by default in Fedora KDE. (It can be added without pulling in unnecessary dependencies, however.)

@TheFlagCourier

This comment has been minimized.

Copy link

TheFlagCourier commented Jul 8, 2018

@FrankWang1991 Just forget that part, and open it in a text editor like Nano
sudo nano /usr/share/applications/gitkraken.desktop

Paste the content with CTRL+Shift+V, ensuring that each entry is on it's own line. Remove the EOL line, and anything above [Desktop Entry]. CTRL+O > Enter/Return > CTRL+X.

@FrankWang1991

This comment has been minimized.

Copy link

FrankWang1991 commented Jul 8, 2018

@TheFlagCourier Thx a lot. I'm succeeded for this.

@T0T4R4

This comment has been minimized.

Copy link

T0T4R4 commented Jul 8, 2018

Someone from the kraken team should really read that and incorporate it somewhat...

@ctrl-alt-d

This comment has been minimized.

Copy link

ctrl-alt-d commented Jul 11, 2018

hi,

It worked nice, but no more again, now ( after move SO to Fedora release 28 ? ) restart by itself again and again:

[dani@localhost gitkraken]$ gitkraken 
Node started time: 1531313710597
state:  update-not-available
EVENT: Main process loaded at 389 ms
state:  checking-for-update
state:  update-not-available
state:  checking-for-update
EVENT: Starting initial render of foreground window at 4846 ms
EVENT: Startup triggers started at 5004 ms
state:  update-not-available
state:  checking-for-update
EVENT: Starting initial render of foreground window at 18913 ms
EVENT: Startup triggers started at 19026 ms
state:  update-not-available
state:  checking-for-update
EVENT: Starting initial render of foreground window at 30355 ms
EVENT: Startup triggers started at 30456 ms
state:  update-not-available
...
@sintongPanjaitan

This comment has been minimized.

Copy link

sintongPanjaitan commented Jul 14, 2018

fixing issue fedora 25
libcurl-gnutls.so.4: cannot open shared object file: No such file or directory with
sudo ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4

@mgdodge

This comment has been minimized.

Copy link

mgdodge commented Jul 24, 2018

I am seeing the same problem as @ctrl-alt-d with the restart loop. Already have the libcurl-gnutls.so.4 symlink in place.

If it helps track it down, I can work on a repo offline just fine - but if I reconnect and then attempt a fetch, the loop starts again.

@brunofin

This comment has been minimized.

Copy link

brunofin commented Jul 24, 2018

You can run this script DIRECTLY without needing to download and save it:

bash <(curl -s https://gist.githubusercontent.com/aelkz/17528d2f6a5db73185c7dfbd28e49d18/raw/9fd4cc15d022e26abd80daf30a492c7ec38e0721/%255BFEDORA%255D%2520gitkraken)

Taken from https://stackoverflow.com/questions/5735666/execute-bash-script-from-url

@z00mzeshitachi

This comment has been minimized.

Copy link

z00mzeshitachi commented Aug 7, 2018

CentOS 7 - Ok!

@eriksalhus

This comment has been minimized.

Copy link

eriksalhus commented Aug 17, 2018

This saved me! Thank you @aelkz!

@GrayCatCode

This comment has been minimized.

Copy link

GrayCatCode commented Aug 22, 2018

You are a gentleman and scholar ... 🥇 ... thank you for that!

@allexiusw

This comment has been minimized.

Copy link

allexiusw commented Sep 6, 2018

@ctrl-alt-d have any solutions to loop reboot when start gitkraken with one project? I have the same problem.

[allexiusw@desktop]$ gitkraken 
Node` started time: 1531313710597
 state:` update-not-available
EVENT: Main process loaded at 389 ms
state:  checking-for-update
state:  update-not-available
state:  checking-for-update
EVENT: Starting initial render of foreground window at 4846 ms
EVENT: Startup triggers started at 5004 ms
state:  update-not-available
state:  checking-for-update
EVENT: Starting initial render of foreground window at 18913 ms
EVENT: Startup triggers started at 19026 ms
state:  update-not-available
state:  checking-for-update
EVENT: Starting initial render of foreground window at 30355 ms
EVENT: Startup triggers started at 30456 ms
state:  update-not-available
@jhoward321

This comment has been minimized.

Copy link

jhoward321 commented Sep 20, 2018

@allexsv I'm having the same issue. Has anyone found any solution?

@damien122

This comment has been minimized.

Copy link

damien122 commented Oct 3, 2018

as much a I found is that this reboot problem happen only with git repos which use SSH. With HTTP repos everything works fine. As much as I could see it that the system crashes happen because of OpenSSL. IMHO it could be, because of a new version of OpenSSL.

@MannyGrill

This comment has been minimized.

Copy link

MannyGrill commented Oct 15, 2018

Hey guys! I work on the GitKraken team and we pushed out a release on October 12th that should resolve the crashing issue for repos that have SSH remotes.

On https://www.gitkraken.com/download, you will notice there are now 2 builds of GitKraken for Linux. You will want the tar.gz build for Ubuntu 18.04+.

@aelkz, can we update this line to be wget https://release.gitkraken.com/linux/gitkraken-amd64-18.04.tar.gz. Also any mention of gitkraken-amd64.tar.gz should be updated to gitkraken-amd64-18.04.tar.gz

@FrankWang1991

This comment has been minimized.

Copy link

FrankWang1991 commented Oct 16, 2018

In Fefora 28,I have an gitkraken software with old version,and icon.Now , I want upgrade my gitkraken.I have the newest gitkraken files in my 'opt' file,how I creat a new icon to start my newest gitkraken software.

@TonyArra

This comment has been minimized.

Copy link

TonyArra commented Oct 16, 2018

@MannyGrill

Edit: Actually I'm on Fedora 25
Hey Manny, I'm on Fedora 26, I just updated to the newest version of GitKraken (4.0.6), and I changed the download URL in this script to what you had suggested, but now GitKraken no longer launches. If I try to launch it from the command line, I get the following error:

libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
Error: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
at Object.Module._extensions..node (module.js:671:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:180:18)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
at Function.Module._load (module.js:496:3)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at Object. (/opt/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:12:12)
at Object. (/opt/gitkraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:1145:3)

Any ideas?

@MannyGrill

This comment has been minimized.

Copy link

MannyGrill commented Oct 17, 2018

@TonyArra

Since you are on an older build of Fedora can you try the Ubuntu 14.04+ .tar.gz build?

@ltWolfik

This comment has been minimized.

Copy link

ltWolfik commented Oct 19, 2018

I have the same issue as @TonyArra.

@ctaschereau

This comment has been minimized.

Copy link

ctaschereau commented Oct 19, 2018

Same here

@Cryptophobia

This comment has been minimized.

Copy link

Cryptophobia commented Oct 19, 2018

Please follow @MannyGrill's instructions if you are using Fedora 27, 28 or Ubuntu 18.04+

Hey guys! I work on the GitKraken team and we pushed out a release on October 12th that should resolve the crashing issue for repos that have SSH remotes.

On https://www.gitkraken.com/download, you will notice there are now 2 builds of GitKraken for Linux. You will want the tar.gz build for Ubuntu 18.04+.

@aelkz, can we update this line to be wget https://release.gitkraken.com/linux/gitkraken-amd64-18.04.tar.gz. Also any mention of gitkraken-amd64.tar.gz should be updated to gitkraken-amd64-18.04.tar.gz

Please use the above instructions if you are using newer OS with newer openssl lib versions. If the above still does not work and you are getting the error that @TonyArra is getting. Please try these two commands as they may symlink the libraries for GitKraken to work:

sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.1.0.0
sudo ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.1.0.0

@MannyGrill's instructions worked for me on Fedora 28.

@mraspaud

This comment has been minimized.

Copy link

mraspaud commented Oct 24, 2018

@MannyGrill I'm on RHEL 7, so maybe I'm off topic, in which case please tell me so! I also get the libcrypto error (previous versions of gitkraken were working fine). I tried both the tar.gz ubuntu 14 and ubuntu 18 version without luck.

Any more ideas ? Thanks for you help!

@MannyGrill

This comment has been minimized.

Copy link

MannyGrill commented Nov 5, 2018

@mraspaud, we are hopefully fixing this in v4.1.0 (I think CentOS 7 is having the same issue).

Rather than have 4 different builds of Linux we will be reverting back to 2 versions (one .tar.gz and one .deb). I will post here once we release v4.1.0 and please share if you run in to the libcrypto error.

@mraspaud

This comment has been minimized.

Copy link

mraspaud commented Nov 8, 2018

Thanks a lot @MannyGrill

@AlfonsoRReyes

This comment has been minimized.

Copy link

AlfonsoRReyes commented Nov 20, 2018

It is essential to install libgnome-keyring. Use:
sudo dnf install libgnome-keyring

And the symbolic link:
sudo ln -s /usr/lib64/libcurl.so.4 /opt/gitkraken/libcurl-gnutls.so.4

I have GitKraken running in Fedora 29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.