Linux HOWTOs

About | Home | Search

HOWTO: linux_logo
Description: Creates an ANSI or ASCII Linux logo to use for /etc/issue
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything

# linux_logo 5.11
# ===============
# I've been using this for years, never even thought to cover it here
# until 2012...

# If you ever want to remove linux_logo, skip down to the bottom for
# instructions.

# Get it
test -f installed/linux_logo-5.11.tar.gz &&
 mv installed/linux_logo-5.11.tar.gz .
test ! -f linux_logo-5.11.tar.gz &&

# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "linux_logo-*" -exec rm -r {} \;
tar xzvf ~/linux_logo-5.11.tar.gz
cd linux_logo-5.11
test $UID = 0 && chown -R root:root .

# Configure and build it
# (FYI - this is not an autoconf configure script)

# Become root to install it

# 'make install' puts the man page under /usr/local/share/man, which
# does not exist in Slackware by default, so I run install manually here.
# If you need the .mo file(s), do this:  ( cd po ; make install )

# Install the program and man page
install -m 755 -s linux_logo /usr/local/bin/
install -m 644 linux_logo.1.gz /usr/local/man/man1/

# To use linux_logo for your login screen, do something like this, which
# you may want to add to /etc/rc.d/rc.local
test -x /usr/local/bin/linux_logo && 
 /usr/local/bin/linux_logo -f \
  -t "$(cat /etc/slackware-version | cut -d'.' -f1,2 )" \
   > /etc/issue

# Become your non-root user again

# Save the tarball for later
mkdir -p -m 0700 installed
rm -f installed/linux_logo-*.tar.*
mv linux_logo-5.11.tar.gz installed/

# If you ever want to uninstall linux_logo, this should do it:
su -c "rm -f /usr/local/bin/linux_logo /usr/local/man/man1/linux_logo.1.gz"
find ~/src -maxdepth 1 -type d -name "linux_logo-*" -exec rm -r {} \;
rm -f ~/installed/linux_logo-*.tar.*

Back to the list

Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>