LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 04-27-2006, 10:26 PM   #1
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
Preload Applications


Hi,
Does anybody know of a good program that can be used to "preload" applications in linux? Like say, do the same thing that Windows does with Internet Explorer with whatever application we want in linux, so they will not take so long to load on startup, at the cost of a little memory. I would like to be able to preload commonly used programs such as Firefox, and a few others that take a little longer then I like to start up. I think I have enough memory to handle keeping a few in memory at all time if it's possible (512MB of DDR2).
 
Old 04-28-2006, 10:02 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
This is an interesting thread! I tried myself with "konqueror --preload" but i don't think it works, as when i launch konqueror a while after, the 1st loading time is the same.
 
Old 04-28-2006, 10:40 PM   #3
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
I found this http://www.linuxquestions.org/questi...hreadid=116011 thread on the subject. This seems like it would work in theory, but as mentioned by posters there, it is rather annoying to do it this way because you "see" the programs loading up and getting killed infront of you, which looks really unclean. I would be nice to have a way to be able to hide the applications while they were being loaded and killed. Is there a way to tell X, or a window manager (fluxbox in my case) to start a program minimized or even hidden from the terminal? That would be the best way to do it I suppose, if you could tell the window manager or X via a terminal command in the script to start that program minimized or hide the output from X. Like send the application to a null display or something. I dont know how to do this though.
 
Old 04-29-2006, 09:00 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Maybe it's possible to launch a vncserver, then load apps into them, sleep and finally kill vncserver.

First we have to manually create vncserver to give the password, then add a line to our .xinitrc like this:

sh /usr/bin/preloadingapps.sh&

With preloadingapps.sh looking like this:

#!/bin/sh
vncserver
sleep 4
export DISPLAY=:1.0
#on my pc i had to use :2.0 !!! maybe because kdm uses :1.0? Do someone knows?
firefox&
konqueror&
sleep 5
killall Xvnc
#maybe there's a more clean way to close all?

Don't forget to chmod +x /usr/bin/preloadingapps.sh
 
Old 04-29-2006, 03:19 PM   #5
Oxagast
Member
 
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Original Poster
Rep: Reputation: 30
What vnc are you using? I do not have it installed, and when looking at portage, theres a couple different things that are vnc. I figured if you had it working with whatever you did I'd just install yours so I wouldn't waste time installing one that wouldn't work for whatever reason. This is all the stuff when I looked in portage:

/var/cache/edb/dep/usr/portage/x11-misc/vnc2swf-0.4.2-r1
/var/cache/edb/dep/usr/portage/x11-misc/x11vnc-0.7.1-r1
/var/cache/edb/dep/usr/portage/x11-misc/x2vnc-1.6.1
/var/cache/edb/dep/usr/portage/x11-misc/x11vnc-0.8
/var/cache/edb/dep/usr/portage/x11-misc/vnc2swf-0.5.0
/var/cache/edb/dep/usr/portage/net-libs/libvncserver-0.7
/var/cache/edb/dep/usr/portage/net-libs/libvncserver-0.8
/var/cache/edb/dep/usr/portage/net-libs/libvncserver-0.7.1
/var/cache/edb/dep/usr/portage/net-misc/vnc-4.0-r1
/var/cache/edb/dep/usr/portage/net-misc/tightvnc-1.3_alpha7
/var/cache/edb/dep/usr/portage/net-misc/vncsnapshot-1.1
/var/cache/edb/dep/usr/portage/net-misc/vncsnapshot-1.2a
/var/cache/edb/dep/usr/portage/net-misc/directvnc-0.7.5
/var/cache/edb/dep/usr/portage/net-misc/vncrec-0.2
/var/cache/edb/dep/usr/portage/net-misc/tightvnc-1.2.9-r1
/var/cache/edb/dep/usr/portage/net-misc/xf4vnc-4.3.0.103
/var/cache/edb/dep/usr/portage/net-misc/xf4vnc-4.3.0.104
/var/cache/edb/dep/usr/portage/app-vim/svncommand-1.67.3
/var/cache/edb/dep/usr/portage/app-vim/svncommand-0.2

But as I have never used vnc before, I don't know which one I should get.

Thanks,
Marshall
 
Old 04-29-2006, 04:38 PM   #6
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
I just tried vnc and x11vnc. vnc should do it smoothly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
amaroke without autostart or preload? Tom211 SUSE / openSUSE 2 01-16-2006 04:11 AM
How to preload firefox during boot MrSavage Linux - Newbie 9 10-02-2005 02:18 PM
How to preload an application? LBS Debian 1 08-04-2005 07:59 PM
Can I create a empty /etc/ld.so.preload ? michael_util Linux - Software 1 01-20-2005 07:10 PM
JavaScript PreLoad Image andrewt Programming 1 08-25-2003 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration