Volutions - ID | News | Gadget | Tutorial | Freeware | Template | Etc.: git
Showing posts with label git. Show all posts
Showing posts with label git. Show all posts

Install Sparkleshare In Ubuntu Via PPA (Open Source Cloud Sync - Dropbox Alternative)

Sparkleshare is a tool to synchronize your files in the cloud - like Dropbox or SpiderOak - but unlike these, Sparkleshare is open source and allows you to use your own server. Sparkleshare uses GIT so if you delete/modify some files by accident, you can easily revert the changes. You can use it with your own server, GitHub or Gitorious. In this post I'll only cover setting up Sparkleshare with GitHub.

Sparkleshare is still in development and until now you had to compile it yourself but I've recently came across a PPA that provides Sparkleshare (Client) GIT snapshots so you can easily install it in Ubuntu 10.10 Maverick Meerkat.


Install Sparkleshare (Client) in Ubuntu via PPA


To add the PPA and install Sparkleshare in Ubuntu 10.10 Maverick Meerkat, use the commands below:
sudo add-apt-repository ppa:nuovodna/nuovodna-stuff
sudo apt-get update
sudo apt-get install sparkleshare

Warning: this PPA also provides some other packages so use it at your own risk! It is better to add the PPA if you plan on using Sparkleshare so you'll receive updates but if you just want to try it out, you can download the .deb below:


Setting up Sparkleshare with GitHub


Setting up Sparkleshare with your own server is a bit complicated so in this post I'll only cover synchronizing your files with GitHub. For using Sparkleshare with your own server, see: Set Up Sparkleshare With Your Own Server.

GitHub is a web-based hosting service for projects that use the Git revision control system but with Sparkleshare, we'll use it as our own cloud server to which the files will be synchronized. You can use Sparkleshare (w/ GitHub) to back up files in the cloud, easily share files with others, synchronize your local code with GitHub and so on. All this also applies to Gitorious too, but in this post I'll only cover setting up Sparkleshare with GitHub.


1. Get a GitHub account (it's free!).

2. Create a repository @ GitHub: click "Dashboard", then click "New Repository". Your repository name will later be referred to as your folder in Sparkleshare.


3. Start Sparkleshare, enter your name and email and click next. Then stop (do not go to the next step)! Now open Nautilus and go to /home/YOUR_USERNAME/.config/sparkleshare

Here, you'll find a file called "sparkleshare.YOUR_EMAIL.key.pub". Open this file in a text editor and copy its contents.

4. On the GitHub site go to Account Settings > SSH Public keys, click on "Add another public key":

Github SSH key

Here, give your key a title (like SparkleShare-home or whatever you want) and in the "key" field, paste the .pub file contents (which you've copied under step 3).

5. Now return to the Sparkleshare window:

Sparkleshare setup

Select "GitHub" and under "Folder name" enter: "your_github_username/repository" (without the quotes), where "your_github_username" is your GitHub username and "repository" is the name of the GitHub repository you've created under step 2.


Sparkleshare

Sparkeshare Ubuntu screenshot

Now you should have a notification area icon for Sparkleshare and a folder called "Sparkleshare/your_repository_name" in your home directory. Copy files to this folder and they will get synchronized with GitHub.

Important: do not place any private files into the Sparkleshare folder as these files can be seen by anyone if you have a free account. For a paid account, you can get more space, private repositories, private collaborators, etc.


For help setting up Sparkleshare with Gitorious, see the Sparkleshare documentation.

Update: for using Sparkleshare with your own server, see: Set Up Sparkleshare With Your Own Server

RabbitVCS: The Perfect TortoiseSVN Alternative For Linux, Now With GIT Integration As A Plus

RabbitVCS screenshot

Sure, you can always work with SVN repositories from the command line but sometimes a graphical SVN client is more convenient - for example you can use it to check which files are not added to the repository yet. And when it comes to graphical SVN clients, I'm sure most of you will agree when I say that RabbitVCS, a "set of graphical tools written to provide simple and straightforward access to the version control systems you use" inspired by the famous TortoiseSVN, is probably the best such tool for Linux.


RabbitVCS gedit
(RabbitVCS Gedit plugin)


Not just for SVN / Nautilus


RabbitVCS has most of the TortoiseSVN features and nicely integrates into the GNOME desktop thanks to a Nautilus Extension and a Gedit plugin for easy access to everything you need. Further more, even though its main page doesn't mention this, RabbitVCS is not just for Nautilus / SVN! It works with GIT (starting with version 0.14, released on January 4th, 2011) too and it also has a Thunar plugin so you can use it under XFCE too.



RabbitVCS


Those of you who haven't tried Rabbitvcs lately will be glad to know that since version 0.14.1.1 things became quite stable and Nautilus now stays responsive while the plugin checks for changes in the background. In fact, the v0.14 release cycle ended and the RabbitVCS developer posted a roadmap for the v0.15 cycle which includes: recursive/async status monitor for Nautilus, RabbitVCS menu items and emblems to the Gedit file browser plugin and refactor VCS abstraction code to make it easier to add new VCSs and UIs. He needs some help with all this so if you can, help him out!


Install RabbitVCS in Ubuntu

1. Add the RabbitVCS Ubuntu PPA:

- for Ubuntu Karmic and newer (Lucid, Maverick, etc.):
sudo add-apt-repository ppa:rabbitvcs/ppa && sudo apt-get update

- For Ubuntu Hardy or Jaunty:
echo "deb http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu $(lsb_release -sc) main ## RabbitVCS PPA" | sudo tee -a /etc/apt/sources.list && sudo apt-get update

2. Install RabbitVCS:

- For Nautilus:
sudo apt-get install rabbitvcs-core rabbitvcs-nautilus rabbitvcs-cli

- For Thunar:
sudo apt-get install rabbitvcs-core rabbitvcs-cli rabbitvcs-thunar

Once installed, restart Nautilus / Thunar (for Nautilus, type "nautilus -q" in a terminal).


Optional: If you also want to install the RabbitVCS Gedit extension, use the following command:
sudo apt-get install rabbitvcs-gedit


And an extra tip: by default, GNOME (starting with version 2.28) doesn't show icons in the menus which is something RabbitVCS could really use (both in Nautilus and Gedit). To enable icons in the menus, run the following command in a terminal:
gconftool-2 --set /desktop/gnome/interface/menus_have_icons --type bool true


If you're not using Ubuntu, download RabbitVCS from HERE.


Most of the info in this post was sent by WebUpd8 reader Sander (many thanks!)
 
Support By Blogger