Linux Mall - The Linux SuperStore!
Linux books, Linux CDs, Linux toys, you name it, they have it!

W W W . L I N U X D O T . O R G

Newbie's Linux Manual
Customising Your Login Message
by Laurence Hunter
[ Home ] [ Contents ] [ Download*] [ Previous ] [ Next ]
* In Linux enter: unzip nlm.zip
Trivial but Nice
Pretty trivial this, but nice all the same.

- 1 -

Enter:

su -c "pico /etc/issue"

...and change the contents of the text file to whatever you want.

- 2 -

Press Ctrl+O to save the file, then Ctrl+X to exit.

- 3 -

When you reboot Linux the login message and the /etc/issue file you've just edited will return to the default. To prevent this, enter:

su -c "pico /etc/rc.d/rc.local"

...and begin each of the following lines (indicated in bold) with a hash (#) character so that Linux ignores them. If at any time you want the default login message to return, simply remove the offending hash characters.

# This will overwrite /etc/issue at every boot. So, make any changes you
# want to make to /etc/issue here or you will lose them when you reboot.
# echo "" > /etc/issue
# echo "$R" >> /etc/issue
# echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue

# cp -f /etc/issue /etc/issue.net
# echo >> /etc/issue
fi

- 4 -

Press Ctrl+O to save the file, then Ctrl+X to exit.

- 5 -

Either press Ctrl+D to log-out, or press Alt+F2 to switch to the second virtual terminal to see your new improved login message!

[ Home ] [ Contents ] [ Download*] [ Previous ] [ Next ]
* In Linux enter: unzip nlm.zip
Homepage | The Last 5 Days | The Daily Linux News | The Linux Bits | Newbie's Linux Manual
The Best Linux Sites | Linux Book Reviews | A Windows Vendetta?
Diary of a Linux Newbie | Diary of an Open Source Newbie
The Linux Forum | Just For Fun
Amazon - The World's Biggest Bookstore!
4.7 million books, CDs, videos, and DVDs available to buy!
© MM Linuxdot.org | Webmaster | Manual's Copyright Terms