Friday, April 12, 2002

Blocking ads the simple way

I ran across this little site that describes how to use features in all web browsers to dramaticly cut down on the number of ads you see while surfing. Check out How To Block Ads (& Web Bugs) Without Extra Software. Basically you edit your /etc/hosts file (or equivalent) to direct ad sites to 127.0.0.1.

Wednesday, April 3, 2002

Using ssh and VNC for customer demos


First connect to the demo system and start a vncserver running
there. If you are already logged in, simply vncserver. Or be
fancy and do this from your desktop: ssh your@demo.labsystem.net
vncserver


Now setup an encrypted port redirection using ssh from my desktop to
the demo system. VNC uses port 5901 for desktop :1, port 5902 for
desktop :2, etc.


$ ssh -f -C
-L 5901:127.0.0.1:5901 \
-l marc demo.labsystem.net sleep 7200


Now run a vncviewer on the local machine. Be sure to use the command
switches below which give better performance.


$ vncviewer -compresslevel 9 -encodings "tight copyrect" localhost:1


Now have your field person also create a ssh port tunnel (of course
they need an account on the demo system as well) and also run
vncviewer. Now both of you can control the keyboard and mouse for the
system. The performance can be surprisingly good if you have a least
T1 speeds. Across a slower DSL, it is usable, but you feel the delay.

Using ssh to pierce corporate firewalls



I work for a company that has firewall that only allow out http, https and most importantly, ssh. While at my desk I want to check mail home IMAP4 mail, VNC to our lab systems on an external network, check in on an IRC chat room or even surf to some sites that I don't want corporate IM to know about. (I'm not talking porn, but the nanny software frequently blocks sites as 'hacker sites' like the nmap site which I do have a business reason to be viewing. Ugh.)

So I use ssh's port redirection to do all this.


ssh -f -C \
-L 1234:mail.myisp.com:143 \
-L 6667:irc.openprojects.net:6667 \
-L 8080:127.0.0.1:3128 \
-l marc homemachine.dslprovider.com sleep 7200


Then I configure my mail client to connect to localhost:1234 for IMAP, chat client to use localhost:6667 and web browsers to use localhost:8080 for proxy. Just so I don't have to go reconfigure all the apps that need to use a proxy (mozilla, netscape, galeon, konqueror, Ximian's red-carpet, Red Hat's up2date, nautilus and various command line apps that use http_proxy like debian's apt-get, etc) they always use 'localhost:8080' for the web proxy. When I want to switch back to using the corporate firewall, I run this instead:


ssh -f -C
-L 1234:mail.myisp.com:143
-L 6667:irc.openprojects.net:6667
-L 8080:proxy.whereIwork.com:8080
-l marc homemachine.dslprovider.com sleep 7200

Tuesday, April 2, 2002

Using ssh and VNC for customer demos


First connect to the demo system and start a href="http://www.uk.research.att.com/vnc/">vncserver running
there. If you are already logged in, simply vncserver. Or be
fancy and do this from your desktop: ssh your@demo.labsystem.net
vncserver


Now setup an encrypted port redirection using ssh from my desktop to
the demo system. VNC uses po
rt 5901 for desktop :1, port 5902 for
desktop :2, etc.


$ ssh -f -C \
-L 5901:127.0.0.1:5901 \
-l marc demo.labsystem.net sleep 7200


Now run a vncviewer on the local machine. Be sure to use the command
switches below which give better performance.


$ vncviewer -compresslevel 9 -encodings "tight copyrect" localhost:1


Now have your field person also create a ssh port tunnel (of course
they need an account on the demo system as well) and also run
vncviewer. Now both of you can control the keyboard and mouse for the
system. The performance can be surprisingly good if you have a least
T1 speeds. Across a slower DSL, it is usable, but you feel the delay.

Saturday, March 30, 2002

Running Microsoft Word/Powerpoint/Excel on my Linux laptop

Codeweaver's Crossover Office product is amazing! It is based on WINE and steps through "installing" the Microsoft office suite from the distribution CD onto a Linux system. It takes care of faking out of file system so it has a C: drive named 'fake_windows'. The performance a a little but slower than running natively under Windows 2000 professional on the same hardware, but acceptable. The fonts are a little off, but I haven't yet installed all the fonts from Microsoft's website. Go buy it. It is definitely worth the $54.95.

Wednesday, March 20, 2002

Three companies, one cubicle

If everything goes the way Mike and Carly says it will, I'll have worked for three major computer vendors while sitting the in the same office with the same telephone number. Just about as many OSes, too.

Sunday, March 17, 2002

Integrating blosxom with Evolution

Ximian's Evolution, an Outlook look-alike for Linux, is now my primary email client and can display RSS headlines on its 'Summary' page. To have blosxom (version 0+3i) to display, create a newsfeed with a URL like this: http://www.nozell.com/cgi-bin/blosxom/xml. Don't get it wrong since Evolution 1.0.2+ doesn't seem to have a way of changing a newsfeed once created. (Hint: edit ~/evolution/RDF-urls.txt)