SVGAlib is a low-level graphics library that provides VGA and SVGA modes in a console. This is useful for programs running on a console that require graphics capabilities.
Download (HTTP): http://www.svgalib.org/svgalib-1.4.3.tar.gz
Download (FTP): ftp://ftp.ibiblio.org/pub/Linux/libs/graphics/svgalib-1.4.3.tar.gz
Download size: 827 KB
Estimated Disk space required: 9.7 MB
Estimated build time: 0.20 SBU
Note: You must compile and install as root. If you don't nothing bad will happen during compilation, but certain tools won't be able to become SUID root which is required for proper operation. However, this raises a risk of exposing your system to any holes in those tools that might be used to gain root access so use with caution.
Install SVGAlib by running the following commands:
patch -Np1 -i ../svgalib-1.4.3-gcc3-1.patch && make prefix=/usr install && cd doc && for dir in man?; do for file in $dir/*; do \ gunzip /usr/share/man/$file; done; done |
cd doc && for dir in man?; do for file in $dir/*; do gunzip /usr/share/man/$file; done; done: SVGAlib installs it's man pages in compressed format so we uncompress them.
/etc/vga/libvga.config, ~/.svgalibrc
You must edit the config file to set the monitor and mouse type. Depending on your hardware, other setup might be required.
As with most libraries, there is no configuration to do, save that the library directory i.e. /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.
The SVGAlib package contains libvga and libvgagl libraries, dumpreg, mode3, restorefont, restorepalette, restoretextmode, savetextmode, textmode and svgakeymap.
libvga is a low-level graphics library.
libvgagl is a fast frame buffer level graphics library based on libvga.
dumpreg dumps the state of the card as the svgalib chipset driver sees it.
mode3 sets a VESA mode.
restorefont saves or restores the SVGA font for textmode.
restorepalette sets the color palette for textmode.
restoretextmode saves or restores the SVGA registers for textmode.
savetextmode and textmode save or restore the complete SVGA status for textmode.
svgakeymap generates keymaps for svgalib.