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:
#   http://artax.karlin.mff.cuni.cz/~mikulas/links/ (links.browser.org)
#   http://links.sourceforge.net/
# then there's Links-Lua:
#   http://links.sourceforge.net/links-lua/
# and ELinks:
#   http://elinks.or.cz/
# and the Hacked Links Project:
#   http://xray.sai.msu.ru/~karpov/links-hacked/
# 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 X.org (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)

cd
test -f installed/links-2.2.tar.bz2 &&
 mv installed/links-2.2.tar.bz2 .
test ! -f links-2.2.tar.bz2 &&
 wget http://links.twibright.com/download/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
make

# Become root to install it
su

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

# Become yourself again
exit

cd
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:
cd
su
test -d src/links-* && ( cd src/links-* ; make uninstall )
rm -f /usr/bin/links /usr/man/man1/links.1
exit
find ~/src -maxdepth 1 -type d -name "links-*" -exec rm -r {} \;
rm -f ~/installed/links-*.tar.*

Back to the list


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