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
cd
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 &&
 wget http://www.deater.net/weave/vmwprod/linux_logo/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)
./configure
make

# Become root to install it
su

# '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
exit

# Save the tarball for later
cd
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:
cd
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: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>