LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Fun stuff we've installed (https://www.linuxquestions.org/questions/linux-from-scratch-13/fun-stuff-weve-installed-209323/)

Kroenecker 07-24-2004 11:14 PM

Fun stuff we've installed
 
Just wanted to start to list some things that I have installed on LFS5.1.1 that I enjoy.

mplayer plugin for mozilla

1 http://mplayerplug-in.sourceforge.net/

2 download the package gecko-sdk (needed to compile the plugin)

ftp://ftp.mozilla.org/pub/mozilla.or...es/mozilla1.7/
gecko-sdk-i686-pc-linux-gnu-1.7.tar.gz

3 untar gecko anywhere

4 untar the mplayer plugin and enter the directory

5 ./configure --with-gecko-sdk=/gecko/stuff --enable-gtk2

Note: you might want to check to see what default toolkit you are using by
entering about:buildconfig in the url section of your mozilla/firefox
browser. Look for default toolkit. Then choose enable-gtk2, gtk1, or x.

6 make

7 follow the instructions for installation at the plugin website above


Thats it for now.


Kroenecker 07-25-2004 09:01 PM

(Look at next entry for details about more recent installs in LFS)

Mini-how to for Thunderbird 0.7/Firefox 0.9.2

1 Do the configure and make as is in the BLFS book

I couldnt get Thunderbird or Firefox to "make install." I kept getting
multiple definition errors. If anyone else has this problem a solution
would be nice :D

2 Then go to xpinstall/packager and type
MOZ_PKG_APPNAME=thunderbird make (or use firefox)

3 This makes a tarball that you can then install.

Kroenecker 10-08-2004 05:03 AM

Ok this is definitely worth a post:

1) Enigmail for Thunderbird. I compiled and installed from source using the following setup. Go down to Thunderbird.... (settings listed in LFS 5.1 do not work for me...why? No idea.)

Prerequisites: gnupg

http://www.gnupg.org/

Let me quote the process. For some reason that makes it more legible in my mind :D

Quote:

For Firefox (updated version of Firefox build for LFS)

This build for Firefox finally fixes problems I was having with my find bar. I would type something, but the find bar would not jump to any instance of the word I was searching for. Basically, the find bar didn't work. Buttons didn't work. Nothing worked. The build below works because (I think) find as you type is a deprecated extension and no longer needs to be built. I can use the / and the ' keys to open the find bar, but ctrl+F still causes my browser to freak out, but at least I have some functionality. So I avoid using ctrl+F (all the graphics in my browser vanish...weird).

UPDATE: good info about how to build firefox here-->

http://wiki.bebits.com/page/BuildingFirebird
The link talks about how to get the proper CVS files for firefox. Apparently firefox has forked from the original codebase. No news of that at the mozilla website....

The build itself:

NEW WAY: Using a .mozconfig file in the mozilla directory-->
Please note that the information below requires a directory called mybuild to exist under the mozilla source directory (the directory created when you open the source tarball). Read up about the .mozconfig file at the mozilla website and at the above link.

export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
mk_add_options MOZ_PHOENIX=1
mk_add_options MOZ_CALENDAR=0
ac_add_options --disable-calendar
ac_add_options --disable-calender

mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/mybuild
ac_add_options --prefix=/opt/firefox-TRIAL
ac_add_options --enable-xft
ac_add_options --disable-freetype2
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-debug
ac_add_options --enable-optimize
ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --enable-crypto
ac_add_options --enable-xinerama
ac_add_options --disable-tests
ac_add_options --disable-logging
ac_add_options --enable-reorder
ac_add_options --enable-strip
ac_add_options --disable-pedantic
ac_add_options --enable-cpp-rtti
ac_add_options --disable-composer
ac_add_options --enable-single-profile
ac_add_options --enable-extensions=cookie,inspector,negotiateauth,pref,transformiix,universalchardet,webservices,xmlextras,x ml-rpc,gnomevfs
ac_add_options --disable-profilesharing

Old method:

Optimizations (for Athlon XP...others available at Gentoo website):

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"

MOZILLA_OFFICIAL="1" BUILD_OFFICIAL="1" MOZ_PHOENIX="1" \
./configure --prefix=/opt/firefox-NEWEST \
--enable-xft \
--disable-freetype2 \
--with-system-jpeg \
--with-system-zlib \
--enable-default-toolkit=gtk2 \
--disable-debug \
--enable-optimize\
--disable-ldap \
--disable-mailnews \
--enable-crypto \
--enable-xinerama \
--disable-tests \
--disable-logging \
--enable-reorder \
--enable-strip \
--disable-pedantic \
--enable-cpp-rtti \
--disable-composer \
--enable-single-profile \
--enable-extensions=cookie,inspector,negotiateauth,
pref,transformiix,universalchardet,webservices,xmlextras,xml-rpc,gnomevfs \
--disable-profilesharing

then do
make
make install

Now before you run Firefox, make sure to disable your extensions! Go to the menu bar's tools, choose extensions, right click on the extensions, and then pick disable. I also deleted root's .mozilla directory, and I deleted compreg.dat and the chrome directory in my user's .mozilla directory. Then run Firefox for the first time as the root user. Finally run it as a regular user.
I did have to reinstall all of my themes and extensions before they would work. I don't know why.... That was a bit annoying.

For Thunderbird

MOZILLA_OFFICIAL="1" BUILD_OFFICIAL="1" MOZ_THUNDERBIRD=1 \
./configure --prefix=/opt/thunderbird-0.8 \
--with-user-appdir=.th
underbird \
--enable-xft \
--disable-freetype2 \
--enable-default-toolkit=gtk2 \
--disable-debug \
--enable-crypto \
--disable-mathml \
--disable-activex \
--disable-activex-scripting \
--disable-tests \
--disable-oji \
--disable-necko-disk-cache \
--enable-single-profile \

--enable-necko-protocols=http,file,jar,viewsource,res,data \
--enable-image-decoders=default,-xbm \
--enable-extensions=all \
--disable-profilesharing

then do
make
make install
Now run Thunderbird as Root. If no icons show up in Thunderbird (or menus), don't worry that happened to me too! This will create some files under the chrome directory. Exit Thunderbird. Now follow the books instructions:

Quote:

If you're building the Enigmail extension, execute the following steps:

tar zxf ../enigmail-0.86.0.tar.gz -C extensions &&
tar zxf ../ipc-1.0.8.tar.gz -C extensions &&
build/autoconf/make-makefile extensions/ipc extensions/enigmail &&
make -C extensions/ipc &&
make -C extensions/enigmail &&
make -C extensions/enigmail/build xpi &&
make -C extensions/enigmail/package xpi

[For] Thunderbird run the following commands:

install -d /opt/thunderbird-0.8/include/thunderbird-0.8/nss &&
cp -Lf dist/private/nss/*.h dist/public/nss/*.h \
/opt/thunderbird-0.8/include/thunderbird-0.8/nss &&
chown -R root:root /opt/thunderbird-0.8/include/thunderbird-0.8/nss &&
export CHROME_PATH="/opt/thunderbird-0.8/lib/thunderbird-0.8/chrome" &&
sed -i.orig -e "/cookieContextOverlay/d" \
$CHROME_PATH/overlayinfo/messenger/content/overlays.rdf &&
sed -i.orig -e "/cookieContextOverlay/d" -e "/helpMenuOverlay/d" \
$CHROME_PATH/overlayinfo/communicator/content/overlays.rdf &&
unset CHROME_PATH &&
ln -sf /opt/thunderbird-0.8/bin/thunderbird \
/usr/bin/MozillaThunderbird

Install the Enigmail extension by running the following commands:

make -C extensions/ipc install &&
make -C extensions/enigmail install
Now enigmail works. Or it should. Try out the following tutorial:

http://people.via.ecp.fr/~clem/nist/...mail-howto.php


2) GPA -- The gui frontend for all your gnupg needs!!!! It rocks.

I will admit that I had some troubles getting everything working.

You will need:

NOTE: These are links to gnu's ftp site so you might want to be kind and look to a mirror:
http://mirrors.rootmode.com/ftp.gnupg.org/

libassuan:
ftp://ftp.gnupg.org/gcrypt/alpha/libassuan/

gpgme
ftp://ftp.gnupg.org/gcrypt/alpha/gpgme/

and
gpa
ftp://ftp.gnupg.org/gcrypt/alpha/gpa/

If I forgot anything, I think you can figure it out.

I will give some pointers to compiling.

gpgme:
1) Problem: I do not have gpgsm installed on my system.

Solution: I had to compile gpgme using --without-gpgsm

2) Problem: I (think I) received errors about undefined references that contained the word assuan...hmmm. What should be done about that?

Investigate: Use nm /usr/lib/libassuan | grep name-of-undefined-reference to see if libassuan contains a definition for the undefined references. In fact libassuan does.

Solution: Look carefully at the error message. Find the directory where the error is taking place. Edit the Makefile in that directory to include (under LIBS=) -lassuan that is a dash an ell (as in the letter) and then assuan. Now it will compile.

gpa:
Problem: Same as number two above. Edit the Makefile to include -lassuan

Run gpa. I dig it.


All times are GMT -5. The time now is 06:01 PM.