Lunar Linux:FAQ

(Difference between revisions)
Jump to: navigation, search
(Installing modules)
Line 70: Line 70:
  
 
==Installing modules==
 
==Installing modules==
 +
 +
===Can I install multiple modules at the same time?===
 +
Can I install multiple modules at the same time?
 +
 +
You can, lunar promotes it even! However it makes installs go slower of course. Lunar will not install things as important as gcc / glibc while something else is going on and will wait until the rest is finished. Complementary, you cannot install applications while those major apps are installing, they will wait their turn until it's safe to install them automatically.
 +
 +
===configure: error: C preprocessor "/lib/cpp" fails sanity check ?===
 +
configure: error: C preprocessor "/lib/cpp" fails sanity check ?
 +
 +
Your kernel headers are missing from /usr/include. This means the C PreProcessor cannot verify that it has the proper cached copies of those vital header files. You need to install the proper ones manually. Here's how:
 +
 +
  1. lin kernel-headers-2.4
 +
 +
might work for you! (Use the 2.6 version if needed of course)
 +
 +
  2. Otherwise:
 +
 +
mkdir -p /usr/include/{linux,asm}
 +
 +
      to create the two target dirs, if needed. Then execute:
 +
 +
cp -av /usr/src/linux/include/linux /usr/include/
 +
