Saturday, July 4, 2009

apt-get freezes under lenny domU on lenny dom0

I had this strange thing ... apt-get freezing when using it inside domU ... no key strokes nothing ... although the machine still runs fine ! even if i run it inside 'screen', disconnect and reconnect ... no good, i need to kill apt-get and retry with apt-get -f install and stuff.

Well, i got it solved, i was trying to fix something else , which is an error message saying:


Time went backwards


Following the instructions here:

http://wiki.debian.org/Xen#A.27clocksource.2BAC8-0.3ATimewentbackwards.27

got me going!

Thursday, May 7, 2009

Printers ... Printers ... Printers ... Windows & sharing

This is the me, from hell ... i'm now responsible of managing printers in a windows environment ... so one of the tasks is deleting a printer tcp port ... now i found this command line tool to do it ...:


cscript prnport.vbs -d -s [servername] -r [portname]


replacing the server name and the port name with appropriate values, usually the port name is IP_XX.XX.XX.XX, where XX.XX.XX.XX is the IP of the printer.

Monday, April 6, 2009

Testing squid proxy via telnet

Well well well ... the squid proxy running on port 3128 is acting crazy or is it my poor application who is not working properly, or maybe the remote site is just not allowing connections coming from the proxy ! ... i need to check! i know that i could set the http_proxy environment variable in linux and try wget ... but im not on a linux box ... (BAAA :'( ), well, i could set the proxy in windows from IE connection tab, but i dont really want to use proxy, i just want this one application to use the proxy ... so what to do ?

You might already know how to test a webpage using telnet , just telnet to port 80, type GET / HTTP/1.1 and hit enter, and your in! well, it turns out that squid works in a very similar way, but obviously, you need to tell the proxy which site you wish to connect to, since you are telneting to the proxy, not the final destination , so you telnet to your proxy:

telnet proxy.domain.tld 3128

now in a second you'll get a prompt saying
Escape character is '^]'.
there type your HTTP request, Notice that it differs from the usual HTTP request, since you need to tell the proxy which server you wish it to connect to and perform that request for you, so "/" is not enough you need the whole URL:

GET http://www.google.com/ HTTP/1.1

hit enter, then followed by the host (again)

host:www.google.com

Now hit enter twice ... and voila !

This hint was written seven days after the 33rd commemoration of "Land Day"; look it up.