Create a gist now

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.

Show comment
Hide comment
@skovmand

skovmand commented Jun 26, 2017

Thanks!

@mcabreradev

This comment has been minimized.

Show comment
Hide comment
@mcabreradev

mcabreradev Jun 28, 2017

Great!!! 👍

mcabreradev commented Jun 28, 2017

Great!!! 👍

@t0dd

This comment has been minimized.

Show comment
Hide comment
@t0dd

t0dd Aug 19, 2017

Thanks! Works for Fedora 26 as well.

t0dd commented Aug 19, 2017

Thanks! Works for Fedora 26 as well.

@mackhy

This comment has been minimized.

Show comment
Hide comment
@mackhy

mackhy Aug 24, 2017

So far so Good Thanks

mackhy commented Aug 24, 2017

So far so Good Thanks

@cvsguimaraes

This comment has been minimized.

Show comment
Hide comment
@cvsguimaraes

cvsguimaraes Sep 3, 2017

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

cvsguimaraes commented Sep 3, 2017

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

@mjudeikis

This comment has been minimized.

Show comment
Hide comment
@mjudeikis

mjudeikis 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!!!

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.

Show comment
Hide comment
@ruffson

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

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.

Show comment
Hide comment
@rurikhero

rurikhero 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

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.

Show comment
Hide comment
@fiskindal

fiskindal 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)

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.

Show comment
Hide comment
@ruffson

ruffson Sep 25, 2017

@rurikhero That worked, thank you so much!

ruffson commented Sep 25, 2017

@rurikhero That worked, thank you so much!

@kreamweb

This comment has been minimized.

Show comment
Hide comment
@kreamweb

kreamweb Oct 5, 2017

Thank you!!

kreamweb commented Oct 5, 2017

Thank you!!

@Cryptophobia

This comment has been minimized.

Show comment
Hide comment
@Cryptophobia

Cryptophobia 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

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.

Show comment
Hide comment
@orlandoaleman

orlandoaleman Oct 13, 2017

@Cryptophobia I owe you a coffee! Thanks

orlandoaleman commented Oct 13, 2017

@Cryptophobia I owe you a coffee! Thanks

@linusdan

This comment has been minimized.

Show comment
Hide comment
@linusdan

linusdan Nov 21, 2017

It works on fedora 27! Thanks!!!

linusdan commented Nov 21, 2017

It works on fedora 27! Thanks!!!

@viguirilo

This comment has been minimized.

Show comment
Hide comment
@viguirilo

viguirilo Dec 18, 2017

It works on Fedora 27 too! Thanks!!!

viguirilo commented Dec 18, 2017

It works on Fedora 27 too! Thanks!!!

@adovbos

This comment has been minimized.

Show comment
Hide comment
@adovbos

adovbos Feb 16, 2018

+1 Fedora 27!!! Gratz!

adovbos commented Feb 16, 2018

+1 Fedora 27!!! Gratz!

@Wolpres

This comment has been minimized.

Show comment
Hide comment
@Wolpres

Wolpres Feb 27, 2018

THANKS SOO MUCH!!!
Fedora 27

Wolpres commented Feb 27, 2018

THANKS SOO MUCH!!!
Fedora 27

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Mar 12, 2018

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

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.

Show comment
Hide comment
@vitorbritto

vitorbritto commented Apr 6, 2018

Thanks! =]

@Thialyson

This comment has been minimized.

Show comment
Hide comment
@Thialyson

Thialyson commented Apr 9, 2018

valeu!

@SMadani

This comment has been minimized.

Show comment
Hide comment
@SMadani

SMadani May 24, 2018

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

SMadani commented May 24, 2018

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

@antoinelpp

This comment has been minimized.

Show comment
Hide comment
@antoinelpp

antoinelpp commented Jul 2, 2018

Nice !

@aelkz

This comment has been minimized.

Show comment
Hide comment
@aelkz

aelkz Jul 4, 2018

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

Owner

aelkz commented Jul 4, 2018

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

@FrankWang1991

This comment has been minimized.

Show comment
Hide comment
@FrankWang1991

FrankWang1991 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?

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.

Show comment
Hide comment
@TheFlagCourier

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

Show comment
Hide comment
@TheFlagCourier

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

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.

Show comment
Hide comment
@FrankWang1991

FrankWang1991 Jul 8, 2018

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

FrankWang1991 commented Jul 8, 2018

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

@T0T4R4

This comment has been minimized.

Show comment
Hide comment
@T0T4R4

T0T4R4 Jul 8, 2018

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

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.

Show comment
Hide comment
@ctrl-alt-d

ctrl-alt-d 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
...

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.

Show comment
Hide comment
@sintongPanjaitan

sintongPanjaitan 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

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.

Show comment
Hide comment
@mgdodge

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

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.

Show comment
Hide comment
@brunofin

brunofin 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

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.

Show comment
Hide comment
@z00mzeshitachi

z00mzeshitachi Aug 7, 2018

CentOS 7 - Ok!

z00mzeshitachi commented Aug 7, 2018

CentOS 7 - Ok!

@eriksalhus

This comment has been minimized.

Show comment
Hide comment
@eriksalhus

eriksalhus Aug 17, 2018

This saved me! Thank you @aelkz!

eriksalhus commented Aug 17, 2018

This saved me! Thank you @aelkz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment