Benny's Blog
Navigation: Home » Webanwendungen » Virtual Server
14. März 2012

Die Fehlermeldung “svn: Could not open the requested SVN filesystem” tritt auf, wenn versucht wird ein SVN-Kommando auf eine URL oder einen Pfad auszuführen, auf den SVN keinen Zugriff hat -oder der schlichtweg einfach falsch ist. Mir ist der Fehler begegnet, als ich versucht habe mit svn -v log http://localhost/svn/my_repository -r 40 auf ein Repository zuzugreifen, das überhaupt nicht existiert hat (die URL war falsch).

Ob ein Repository gültig ist, kann mit folgendem Befehl geprüft werden (funktioniert nur mit Dateisystem-Pfaden):

svnadmin verify C:/apache/svn/my_repository
11. März 2012

For demonstration purposes I have rewritten a post-commit hook (which was originally developed for Linux) for Windows.

post-commit (Linux version)

#!/bin/sh
# POST-COMMIT HOOK
# The post-commit hook is invoked after a commit.
#
#   [1] REPOS-PATH   (the path to this repository)
#   [2] REV          (the number of the revision just committed)
#
REPOS="$1"
REV="$2"
 
echo $REPOS $REV >> /tmp/test.txt

post-commit.bat (Windows version)

@echo off
:: POST-COMMIT HOOK
:: The post-commit hook is invoked after a commit.
::
::  [1] REPOS-PATH   (the path to this repository)
::  [2] REV          (the number of the revision just committed)
::
@echo off  
 
set REPOS=%1
set REV=%2   
 
echo %REPOS% %REV% > C:/Temp/test.txt
28. Februar 2012

How to install node.js (latest version)

apt-get install g++ curl libssl-dev apache2-utils git-core -y
cd /etc
git clone git://github.com/joyent/node
cd /etc/node
./configure
make
sudo make install

How to install node.js (stable version)

apt-get install g++ curl libssl-dev apache2-utils git-core -y
cd /tmp
wget http://nodejs.org/dist/v0.6.11/node-v0.6.11.tar.gz
tar xvf node-v0.6.11.tar.gz
mv /tmp/node-v0.6.11 /etc
cd /etc/node-v0.6.11
./configure
make
sudo make install
rm /tmp/node-v0.6.11.tar.gz

You can check the installed version with node --version.

node.js package manager

If you want to use a package manager for node.js (like npm), then you can get it with:

curl http://npmjs.org/install.sh | sh

To use the package manager, just go into your node.js webproject and execute something like:

npm install websocket.io

This command will load the desired dependencies (like websocket.io) into a directory called “node_modules” within your project’s folder.

Uninstalling node.js

To uninstall node.js, just go to the folder where you installed node.js (e.g. /tmp/node-v0.6.11) and use the following command:

make uninstall
13. Januar 2012

Here is a tutorial on how to install the latest Java 7 JDK and JRE on a Debian Linux system:

1
2
3
4
5
6
7
8
9
10
11
12
13
apt-get update && apt-get upgrade -y
sudo apt-get install sun-java6-jdk -y
mkdir /tmp/downloads && cd /tmp/downloads 
wget http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-linux-i586.tar.gz
tar -xvf jdk-7u2-linux-i586.tar.gz
mv /tmp/downloads/jdk1.7.0_02 /usr/lib/jvm
mv /usr/lib/jvm/jdk1.7.0_02 /usr/lib/jvm/java-7-oracle
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-7-oracle/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-7-oracle/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/java-7-oracle/bin/javaws" 1
sudo update-alternatives --config java
java -version
rm -r /tmp/downloads
25. November 2011

Mit der Remote Console (kurz RCON) können Counter-Strike Server außerhalb des Server-Terminals administriert werden. Es ist damit sogar möglich, den Server innerhalb des Spiels zu bedienen. Leider ist die RCON im Spiel sehr versteckt, weshalb ich euch in diesem Beitrag erkläre, wie ihr die Konsole für RCON aktivieren und verwenden könnt.

…weiterlesen

25. November 2011

Wer schon immer mal einen eigenen Counter-Strike: Source Server aufsetzen wollte, hat jetzt die Möglichkeit dazu. Ich habe eine Anleitung für die Einrichtung eines CSS-Servers geschrieben und auf meinem Virtual Server (mit Debian-Betriebssystem) erfolgreich ausprobiert. Dieses Tutorial möchte ich euch natürlich nicht vorenthalten.

…weiterlesen