Category Archives: General

Accessing your eBook collection managed by Calibre without Calibre Server

This post is about how I’ve been going about enabling access to my eBook purchases that are managed with Calibre without actually using the built in Calibre Server.  All of this is running on Linux, with my eBooks and Calibre Library sitting on a remote Linux File Share.

The reason that I’m not using the Calibre Server to do the distribution is because:

  1. I actually store all the eBooks and the Calibre database on a Linux file share that is then shared on my network using Samba.
  2. I use multiple computers to interact with that Calibre database (not at the same time).  They are all setup to open the database on the samba share.
  3. The file share is headless and does not have X installed

So to do this, the first thing I had to do was setup the directory on my file share and then setup samba to share it out to the network.  Once that was done, I then mounted the share on my client computer.  With that done, when I started Calibre for the first time, I just change the configuration to use the samba share directory.  Now whenever I open Calibre, all the eBooks and database files are now stored and shared internally on my file share.

That was great and all, but I also wanted to be able to easily browse the collection inside and outside my network.  To do that, I figured the best way is using a web browser.  After looking around very quickly, I decided to use a software called, “Calibre PHP Server“, since the file server already had Apache and PHP installed on it.  I do have to warn, it’s not the best software out there and the design choices aren’t the best, but it is functional and I was able to get it up and working without having to write it myself.

To get it working with Apache, I created a new sub-domain to put it under, something like books.domain.com.  At that point, the configuration for it was very simple.

<virtualhost *:80>
        ServerName books.somedomain.com
        DocumentRoot "/var/www/books.somedomain.com"
        <directory "/var/www/books.somedomain.com">
                AllowOverride All
                Allow from All
        </directory>
</virtualhost>

After that, I just followed the instructions that came with the software for setting it up.  I also added the optional section, which restricts who can access the books, so that only my wife and I have access to our library.  As I mentioned, the interface isn’t the best, but it is functional.  One area that I ran into issues with was the configuration files.  The first one was the “$config['smarty']” option, which when you install smarty in Ubuntu, you will use, “$config['smarty'] = ‘/usr/share/php/smarty’;”  The other issue is with the, “$config['smarty_dir']“.  I found that no matter what value you enter into it, it won’t work unless you create an additional directory by hand under it called, “smarty_templates_c”.  So for example, if you specify it as “$config['smarty_dir']=’/tmp/smarty’”, then you will then need to create the additional directory as so, “# mkdir /tmp/smarty/smarty_templates_c”.

Now my wife doesn’t have to ask me to put eBooks on her Nook Color anymore, but knows to go to that website when she wants to get one of her books and just download it that way.  It will basically work with any browser and shows all the different file contents it contains.  In our case, we have some PDF’s and epubs.  It works flawlessly.

The next step that I want to take when I have time is to come up with an additional way to use access the library with the source being a OPDS server.  There are two pieces of software that I’m currently looking at, but haven’t had time to play around with them to see which way I like best.  Until then though, this solution is working good for us both.

MSI Wind and Triple Booting

So I just purchased an MSI Wind from Microcenter and have already removed all the OS’ from it. I’m planning on installing Windows XP, Mac OS X, and Ubuntu Linux. Like most of my laptops, things are just plug and play to get it working, so I have a page to help me remember how I did it at: http://james.jamesandkristin.net/setting-up-msi-wind-to-triple-boot-windows-mac-os-x-linux

So far it looks like it’s perfect for what we need. A nice little laptop that will fit in Kristin’s purse and that will fit in little safes on vacation. Luckily my friend had a usb to ide adapter, so I didn’t have to purchase an external hard drive. I had looked into making a usb boot disks for all three os’s and even looked at using netboot to install. Netboot would have been cool, but I don’t have that much time to get it setup for all three OS’s.

One important note, you need to install Windows XP before anything else.

Another wordpress / gallery upgrade

Well, I’ve managed to upgrade wordpress and gallery again. It’s been a while, so the versions were pretty far behind. One nice benefit of this upgrade is that the photo gallery is now working again. Enjoy.

Still trying to upgrade

Hopefully nobody has noticed, but I have upgraded the blog software to the latest and greatest version from wordpress. It was only about 9 or 10 version behind and 2 years old. If you have tried to go to the photo gallery, you have noticed that it currently isn’t working right now. I’m trying to find time to get that working again. I need to upgrade the gallery software and then upgrade the connection plugin to work with it. Hopefully I’ll have it done by next week. Summer is always the time when I have the least amount of time; Trying to finish the basement, clean the garage, get the yard respectable still, and jet skiing. I’m also working on getting my Solaris Systems certification, which I would like to have done before next year.

Google thinks my home ip is in the UK

You heard right, Google thinks that my ip address that I use at my home is located in the UK.  I know this by the pages google displays to me and the ads I see.  When I do a search on google, I get sent to UK google.  I can go back to the regular google, only to be sent back to the UK google.  The ads on google also display adds for people in the uk.  I got to other sites that use Google Adsense and they will only display adds for the UK.  It’s starting to annoy me.

I’m going through Current for my ISP.  From the looks of it, they are based out of New York.  The service is great and when I do traceroutes, it never goes near the UK.

I’ve spent a couple hours trying to find a way to let google know of the issue, but it’s close to impossible to find a place you can just send an email to let them know of the issue.  I actually had an easier time finding a snail mail address for technical support.  If anybody knows how to get this corrected, please let me know. 

Busy busy busy

