ApH
ApH
知名人士
知名人士
  • 铜币0枚
  • 威望0点
  • 贡献值0点
阅读:883回复:4

我的LinuxFAQ,适合菜鸟

楼主#
更多 发布于:2003-11-29 11:10
Xinwang's FAQ for Linux



Last change date : 2003-11-29





:: Menu ::

  About Linux kernel 2.2

  About Fedora Core 1

  Miscellaneous





:: Linux kernel 2.2 ::



  Q: I know the global page dir (swapper_pd_dir) saved at 0x101000.

  Where can I find the global page table and what's its name?



  A: When on Intel Pentium CPU, Linux use extend paging memory manage,

  use 4MB page frame instead of 4K size. On this mode the Linux do not

  need page table. If based on 3/486 CPU, on witch Linux use 4K page

  frame, the first global page table store in unused pg0, else it will

  start from start_mem. And start_mem should increase a

  1024-1*PAGE_SIZE. All this heppend in

  "linux/arch/i386/mm/init.c/paging_init();".  





:: About Fedora Core 1 ::



  Q: Why there is two vision of GCC ?



  A: In Fedora C1 there are two vision GCC, GCC 3.2.3 and GCC 3.3.2.

  Because the kernel 2.4.22 must compiled by gcc-3.2, and is compiler

  sensitive. So before you compiling any kernel module (include kernel

  it self, and NVidia display driver) you should "export CC=gcc32".





  Q: How to install NVidia display driver ?



  A: Because NVIDIA libGL.so files conflict with the default XFree86

  ones, you should :

    | rpm -e --nodeps XFree86-Mesa-libGL

    | ./NVIDIA-Linux-x86-1.0-4496-pkg2.run --add-this-kernel

    | ./NVIDIA-Linux-x86-1.0-4496-pkg2-custom.run

     and then change you X86Config file.

     or you may :

    | CC=gcc32 ./NVIDIA-Linux-x86-1.0-4496-pkg2.run --add-this-kernel

    | CC=gcc32 ./NVIDIA-Linux-x86-1.0-4496-pkg2-custom.run





  Q: How to change the Gnome menu ?



  A: The RIGHT way is : To enable menu editing per user config (via

  nautilus), you need to do the following:

    | su - <give root password>

    | cd /etc/gnome-vfs-2.0/modules

    | cp default-modules.conf default-modules.conf-no-menu-editing

    | cp default-modules.conf.with-menu-editing default-modules.conf

  For any user you want to have the right to edit their menu, you also

  need to do this as the user:

    | cd ~/.gnome2/vfolders

    | cp /etc/X11/desktop-menus/applications.menu
    |    applications.vfolder-info





  Q: What is Yellow Dog Linux ? Is it a RedHat Linux ?

  

  A: Yes, Yellow Dog Linux is a RedHat and rpm based Linux for

  PowerPC, in other word MAC. And it's also FREE for download.





  Q: What is Fedora Core 1 name ?



  A: Severn was the name for the betas . . . Yarrow is the name of the

  final release.  You'll want to download and install the Yaroow

  discs.





  Q: How to mount a MS Windows Fat16/32 File System with Chinese

  character on Fedora ?



  A: Because Fedora use UTF8, you should change your /etc/fstab like :

    | noauto,user,iocharset=utf8,codepage=936

     If it not work, Please :

    | noauto,user,iocharset=cp936,codepage=936





  Q: How to check cdrom when it's couldn't be unmount ?



  A: Use :

    | fuser -k /dev/cdrom

     or

    | lsof | grep /mnt/cdrom

     and then kill the process which still access it.



     I found that proc fam still access the /mnt/XXX file, but

     /dev/XXX file haven't any accesser.





  Q: How to disable the gui boot of fedora and boot like redhat ?



  A: If you want never use it, "rpm -e rhgb" and/or remove "rhgb" from

  /boot/grub/grub.conf.

  If you just want disable it, either add nogui to kernel options in

  /etc/grub.conf OR change GRAPHICAL=yes to GRAPHICAL=no in

  /etc/sysconfig/init.





  Q: I download Acrobat Reader 5.0.8 For Linux, but it don't run on

  Fedora Linux with Chinese. Why? How?



  A: Because of Fedora default use UTF-8, and Acrobat Reader 5 do not

  support it. You can do like this :

    | LANG="zh_CN.GB18030" /usr/local/Acorbat5/bin/acroread





  Q: How to install simsun font ?



  A: 1.copy windows fonts "simsun.ttc" to /usr/share/fonts/zh_CN/TrueType/

     2.execute fc-cache --force

     3.edit /etc/fonts/fonts.conf add "Sim Sun" and ahead it.





  Q: How to remove the beep when X login screen comes up ?



  A: You can disable the login beep by adding this to your

  /etc/X11/gdm/Init/:0 file "/usr/X11R6/bin/xset -b" right after the

  copyright and minus the quotes.





  Q: How to change local ?



  A: In /etc/sysconfig/i18n and ~/.i18n edit LANG="zh_CN.UTF-8". Try

  if I can use English Local for system and CJK Local for user.

  English i18n :

    | LANG="en_US.UTF-8"

    | SUPPORTED="en_US.UTF-8:en_US:en"

    | SYSFONT="latarcyrheb-sun16"





