Good morning everyone,
maybe you noticed it already - this blog is still funky fresh, however most of my posts go to a new blog: http://www.rabenfedern.de. I had to work on my management skills and I decided to put up a special blog for it. Make sure to visit it!
SciTE - Editor of my choice
Sometimes you have to change your tools in order to keep your
productivity on a high level. Either it's your decision or the decision
of someone else which will force you to look for new methods. My present
employer decided to switch all workstations from *enter your favorite OS
here* to Windows XP. As I won't be able to install any tools in the
worst case I decided to look for an alternative to my current editor.
SciTE came into sight and after some customizing it works nicely for me.
However, as you could see in the screenshot, there seems to be a bug
with lexer and the highlighting. It's a Perl source file which is shown
and for an unknown reason he detection something around "information" as
a, uhm, whatever keyword. Sounds like a bug to me, I'll file it. Let's
hope they'll fix it soon.
References
Running a Subversion Server on Win32
Due to some circumstances I had to switch parts of my daily work
machines to Windows. Guess what, everyone is still complaining about
Windows, however I started to like it. Best part: try to set fonts for
the system! It's consistent everywhere - try that with GNOME and start a
KDE application. Oooops - did I start the bashing. Sorry for that.
Anyway, I had to look for some methods to get a Subversion server
running on Win32. Apache with the svn module is one option, however,
svnserve might be another option. Here are the steps required:
Install the binaries of Subversion:
Easy - mine had been installed in C:\Programme\Subversion\bin. The path
had already been added to the system path.
Setup a blank repository:
Still easy. I've setup mine in C:\Powerplant\code-repository\svn-repo.
In order to accomplish this the following commandlines are needed:
svnadmin create C:\Powerplant\code-repository\svn-repo
Edit the configuration:
In order to run a Subversion server you have to edit two config files. They are located inside C:\Powerplant\code-repository\svn-repo\conf. Their names are svnserve.conf and passwd. Let's have a look at the svnserve.conf file first. You need to enable three options inside the file. They are already in there, seek them and remove the hash in front of them. Save the file afterwards.
[general] ... anon-access = none auth-access = write ... password-db = passwdYou should also look inside the sasl thing. All the binaries of Subversion I found had sasl compiled it. It's general a good thing to encrypt your stuff so have a look how to enable it. However it's not necessary to get the server running.
Second will be the passwd file. Here are all the passwords for the user stored. The syntax is simple.
username = passwordIn this example the user with the name "username" and with the secret "password" is able to log in.
Start the daemon:
Here are two ways to manage this. Running the daemon inside a command box with the subcommand --daemon will work for some cases if you are not allowed to work inside the Win registry (like it will be at my workplace). Use a small batch file inside your autostart group for it.
svnserve --daemon -r C:\Powerplant\code-repository\svn-repoAnother way might be to enable the svnserve as Windows service. The commandline looks quite strange but I promise it will work this way. The syntax is in key= value style. Please note: there is a space before the value. If you don't do it that way the command will fail. If you'd used spaces inside your paths make sure to quote them. Quoting in general a good thing, I will include this inside my commandline here. Also please note - all the command has to be on one line!
C:\>sc create svnserve binPath= "C:\Programme\Subversion\bin\svnserve.exe
--service --root C:\Powerplant\code-repository\svn-repos"
DisplayName= "Subversion Server"
depend= tcpip start= auto
Link to the documentation:
Here is the full documentation for this: Windows Service Support for svnserve
Merry Christmas
Merry Christmas to all the blog readers :) I am just rebuilding NetBSD 5.0_BETA and I will restart the bulk build for i386. That's a nice present, eh? Expect the packages soon.
