Difference between revisions of "banner"

From Noah.org
Jump to navigationJump to search
m (moved Banner to banner: Fix capitalization)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[category:Engineering]]
+
[[Category:Engineering]]
 +
[[Category:Free_Software]]
 +
[[Category:Python]]
 +
== Banner ==
  
This script is my version of the classic `banner` program.
+
This is my version of the classic `banner` program. This is written in Python. It supports font rotation; XPM Pixmap output; two font sizes. It can read text from stdin or from the command-line.
  
I like to have a nice big banner display the machine name when I login.
+
=== MOTD banner ===
I use the following script to create a banner that I put in /etc/motd.
 
  
This script can also create text icons and labels for X-Windows.
+
I like to have a nice big banner display the machine name when I login. I use the following script to create a banner that I put in /etc/motd.
Using the -x option will tell the script to output in xpm format.
+
<pre>
Put the output in a file in /usr/share/pixmaps/ and you can use
+
# banner $HOSTNAME > /etc/motd
the icon anywhere in X-Windows.
+
</pre>
  
I put this in my ~/bin directory. This is part of my standard [Dotfiles dotfiles] distribution.
+
=== Simple XPM pixmaps ===
  
<include svncat src="file:///home/svn/src/dotfiles/bin/banner" highlight="python" />
+
This script can also create text icons and labels for X-Windows. Using the -x option will tell the script to output in xpm format. Put the output in a file in /usr/share/pixmaps/ and you can use the icon anywhere in X-Windows.
 +
 
 +
<pre>
 +
# banner -x -g 32x32 www noah org > /usr/share/pixmaps/www.noah.org.xpm
 +
</pre>
 +
 
 +
=== Install ===
 +
I put this script in my ~/bin directory. This is part of my standard [[Dotfiles]] distribution.
 +
 
 +
Download [http://www.noah.org/engineering/src/dotfiles/bin/banner banner]
 +
<include src="/home/noahspurrier/noah.org/engineering/dotfiles/bin/banner" highlight="python" />

Latest revision as of 15:45, 28 March 2010

This is my version of the classic `banner` program. This is written in Python. It supports font rotation; XPM Pixmap output; two font sizes. It can read text from stdin or from the command-line.

MOTD banner

I like to have a nice big banner display the machine name when I login. I use the following script to create a banner that I put in /etc/motd.

# banner $HOSTNAME > /etc/motd

Simple XPM pixmaps

This script can also create text icons and labels for X-Windows. Using the -x option will tell the script to output in xpm format. Put the output in a file in /usr/share/pixmaps/ and you can use the icon anywhere in X-Windows.

# banner -x -g 32x32 www noah org > /usr/share/pixmaps/www.noah.org.xpm

Install

I put this script in my ~/bin directory. This is part of my standard Dotfiles distribution.

Download banner <include src="/home/noahspurrier/noah.org/engineering/dotfiles/bin/banner" highlight="python" />