create git repo and connect using eclipse

In order to keep my software developments in line and keep access also from remote sides I decided to use git on one of my servers and use eclipse for the development itself. So to add or create a new repository I follow this steps:

– create new directory: mkdir <repo>

For convenience I use a naming as: repo-<section>-<subsection> (e.g. repo-php-project)

– change to the newly craeted directory: cd <repo>

– initailize a bare git repo: git init –bare

This will fill in a repo with the administrative stuff inside but without any further details. Those will come with the first clone/commit.

– clone the empty repo from within eclipse using the import function: Project perspective -> Import -> Git repository -> New Project

This will create a new project within eclipse based on the newly created git repo.

vnc connection via ssh tunnel

To use one of my servers as a development platform I have choosen VNC through a SSH tunnel to access a graphical user interface. The GUI is necessary in order to play around with eclipse and android development and VNC is used as it should reduce the network traffic to its bare minimum keeping my slow internet connection available for other services as well.

I will start with vnc4server as it seems to be available in the standard debian repos, so a:
aptitude install vnc4server
should do the trick. To get a display to connect to the next step is:
vnc4server -geometry 1024x768 -depth 24
which will create the display with the specified geometry. You will be prompted for a password afterwards which will be used for the remote connection. To get the new server running just type:
vnc4server
and thats it. The server will be stopped by:
vnc4server -kill :1
The corresponding viewer part will be installed by:
aptitude install xvnc4viewer
and you will be able to access the server by issuing:
xvnc4viewer
To have a graphical UI available I start with xfce on the remote machine in the first step to see if it suffices.
On the server side the desktop will be started by including the following command in /etc/vnc/xstartup:
startxfce4
whereas on the client side you should issue the following commend once you are connected to the server through a vnc client viewer:
xfdesktop

IBM Intellistation M Pro

Model: 6231-42G
Intel P4 1.8GHz (Socket 478)
512MB RDRAM (RAMBUS) 800MHz RIMM184
16GB Ultra 160 SCSI
CD
NVIDIA Quadro2Pro 64MB
IBM Soundmax Integrated Digital Audio
Adaptec 2916OLP (SCSI)
Intel 81801BA Ultra DMA (IDE)
5xPCI