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 »Install wmii snapshot 20090703 on Ubuntu Jaunty
On Friday I installed the latest snapshot of wmii, the lightweight, tiling, dynamic, scriptable, keyboard navigatable window manager. (See my wmii tag for more posts about wmii.) Wmii orangizes windows into columns. Traditionally there has been three modes for each column: default, stack, and max. "Default" shows all windows in a column. "Stack" shows only one window at a time with the title bars of the other windows showing. "Max" shows only one window without any other titlebars. I usually use two columns each in stack mode. To navigate windows, I use Mod4+j/k to move among windows in ...
... read more »Scripting wmii column widths with Python
I mentioned in my previous post on using wmii with Gnome that I had written a script for resizing the column widths in wmii. This is the followup post. Note, I am using the 20080520 snapshot of wmii. This doesn't work with wmii 3.6 (as Marco commented below).
To incrementally change window sizes, I use the following in my
~/.wmii-3.5/wmiirc file:
Key $MODKEY-y # shrink horizontally wmiir xwrite /tag/sel/ctl grow sel sel right -10 wmiir xwrite /tag/sel/ctl grow sel sel left -10 Key $MODKEY-u # grow horizontally wmiir xwrite /tag/sel/ctl grow sel ...... read more »
Using wmii with Gnome
Thanks to Glyph, I can now use wmii as the window manager for Gnome. I like wmii because it makes good use of screen real estate, is keyboard-navigatable, is scriptable1, and uses minimal resources2.
It is possible to use
gnome-panel within wmii-- just press
MOD+P gnome-panel RET. And you can manually fine tune your
.xinitrc or .xsession by adding your required stuff
such as gnome-power-manager and nm-applet. (This is what
I had been doing (and may continue to do depending on how this full on Gnome thing
works out ...
Install wmii snapshot
These are my notes for installing wmii snapshot in my home directory on Ubuntu 8.04 Hardy.
- Download the latest snapshot (wmii+ixp-20080520) from the
wmii homepage
and save it to
~/incoming. - Untar the snapshot.
$ cd ~/incoming $ tar -zxvf wmii+ixp-20080520.tgz
- Install prerequisites:
$ sudo apt-get install build-essential xorg-dev
$ sudo apt-get install dwm-tools
- Build: (I left the defaults for everything during make config except
for the path. I changed this to a temporary directory,
~/tmp/wmii.)$ cd ~/incoming/wmii+ixp-20080520 $ make config $ make $ make install
- Move bin, etc, lib, and share to a new wmii directory.
$ mkdir ~/lib/wmii $ mv ...
Install coLinux (and Ubuntu Hardy) on Win XP using Slirp to internet and TAP to host behind a corporate firewall/proxy server
coLinux allows you to run a full Linux distribution, such as Ubuntu Hardy, on top of Windows at near native speeds. It runs as a single Windows process with its own specially allocated address space. The guest linux system can run from either a separate disk partition or from a single file on your Windows filesystem.
My initial impression of coLinux was so positive, I had planned to name this post, Goodbye Cygwin, hello coLinux. After 2 months of using coLinux, I still am using Cygwin a little bit. Despite being slow, (almost unbearably slow with my company's mandatory ...
... read more »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