Powered By

Powered by Blogger

Tampilkan postingan dengan label git. Tampilkan semua postingan
Tampilkan postingan dengan label git. Tampilkan semua postingan

Kamis, 10 Maret 2011

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

Selasa, 18 Januari 2011

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

Minggu, 26 September 2010

Meet SparkleShare, An Open Source Dropbox Alternative [Ubuntu Installation Instructions]

SparkleShare

SparkleShare is a syncing tool similar to Dropbox but which allows you to use your own server (or some already existing servers). It uses GIT so if you delete/modify some files by accident, you can easily revert the changes.

The good

SparkleShare has quite a few interesting features / reasons to use it. Obviously the most important one is that you can use it with your own server. Also, it will be available for Linux, Windows and Mac OSX.

If you don't want to set up your own server, SparkleShare can be used with Github and Gitorious. These are project hosting solutions that provide free space if you work on Free and Open Source Software projects. Note that using these 2 services, all your synced files will be public!


The bad

- It uses Mono. That's an enough reason for a lot of people not to use it.

- Currently, hosting your own SparkleServer is a bit difficult.

- The files hosted on Github and Gitorious can be accessed by anyone.

- And probably most importantly: GIT is not a good binary storage solution. So if for example you want to store some movies from your holiday or mp3 files, it will at least double the space required for the files (one for the actual file and one copy in the .git directory).


Install SparkleShare (client) in Ubuntu

The installation instructions are for installing the client for use with Gitorious and Github.


1. Download

SparkleShare is still beta. You can download the latest beta from HERE (0.2 beta 1) or get the latest code via Gitorious.



2. Install the dependencies required to compile and run SparkleShare

sudo apt-get install gtk-sharp2 monodevelop mono-devel libndesk-dbus1.0-cil-dev libndesk-dbus-glib1.0-cil-dev python-nautilus git-core intltool gvfs gvfs-bin python-gtk2-dev openssh-client nant


3. Install SparkleShare

I'll cover the SparkleShare 0.2 beta 1 installation (the difference with getting the code from Git is that you must use ./autogen.sh instead of ./configure): once you've downloaded and extracted the archive, navigate to the folder where you've extracted SparkleShare and run:
./autogen.sh
./configure --prefix=/usr
make
sudo make install

If you later want to uninstall it, simply navigate again to this folder and run "sudo make uninstall".

Now everything has been set up and you can run SparkleShare via the Applications > Internet > SparkleShare menu item.


4. Set up SparkleShare

For how to use SparkleShare with Gitorious and Github (as well as other questions), refer to the SparkleShare online documentation.


For more info, see the SparkleShare website.

Senin, 15 Maret 2010

How To Get GIT Working Behind A Firewall [Using A SOCKS Proxy]

Some GIT servers support the http protocol but some don't and if you're behind a firewall like me (at work - so I don't have control over it and most ports are blocked) you basically can't access GIT.

But with the help of WebUpd8 reader RKV and this post, I got GIT working behind a firewall using TOR.

If you don't know how to set up TOR, see the post about using Spotify and Pandora using TOR (post by rkv). You can of course use a different SOCKS proxy, but I prefer TOR for this job.

Once you have TOR up and running, enter this in a terminal:
sudo gedit /usr/bin/proxy-wrapper


And paste this in the newly created file:
#!/bin/bash
nc -xlocalhost:9050 -X5 $*


Then save the file and make it executable using the following command:
sudo chmod +x /usr/bin/proxy-wrapper


If you use Ubuntu, your version of netcat probably doesn't support the -x and -X flags. But you can install netcat-openbsd instead:
sudo apt-get install netcat-openbsd


And finally, make GIT use a SOCKS proxy using the following command:
export GIT_PROXY_COMMAND="/usr/bin/proxy-wrapper"
bash