Quote:
Originally Posted by melmac
I would like to do this on my WHS, can you point me to some instructions? Did you install the Calibre program on the WHS?
|
Yes, you need to install Calibre on your server via remote desktop, point it to your library, and then set up Calibre server through the GUI. I changed the port number from the default and set up a username and password. After that you only need to run the "C:\Program Files\Calibre2\calibre-server.exe" for a headless server. I used NSSM to set it up to run as a service.
Since I do book management on my desktop computer, I also set up a batch file that runs nightly to shut down calibre on the server and restart it 150 minutes later. During the time it's shut down, a sync runs on my desktop to copy the library from my desktop to the server. I don't share the same library folder on my desktop and the server since the server keeps the database locked. It doesn't need the whole 150 minutes to sync the library, but I shut it down for that long to also allow WHS to release the database file long enough for DrivePool duplication to occur. Otherwise the file stays locked and Drivepool complains that it can't be duplicated.
The Restart_Calibre.bat looks like this (assuming you named the service "Calibre Server" when you create it in NSSM):
Code:
@echo off
net stop "Calibre Server"
timeout /T 9000 /nobreak
net start "Calibre Server"
Run the batchfile through Scheduled Tasks at the desired time.
I think I had to manually add the firewall exception on WHS 2011. On the router I had to forward the port I chose and then was able to access remotely at
http://myname.homeserver.com:#### where 'myname' is the custom domain and '####' is the port where calibre server is running.
Periodically I update Calibre on the server via remote desktop just so it doesn't get too out of date.
I think that covers it. Good luck!