<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Admin&#039;s Archive &#187; Debian</title>
	<atom:link href="http://www.on-tap.org/category/unix-linux/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.on-tap.org</link>
	<description></description>
	<lastBuildDate>Mon, 16 Nov 2009 18:43:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a Custom Dynamic Pre-login MOTD</title>
		<link>http://www.on-tap.org/2009/10/16/create-a-custom-dynamic-motd/</link>
		<comments>http://www.on-tap.org/2009/10/16/create-a-custom-dynamic-motd/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 01:57:08 +0000</pubDate>
		<dc:creator>Devin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux & Unix]]></category>

		<guid isPermaLink="false">http://tech.on-tap.org/?p=126</guid>
		<description><![CDATA[Have you ever wanted to create a custom message to be displayed on the Linux pre-login console, which is dynamically updating?
Well, this tutorial will help you do it. I&#8217;ve only tested this on Ubuntu 8.04, so please let me know if it works for other distributions. Thanks!
First, create a shell script to re-generate the /etc/issue [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to create a custom message to be displayed on the Linux pre-login console, which is dynamically updating?</p>
<p>Well, this tutorial will help you do it. I&#8217;ve only tested this on Ubuntu 8.04, so please let me know if it works for other distributions. Thanks!</p>
<p>First, create a shell script to re-generate the /etc/issue file. For this example, I&#8217;ll create a message that shows how to access the webmin interface. <span style="color: #99ccff;">Add this code to a file called /etc/init.d/new_issue.sh:</span><br />
<code><br />
#!/bin/bash<br />
######################################################<br />
# Prints login/port info above console login prompt. #<br />
######################################################<br />
# get configured IP for eth0<br />
IPADDR=$(/sbin/ifconfig eth0 | sed -n 's/.*inet *addr:\([0-9\.]*\).*/\1/p')<br />
# generate new /etc/issue<br />
/bin/echo "Ubuntu 8.04.3 LTS \n \l" &gt; /etc/issue<br />
/bin/echo &gt;&gt; /etc/issue<br />
/bin/echo "************************************************" &gt;&gt; /etc/issue<br />
/bin/echo "Webmin:  https://$IPADDR:12345" &gt;&gt; /etc/issue<br />
/bin/echo "************************************************" &gt;&gt; /etc/issue<br />
/bin/echo &gt;&gt; /etc/issue<br />
exit 0<br />
</code><br />
Once that&#8217;s done, <span style="color: #99ccff;">issue the following commands to make the script executable, and tell Linux to run as one of the last scripts in the default runlevels:</span><br />
<code><br />
[root@linux]$ chmod 755 /etc/init.d/new_issue.sh<br />
[root@linux]$ update-rc.d new_issue.sh defaults 99<br />
</code><br />
This should now replace the default <em>issue</em> message with your custom one. Then reboot, and you should see your new custom message sitting just above your console login!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.on-tap.org/2009/10/16/create-a-custom-dynamic-motd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
