FOLLOW ME Twitter Facebook Вконтакте LinkedIn RSS Feed
Browsing articles tagged with " debian"

Running java on Debian via SSH

Jan 13, 2013

A few days ago I had a problem: run YouTrack on my VDS. YouTrack is a bug tracker written in Java. First time I run it as

java -jar youtrack.jar 8080 &

And this worked fine, until I closed my ssh session with the server. When you close a ssh session your terminal send the HUP (hangup) signal to warn all depending processes of logout. To avoid the HUP signal to be sent, run your java programs using hohup:

nohup java -jar youtrack.jar 8080 &

How to setup a private git repository on Debian using Gitosis

Apr 19, 2012
Category: Tips and Tricks

In this post I’m going to give you step by step instructions of how to setup your own git repository. I’ve got a VDS (Virtual Dedicated Server) running on Debian 6.0.4, but all steps are valid for Ubuntu too.

First of all we should setup all necessary tools including git:

apt-get install git python-setuptools python-dev

After that, get gitosis sources. Official repository git://eagain.net/gitosis.git stopped working, so use github repository instead:

git clone https://github.com/tv42/gitosis.git
cd gitosis
python setup.py install

Check that you’ve got sudocommand installed and if it’s not install it.

apt-get install sudo

I didn’t have sudo installed on my VDS so that’s why I care about it.
Ok, then create and add a gitosis user:

sudo adduser --system --shell /bin/sh --gecos 'gitosis user' 
             --group --disabled-password --home /home/git git

Now it’s time to set up a security connection between your local machine and the server. If you already have a private key and you know what is that, just skip the next step. Otherwise, you should generate keys on your local machine.

ssh-keygen -t rsa

If you’re a Windows user, you should find some way to generate security keys. For instance, use PuTTY gen.

Next step is to copy your public key to the server. Continue reading »