Haven’t posted lately because I’ve been so busy.  The few times I have posted, I posted stuff on the family blog since this one is more technical.  If you’ve left a comment and it didn’t show up, that’s because my comment system has been getting blasted with spam.  I’ve tried my best to sort it out, but some probably got lost.  We’re currently working on our basement, so once that is done in a couple months, I’ll probably start working on my MAME cabinet.  Until later, have a good one.

Mike Hauenstein Passed Away

My friend, Mike Hauenstein, had passed away Friday morning at 3:05 am.  His wife, Ann, has posted a message on Mike’s Blog that sums up what happened.  His obituary was also in the paper and I’ve copied it below.

HAUENSTEIN Michael, age 27, of Monroe, Ohio died Friday, October 20, 2006 at 3:30 A.M. at Christ Hospital after winning his battle with cancer. He is survived by his devoted wife Ann, his beloved son Tyler J., his loving parents Tom and Debbie Hauenstein, his supportive sister Sara Hauenstein, grandparents Ed and Mary Jo Heichelbech and Emil Hauenstein. He is also survived by many other family and friends. Funeral Services will be Monday, October 23, 2006 at 10 A.M. at the Paul R. Young Funeral Home, 3950 Pleasant Ave., Hamilton with Pastor Jeff Raker officiating. Burial in Rose Hill Burial Park. Visitation will be Sunday from 4-7 P.M. at the funeral home. In lieu of flowers remembrances may be sent to the Tyler J. Hauenstein Educational Fund at any local 5/3rd Bank. Condolences may be sent to mikehauenstein.com or www.paulyoungfuneralhome.com

Eating Mentos and Drinking Coke

We’ve been talking about the Mentos and Coke experiment.  In case you don’t know what I’m talking about, if you add mentos to coke, you get a big eruption from the bottle.  I’m not going into how it happens right now.  We were always curious what would happen if someone drank the coke and then ate the mentos.  Thanks to YouTube, we have the answer.  Check out the video below to see what happens.

Update 6/27/2006:  Sorry, the video was removed from YouTube.  It was a great video though.  I couldn’t find another video of someone eating mentos and coke together.  I’m just going to put up a video of what happens when you add mentos to a bottle of coke though.

Can’t sleep and bored

For some reason I cannot sleep at all tonight.  Nothing major coming up to keep me awake, so not sure what’s going on.  Talk to an old friend Bryan today and hopefully I’ll be able to see him sometime soon.  Been so busy that I haven’t really seen friends lately and I want to change that.  Ever since I’ve been in college, I’ve never really seen my high school friends except for a couple times a year.  That’s another thing that I want to change.  Kind of cool because I found a bunch of them on myspace.com, so I sent friend requests out. 

Besides that I was reading my friend’s blog (Mike who has cancer).  Really want to keep up with him as much as possible because he can really use friends right now.  I know how bored I get from sitting around for a couple hours, let along for days and months.  Might drop him a line tomorrow since he had another operation yesterday.  Think that’s enough time to heal for a bit.  Been working on the house a lot, and the yard is starting to come together, well resemble something that doesn’t look like a jungle.

Also looked up some information on installing Gentoo Linux on a few servers.  One is my personal server which is a G4 Xserver (PowerPC).  I’ve had Gentoo installed on it before, but now I want to install it with a RAID1.  Haven’t figured it out completely yet, but working on it.  I also have a DL360 at work that I’m trying to install Gentoo on which I keep running into problems with.  Spent a little bit tonight on it so maybe I’ll get lucky with it tomorrow.

Anyways, going to try to get some sleep. 

Microsoft Windows XP Activation Frustration

So, here’s the background of what I’m doing before I really get into my rant.  I have my Inspiron 6000 laptop that I’m giving to my wife since I’ve gotten a new laptop for work.  I’ve decided to reinstall windows, just so that she has a clean system without all the development stuff and other nonsense.  About 4 – 5 years ago, I bought a Windows XP Professional disk from my school at the time (University of Cincinnati).  I’ve used this disc to install Windows XP on this laptop a couple times.

This time around, I went to activate it and was informed it has been activated too many times and that I would have to call the phone hotline (888-571-2048).  No problem, called the number and a automatic voice asked me for my installation ID.  I then was connected to a representative that also asked me for the installation ID.  I guess Microsoft has outsourced this department to India.  I have no issues with India, but I do have issues with very thick accents that I can’t understand.  Take someone from deep Kentucky with a thick accent, I would have an issue there also.  So we went through the entire thing, and the woman informed me that this is a technical issue and told me to call the technical department).

So I hung up and called the technical department (888-346-5229).  After waiting for 13 minutes, I was connected to another thick accent representative.  Luckily, his accent was as thick and I was able to understand him a little longer.  He asked what my issue was, and I informed him about the account activation.  He immediately told me I had the wrong department and he was transferring me to …. the activation department.  Luckily I caught him and explained they had just sent me to him.  We went through the issues.  One thing that bothered me was all the questions they asked.  Phone number, email, full name, etc. He then gave me a SR number and said he would transfer me to the support department. 

Another 7 minutes of waiting and someone picked up.   The asked for my name and SR#.  The second I told them this, they immediately said they’re transferring me to technical support put me on hold before I could say anything.  After waiting for another 23 minutes on the phone, I hung up.  Luckily, I have another copy of Windows XP Professional, so I changed the activation key to that one and it activated fine.

This kind of treatment is amazing.  First the require you to activate the product, then they limit the times you can activate it before making you call in and wait possibly HOURS, then the product ends up needing to be reinstalled every 6 months to a year.  I can only guess that since the corner the market, they are just trying to frustrate customers into just buying another copy instead of waiting on the phone for hours.  I know why I switched to Linux and this just adds another reason.  If anybody knows a good place I complain about this to, let me know.