Skip to content

Instantly share code, notes, and snippets.

@aelkz
Last active November 14, 2023 05:50
Show Gist options
  • Save aelkz/17528d2f6a5db73185c7dfbd28e49d18 to your computer and use it in GitHub Desktop.
Save aelkz/17528d2f6a5db73185c7dfbd28e49d18 to your computer and use it in GitHub Desktop.
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á!
@mgdodge
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
Copy link

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

CentOS 7 - Ok!

@eriksalhus
Copy link

This saved me! Thank you @aelkz!

@GrayCatCode
Copy link

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

@allexiusw
Copy link

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

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

@damien122
Copy link

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

@FrankWang117
Copy link

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

@TonyArra

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

@ltWolfik
Copy link

I have the same issue as @TonyArra.

@ctaschereau
Copy link

Same here

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

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

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

mraspaud commented Nov 8, 2018

Thanks a lot @MannyGrill

@AlfonsoRReyes
Copy link

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