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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-27-2006, 10:26 PM
|
#1
|
Member
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410
Rep:
|
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).
|
|
|
04-28-2006, 10:02 PM
|
#2
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep: 
|
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.
|
|
|
04-28-2006, 10:40 PM
|
#3
|
Member
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410
Original Poster
Rep:
|
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.
|
|
|
04-29-2006, 09:00 AM
|
#4
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep: 
|
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
|
|
|
04-29-2006, 03:19 PM
|
#5
|
Member
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410
Original Poster
Rep:
|
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
|
|
|
04-29-2006, 04:38 PM
|
#6
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep: 
|
I just tried vnc and x11vnc. vnc should do it smoothly.
|
|
|
All times are GMT -5. The time now is 04:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|