From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomas Carnecky Subject: Re: Can I set up a GIT server w/o administration privileges on a Solaris machine? Date: Thu, 4 Jun 2009 19:37:55 +0200 Message-ID: <8F7A6F2A-D286-4DC2-B17A-FB016C31B1F2@dbservice.com> References: <4A27F7E6.8060405@xnet.com> <32C5F26D-7498-440C-8BF4-97AF137EF78F@dbservice.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Cc: stuart , git@vger.kernel.org To: Tomas Carnecky X-From: git-owner@vger.kernel.org Thu Jun 04 19:38:23 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MCGtS-0007uS-QB for gcvg-git-2@gmane.org; Thu, 04 Jun 2009 19:38:23 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbZFDRiO (ORCPT ); Thu, 4 Jun 2009 13:38:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751555AbZFDRiN (ORCPT ); Thu, 4 Jun 2009 13:38:13 -0400 Received: from office.neopsis.com ([78.46.209.98]:33779 "EHLO office.neopsis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbZFDRiN (ORCPT ); Thu, 4 Jun 2009 13:38:13 -0400 Received: from calvin.emmen.dbservice.com ([62.65.141.13]) (authenticated user tom@dbservice.com) by office.neopsis.com (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits)); Thu, 4 Jun 2009 19:38:10 +0200 In-Reply-To: <32C5F26D-7498-440C-8BF4-97AF137EF78F@dbservice.com> X-Mailer: Apple Mail (2.935.3) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Jun 4, 2009, at 7:34 PM, Tomas Carnecky wrote: > > On Jun 4, 2009, at 6:35 PM, stuart wrote: > >> Hi... >> >> Can I set up a GIT server w/o administration privileges on a >> Solaris machine? >> >> I think this should be a simple question to answer. I have looked >> in the archives - but most, if not all, who post are setting up GIT >> servers using administration privileges. I have a shell account >> on a Solaris box where I can create web pages and trigger the >> execution of scripts from those pages...but no administration >> right. So, I started down the path of privately installing >> software. However, it became apparent that I need git listing on >> this port and running that daemon...both of which are almost >> impossible with out administration rights. > > The default port of the git daemon is 9418. Unix systems usually > don't require admin privileges to bind to port >1024. Maybe there's > a firewall between you and the solaris box preventing you from > connecting to such non-standard port? If you are sure there is no > such thing, then simply fire up git-daemon and try to connect to it: > > (assuming /path/to/repo.git is the git repository on the server) > server$ git-daemon --export-all --verbose --base-path=/path/to/ / > path/to/ > client$ git ls-remote git:///repo.git > > If the connection was successful, then stop git-daemon, add '-- > detach' to its command line and start it again. It will put itself > into the background, so you can log off the server and git-daemon > will keep runnig. One downside is that it will not be automatically > restarted when it crashes, or when the server is restarted. > >> So, is there a way to get some basic GIT functionality through >> serving up web pages and executing CGI scripts. Is there somewhere >> I can read up on this type of server installation? > > Git can be used over dumb http protocol. Fetching through http is > fairly easy, simply put the git repo into a directory where the web > server has read rights. Pushing ... and run git-update-server-info in the git repository. > through http will likely require you to edit the http server > settings. Also, git:// protocol is almost always preferable over > http://. > > tom >