:: Miscellaneous ::



  Q: What is APT ?



  A: APT (Advanced Package Tool) is a dependency tool, well known to

  Debian users since it is used by default with their dpkg

  packages. But apt has been ported to work with rpm packages too, by

  Conectiva, who has now used it for some time in their GNU/Linux

  distribution.

  

  The goodnews is that apt for rpm may be used with any other

  rpm-based distribution. All you need is the tool compiled for your

  version of rpm and at least a repository where rpm packages and

  their apt metadata can be downloaded from.

  

  You can use synaptic, a graphical package management program for

  apt. It provides the same features as the apt-get command line

  utility whith a GUI front-end based on Gtk+.





  Q: What is Yum ?  



  A: Yum is an automatic updater and package installer/remover for rpm

  systems. It automatically computes dependencies and figures out what

  things should occur to install packages. It makes it easier to

  maintain groups of machines without having to manually update each

  one using rpm.





  Q: What different between mpg321 and mpg123 ?



  A: mpg321 is a Free replacement for mpg123, a very popular

  command-line mp3 player. mpg123 is used for frontends, as an mp3

  player and as an mp3 to wave file decoder (primarily for use with

  CD-recording software.) In all of these capacities, mpg321 can be

  used as a drop-in replacement for mpg123.





:: End ::

松柏
论坛版主
论坛版主
  • 铜币371枚
  • 威望39点
  • 贡献值0点
  • 社区居民
1C#
发布于:2003-11-29 12:42
Re: 我的LinuxFAQ,适合菜鸟
不错不错,要是中文就更好了
[color=#0000FF]馋嘴蜗牛[/color] 我的博客:[url]http://osnaile.osdn.cn/[/url]
ApH
ApH
知名人士
知名人士
  • 铜币0枚
  • 威望0点
  • 贡献值0点
2C#
发布于:2003-12-01 11:21
Re: 我的LinuxFAQ,适合菜鸟
英文练习中:)
下网卡
知名人士
知名人士
  • 铜币1枚
  • 威望1点
  • 贡献值0点
3C#
发布于:2003-12-03 17:38
Re: 我的LinuxFAQ,适合菜鸟
大哥你这XXXXXXX,真是牛死了,服了, -------------------- Nuclear launch detected!
特别想念kmwang, APH, momo, 松松,旺旺
kmwang
小有名气
小有名气
  • 铜币0枚
  • 威望0点
  • 贡献值0点
4C#
发布于:2003-12-04 22:26
Re: 我的LinuxFAQ,适合菜鸟
目录建全的就更好了.以后Bug report就交给你了
游客

返回顶部