Page 1 of 1

Autostart gkrellm [SOLVED]

Posted: Sat 15 Sep 2012, 18:17
by olewilly
Hi

Which file do I have to put in /usr/share/autostart to get gkrellm to start automaticly at boot :?:

OW

Posted: Sat 15 Sep 2012, 18:29
by bigpup
For Puppy put a symlink to program in the /root/Startup directory.

From readme file in /root/Startup:
Any executable or scripts (or symlink to) placed in this directory
will be executed after the X desktop has loaded.

This is handy if you want something to run automatically.

You can easily create a "symlink" (symbolic link) to an executable.
For example, say that you wanted to run /usr/local/bin/rubix (a game)
everytime Puppy is started. Use ROX-Filer (the file manager) and open
two windows, one on /usr/local/bin, the other on /root/Startup.
Then just drag 'rubix' across and a menu will popup and ask if you want
to copy, move or link, and you choose to link.

Note, if you want to execute something at bootup and prior to X desktop
loading, edit /etc/rc.d/rc.local.

Posted: Sat 15 Sep 2012, 19:26
by olewilly
I can not find gkrellm executeable though it is running fine when started from the menu :?:

OW :)

Posted: Sat 15 Sep 2012, 19:32
by `f00
Hi OW :)

What's the Exec=* line in the /usr/share/applications/<gkrellm>.desktop file say?

Posted: Sat 15 Sep 2012, 19:42
by olewilly
`f00

Name=GKrellM System Monitor
Comment=Monitor for CPU, memory, disks, network, mail
Exec=gkrellm
Icon=gkrellm
Terminal=false
Type=Application
Categories=System;

Tnx a lot! Found it :D

But though I put a link to that gkrellm still not start at boot :!: :?:

OW

Posted: Sun 16 Sep 2012, 01:16
by `f00
If the link is in /root/Startup, it should be okay - simple test is to click on it in a rox window (if it's not up already) and see if it comes up. Check the properties and so on.

By "at boot" I take your meaning as when the usual X desktop starts with the window manager loading and there's a pinboard or something that gkrellm can sit on (pretty sure it's actually a borderless window like conky or wbar). This is where timing comes in, although gkrellm shouldn't be faster than whatever sets the background (normally). Occasionally I need to put a delay in if the desktop is a bit slow to load or something else is getting in the way.

Does gkrellm do your mail notification and other things that may require an online connection to be established? If the link in ~/Startup doesn't run to your satisfaction, maybe a simple script there would be better. That way you can put a delay in and see if it helps - something like:

sleep 10; exec gkrellm &

Test the line in a console or runbox like gexec - sometimes it varies as to whether the & is needed and finally re-X to see if you got it right. Haven't used gkrellm in a while, so you might want to go over the man for details on options and so forth. Another tip - check the exec flags in properties of anything in /root/Startup, if the tickboxes are ticked it's live (if unticked, it's dead). Rox shows live stuff as greenish text, dead as black.

If you don't have it already, I'd also recommend htop (system processes viewer/manager). Once you get used to it you'll wonder how you ever got along without it.

Posted: Sun 16 Sep 2012, 22:05
by olewilly
`f00

Tnx a lot for helping. I made a script with geany with sleep 5 and exec gkrellm
and now it starts even b4 pwidgets.

OW :D