Click to See Complete Forum and Search --> : Login screen with linux_logo


rendler
10-13-2000, 09:54 PM
This script is for setting up your login screens and make them look a little neater. This script was made for Debian but can be easily modified for other distros. Name the script setissues and put it in /etc/init.d then create a link for it `ln -s /etc/init.d/setissues /etc/rc2.d/S99setissues` change the 2 to whatever the run level is.

#!/bin/sh

if [ -f /etc/debian_version ]; then
ver=$(cat /etc/debian_version)
con="Debian GNU/\s $ver \l"
tel="Debian GNU/%s $ver"
arch=$(uname -m)
os=$(uname -s)
kernel=$(uname -r)

echo "" > /etc/issue
/usr/local/bin/linux_logo -a -t "$con" >> /etc/issue

echo "" > /etc/issue.net
/usr/local/bin/linux_logo -a -l > /etc/issue.net
echo "" >> /etc/issue.net
echo "$tel" >> /etc/issue.net
echo "" >> /etc/issue.net
echo Welcome To %h >> /etc/issue.net
echo $os $kernel on $arch >> /etc/issue.net
echo "" >> /etc/issue.net
echo "" >> /etc/issue
fi

The end results are below

/etc/issue:
#####
#######
@ ##O#O##
###### @@# #VVVVV#
## # ## VVV ##
## @@@ ### #### ### ### ##### ###### # ##
## @ @# ### ## ## ## ### ## # ##
## @ @# ## ## ## ## ### # ###
## @@# ## ## ## ## ### QQ# ##Q
## # @@# ## ## ## ## ## ## QQQQQQ# #QQQQQQ
## ## @@# # ## ## ### ### ## ## QQQQQQQ# #QQQQQQQ
############ ### #### #### #### ### ##### ###### QQQQQ#######QQQQQ

Debian GNU/Linux woody tty6
Linux Version 2.4.0-test9, Compiled #2 Tue Oct 10 01:42:38 EST 2000
One 167MHz Intel Pentium MMX Processor, 24M RAM, 333.41 Bogomips Total
zippo.2y.net


zippo.2y.net login:

/etc/issue.net:
#####
#######
@ ##O#O##
###### @@# #VVVVV#
## # ## VVV ##
## @@@ ### #### ### ### ##### ###### # ##
## @ @# ### ## ## ## ### ## # ##
## @ @# ## ## ## ## ### # ###
## @@# ## ## ## ## ### QQ# ##Q
## # @@# ## ## ## ## ## ## QQQQQQ# #QQQQQQ
## ## @@# # ## ## ### ### ## ## QQQQQQQ# #QQQQQQQ
############ ### #### #### #### ### ##### ###### QQQQQ#######QQQQQ

Debian GNU/Linux woody

Welcome To zippo.2y.net
Linux 2.4.0-test9 on i586

zippo.2y.net login:

If that looks a little messed try http://lightning.prohosting.com/~rendler/screens.txt

[This message has been edited by rendler (edited 13 October 2000).]