📄 linux-foo.html
字号:
file looks like:</P><PRE># exec afterstep# exec fvwm95-2if [ -f $HOME/GNUstep/Library/WindowMaker/.workspace_state ]; then sh $HOME/GNUstep/Library/WindowMaker/.workspace_state &fiexec wmaker</PRE><P>That is set to run WindowMaker when I start up, and the commentedlines, the ones with the pound signs (#) at the beginning of the lines,are ignored. If you leave everything commented out, it'll give you thegray screen with the X-shaped mouse, so if that happens, you should knowwhat to look for. :)</P><A NAME="alias"></A><H3><A NAME="7"><A NAME="7">Alias to Start X</A></A></H3><P>On my system, I start X by typing <B>x</B> at the prompt, and it startsup in 24 bits per pixel mode when I do that. I can type <B>startx -- -bpp24</B>, but that takes time to type up. I can do this because I added aline to <TT>/etc/bashrc</TT> that goes like this:</P><PRE>alias x='startx -- -bpp 24'</PRE><P>Of course, if you prefer to run at some other video mode other than 24bits per pixel (16.7 million colors, I think) then you would replace"24" with 15, 16, 32, or whatever you may wish to run as thedefault.</P><P>With Slackware, you might have to edit <TT>/etc/profile</TT> instead of<TT>/etc/bashrc</TT> if it doesn't look in <TT>/etc/bashrc</TT> when auser logs in. I don't think aliases are <I>supposed</I> to go in<TT>/etc/profile</TT>, but it works.</P><A NAME="virtualdesktopoff"></A><H3><A NAME="8"><A NAME="8">Turning Off Virtual Desktop</A></A></H3><P>XFree86 usually annoys new users with something called virtual desktop. This can be described as a screen bigger than the one displayed, so thatwhen a user moves the mouse to the edge of the screen, it scrolls downinstead of staying there.</P><P>Only after using Linux for a year did I discover how to turn that off.Yeah, it gives me more desktop space, but as new users frequentlycomplain, it's annoying. :)</P><P>Anyway, the way I turned it off was by finally finding the right placeto edit in the <TT>/etc/X11/XF86Config</TT> file. The following is the area that you should edit:</P><PRE>Section "Screen" Driver "accel" Device "Diamond Stealth 3D 2000" Monitor "My Monitor" Subsection "Display" Depth 8 Modes "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection Subsection "Display" Depth 16 Modes "800x600" ViewPort 0 0 Virtual 800 600 EndSubsection Subsection "Display" Depth 24 Modes "800x600" "640x480" ViewPort 0 0 Virtual 800 600 EndSubsection Subsection "Display" Depth 32 Modes "800x600" "640x480" ViewPort 0 0 Virtual 800 600 EndSubsectionEndSection</PRE><P>This can be found towards the end of the file. At first I heard ofpeople editing this file and successfully getting the results that theywanted; I tried it, but I edited the wrong part of the file and thatdidn't make a difference at all.</P><P>Anyway, the way I got rid of my virtual desktop was to set it to be thesame resolution as the resolution I was running at. In my case that was800 by 600 (all modes from 8 bpp to 32 bpp). You can also trycommenting out the lines starting with "Virtual" by puttinga pound sign (#) at the beginning of the line.</P><A NAME="fonts"></A><H3><A NAME="9"><A NAME="9">Additional Fonts</A></A></H3><P>Most people might not be satisfied with the fonts included with thestandard distribution of X, so if you're one of them, read <AHREF="http://www.xach.com/gimp/tutorials/fonts.html" TARGET="_top">ZachBeane's tutorial on adding fonts to X</A>.</P><P>The fonts themselves are available from <AHREF="ftp://ftp.cdrom.com/pub/os2/fonts"TARGET="_top">ftp.cdrom.com/pub/os2/fonts</A>. They're scalable AdobeType1 fonts, which means that they won't get jagged when enlarged to largefont sizes.</P><P>You can also get a couple of packages containing fonts from <AHREF="ftp://ftp.gimp.org/pub/gimp/fonts">ftp.gimp.org/pub/gimp/fonts</A>. They're the .tar.gz files.</P><P>With Zach Beane's tutorial, it's also possible to add other types offonts, such as 75dpi and 100dpi.</P><A NAME="mousetrouble"></A><H3><A NAME="10"><A NAME="10">Mouse Trouble</A></A></H3><P>There are a lot of possible problems people might encounter with mice. Just make sure you have it pointing to the correct device (usually<TT>/dev/ttyS0</TT>, which is COM1 under DOS and Windows) when the Xconfiguration utility that you use (xf86config, Xconfigurator, etc.) asksyou where your mouse is. If you have a PS/2 mouse, use<TT>/dev/psaux</TT>.</P><P>If you want to edit <TT>/etc/X11/XF86Config</TT>, look under thesection "Pointer". Here's what it looks like:</P><PRE>Section "Pointer" Protocol "Microsoft" Device "/dev/ttyS0"</PRE><P>If it's on another device, such as COM2 under DOS, it would be<TT>/dev/ttyS1</TT>. COM3 under DOS/Windows would then be<TT>/dev/ttyS2</TT>, and so on.</P><P><A HREF="mailto:dilinger@vh.net">andres salomon</A> wrote in to saythat if your PS/2 mouse doesn't work in X but works in normal text mode,you should try killing the GPM mouse services (<B><TT>killall gpm</B></TT>as root should do the trick). He also mentioned a workaround, which hedidn't successfully use. It's adding <TT>/dev/gpmdata</TT> to/etc/X11/XF86Config, supposedly, and starting GPM with the "-R"flag.</TT><P><A HREF="mailto:fotis@danaos.gr">Fotis Karpenissiotis</A> wrote,"<I>I had several problems using a Microsoft Mouse (Serial Mouse2.0A) under XFree86 3.3.2. (Under 3.3.1 it worked fine). The solution Ifound was to start gpm using:</I></P><PRE>gpm -t ms -R</PRE><P><I>and the following lines in XF86Config:</I></P><PRE>Section "Pointer" Protocol "MouseSystems" Device "/dev/gpmdata" Emulate3Buttons</PRE><P>That's about all the information I can give about mouse trouble andtheir solutions right now, but if you've got a different problem and adifferent solution then please <A HREF="mailto:jgo@local.net">let meknow</A>.</P><A NAME="newercards"></A><H3><A NAME="11"><A NAME="11">Newer Cards</A></A></H3><P><A HREF="mailto:dragoon@epix.net">Dragoon</A> and <AHREF="mailto:Larry@Elmore.net">Larry Elmore</A> wrote in with tips remindingthose of us with newer cards to head over to <A HREF="http://www.suse.de/XSuSE/XSuSE_E.html">http://www.suse.de/XSuSE/XSuSE_E.html</A>. SuSE creates a Linux distribution, but they also create X servers for video cards/chipsets that XFree86 has not included yet. The XFree86 Project only releases new X servers every six months, so in that time span in between, SuSE releases stuff. It's worth checking out if you're not having much luck with that new video card and X.</P><P>If you have anything from NVidia, find their Open Source XFree86 patches/modifications on their website at <A HREF="http://www.nvidia.com">http://www.nvidia.com/</A>. This includes support for cards with Riva TNT and Riva TNT2.</P><P>If you can't find an X server for your card using any of the above methods,just about the last thing you can try is going to your card or chipset maker'swebsite. Unfortunately, some video card companies do not like to cooperate withthe XFree86 project.</P><HR><P>Send any and all feeback to <A HREF="mailto:jgo@local.net">jgo@local.net</A>. Feedback is welcome and highly encouraged. You can also make use of the <A HREF="help.html">help form</A> or <A HREF="guestbook.html">guestbook</A>, which is really more like a feedback form.</P><HR><P><B><FONT SIZE="-1">Copyright © 1997-1998 <A HREF="mailto:jgo@local.net">Joshua Go (jgo@local.net)</A>. All rights reserved. Permission to use, distribute, and copy this document is hereby granted. You may modify this document as long as credit to me is given.</FONT></B></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -