Skip to content

Instantly share code, notes, and snippets.

@pythoninthegrass
Created August 9, 2016 09:28
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pythoninthegrass/8adf67329922bbfca606523eb807c6bb to your computer and use it in GitHub Desktop.
Save pythoninthegrass/8adf67329922bbfca606523eb807c6bb to your computer and use it in GitHub Desktop.
Install GitKraken on Fedora 24
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# Extract the Kraken
tar -xvzf gitkraken-amd64.tar.gz
# Move the Kraken
sudo rsync -va --delete-after GitKraken/ /opt/GitKraken/
# Add the Kraken to PATH
echo "export PATH=\$PATH:/opt/GitKraken" >> ~/.bashrc
source ~/.bashrc
## Cinnamon Menu
# Right click Menu > Configure... > Open the menu editor > Applications
# Programming > New Item
# Name: GitKraken
# Command: /opt/GitKraken/gitkraken %U
# Select a suitable icon (e.g., Numix-Circle under /usr/share/icons/Numix-Circle/scalable/apps)
# OK
@Findarato
Copy link

Findarato commented Nov 14, 2016

You might want to make a few adjustments to the script. I have included what I have done below.

Mainly a few clean up paths to ensure that you do not have a bunch of .tar.gz.### files and to ensure that you always have the most up to date version. Wonderful script though

#Clean up rm -f gitkraken-amd64.tar.gz rm -rf ./gitkraken/

Also that seems to not delete anything after 🙄
sudo rsync -va --delete-after gitkraken/ /opt/GitKraken/

@danykeep
Copy link

danykeep commented Nov 29, 2016

It's not working:

[improoviz@improovizNote Downloads]$ sudo rsync -va --delete-after GitKraken/ /opt/GitKraken/
[sudo] password for improoviz: 
building file list ... 
rsync: change_dir "/home/improoviz/Downloads//GitKraken" failed: No such file or directory (2)
done
created directory /opt/GitKraken

sent 20 bytes  received 48 bytes  136.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

Use next:
sudo rsync -va --delete-after $PWD/gitkraken/ /opt/GitKraken/

@KyLeggiero
Copy link

I also get
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

@kcmazie
Copy link

kcmazie commented Sep 29, 2017

It's not working because the folder created by the tar extract is all lower case.

Change this:

# Move the Kraken
sudo rsync -va --delete-after GitKraken/ /opt/GitKraken/

To this:

# Move the Kraken
sudo rsync -va --delete-after gitkraken/ /opt/GitKraken/

@NeftaliAcosta
Copy link

Not work in centos 7 ¿Why? :(

[root@localhost Descargas]# /opt/GitKraken/gitkraken %U
Node started time: 1543786930722
libcrypto.so.1.0.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
Error: libcrypto.so.1.0.0: no se puede abrir el fichero del objeto compartido: No existe el fichero o el directorio
    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.<anonymous> (/opt/GitKraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:12:12)
    at Object.<anonymous> (/opt/GitKraken/resources/app.asar/node_modules/nodegit/dist/nodegit.js:1145:3)

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