📄 linux-x-explorer.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"><HTML><HEAD><TITLE>Installing Linux Explorer</TITLE> <META NAME="Description" CONTENT="A document on how to install Linux Explorer, a look-alike of the Windows 95 Explorer."> <META NAME="Keywords" CONTENT="linux, explorer, installing, qt, autoconf, m4"><BASE TARGET="_top"></HEAD><LINK REL="stylesheet" TYPE="text/css" HREF="default.css"><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#7F007F"><H2><A NAME="0">Installing X-Plorer</A></H2><B><FONT SIZE=-1>Created July 26, 1997</FONT></B><BR><B><FONT SIZE=-1>Written by Joshua Go</FONT></B><BR><B><FONT SIZE=-1>Last updated: October 6, 1998</FONT></B><P>Linux Explorer (now called X-Plorer), an X file manager, is alook-alike of the Windows 95 Explorer, written for the Linux/X11interface.</P><P>The homepage of X-Plorer is at <AHREF="http://www.x-plorer.org/">http://www.x-plorer.org/</A>. Pleasevisit that page if you're looking for official information. The homepageof Qt is at <AHREF="http://www.troll.no/qtinfo.html">http://www.troll.no/qtinfo.html</A>. The same applies as with the previous URL.</P><P>Please also note that I have <I>not written a single line of code</I>for the X-Plorer project. Too many people think that I actually wroteX-Plorer for some reason. Maybe I didn't make it clear.</P><P>The reason I wrote this page is because Qt is required to run X-Plorer,as well as some optional extras. The setup of Qt went smoothly for me, butit <I>did</I> require a little reading and some thinking. I would suggestthat you download from the following sites and subdirectories for thelatest version of the software:</P><UL><LI><A HREF="ftp://ftp.troll.no/qt/source/">ftp://ftp.troll.no/qt/source/</A> -- Qt library</LI><LI><A HREF="http://www.x-plorer.org/download/source/">http://www.x-plorer.org/download/source</A> -- Linux Explorer</LI><LI><A HREF="http://jungfrau.ptf.hro.nl/explorer/download/ms_icons.tar.gz">http://jungfrau.ptf.hro.nl/explorer/download/ms_icons.tar.gz</A> -- the icons to make it look even more like Windows Explorer</LI></UL><A NAME="qt"></A><H3><A NAME="1">Qt</A></H3><P>You should copy or move the <TT>qt-1.40.tar.gz</TT> file to<TT>/usr/local/</TT> and extract it as root. It should create a directoryin <TT>/usr/local/</TT>, which you should then move to the directory<TT>qt</TT>. For example, if it extracted to <TT>/usr/local/qt-1.40</TT>,then you should move it to <TT>/usr/local/qt</TT> by typing <B><TT>mvqt-1.40 qt</TT></B> when you're in <TT>/usr/local</TT>. Then change yourworking directory to `qt' by typing <B><TT>cd qt</TT></B>.<P>Now, you have to tell your system where to find the Qt library. To setenvironment variables, put the following into /etc/profile (preferably atthe bottom):</P><PRE>QTDIR=/usr/local/qtMANPATH=$QTDIR/man:$MANPATHLD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHLIBRARY_PATH=$LD_LIBRARY_PATHCPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATHPATH="$PATH:/usr/X11R6/bin:$QTDIR/bin"export QTDIR MANPATH LD_LIBRARY_PATH LIBRARY_PATH CPLUS_INCLUDE_PATH</PRE><P>You should log out and log in again for these changes to takeplace.</P><P>For more information on these environment variables, please read theINSTALL file that came with the Qt archive. The line starting with<B>export</B> really only needs to be there so that it will work whenyou're using a shell other than your default shell, <B>bash</B>. Forexample, if you want to use the <TT>tcsh</TT> shell and <TT>bash</TT> isyour default shell, you'll have to add that. If you don't know what I'mtalking about, don't worry about it; it's just a good thing to have inthere. Thanks to <A HREF="mailto:jryan@express-news.net">Justin</A> forpointing this out to me.</P><P>Once you're in the `qt' directory, type <B><TT>makelinux-g++-shared</TT></B> to have the script start configuring; to have itstart building all the stuff you need, just type <B><TT>make</TT></B>.</P><P>If something goes wrong with the environment variables finding thecorrect path to the Qt libraries so I just copied all the files in<TT>/usr/local/qt/lib/</TT> to <TT>/lib</TT>. That seemed to solve theproblem for me, although the environment variable thing should work formost people... just log out and log back in again after making the changesto <TT>/etc/profile</TT> or restart <TT>bash</TT>.</P><P>I believe a better solution would be to add <B>/usr/local/qt/lib</B>(or wherever your Qt is) to your <B>/etc/ld.so.conf</B> file and then run<TT>ldconfig</TT>. That will put your Qt library directory in the paththat programs search by default when they're either starting up or whenthey ask the system for libraries. (I'm no programmer so I wouldn'tknow...)</P><A NAME="explorer"></A><H3><A NAME="2">Linux Explorer</A></H3><P>Here, you can either run <TT>./configure</TT>, <TT>make</TT>, and then<TT>make install</TT> as root after you extract the archive. It's thatsimple. If you don't want to wait, just type <TT>configure ; make ;make install</TT> so that once each process is done, the next onestarts.</P><P>From what I can remember, after <TT>make install</TT> the<TT>explorer</TT> binary file was placed into the correct directory. Thatmeans you can key in <TT>explorer</TT> from an xterm window or make itpart of the menu of your window manager (editing the .*rc or some othermenu file, whose filename will depend on what window manager you use).</P><A NAME="icons"></A><H3><A NAME="3">Icons</A></H3><P>The extra icons that I listed as an archive at the beginning of thissection of the guide gives the Linux Explorer an even more Windows 95-ishlook. I would suggest that you back up the old icons that came with LinuxExplorer by typing <B><TT>tar -czvf /usr/local/share/icons-old.tar.gz/usr/local/share/icons/*</TT></B> as root. If you choose to use thedefault icons, that's okay too.</P><P>You can extract <TT>ms_icons.tar.gz</TT> anywhere you want. Just copythe contents of the directory that it extracts by typing this as rootafter extraction:</P><PRE>cp -f ./ms-icons/* /usr/local/share/icons</PRE><P>Now start (or restart) X-Plorer... if everything went well, great. Ifnot, keep reading... there might be something to help you.</P><HR><A NAME="notes"></A><H3><A NAME="4">Author's Notes</A></H3><P>Some people have reported not having <TT>autoconf</TT> whileinstalling. If you're using Red Hat, see if you have autoconf installed bytyping <TT>rpm -q -a | grep "autoconf"</TT>. If it shows areadout similar to <TT>autoconf-2.12-1</TT> then the problem liessomewhere else, one that I don't know at the time of writing how to fix. That command reads out a list of RPMs and then searches for a text string. If it just takes you back to the prompt afterwards, then you don't haveautoconf installed. Download the .rpm file from your <AHREF="linux-ftp-sites.html">local Red Hat mirror</A>.</P><P>According to Paul J. Thompson (someone who wrote to me regarding thispage and also built a package of Linux Explorer for Debian systems),Debian users can check to see if they have autoconf installed by typing<TT>dpkg -l autoconf</TT>. The command simply lists the package status ofautoconf. Output from this command should show "ii" in thestatus column if autoconf is installed. Otherwise, it will show"pn" (or some other combination of ?n) in the status column. Similarly, they can check to see if the Qt libraries are installed ontheir system by typing <TT>dpkg -l qt1</TT>. Same story: "ii" ifit is installed or "pn" ("?n") if it isn't. Thesepackages can be found at your nearest Debian mirror. Autoconf will be inthe section "devel" while the Qt libraries package (qt1) willbe in the section "non-free".</P><P>If you're using Slackware, you'll have to download the tarred andgzipped archive through FTP from <TT><AHREF="ftp://prep.ai.mit.edu/pub/gnu/">prep.ai.mit.edu/pub/gnu/</A></TT>. At the time I last looked over this, the latest version is called<TT>autoconf-2.12.tar.gz</TT> in that directory. The brave soul who gaveme this information also said he had to download a file called<TT>m4-1.4.tar.gz</TT>, which is in that same directory. It should comewith installation instructions, according to that person, who wishes toremain anonymous. The autoconf archive can be installed with the standard<TT>./configure ; make ; make install</TT> procedure. You must install m4first, then autoconf, and after that, go back to where you left off inbuilding Linux Explorer on your system.</P><P>Another problem... this one is not just limited to X-Plorer. Sometimesthe compiler makes errors because of your hardware and spits out an errorconcerning some .o file (usually Sig11 errors). The simplest way to solvethis is to remove that .o file and redo the command that you typed inbefore that error came out (usually <TT>make</TT>).</P><P>When right-clicking on a file and choosing "Properties", itmay not work when the window manager you're using is WindowMaker. I don'tknow what's wrong but I had to kill the X-Plorer process. The propertiesdialog box doesn't seem to want to show up properly.</P><HR><P>Questions, comments, suggestions, corrections? Send 'em to <AHREF="mailto:jgo@local.net">jgo@local.net</A>. If you want to, youcan also make use of the <A HREF="help.html">help form</A>.</P><HR><P><B><FONT SIZE="-1">Copyright © 1997-1999 <AHREF="mailto:jgo@local.net">Joshua Go (jgo@local.net)</A>. Allrights reserved. Permission to use, distribute, and copy this document ishereby granted. You may modify this document as long as credit to me isgiven.</FONT></B></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -