Advertisements

Installing squid 2.7 windows to non defualt drive, installing squid 2.7 windows to d:\

Find this post interesting? Do you like interesting things? Maybe you would like my invention, a connectible candle called a WickBrick!

Get one here http://wickbrick.etsy.com/

WickBrick

Since Google seems to be coming here this is the link you really want for installing Squid on windows

https://michaelellerbeck.com/2009/04/14/chapter-3-the-internet-lockdown/ (Scroll Down to 3.1)

So if you want to install squid for windows on the non default drive its a little tricky. Not that tricky once you figure it out though!

First, unzip your files. Lets say to D:\Squid (The path to your sbin should look like D:\Squid\Sbin)

Next do a search and replace on C:/ (notice forward slash) and replace with D:/ in the D:/Squid/etc/squid.conf file

Then, uncomment the line that specifies meme.conf (do a search and then delete the # in front of the line)

Uncomment unlinkd_program D:/squid/libexec/unlinkd.exe

Uncomment logfile_daemon D:/squid/libexec/logfile-daemon.exe

Uncomment Icon Directory D:/squid/share/icons

UncommentError Directory D:/squid/share/errors/English

Uncomment cache_store_log d:/squid/var/logs/store.log

Uncomment cache_log d:/squid/var/logs/cache.log

Uncomment pid_filename d:/squid/var/logs/squid.pid

Ok, now we are going to install the squid service using the D:/squid/etc/squid.conf file the command to type is

(You have a command prompt at the D:\Squid\Sbin\ folder)

squid -i -f “d:/squid/etc/squid.conf”

Now we need to set the commandline variable of the service to point to the config file as well so type

squid -O “-f d:/squid/etc/squid.conf”

Ok, now initialize the cache using the config file so type

squid -z -f “d:/squid/etc/squid.conf”

Ok, now you can start the service!

net start squid! Enjoy a new path to your squid life

Advertisements

Installing OpenFiler, or in otherwords how I lost two hours of my life to a Floppy Drive

So I love OpenFiler! it is really the coolest thing since sliced bread! Luckily though for me the first time I installed it, it worked like a charm. My second time I was not so lucky 😦

So Installed OpenFiler, the install was easy and then getting it to talk to ESX was a little challenging but completely doable. I took my hardware and transfrered it over to a bigger case and then I couldn’t get it to work again!

Absolutely nothing had changed so I was really starting to pull my hair out! Luckily I had the reassurance that I had got it working before or else I think I would have given up.

The problem would happen when I would Click on Volumes. The web page would never refresh and would just hang there.

On the OpenFiler box I would get these two errors.

end_request: I/O error, dev fd0, sector 0

Buffer I/O error, dev fd0, sector 0

So, I am a linux newbie. So I’m wondering to myself what is going on. Maybe the harddrive is going out? Maybe the ram? Maybe a reinstall will fix it? So I try swapping components, resinstalling… all to no avail. I Google my error message, still no clues. I start to get a hint that fd0 is the floppy disk… hmm now we are on to something. Of course if I knew linux I would have known that already.

But what is the solution? Of course you just go into the bios and disable the legacy floppy. Apparently OpenFiler was trying to list through all storage devices and getting stuck on the non-existant floppy device…. grrrr

That was frustrating! But now it works, gah!

It looks like I could have also blacklisted it somehow like in these instructions

http://www.cyberciti.biz/faq/linux-end_request-ioerror-dev-fd0-sector0/

But it would be nice if not having a floppy attached didn’t crash OpenFiler!

Webmin on Windows I can’t get it to work

So I thought it would be cool to get webmin to work on a server 2003 box. I recently got Squid for windows working so I thought it would be really cool to be able to admin the squid from webmin. Well even though there is a windows installer here http://www.webmin.com/windows.html I was never able to make it work. I’m not sure if I was using the version of perl that it wanted, I tried 5.10 and 5.8.something or maybe the version of webmin. All in all I didn’t have luck. If anyone has any tips like use this version of webmin with this version of perl I would love to here it.

the ppd does not provide code to install for this platform Win32::Daemon

This is most likely happening if you are running perl 5.10, if you install 5.8 it should work.

HP MFP Digital Sending Software 4 – Unable to retrieve the necessary data from the mfp

This is annoying

http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&taskId=110&prodSeriesId=80460&prodTypeId=18964&objectID=c01572762

The fix for me as noted at the very bottom of the page…. is to install KB936181

My question to you is if its the most common cause of this error why the heck is it located at the bottom of the page in really small writing????? Anyways….

DSS 4.11 and later revisions require the following patch to be installed on the server:
“Security Update for Microsoft XML Core Services 4.0 Service Pack 2 (KB936181)�?
NOTE: The absence of this patch is the most common cause of this error.

‘Open Source’ Free sleep CD for Babies or whomever

So I was searching all over for free sleep CD’s to help our little one get some shut eye. I have created what my wife calls ‘the primo white noise CD’ which I need to still post. Basically 70 mins of ‘pink noise’ that fades in and fades out so when you put the CD player on loop it doesn’t wake up the baby! If you know your way around audio editing (Audacity is great) the have fun with this http://www.beprepared.net/tools_whitenoise.html

Other sources of helpful sleep noise are here http://cantonbecker.com/music/white-noise-sleep-sounds/

And here http://www.calm-your-screaming-baby.com/soothing-sounds.html

And finally the moment you have all been waiting for, my sleep track is here

http://share.ovi.com/media/mellerbeck.public/mellerbeck.10009

I term it open source because the copy of moonlight sonata came from wikipedia, the ocean sound from here http://www.freesound.org/samplesViewSingle.php?id=28058

And the heart beat from here

http://www.freesound.org/samplesViewSingle.php?id=21409

I have a couple of other ideas for some sleep CD’s and will probably make a couple more tracks!

Setting up proxy autodetect

We recently have the need of being able to assign a proxy server based on a workstation location. This led me into the magical world of Proxy autoconfiguration.

Basically you need to have some method of delivering the address of the location of your autoconfig script.
The easiest, and laziest, and possible least reliable method is handing it out using your DHCP sever. Assume your script is named wpad.dat and located at http://yourwebserver/wpad.dat

This is not one of the standard types of things for your DHCP server to hand out (server 2003) so will need to configure it. This page explains it very well http://www.findproxyforurl.com/wpad_tutorial.html

We must configure the DHCP server to include a 252 entry in the DHCP information sent to a user. When configured this entry includes a direct link to the wpad.dat file.

Windows 2003 DHCP:
1. Click Start > Programs > Administrative Tools and then click DHCP.
2. In the console tree, right-click on the DHCP server, click Set Predefined Options, and then click Add.
3. In Name type: WPAD.
4. In Code type: 252.
5. In Data type select String, and then click OK.
6. In String, type URL of PAC file in format: http://url:port/wpad.dat
7. Right-click Server options and click Configure Options.
8. Confirm that the Option 252 option is selected.

Once created we must then enable the option for a DHCP scope.
1. Click Start > Programs > Administrative Tools and then click DHCP.
Right-click Scope Options and then click Configure Options.
2. Click Advanced, and then in Vendor Class, click Standard Options.
3. In Available Options, select the 252 Proxy Autodiscovery option and click OK.

Follow it exactly! I’m not sure if it matters if you set your wapd file as the default setting before you assign it to the scope but for some reason this seems to work better??

OK, well thats how you point to the WPAD file but how do you server it? The annoying/logical thing is that you must serve it through a webserver. If you are using IIS you need to add a MIME type (open IIS admin, rclick your web server, properties, click MIME Types)

The way I got it to function was using, .dat with application/octet-stream

Use iisreset for the setting to take.

Ok, so the dhcp server hands out the location of the wpad.dat file, and you serve out the wpad.dat file using the newly created .dat MIME type. Now we need a wpad.dat file

Mine is super duper lame, one thing about wpad.dat, if there are any errors at all it will silently bomb out on you! Very frustrating!

function FindProxyForURL(url, host){

if ((host ==”proxyinfo.company.com”)){
alert(“Local IP address is: ” + myIpAddress());
}

if (isInNet(myIpAddress(), “10.1.0.0”, “255.255.0.0”)){
return “PROXY 10.1.100.1:80”; }

}

The best way I have found to test the .pac file is to open up Internet Explorer, tools, internet options, connections, lan settings, click the use automatic configuration script, then point to the file on your hard drive, using this type of path,

file:////C:/proxy.pac

This page explains this well http://techblog.mirabito.net.au/?p=21 actually its a great post about WPAD and PAC files!

In order to test though you will always want to delete files (on general tab) un check the use the file and the close all IE windows, then open it check mark to use the file, then close and open. This way you can be sure of clearing the proxy auto config cache!

Well, thats it for now! But soon I will be playing with squid proxy!

Messed with Squid Proxy on windows here https://michaelellerbeck.com/2009/04/14/chapter-3-the-internet-lockdown/ (very fun!)