On-line Blitz tourney June

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: On-line Blitz tourney June

Post by Michel »

I am a bit confused by this repository. Is there an actual URL where one can pull from? It only seems to give a web view of the repository.
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line Blitz tourney June

Post by hgm »

Oh,sorry. I only know the most basic things about git. Arun set it up for me. Is the link below what you need?

* remote nubati
Fetch URL: ssh://hgmuller@nubati.net/home/hgmuller/hgm.nubati.net/git/capablanca.git

(I obtained it by "git remote show nubati".)
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: On-line Blitz tourney June

Post by Michel »

Well that's an ssh URL. I was looking something with read only access
(an http URL) but you probably haven't set that up. Nevermind. I will
try with a tar ball. The problem with that is that it is hard to track upstream changes..

As an example of what I mean: the development source of my branch of gnuchess 5.07 can be pulled from here

http://emis.uhasselt.be/~vdbergh/git/gnuchess.git

(with "git pull <URL>")

whereas the gitweb URL is

http://emis.uhasselt.be/cgi-bin/gitweb. ... ;a=summary

(I have a similar setup for icsdroneng and formerly for polyglot).

Now I am quite surprised that gitweb does not seem to allow direct
pulling from an underlying repository. It seems to me it could easily
act as a proxy for "git pull". Unfortunately gitweb is written in Perl, a language I don't know.
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line Blitz tourney June

Post by hgm »

Wel, I think that Arun pulls from my hgm.nubati.net repositoryto his www.nubati.net repository. So he must have set up something on the server to do that. I am sure he does not have my password for the ssh account. The ssh link does tell you the directory of the git repository on that mahine, though, and I hoped it would be enough. I will ask Arun how he does it.

Since my upgrade to Ubuntu 10.04, I seem to have lost the ability to pull from Savannah myself, btw. Very annoying...
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: On-line Blitz tourney June

Post by Michel »

Ok. http URL seems to be

http://hgm.nubati.net/git/capablanca.git

That works in the browser. However git pull still does not work
$ git pull http://hgm.nubati.net/git/capablanca.git
fatal: Couldn't find remote ref HEAD
However

git pull http://hgm.nubati.net/git/xboard.git

works.

So it must be something with the configuration of
the repository capablanca.git.

Perhaps it needs the command git-update-server-info
I seem to recall I had to run that.
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line Blitz tourney June

Post by hgm »

I ran the git update-server-info on nubati.net, in all the git repositories. Let me know if it works now.
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: On-line Blitz tourney June

Post by Michel »

I ran the git update-server-info on nubati.net, in all the git repositories. Let me know if it works now.
Yep. Now it works.

Thanks,
Michel
Michel
Posts: 2272
Joined: Mon Sep 29, 2008 1:50 am

Re: On-line Blitz tourney June

Post by Michel »

I have not worked on the ICS for a long time. I also did not check out if there is an option to connect it to multiple ports. I guess it should be able to do this by port mapping, without the ICS even knowing, right? Just map external port 28 of my router to port 5000 of the machine on my LAN that runst the ICS, and it should work?
My son suggested the following command to forward port 23 to port 5000. It apparently only works when connecting from the outside (i.e. not for connections to
localhost)

Code: Select all

iptables -t nat -A PREROUTING -p tcp --dport 23 -j DNAT --to-destination &#58;5000
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: On-line Blitz tourney June

Post by hgm »

Ah, that could do it on the machine itself.

I already opened port 23 on my modem, and let my wireless router map external port 23 to port 5000. I think that should also do it, but there is no way I can test it myself.
User avatar
Graham Banks
Posts: 41432
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: On-line Blitz tourney June

Post by Graham Banks »

Ray asked me to let you know that your server has not been accepting connections for the past few days.
gbanksnz at gmail.com