cp -av /usr/src/linux/include/asm/* /usr/include/asm/
 +
 +
      to copy the files manually. Be warned that the second command has to be done this way since /usr/src/linux/include/asm is a softlink to your arch asm header files (asm points to asm-i386, on x86 machines). So if, on the other hand, you had copied
 +
 +
cp -av /usr/src/linux/include/asm /usr/include/
 +
 +
      you would then get a softlink to nowhere under /usr/include/.
 +
 +
  3. Last, you can always try to unpack the kernel tarball you have into /usr/src/linux and manaully link or copy the headers over yourself.
 +
 +
===how do i add other window managers to the sessions on gdm?===
 +
how do i add other window managers to the sessions on gdm?
 +
 +
Copy the desktop startup files to /etc/X11/dm/Sessions/. That works with gdm. For kdm you will have to copy them to $KDE_PREFIX/share/apps/kdm/sessions.
 +
 +
===How do I get Flash to work with mozilla?===
 +
How do I get Flash to work with mozilla
 +
 +
If you are using mozilla, then you can simply do a "lin flash-plugin" and that will download and install the Macromedia Flash plugin that works with a gtk+ based mozilla through the old abi wrappers.
 +
 +
The flash plugin does NOT work with Galeon. Galeon developers have declined to provide the "old" abi wrappers needed for the plugin to work.
 +
 +
===How do I get Java for my Lunar box?===
 +
How do I get Java for my Lunar box?
 +
 +
You have to download the java source code from Sun yourself and you have to "click" to agree on their license. You have to compile it yourself too. We don't have a Sun Java module as we currently have no way to automate the "click" to agree to the Sun Java license. See this URL for some handy info:
 +
 +
http://www.linuxfromscratch.org/~tushar/hints/javafromscratch.txt
 +
 +
There is a j2sdk module in moonbase which is the Blackdown port of Sun's Java Virtual Machine.
  
 
==Lunar core tools==
 
==Lunar core tools==

Revision as of 22:30, 9 August 2005

These are the Frequently Asked Questions for Lunar Linux. You have a question about Lunar? You might get your answer below.

Contents


General

What is Lunar Linux?

What exactly is Lunar Linux?

Answer:

  • Please read up on it at "About"

Optimizations

how do I set these optimizations?

how do I set these optimizations?

Answer: just run lunar optimize. You'll be taken through an interactive menu that explains all the options. Remember, optimize safely!

What are the recomended safe optimizations for lunar linux?

What are the recomended safe optimizations for lunar linux?

Answer: The default sure fire optimizations that are recommended are:

  • C: -pipe
  • C++: -pipe
  • CPU Architecture: you should pick __your__ own system architecture (default to x86 for most people).
  • Basic Optimzations: Fast (-01) but most people will opt in for Faster, or Fastest (fastest doesn't work on all systems, i.e. k6).
  • CPU: Obviously your own cpu, or the cpu of the machine you plan to run this install on. (If you want to be able to run this install on many machines, you should be safe with I586).
  • Speed Optimizations: If you want to be 100% sure that there won't be optimization problems you shouldn't select any of these.
  • Extra features: I wouldn't recomend using any of these optimizations (only on modules know to be able to handle them), since they cause many apps to break.
  • Floating Point Math: None (if your arch is x86 and you don't own a 386SX and 486SX, it's safe to go with x387).
  • Linker options: Strip.
  • Addon program support: CCache (make sure to install it first).

NOTE: These settings should work for almost everyone, and there is a lot room for pushing these optimizations more (at the risk of problems with apps). Read "info gcc" and make sure you understand a given optimization BEFORE you enable it!

What optimizations are known to cause problems?

What optimizations are known to cause problems?

Answer: Some optimizations that are known to cause problems on x86 with many apps (even a entire system):

  • -funroll-loops
  • -fstrict-aliasing
  • -ffast-math
  • -ffloat-store

NOTE: These are sorted from the least unstable to most unstable. Read "info gcc" and make sure you understand a given optimization BEFORE you enable it!

What optimizations can I use to gain some speed but without major risks?

What optimizations can I use to gain some speed but without major risks?

Answer: Start with the basic optimizations in the question "What are the recomended safe optimizations for lunar linux?" and change the Basic Optimizations to Faster (Fastest if you know that gcc will generate correct code for that cpu). -O2 obviously takes more compile time than -O1, and -O3 takes the most time to compile. Then select the cpu you will run it on. Some of the speed optimizations that should be decent and shouldn't cause too many problems (if any) are: -fomit-frame-pointer. A safe bet for floating point math on a x86 would be x387 (if you know your cpu has a floating point unit). Check "cat /proc/cpuinfo" to see if your cpu supports SSE or SSE2. If your cpu does have sse or sse2 then you can also add that to the math optimizations.

NOTE: Your results may vary. Read "info gcc" and make sure you understand a given optimization BEFORE you enable it!

What optimizations should I stay away from?

What optimizations should I stay away from?

Answer: All the ones listed in the Question "What optimizations are known to cause problems?" plus:

  • -fprofile-arcs
  • -fbranching-probabilities

Note:Read "info gcc" and make sure you understand a given optimization BEFORE you enable it! The Lunar-Devs have no sympathy for bug-reports of the nature "Why can't I compile a given module, when my optimizations are: (long list of UNSAFE optimizations!!!)"

Installing modules

Can I install multiple modules at the same time?

Can I install multiple modules at the same time?

You can, lunar promotes it even! However it makes installs go slower of course. Lunar will not install things as important as gcc / glibc while something else is going on and will wait until the rest is finished. Complementary, you cannot install applications while those major apps are installing, they will wait their turn until it's safe to install them automatically.

configure: error: C preprocessor "/lib/cpp" fails sanity check ?

configure: error: C preprocessor "/lib/cpp" fails sanity check ?

Your kernel headers are missing from /usr/include. This means the C PreProcessor cannot verify that it has the proper cached copies of those vital header files. You need to install the proper ones manually. Here's how:

  1. lin kernel-headers-2.4

might work for you! (Use the 2.6 version if needed of course)

  2. Otherwise:

mkdir -p /usr/include/{linux,asm}

     to create the two target dirs, if needed. Then execute:

cp -av /usr/src/linux/include/linux /usr/include/ cp -av /usr/src/linux/include/asm/* /usr/include/asm/

     to copy the files manually. Be warned that the second command has to be done this way since /usr/src/linux/include/asm is a softlink to your arch asm header files (asm points to asm-i386, on x86 machines). So if, on the other hand, you had copied

cp -av /usr/src/linux/include/asm /usr/include/

     you would then get a softlink to nowhere under /usr/include/.
  3. Last, you can always try to unpack the kernel tarball you have into /usr/src/linux and manaully link or copy the headers over yourself.

how do i add other window managers to the sessions on gdm?

how do i add other window managers to the sessions on gdm?

Copy the desktop startup files to /etc/X11/dm/Sessions/. That works with gdm. For kdm you will have to copy them to $KDE_PREFIX/share/apps/kdm/sessions.

How do I get Flash to work with mozilla?

How do I get Flash to work with mozilla

If you are using mozilla, then you can simply do a "lin flash-plugin" and that will download and install the Macromedia Flash plugin that works with a gtk+ based mozilla through the old abi wrappers.

The flash plugin does NOT work with Galeon. Galeon developers have declined to provide the "old" abi wrappers needed for the plugin to work.

How do I get Java for my Lunar box?

How do I get Java for my Lunar box?

You have to download the java source code from Sun yourself and you have to "click" to agree on their license. You have to compile it yourself too. We don't have a Sun Java module as we currently have no way to automate the "click" to agree to the Sun Java license. See this URL for some handy info:

http://www.linuxfromscratch.org/~tushar/hints/javafromscratch.txt

There is a j2sdk module in moonbase which is the Blackdown port of Sun's Java Virtual Machine.

Lunar core tools

Lunar-Linux Installation

Other

Personal tools
Variants
Actions
Wiki Navigation
Project Sites
Toolbox