Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hello, just replaced RH9 with debian on my laptop. was running gnome, now kde >3.2 vs.
i found a way to speed up how OO opens, but how can i speed up the rest of the programs like firefox, or thunderbird, kaffeine, etc... all of them take an exorborant amount of time to open. we are talking close to a 1min or more. this is on a P4m 1.8G with 256M ram. so not exactly the fastest box in the world, and yes more RAM will, help, but there has to be a way to reduce the time it takes to open up apps like there is in OO.
FYI setting the ram usage above 50 made no differance in how fast OO opens, so i just set it back to 50. nothing else is running at the time i try to open up the other programs.
you could prelink all the binaries on your system by running
Code:
prelink -afmR
and from gentoo's prelinking guide you can do this to speed up KDE
Speeding Up KDE After Prelinking
KDE's loading time can be greatly reduced after prelinking. If you inform KDE that it has been prelinked it will disable the loading of kdeinit (as it isn't required anymore) which speeds up KDE even more.
Set KDE_IS_PRELINKED="true" in /etc/env.d/99kde-env to inform KDE about the prelinking.
you just run it once and it goes through all the ELF binaries on your system and prelinks them for faster loading. You may have to apt-get install prelink first to get the prelink program in your system. You want to run this as root. As you update your system the prelinks need to be updated so you could put this task in a cron script to run every other night or something, or you could just run it after updating the system every time.
kewl got prelink with apt-get, but when i rran the command you gave me i started getting loads of errors
Code:
ray@laptop:~$ su -
Password:
laptop:~# apt-get install prelink
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libelfg0 libselinux1
The following NEW packages will be installed:
libelfg0 libselinux1 prelink
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 758kB of archives.
After unpacking 1352kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.au.debian.org testing/main libelfg0 0.8.5-1 [47.7kB]
Get:2 http://ftp.au.debian.org testing/main libselinux1 1.16-2 [31.0kB]
Get:3 http://ftp.au.debian.org testing/main prelink 0.0.20041012-1 [679kB]
Fetched 758kB in 6s (123kB/s)
Selecting previously deselected package libelfg0.
(Reading database ... 63693 files and directories currently installed.)
Unpacking libelfg0 (from .../libelfg0_0.8.5-1_i386.deb) ...
Selecting previously deselected package libselinux1.
Unpacking libselinux1 (from .../libselinux1_1.16-2_i386.deb) ...
Selecting previously deselected package prelink.
Unpacking prelink (from .../prelink_0.0.20041012-1_i386.deb) ...
Setting up libelfg0 (0.8.5-1) ...
Setting up libselinux1 (1.16-2) ...
Setting up prelink (0.0.20041012-1) ...
laptop:~# prelink -afmR
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/regxpcom: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/mozilla-thunderbird-xremote-client: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/mozilla-thunderbird-bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-thunderbird/regchrome: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/firefox-bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/regchrome: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/regxpcom: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/mozilla-firefox/xpcshell: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/pkgchk.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/pluginapp.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/setofficelang.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/setup.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/soffice.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/spadmin.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/configimport.bin: Could not find one of the dependencies
/usr/sbin/prelink.bin: /usr/lib/openoffice/program/regcomp: Could not find one of the dependencies
so thunderbird and firefox and OO can not be prelinked? well with OO thats not a big deal as i found a way to increase that programs load times, but the firefox, thunderbird is an other issue. those are the 2 programs that i use most on my laptop.
ooh that kde mod is probably a gentoo specific one, not sure where it would be on debian really. You did use the firefox packages from apt-get correct? They need to be compiled against the same library versions in order to have it prelink properly.
with the risk of stating the plain obvious: are your DNS settings (resolv.conf) ok? If an X application can't find the DNS server stated in that file it waits until a timeout of about 1 minute.
ok, what does that have to do with apps opening fast? i could see that being an issue with KDE opening slow (its about the same as gnome nothing to horrid IMHO), but the apps? they should not make any calls against DNS, or does DNS and GUI work different in *nix then in the windows world?
to me DNS (Domain Name Server) has to do with resolving an IP to a sytem name.
is the Domain name of my URL, DNS will translate that information down to the IP of :
24.227.112.134
that is how i understand DNS. that has nothing to do with calls to start an app. yes KDE/Gnome will make calls to DNS for configuring its network, but that as far as i understand things should not have any issue with my goal.
every X application locates the the X-server it wants to display on using the DNS server (or hosts file). If something is wrong with your hosts file and resolv.conf it's possible that it can't find the X server so it waits about 1 minute until it takes the default (local). Just telling you about a problem I experienced myself with exactly the same symptoms as the ones you described.
Originally posted by maenho every X application locates the the X-server it wants to display on using the DNS server (or hosts file). If something is wrong with your hosts file and resolv.conf it's possible that it can't find the X server so it waits about 1 minute until it takes the default (local). Just telling you about a problem I experienced myself with exactly the same symptoms as the ones you described.
im not following what you are tring to say. what apps are going to pull from the DNS records?
just not understanding what you are saying. break ti down a bit more for me please.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.