old-www/HOWTO/X-Big-Cursor-3.html

83 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>X11-big-cursor MINIHOWTO: How to do it</TITLE>
<LINK HREF="X-Big-Cursor-4.html" REL=next>
<LINK HREF="X-Big-Cursor-2.html" REL=previous>
<LINK HREF="X-Big-Cursor.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="X-Big-Cursor-4.html">Next</A>
<A HREF="X-Big-Cursor-2.html">Previous</A>
<A HREF="X-Big-Cursor.html#toc3">Contents</A>
<HR>
<H2><A NAME="howto"></A> <A NAME="s3">3. How to do it</A></H2>
<P>Follow the steps detailed below. If you don't want to get and compile
the bdfresize package yourself, you can skip to step 3 and download a
magnified font instead of creating it.
<OL>
<LI> get cursor.bdf, the source of the cursor font, from some X
distribution, e.&nbsp;g. from
<A HREF="ftp://ftp.x.org/pub/R6.3/xc/fonts/bdf/misc/cursor.bdf">ftp://ftp.x.org/pub/R6.3/xc/fonts/bdf/misc/cursor.bdf</A> (if you don't
find it there try an archie search or get it from
<A HREF="http://i11www.ira.uka.de/~schneid/X11-big-cursor/cursor.bdf">my copy</A>). </LI>
<LI> get, compile and install the bdfresize package from
<A HREF="ftp://ftp.cs.titech.ac.jp/X11/contrib/Local/bdfresize-1.4.tar.Z">ftp://ftp.cs.titech.ac.jp/X11/contrib/Local/bdfresize-1.4.tar.Z</A>
(or from
<A HREF="http://i11www.ira.uka.de/~schneid/X11-big-cursor/bdfresize-1.4.tar.gz">my copy</A>):
<PRE>
zcat bdfresize-1.4.tar.Z | tar xf -
cd bdfresize-1.4
xmkmf
make
</PRE>
On Linux you probably have to use:
<PRE>
make CCOPTIONS='-include /usr/include/bsd/bsd.h' clean all
</PRE>
</LI>
<LI> create a directory and install a magnified cursor font in it
(magnification factor 2 in this example):
<PRE>
mkdir $HOME/fonts
bdfresize -f 2 cursor.bdf | bdftopcf >$HOME/fonts/cursor2.pcf
mkfontdir $HOME/fonts
</PRE>
I have prepared some
<A HREF="http://i11www.ira.uka.de/~schneid/X11-big-cursor/fonts/">cursor fonts</A>
with the following magnification factors: 1.5, 2, 2.5, 3, 4, 5,
6, 7, 8 and 16. You can download one of them an copy it to
<CODE>$HOME/fonts</CODE> if you don't want to use bdfresize.
</LI>
<LI> modify your <CODE>.xinitrc</CODE> or <CODE>.xsession</CODE> file: before
any X client (that uses cursors) is started the following
commands must be executed:
<PRE>
xset +fp $HOME/fonts
xsetroot -cursor_name X_cursor
</PRE>
</LI>
<LI> leave your X session and restart.</LI>
</OL>
<P>That's it&mdash;now all mouse cursors should have doubled in size.
<P>
<P>
<HR>
<A HREF="X-Big-Cursor-4.html">Next</A>
<A HREF="X-Big-Cursor-2.html">Previous</A>
<A HREF="X-Big-Cursor.html#toc3">Contents</A>
</BODY>
</HTML>