Archive for September, 2008

Zivios: Consolidated management portal

Zivios [1] aims to be a consolidated management portal for providing core infrastructure services using opensource technologies. The long term goals of Zivios are:

  • Identity Management
  • Single Sign-on and Certificate authority
  • Package and Patch Management
  • Service Management
  • Network Monitoring
  • Backup provisioning
  • Core Infrastructure Services (NTP,DNS, etc)

Zivios is an n-tiered PHP-5 application. It uses MySQL and OpenLDAP as it’s datastore, with OpenLdap being the primary backend for identity management and application integration and MySQL being used for panel specific data.

Zend Framework is our framework of choice and Zivios implements its MVC design pattern.

[1] http://www.zivios.org/

I will not…

GIT: Make automated releases and daily snapshots

If you like to make automated snapshots and releases of the latest tagged version of your git repo, try the following bash script. It also generates a sha1sum and a md5sum file:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
DEST_DIR=/var/www/example.com/downloads/myproject
GIT_DIR=/var/cache/git/myproject.git
(
cd $GIT_DIR;
git archive --format=tar HEAD | gzip > ${DEST_DIR}/daily-snapshot.tar.gz
latest_tag=`git-tag | tail -n 1`;
if [ ! -f "${DEST_DIR}/${latest_tag}.tar.gz" ]
then
git archive --format=tar $latest_tag | gzip > ${DEST_DIR}/${latest_tag}.tar.gz
git-log > ${DEST_DIR}/changelog.txt
fi
cd $DEST_DIR;
echo "" > ./md5sums.txt;
ls -a *.tar.gz | xargs md5sum >> ./md5sums.txt;
echo "" > ./sha1sums.txt;
ls -a *.tar.gz | xargs sha1sum >> ./sha1sums.txt;
)

Nexenta Operating System

Fundgrube:

Nexenta Operating System [1] is a free and open source operating system combining the OpenSolaris kernel with GNU application userland. Nexenta Operating System runs on Intel/AMD 32/64bit hardware and is distributed as a single installable CD. Upgrades and binary packages not included on the CD can be installed from NexentaOS repository using Advanced Packaging Tool. In addition, source based software components can be downloaded from network repositories available at Debian/GNU Linux and Ubuntu Linux, and built as described here.

[1] http://www.nexenta.org/os

GIT: Useful Scripts

Need some useful and handy scripts for your daily git work? See this http://github.com/jwiegley/git-scripts/tree/master

Kenai.com soon with git?

Everybody has heard about Sun’s new code forge platform Project Kenai [1]. Kenai provides two diffrents SCM systems: SVN and Mercurial. But this seems not to be enought, the community asks for GIT [2].

[1] http://kenai.com/
[2] http://kenai.uservoice.com/pages/general

GIT: Convert a SVN into GIT repo

If you like to convert your SVN repo into a GIT bare repo, it is simple like that. I normally just take the trunk directory of the SVN repo:

git-svn clone <url>/trunk /tmp/git-temp
git clone --bare /tmp/git-temp /pub/scm/<yourproject>.git
rm -rf /tmp/git-temp

KeepVid – downloads streaming videos

Mit dem Dienst [1| können Streaming Videos als .flv oder .mp4 (ohne Browserplugins) downloaden.

Hint: Den Button in die Lesenzeichensymboleiste ziehen, danach kann man während man auf Youtube ein Video anschaut, auf das Lesezeichen klicken und schon, kann man das Vid downloaden. Nice.

[1] http://keepvid.com

Why SVN sucks

I started using SCM with Subversion (SVN) [1] years ago and was quite happy with it. There were some quirks like:

  • the .svn directory in every directory
  • branching is in most cases senseless, it starts a complete new independent tree. You can not really merge! (See also “Subversion merge reintegrate” [2])
  • I like to develop my projects in the train, airplane, parks, restaurants. But SVN must have network support if you want commit. Of course you can install SVN locally and commit to there but what about other team members? It makes more troubles than anything else… So i just made huge commits most of the time.

but I said to myself, you will not find a piece of software which fits into my needs, right?

Few weeks ago, I found speeches [3][4] of GIT by Linus and Schwartz on Youtube . And it seemed GIT solved every issue i had with SVN. After that I looked deeper into GIT [5] and was amazed:

  • It is so fast
  • Uses only flat files
  • Branching and merging is a cheap action! You can make as much branches of your master as you want, you actually make a new branch for every feature or experimental work you develop. You commit into this branch and nobody sees, because it is local. After finished you just merge into your master branch or you delete the experimental work. EASY!
  • Only one .git directory, so a rm -rf .git in the project root removes GIT versioning.
  • It can interact as a SVN client with git-svn. So you will be able to commit into git in your local branch, merge and commit to SVN remote. But there is no need at all to have a centralized SVN repository, you will be able to have a public GIT repository.
  • GnuPG support (for your web of trust)
  • Actually i didn’t find any quirks, it just fits!

I wonder why so many open source project still using SVN? Maybe they use GIT as SVN client or they just don’t know better.
[1] http://subversion.tigris.org/
[2] http://blogs.open.collab.net/svn/2008/07/subversion-merg.html
[3] http://www.youtube.com/watch?v=4XpnKHJAok8
[4] http://www.youtube.com/watch?v=8dhZ9BXQgc4
[5] http://git.or.cz/

Passwortgedanken

Wie schon früher berichtet [1] ist man schlecht bedient, für jeden Dienst das gleiche Passwort zu verwenden. Doch wenn eben kein OpenID oder dergleichen angeboten wird, bleibt einem nichts anderes übrig als sich ein neues Passwort auszudenken. Oder man macht sich Gedanken über einen Mechanismus, der einem ein individuelles, aber für einen selben nachvollziehbares Passwort generiert. Wie z.B. sowas

1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
echo "Passwortd Script:"
echo "Enter your first passphrase"
read PREFIX
echo "Enter your second passphrase"
read POSTFIX
echo "Enter the login URL:"
read URL
echo "Your Password is:"
echo "${PREFIX}${URL}${POSTFIX}" | md5sum
exit 0

Somit erhält man ein Passwort, welches man wieder reproduzieren kann aber doch indiviudell ist. Natürlich nicht für hochsensible Sachen gedacht.

[1] http://www.renemoser.net/2007/09/gnupg-firefox-und-auth/

Next Page »