Gkrellm questions....

Place to discuss Fedora and/or Red Hat

Gkrellm questions....

Postby ZiaTioN » Wed May 21, 2003 1:33 pm

I have 2 questions here. First one is can I run gkrellm in a deamon mode? As of now I have to keep the shell prompt that I use to initiate the program open in order for it to continue running. If I can what is the option to do so because I read the README and saw no option for this..

Second I am trying to add an input to my user profile in the .bashrc file in the format of an if statement that will run gkrellm each time I log in. My problem is that I do not want it to run when I log in using command libne like if I ssh in remotely.

I have another perl script I wrote that runs if I am in command line and I figured out a way to make sure it was a command line session before it would run.

I need something like this but the oposite.

as of right now I have tried something like:

Code: Select all

var = set | TERM vt100;
term = "vt100";

if [ $var != $term ]; then
   gkrell -g +1100+200
fi



I am trying to remember this off the top of my head since I am not at home but believe that this code is what I had last night. Of course it did not work but this should show you what I am trying to do..


Any ideas on how to do this using simple shell scripting. I could wrap it in with startx but I do not want it to start until I actually log in. If I wrap with startx it will try to start as soon as startx starts up. Not after I enter the user and pass like I want it to.
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Calum » Wed May 21, 2003 2:26 pm

what you could do is make the script check whether your runlevel is 3 or 4 or 5 or whatever, and then if the runlevel is GUI mode, it will execute. If you put this in your .profile or whatever, then it will run every time you login if the GUI is running. however i am a total script nonclue so i don't know what you would actually type to get it to do this!

the other way to do it is to use one of those runboxes (like i would use "xfrun" for example, but it doesn't come with red hat so you will need to use another similar program, i don't know any handy names offhand), so it can start the process, detach it, then exit itself, or you could add gkrellm to your menu if you use gnome or kde. you don't need to start it via an xterm then, you can just select it from the menu.
I use Rox Desktop (this isn't part of red hat either sadly) and it has a directory at ~/Desktop/Autostart where you just create symlinks and it starts the programs whenever you login to X, perhaps your desktop environment (whatever it might be) has a similar arrangement?

just some thoughts there, none conclusive...
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Postby Ice9 » Wed May 21, 2003 2:50 pm

I don't know about the scripting issue but I think the way I run it is pretty much what you want to achieve so here I go, sorry if this is not what you asked for.

If you start gkrellm from a "Run command" box (Alt + F2) and leave it running when you log out, gkrellm will be there next time you login (provided that you checked "save session for future logins")

And if you type this in a terminal
Code: Select all
$ kstart --window gkrellm --alldesktops --ontop --skiptaskbar /usr/bin/gkrellm

gkrellm will not appear on your taskbar while running (I left out "all desktops" so it only runs on desktop 1).
Ice9
guru
guru
 
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium

Postby Void Main » Wed May 21, 2003 6:15 pm

Yeah, pretty much what Ice9 said, start GKrellm and save settings on exit when logging out of either KDE or Gnome (works on both). If you want to run GKrellm on a remote machine I would suggest that you run the GKrellm Server on the remote machine. Do an "apt-get install gkrellm-server" and use this for your service script:

http://voidmain.is-a-geek.net/files/gkrellm

Then on the local machine do a "gkrellm -s remotehostnameorip" from an ALT+F2 prompt.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Wed May 21, 2003 8:20 pm

Hmmm, I still cannot get it to run as somewhat of a deamon. When I start it in the run box it runs and detaches but still adds to the tool bar.

The "--skiptaskbar" does not work. It says invalid option??

*************************
edited:
OK I got it to not add to the task bar by choosing that option in the config.
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby ZiaTioN » Wed May 21, 2003 9:11 pm

Ok well I really screwed my system up now. LOL...

I checked the save setting box upon logging out and then logged back in and the gkrellm does start but now I cannot log out. This is the only change I have made recently so I know it is this.

What happens is when I try to log out using the Gnome menue it takes like 5 to 10 minutes for the box to even pop up!!!

I have managed to wait for the logout box and checking save setup again while gkrellm was not running and logged out. I then logged back in and everything is fine. Has this happened to anyone else?
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Wed May 21, 2003 9:31 pm

It's never happened to me. Don't know what it could be. You know you can also go into the menu under "Preferences"->"Control Panel"->"More Preferences"->"Sessions" then click on the "Startup Programs" tab and add your GKrellm programs there (or instead of clicking all those menus you can run the "gnome-session-properties" command). Here's what mine looks like:

http://voidmain.is-a-geek.net/i/sessions.png

In fact when you do a "save session" on logout after starting them manually they should end up showing up in that sessions tool.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby ZiaTioN » Thu May 22, 2003 8:40 am

Hmm.. Yeah I will have to look into that. Nice wallpaper. You into motocross??
ZiaTioN
administrator
administrator
 
Posts: 460
Joined: Tue Apr 08, 2003 3:28 pm

Postby Void Main » Thu May 22, 2003 8:45 am

Yep, I have one exacly like the blue 22. My son and I both ride and race hare scrambles and hill climbs.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to Fedora/Red Hat

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron