Wmii Python script to monitor remote machines
I like to monitor our web servers by ssh'ing into the remote machine and watching "top", tailing log files, etc. Normally, I open a terminal, ssh into the remote machine, run the monitoring command (e.g. "top"), then repeat for the rest of the remote machines. Then I adjust the window sizes so I can see everything at once.
My window manager, wmii, is great for tiling a bunch of windows at once. It is also scriptable with Python, so I wrote a Python script to create my web server monitoring view. Below is my script. I also put ...
... read more »How to make urxvt look like gnome-terminal
My terminal of choice is rxvt-unicode (urxvt) because it is fast and lightweight. However, I recently opened up gnome-terminal and it was so much prettier than my urxvt. Here's how I made my urxvt look like gnome-terminal. The last step involves compiling urxvt from source because the latest source includes a patch to configure horizontal spacing of letters.
Set up colors
Add the following to your ~/.Xdefaults file:
! to match gnome-terminal "Linux console" scheme ! foreground/background URxvt*background: #000000 URxvt*foreground: #ffffff ! black URxvt.color0 : #000000 URxvt.color8 : #555555 ! red URxvt.color1 : #AA0000 URxvt.color9 : #FF5555 ! green URxvt.color2 ...... read more »
How to get anti-aliased fonts for Cygwin with urxvt
urxvt, or rxvt-unicode, is a better alternative to rxvt and xterm that supports xft (read anti-aliased) fonts. Here's how to make your terminal pretty:You need: Cygwin with X, urxvt, and fontconfig (all available through Cygwin's setup utility)
- To see the list of available fonts run:
$ fc-list - Select a font and put it in your ~/.Xdefaults file. e.g.
URxvt*font: xft:Bitstream Vera Sans Mono:size=12 Urxvt*boldFont: xft:Bitstream Vera Sans Mono:size=12:style=Bold
- Run:
$ urxvt
Bitstream Charter:style=Bold Bitstream Charter:style ...... read more »
Cygwin, X, ratposoin, screen, rxvt setup
Here are my configuration files for my current Cygwin, X, ratpoison, screen, urxvt, bash setup.General Cygwin and bash
- I changed filename completion to be case-insensitive since we're on Windows. To do this, see the last line in ~/.bashrc and the last line in ~/.inputrc below.
- I changed the "/cygdrive" prefix to just "/". To do this, type this command once: "mount -s --change-cygdrive-prefix /"
- I added aliases to use "grep" and "ls" with color. And I added aliases to start various windows applications. See ~/.bashrc.
urxvt
- urxvt (rxvt-unicode) is a better alternative to rxvt and xterm. See the ~.Xdefaults file ...
My software tools list
Inspired by Mark Pilgrim's 2006 Essentials list, below is a list of my current software tools. If you notice a lot of "I switched from ..." statements, keep in mind that I am a programmer who likes shiny things.
Other lists¶
- Mark Pilgrim's Essentials, 2008 edition
- Adam Gomaa's Essentials (2008)
- Here is a 2010 update for Mark Pilgrim. After 2 and a half years, I still have several items in common: Ubuntu running rxvt-unicode and Emacs 23, the Unicomp keyboard, an Android phone, Gmail, Google Reader, Google Docs, and Pandora.
Contents¶
|
About
I'm Eliot and this is my notepad for programming topics such as Python, Django, Ubuntu, Emacs, etc... more »
Search Blog
Tags
-
algorithms
(4)
-
aws
(8)
-
blogproject
(20)
-
c_cplusplus
(12)
-
cardstore
(8)
-
colinux
(2)
-
concurrency
(9)
-
conkeror
(2)
-
cygwin
(18)
-
datastructures
(15)
-
datetime
(3)
-
dell
(3)
-
django
(39)
-
emacs
(20)
-
files_directories
(10)
-
install_setup
(7)
-
javascript
(3)
-
keyboard
(6)
-
matplotlib
(5)
-
mercurial
(4)
-
nginx
(2)
-
preferences
(8)
-
processes
(3)
-
pyqt
(18)
-
python
(122)
-
ratpoison
(3)
-
regexes
(5)
-
rsync
(3)
-
softwaretools
(17)
-
sql
(13)
-
ssh
(7)
-
subversion
(6)
-
twisted
(6)
-
ubuntu
(60)
-
urxvt
(5)
-
vxworks
(25)
-
webservices
(4)
-
wmii
(7)
Blogroll
- Adam Gomaa
- Alex Clemesha
- Amir Salihefendic
- Armin Ronacher
- David Beazley
- David Ziegler
- Duncan McGreggor
- Gareth Rushgrave
- Glyph Lefkowitz
- Guido van Rossum
- Ian Bicking
- Jacob Kaplan-Moss
- James Bennett
- James Tauber
- Jesper Noehr
- Matt Harrison
- Nikolay Kolev
- Parand Darugar
- Peter Baumgartner
- Peter Bengtsson
- Rob Hudson
- Simon Willison
- Will McGugan