Linux Logo hint
Rob 'Feztaa' Park
feztaa at shaw.ca
Fri Feb 8 17:45:10 PST 2002
I wrote a quick script to make Linux display a penguin logo when the
computer boots (before the login prompt). It's attached.
Unfortunately there is one line that is greater than 80 chars and cannot
be shortened (it's a cat command used to create a config file, and the
entire config file must be on one line. Nothing I could do, sorry). I
hope this is acceptable.
Rob 'Feztaa' Park
feztaa at shaw.ca
"Your password must be at least 18770 characters and cannot repeat
any of your previous 30689 passwords. Please type a different
password. Type a password that meets these requirements in both
-- Actual Microsoft Error Message
-------------- next part --------------
TITLE: Using Linux Logo to Spruce Up Your Login Prompt
LFS VERSION: All
AUTHOR: Robert Park <feztaa at shaw.ca>
How to get an attractive login prompt using the Linux Logo
Fri 8th 2002 Ver. v1.0
If you've used mandrake, and seen it boot into runlevel 3, you've
probably noticed the cute ANSI/ASCII-art Tux that precedes the login
prompt. This hint will tell you how to create the same effect on your
All you need is the source code to linux logo, which can be found here:
You might also want the logo that I hacked together from one of the
logos packaged with Linux Logo (it looks a little better with small font
This hint uses SysVInit bootscripts, though it's not hard at all to
implement this with BSD-style bootscripts.
1. Unpack linuxlogo, and move my logo into the logos subdirectory, if
you choose to use it.
2. Compile it like this:
3. I advise you to read the README and configure linuxlogo to the way
you want it to display the logo when you are logging in.
4. I configured mine like this:
cat > /etc/linux_logo.conf << "EOF"
-t "Feztux" -L 12 -F "\n\n#E GNU/#O #V on #H.\nCompiled #C.\n#N #M #X #T #P.\n#R RAM, #B Bogomips Total. "
Explanation: we are creating the config file for the program, which
really is just a file that contains commandline options for it.
The -t option specifies a custom string, which in this case is the name
I gave to my LFS system (not hostname, but mock distro-name).
The -L option tells it to use the 12th logo, which is the one I altered.
The -F option configures how the system information is formatted (read
the readme on how to set this option).
If you want to have linux clear the screen before printing the logo, and
thus hiding the output of your bootscripts after everything finishes
loading, add the -f option to this file. More details and options are in
5. Now we'll make the bootscript for it:
cat > /etc/init.d/issue << "EOF"
# Begin /etc/init.d/issue
# Include the functions declared in the /etc/init.d/functions file
case "$1" in
echo -n "Setting /etc/issue ... "
linux_logo >/etc/issue 2>&1
echo "Usage: $0 start"
# End /etc/init.d/issue
6. Finally, make the symlinks to the script. You can run the script
while your computer boots and shuts down if you wish, but it really only
makes sense to run it while the computer is booting. So, only make the
symlink in /etc/rc3.d, assuming you boot to runlevel 3:
cd /etc/rc3.d &&
ln -s ../init.d/issue S350issue
If you tried to run linux_logo in a terminal, you probably noticed
a weird bug: After linux_logo is done printing the logo, bash will
draw the shell prompt somewhere inside of the logo, such that they
overlap, and it will look weird and bad. Don't worry: even though that
happens to bash, /etc/issue is still created properly. If you want to
run linux_logo from a terminal and not see this bug, run linux_logo as
'linux_logo;echo;echo;echo' and it should work.
Also, if you try to cat /etc/issue, you will have the same problem
as running linux_logo on it's own. Don't worry about this either, as
/etc/issue displays properly at the login prompt.
Reboot your computer and enjoy the new logo! ;)
If you want to see what it looks like on my computer using the logo that
I made, see this:
That screenshot is from an xterm, though, so the colors will be slightly
different on the console when you boot the computer.
If you have any questions, do not hesitate to ask!
More information about the hints