Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GKrellM Server as a Windows 2000/XP/2k3 Service
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message

Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Sat Jul 24, 2004 8:26 pm    Post subject: GKrellM Server as a Windows 2000/XP/2k3 Service Reply with quote

*Quick Notes*
1) This guide is to setup for windows 2000, it should work for XP and 2k3 with only minor differences
2) Resolves issues with not finding .dll's
3) This server is on my personal machine, so take it easy on it, I only have a cable connection.
4) I looked at WKrellM and it didn't look like it had a server portion to it.

I have been trying to get this workign for about a week, and well I have finally have it. What this will do is start the GKrellM as a Windows Service. This will allow it to be started upon windows booting up and not shutdown until Windows shutsdown no matter who logs in and out. This is create when you want to monitor a windows server, but hate being in a windows enviroment. Now I can watch my windows server, while enjoying me some gentoo and openbox.


The easy part is installing GKrellM and GTK-2. Go here as this guy maintains the GKrellM port to windows. He will have the software and instructions to install GKrellM

You can test it at this point by running GKrellM, it should start up with no problems.

After GKrellM is installed and working. We need to get the service set-up. Start by downloading this file, it contains Instsrv.exe and srvany.exe. The Instsrv.exe installs the necessary registry paths to create the service, and srvany.exe is a program that helps apps load as a service and not die b/w users log-ins and log-outs. You can download these here.

Download the zip and unzip the two files. You can place them wherever you want but I put srvany.exe in c:\tools and put Instsrv.exe into c:\winnt. Goto start and then run, if you put Instsrv.exe in winnnt then run
INSTSRV gkrellmd c:\tools\srvany.exe

this creates a service that runns srvany.exe and names the service gkrellmd, if you didn't put Instsrv in c:\winnt then run cmd, and use cd to browse to the folder you put it in, then run the command above.

After you have done this we are going to edit the servce to have it start gkrellmd, to do so start regedit, and browse to
create a new key named Parameters, and inside the key create a string value named Application and modify that value to contain the path to gkrellmd. You can also create string values for AppDirecotry and AppParameters. AppDirecotry will just contain the direcotry of gkrellmd and AppParamters contain the paramters that you want to use when starting gkrellmd.

Now we are almost done, two more things to do. The first thing we need to do is change the PATH enviroment variable to list all the .dll's the GKrellM needs from GTK, so righ-click on the my computer icon on your desktop, choose properties, Advanced, Enviroment Variables. In the bottom box, scroll to the PATH variable , choose it and click edit. You are going to add to the end of the line a semi-colon and the path to the libs, by default they are at
C:\Program Files\Common Files\GTK\2.0\lib

Choose Okay, Okay and Okay to close out all the windows. This now adds that path for windows to search for .dlls at.

The last thing we need to do is edit the service. You can do so by going to start .. run and run services.msc. This will list all the services in Windows. Scroll until you get to the gkrellmd service. Double-click it. Change Start-Up type to automatic and then goto the logon tab and choose to log on using an account on the computer. Dont' choose Local System account b/c that wont' allow gkrellm access to any network. After you enter the account name and password choose okay. and you are done.

You did, it gkrellm will now start as a service when windows boots up without any one logging in. You can start it now by rebooting the machine or you can right-click the service in services.msc and choose start. It should start without any errors. You can now connect to it using gkrellm and the parameters -s <servername> and -p <port> . The default port is 19150.

Enjoy, please post back any problems you might have.
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum