Database is locked when committing to a Subversion repository

I added a new Subversion repository on our Debian webserver today and got the following error messages when committing to it: [Wed Oct 10 ...] [error] [client ...] mod_dav_svn close_stream: error closing write stream [500, #200029] [Wed Oct 10 ...] [error] [client ...] Couldn’t perform atomic initialization [500, #200029] [Wed Oct 10 ...] [error] [client [...]

VBoxManage: error: VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED)

Today I wanted to add a new 64bit virtual machine to my VirtualBox installation but when I tried to power it on I got the following error message: root@debian /home/vms/Webserver # VBoxManage startvm Webserver –type headless Waiting for VM “Webserver” to power on… VBoxManage: error: VT-x features locked or unavailable in MSR. (VERR_VMX_MSR_LOCKED_OR_DISABLED) VBoxManage: error: [...]

Copying files larger than 2GB to a mounted Samba share on Linux

Today we had a problem copying a large file (>4GB) to a Samba share using Linux. The share was mounted via smbmount and worked perfectly for all other files. However, the large file was copied to the share only up to a size of 2GB and then the copying aborted. The solution was to mount [...]

Single Sign On with Kerberos using Debian and Windows Server 2008 R2

Recently, I wanted to add single sign on (SSO) functionality to our intranet server, which runs a Debian Linux. Users should be automatically logged in to the website using their Windows user accounts, which are stored in an Active Directory on a Windows Server 2008 R2, without entering their credentials again. To make this work [...]

Slow DNS resolution on Windows Server 2008 R2

A colleague of mine had a problem with a Windows Server 2008 R2 today: After configuring the server as the DNS server for the local domain, name resolution on a Debian client was extremely slow. A ping returned the correct IP and only took a few milliseconds but between each single ping a few seconds [...]

Optional NTLM authentication for a website on Apache with PHP

This article shows how to configure the Apache webserver and a PHP website to optionally use NTLM authentication (Integrated Windows Authentication) to authenticate the website’s users. That means, a user may log in via his or her Windows account but does not have to. If he cannot be logged on (automatically), he just gets shown [...]

MySQL: Host ist not allowed to connect to this MySQL server

When connecting to a (development) MySQL server from a remote machine (e.g. with Oracle SQL Developer) I got the following error message: Host [my host name] is not allowed to connect to this MySQL server. All user permissions in the mysql.user table were set correctly (host % for user root) and bind-address in my.conf was [...]

bash: Get IP address of SSH remote user

Today I needed to find out the IP address of the currently logged on user (e.g. via SSH) on a Linux system to use it in a bash script. After searching the web for a simple tool for this task for quite some time, I finally came up with the following bash script to get [...]

SVN-Notify

Aufgrund des Kommentars von Markus zu meinem Beitrag “PHP-Script zum Versenden von Mails nach Subversion-Commits” habe ich heute mal SVN-Notify ausprobiert und ich muss sagen, dass ich mir die Arbeit beim Erstellen meines eigenen Post-Commit-Scripts umsonst gemacht habe (naja, nicht ganz: unsere Benutzer hätten halt gerne deutsche Texte etc.) Durch folgende Befehle wird SVN-Notify installiert [...]

Linux-Zeilenumbrüche in Textdateien auf Windows-Format ändern

Ich erstelle unter Linux einige Logfiles, die ich auch gerne unter Windows anzeigen lassen würde. Der Editor meiner Wahl (PSPad) hat damit zwar kein Problem, aber der Standard-Texteditor notepad.exe, den “normale” Benutzer verwenden, leider schon: Zeilenumbrüche werden als kleine Kästchen dargestellt und verunstalten den Text. Mit sed oder awk kann man die Linux-Zeilenumbrüche (\n) aber [...]