Linux HOWTOs

About | Home | Search

HOWTO: links
Description: Similar to lynx but with frames, pulldowns, js, and graphical mode
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

# Links 2.2
# =========
# As of this version of this howto, we're using the /usr prefix
# for installation to match where Slackware's package puts it.
# If you are replacing an older version installed under /usr/local,
# or if you just want to clean up files from an older version, skip#
# down to the bottom for instructions.

# There are several different versions of links.  There's the original text
# mode one:
# (
# then there's Links-Lua:
# and ELinks:
# and the Hacked Links Project:
# Here we cover the newest links that runs at the console or under X,
# SVGAlib, framebuffer.  It's homepage is linked to below.

# Slackware 11.0: links 2.1pre23
# Slackware 12.0: links 2.1pre28
# Slackware 12.1: links 2.1pre33
# Slackware 12.2: links 2.2

# Prerequisites:
# pcre
# gpm (optional)
# pkg-config
# OpenSSL (if you want https:// support)
# SVGAlib (optional)
# DirectFB >= 0.9.17 (optional; for graphics mode)
# XFree86 or (for graphics mode)
# SDL >= 1.2.0
# libpng (if you want to display png images)
# libjpeg (if you want to display jpeg images)
# libtiff (if you want to display tiff images)

test -f installed/links-2.2.tar.bz2 &&
 mv installed/links-2.2.tar.bz2 .
test ! -f links-2.2.tar.bz2 &&
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "links-*" -exec rm -r {} \;
tar xjvf ~/links-2.2.tar.bz2
cd links-2.2
test $UID = 0 && chown -R root:root .

# If you're installing it on a machine with only text-based console use
# (no GUI), you'll probably want to leave off --enable-javascript and
# --enable-graphics

./configure --prefix=/usr --sysconfdir=/etc \
 --enable-javascript --enable-graphics

# Become root to install it

test -x /sbin/removepkg && /sbin/removepkg links
make install

# Become yourself again

mkdir -p -m 0700 installed
rm -f installed/links-*.tar.*
mv links-2.2.tar.bz2 installed/

# To use links the normal way, use it the normal way...  :-)
# To use it in graphics mode, run links -g

# Note: you can use graphics/links.xpm as an icon in KDE/Gnome/whatever

# If you ever want to uninstall links, this should do it:
test -d src/links-* && ( cd src/links-* ; make uninstall )
rm -f /usr/bin/links /usr/man/man1/links.1
find ~/src -maxdepth 1 -type d -name "links-*" -exec rm -r {} \;
rm -f ~/installed/links-*.tar.*

Back to the list

Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>