smart stuff http://www.approximity.com/cgi-bin/blogtariAgile/index.rb Approximity: smart stuff en-us Approximity smart stuff http://www.approximity.com/ http://www.approximity.com/public/images/apxBlue_s.png Vimperator - gain back your time http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/vimperator.rdoc Thanks to Brenden for passing me this link. <p> <a href="http://vimperator.mozdev.org/">vimperator.mozdev.org/</a> </p> <p> First there was a Navigator, then there was an Explorer. Later it was time for a Konqueror. Now it&#8217;s time for an Imperator, the VIMperator :) </p> <p> Vimperator is a free browser add-on for Firefox, which makes it look and behave like the Vim text editor. It has similar key bindings, and you could call it a modal web browser, as key bindings differ according to which mode you are in. </p> <p> Now I need vim bindings for openoffice, so that I stop typing :w. </p> Oh yeah :-). http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/VistaLicense.rdoc .. on the crazyness of the Microsoft WGA anti-piracy scheme. <p> <a href="http://ars.userfriendly.org/cartoons/?id=20070901">ars.userfriendly.org/cartoons/?id=20070901</a> </p> Blackbox: your datacenter in a container http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/ProjectBlackbox.rdoc For a project we are currently looking at datacenters and we all agree that the idea of getting all the equipement stuffed into a container is a useful one:-). <p> <a href="http://www.sun.com/emrkt/blackbox/index.jsp">www.sun.com/emrkt/blackbox/index.jsp</a> </p> <p> <a href="http://www.datacenterknowledge.com/archives/2007/Jun/23/stanford_center_is_first_blackbox_recipient.html">www.datacenterknowledge.com/archives/2007/Jun/23/stanford_center_is_first_blackbox_recipient.html</a> </p> <p> <a href="http://www.youtube.com/watch?v=svLdboZdfQ0">www.youtube.com/watch?v=svLdboZdfQ0</a> </p> <p> <img src="http://www.sun.com/images/k3/k3_project_blackbox_1.jpg"> </p> htop - interactive process-viewer for linux http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/htop.rdoc Are you also sick of good old top? Especially if your tasks run for 20 days and more? You might want to have a look at <a href="http://htop.sourceforge.net/">htop</a>. <p> <img src="http://htop.sourceforge.net/htop-0.5.jpg"> </p> SSH login without password http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/SSHLoginNoPassword.rdoc Nice <a href="http://www.linuxproblem.org/art_9.html">solution</a>. pdftk - the pdf toolkit http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/pdftk.rdoc If PDF is electronic paper, then <a href="http://www.pdfhacks.com/pdftk/">pdftk</a> is an electronic staple-remover, hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. Pdftk is a simple tool for doing everyday things with PDF documents. Keep one in the top drawer of your desktop and use it to: <ul> <li>Merge PDF Documents </li> <li>Split PDF Pages into a New Document </li> <li>Rotate PDF Pages or Documents </li> <li>Decrypt Input as Necessary (Password Required) </li> <li>Encrypt Output as Desired </li> <li>Fill PDF Forms with FDF Data or XFDF Data and/or Flatten Forms </li> <li>Burst a PDF Document into Single Pages </li> <li>.. </li> </ul> <p> <img src="http://www.pdfhacks.com/pdftk/sledgehammer.gif"> </p> <p> The nice thing is that one can use it all from the commandline :-). </p> <ul> <li>Examples Merge Two or More PDFs into a New Document </li> </ul> <pre> pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf </pre> <ul> <li>Split Select Pages from Multiple PDFs into a New Document </li> </ul> <pre> pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf </pre> <ul> <li>Burst a Single PDF Document into Single Pages and Report its Data to doc_data.txt pdftk mydoc.pdf burst. </li> </ul> <p> <img src="http://www.approximity.com/~armin/blogPics/tokyoTower.jpg"> </p> puf - Parallel URL fetcher http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/Puf.rdoc <a href="http://puf.sourceforge.net/">puf</a> is a download tool for UNIX-like systems. You may use it to download single files or to mirror entire servers. It is similar to GNU wget (and has a partly compatible command line), but has the ability to do many downloads in parallel. This is very interesting, if you have a high-bandwidth internet connection. <p> On debian: </p> <pre> apt-get install puf </pre> <p> puf is one of these great commandline tools that one simply loves! </p> See openfiles http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/openFiles.rdoc Sometimes it is really useful to find out which files are open, as well as by what process/user. lsof and fuser are your friends. <p> Which files are opened by vim? </p> <pre> lsof -c vim </pre> <p> .. and which processes use the file tara.c? </p> <pre> fuser tara.c </pre> GoboLinux http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/GogoLinux.rdoc <img src="http://www.gobolinux.org/images/logonovo.png"> <p> <a href="http://www.gobolinux.com">GoboLinux</a> is an alternative Linux distribution which redefines the entire filesystem hierarchy. </p> <p> GoboLinux is a Linux distribution that breaks with the historical Unix directory hierarchy. Basically, this means that there are no directories such as /usr and /etc. The main idea of the alternative hierarchy is to store all files belonging to an application in its own separate subtree; therefore we have directories such as /Programs/GCC/2.95.3/lib. </p> <p> To allow the system to find these files, they are logically grouped in directories such as /System/Links/Executables, which, you guessed it, contains symbolic links to all executable files inside the Programs hierarchy. </p> <p> To maintain backwards compatibility with traditional Unix/Linux apps, there are symbolic links that mimic the Unix tree, such as &quot;/usr/bin -&gt; /System/Links/Executables&quot;, and &quot;/sbin -&gt; /System/Links/Executables&quot; (this example shows that arbitrary differentiations between files of the same category were also removed). </p> vncserver .. for crontab jobs that need a X-Display http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/vncServer.rdoc This old vncserver hack, can make life easy. I remember the old problem .. how can you generate graphs in R in cronjobs without going via the postscript format? <pre> 1. vncserver 2. enter password 3. remove all in ~/.vnc/xstartup that is not needed 4. work: DISPLAY=:1 R 5. vncserver -kill :DISPLAYNUMBER_FROM_STEP_1 </pre> <p> Thanks to Stefan! </p> Making videos to show off your latest software http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/MakeVideos.rdoc <a href="http://xvidcap.sourceforge.net/">xvidcap</a> is a great tool to to capture things going on on an X-Windows display to either individual frames or an MPEG video. <p> A big thanks to Michael Neumann who pointed out this too to me. He made his great wee-videos with xvidcap. </p> <p> <img src="http://xvidcap.sourceforge.net/instruct-Screenshot_small.jpg"> </p> Packet sniffing and replay http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/PacketSniffingReplay.rdoc I just came across this most useful <a href="http://www.quaking.demon.co.uk/ksnuffle.html">ksnuffle</a>. It will help us to automate some more work. Linux Virtual Server (LVS) http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/LVS.rdoc (mon+heartbeat+fake+coda solution) Virtual server is a highly scalable and highly available server built on a cluster of real servers. The architecture of cluster is transparent to end users, and the users interact with the system as if it were only a single high-performance virtual server. <p> The Linux Virtual Server as an advanced load balancing solution can be used to build highly scalable and highly available network services, such as scalable web, cache, mail, ftp, media and VoIP services. <a href="http://www.linuxvirtualserver.org/software/index.html">link</a> </p> Recording streaming sound with vsound http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/HowToRecordStreamingSound.rdoc Vsound - a Virtual Audio Loopback Cable <p> This program allows you to record the output of any standard OSS program (one that uses /dev/dsp for sound) without having to modify or recompile the program. It uses the same idea as the esddsp wrapper from the Enlightened Sound Daemon (in fact, vsound is based on esddsp). That is, it preloads a library that intercepts calls to open /dev/dsp, and instead returns a handle to a normal file. It also intercepts ioctl&#8217;s on that file handle and logs them, to help convert the audio data from its raw form. Vsound then uses sox to convert the raw data to the desired file format. </p> <p> The upshoot of this is that instead of playing sound to the sound card in your computer, the data is recorded to a file. This is similar to if you connected a loopback cable to the line in and line out jacks on your sound card, but no DA or AD conversions take place, so quality is not lost. </p> <p> One use of vsound is to help convert real audio files to some other format. Since the real audio format is proprietary, and all we have is a player, we can use the vsound to create a wave file like so: </p> <pre> vsound -t -f /data/dvdburn/LL2/s2.wav realplay rtsp://18.39.0.30/ailab/mit-ll2-s2-09nov02-80k.rm </pre> GNU/Linux Desktop Survival Guide http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/SurvivalGuide.rdoc Good free <a href="http://www.togaware.com/linux/survivor/">book</a>. Webcam to watch penguins :-) http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/WebCamPenguins.rdoc Enjoy! <img src="http://vlbi.leipzig.ifag.de/ohiggins/ohig-pingi-z.jpg"> Ubuntu - nice Linux distro based on debian http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/Ubuntu.rdoc Their solgan: &quot;Ubuntu&quot; is an ancient African word, meaning &quot;humanity to others&quot;. Ubuntu also means &quot;I am what I am because of who we all are&quot;. The Ubuntu Linux distribution brings the spirit of Ubuntu to the software world. <p> Logo: <img src="http://www.ubuntulinux.org/site_icon.gif"> <img src="http://www.ubuntulinux.org/login.jpeg"> </p> <p> It comes with Gnome 2.8 and a 2.6 Kernel. The overall install was amazingly simple. <a href="http://www.ubuntulinux.org/">Download</a> it. </p> Mozex + Firefox = vim + mutt http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/Mozex.rdoc A big thanks to Mark for the link and comment. <p> I consider the mozex extention for Firefox a &quot;must have.&quot; With mozex, I can edit textareas with vim and handle mailto links with mutt! </p> <p> Mozex will also enable you to view html source in vim. <a href="http://www.newsforge.com/article.pl?sid=04/10/12/1644203">link</a> </p> <p> You can edit your mozex prefs by typing about:config in Firefox. </p> Great Firefox Webdeveloper extension http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/ValidatorFirefox.rdoc Among many other goodies it includes a call to the W3 validator. <a href="https://update.mozilla.org/extensions/moreinfo.php?application=firefox&id=60&vid=645">link</a> Do you also type :w in your favourite texteditor? http://www.approximity.com/cgi-bin/blogtariAgile/index.rb/Linux/VimFox.rdoc For all these great folks out there that hate Word and openoffice for not understanding :w :-). <p> Vim-like <a href="http://www.calmar.ws/firefox/index.php">bindings</a> for firefox. </p>