PDA

View Full Version : Starting Genome Automatically


MaTriX
27th July 2001, 01:19
Anyone can help me starting my ghclient automatically without having to login...

dnar
27th July 2001, 08:05
To do this, you would run the client as a bckground task. Now remeber the client must be run with "root" privellidges....





This is what you need:


1. A script to launch the client as root user.


2. Launch the script from /etc/rc.local





Client launch script "gah_launch":





#!/bin/bash


cd /opt/ghclient098_linux (change to suit your client instal path)


./ghclient & (or ./ghclient.x -nonet &)








The script file must be set executable like so:

chmod +x gah_launch



Lets say the Client launch script is located in /opt/ghclient098_linux, your /etc/rc.local would be modified to include the following line:








/opt/ghclient098_linux/gah_launch








Now thats fine, but you won't see any output (besides the scrlog.gah file).... And how do you stop the client????? Easy, you can see the client is running by doing this:


ps -C ghclient.x





And you can kill the client with:


killall ./ghclient.x





I hope this helps.





I have a suite of bash scripts that I control with desktop icons, they include:


"NONET" - Launch the client -nonet. The client is monitored and restarted if it crashes...


"SEND" - Stop the client, run -upload and re-start as -nonet when done (all with one click!)


CACHE - Runs a 2nd client, getting a cached unit, then stops the 2nd client and moves the cahce workunit into the working client directory (I use this to feed a nonet client).





I will publish these scripts for all to enjoy soon... Just have to finish commenteing and documenting their use...





This is a shot of the monitor panel and control icons (http://members.iinet.net.au/~dnar/images/gah/2001_07_27_190216_shot.jpg)





The third row down shows: Number of completed units (9), current sequence (19 or 30), percentage of current sequence (20%).


Fourth row: NONET mode, current unit is 96aa.


Fifth row: 98aa unit cached (input.inp.2)

MechCD
27th July 2001, 11:46
Ok, I might try that. Is there a way to check on the actual client? I like to check the progress by seeing

88
89
90

27 out 30
10% 20% 30% 40% 50% 60%

and not 85% of current WU done

dnar
27th July 2001, 12:09
Originally posted by MechCD

Ok, I might try that. Is there a way to check on the actual client? I like to check the progress by seeing





88


89


90





27 out 30


10% 20% 30% 40% 50% 60%





and not 85% of current WU done

Use this little trick from the dnar book of goodies....



From an X terminal, go to "su" status and change to the client firectory.... then type:



./ghclient.x -nonet > /dev/tty1 &



this will spawn the client as a background task with ownership and display on console F1.... You dont even have to be logged in on F1 for this to work.... To stop the client, goto to F1 (Ctl-Alt-F1) and do a Ctl-C. THis works even though the client is running as a background task.....:D

MaTriX
27th July 2001, 12:40
HELP !!!

I forgot to put it as background task (&) when I made the script...

I now boot in Genome, it is visible, and I can't do anything else, Ctrl-C is not responding...

Is there any kind of safe-mode booting ??? :D

dnar
27th July 2001, 12:43
Originally posted by MaTriX
HELP !!!



I forgot to put it as background task (&) when I made the script...



I now boot in Genome, it is visible, and I can't do anything else, Ctrl-C is not responding...



Is there any kind of safe-mode booting ??? :D
Just kill the client task:

su <password>
killall ./ghclient.x

Confirm the client is dead:

ps -C ghlcinet.x

[should not return a process number/name]

MaTriX
27th July 2001, 12:46
But... I started it from /etc/rc.local, it never get to a prompt so I can't kill it :(

dnar
27th July 2001, 12:47
Originally posted by MaTriX

But... I started it from /etc/rc.local, it never get to a prompt so I can't kill it :(

So! Open a terminal or go to any console, it doesn't matter where! Just do as I say! :D

MechCD
27th July 2001, 18:44
hit ctrl-alt-f1 for another login prompt

MaTriX
27th July 2001, 22:40
Originally posted by MechCD
hit ctrl-alt-f1 for another login prompt
I tried but it didn't respond... Nothing responded, was like frozen... So after a while I decided to go with a hard reset, jumped into Interactive boot and answered No to te last step (Local)... I fixed my script and it's now perfect...

MechCD
27th July 2001, 22:46
Originally posted by dnar



Use this little trick from the dnar book of goodies....





From an X terminal, go to "su" status and change to the client firectory.... then type:





./ghclient.x -nonet > /dev/tty1 &





this will spawn the client as a background task with ownership and display on console F1.... You dont even have to be logged in on F1 for this to work.... To stop the client, goto to F1 (Ctl-Alt-F1) and do a Ctl-C. THis works even though the client is running as a background task.....:D

Ok, cool, but my ctrl-alt-f7 doesn't werk so i can't get back and I would have to to stop g@h to get back to anything :( Why can't I do more than one Ctrl-alt-f1 or f anything?

dnar
28th July 2001, 00:15
M8 that has really got my stumped.... It looks like I am just gunna have to get on a plane and come sort it for ya'..... :D :D

MaTriX
28th July 2001, 00:29
Originally posted by dnar
M8 that has really got my stumped.... It looks like I am just gunna have to get on a plane and come sort it for ya'..... :D :D

LOL... I have a room available for a couple days here if you come...

Ctrl-Alt-F1 was not responding... I waited for a while and ghclient was not doing anything so it was probably frozen, the whole thing... It was doing it once in a while in Windoze on warm days, my PII300@450 is stretched to the limit...

I'll leave it on that computer for a while, while I'm testing and screwing up everything... Once comfortable I'll install it on a "real" (and very stable) CPU... I need to keep a W2K computer for work so I'll have to pick wich one will be converted... The AMD 1350 or the PII 800 Laptop :)

MaTriX
28th July 2001, 00:31
Originally posted by dnar
M8 that has really got my stumped.... It looks like I am just gunna have to get on a plane and come sort it for ya'..... :D :D

Coming Here ??? It's Linux... Can't you just connect remote to it and do anything ? Any limitation of what can be done remote ?

dnar
28th July 2001, 00:36
We can do ANYTHING over the net.... But it would be more fun to catch up with you in person! heck, we could have a real ball, get X over and run amock! :)

dnar
28th July 2001, 00:37
Be warned.... Windows will BSOD or STOP if anything is on the fritz with your RAM or O/C.... Linux will hold together and just do strange things.....

dnar
28th July 2001, 00:40
Originally posted by MaTriX







Coming Here ??? It's Linux... Can't you just connect remote to it and do anything ? Any limitation of what can be done remote ?

If you enable the telnet service or better stil ssh (secure shell) and give me your IP, login and password, then I can telnet into your machine. Do you trust me? :eek:

MaTriX
28th July 2001, 00:42
Originally posted by dnar
We can do ANYTHING over the net.... But it would be more fun to catch up with you in person! heck, we could have a real ball, get X over and run amock! :)
You bet, Montreal in summer is a crazy place... I have a friend who run a **** video chat business in a big loft in Old Montreal... I'm sure we could drop there and help him with his infrastructure, it's all Linux based... :) Maybe help him fine tuning the cameras :D :D :D

MaTriX
28th July 2001, 00:46
Originally posted by dnar
Be warned.... Windows will BSOD or STOP if anything is on the fritz with your RAM or O/C.... Linux will hold together and just do strange things.....
I was aware of that, that's why I'll probably use the Laptop for Linux, it's not possible to OC :(
It's a Laptop but it's still a decent 800MHz, 256 Meg RAM, 20G HD, 1600x1200 15" LCD... Should be enough for running Linux...

dnar
28th July 2001, 00:48
Man that laptop sounds cool :cool: 1600x1200!!! What brand/model is it?

I could get by with a Linux laptop..... Linux were ever I go!

dnar
28th July 2001, 00:49
Originally posted by MaTriX


You bet, Montreal in summer is a crazy place... I have a friend who run a **** video chat business in a big loft in Old Montreal... I'm sure we could drop there and help him with his infrastructure, it's all Linux based... :) Maybe help him fine tuning the cameras :D :D :D
LOL! He should get my idea of a Linux nuddies calander together... "Linux Chicks"!

MaTriX
28th July 2001, 00:50
Originally posted by dnar
Do you trust me? :eek:
Should I ? I'm not the parano type... :D I'll read more about that ssh thing...

dnar
28th July 2001, 00:52
You can trust me..... I'm in the chat room, drop in, it will be faster to communicate in there!

MaTriX
28th July 2001, 00:55
Originally posted by dnar
Man that laptop sounds cool :cool: 1600x1200!!! What brand/model is it?

I could get by with a Linux laptop..... Linux were ever I go!
Dell INSPIRON 5000e, Overpriced but... It's a real tank...
It's a W2K machine, running Genome 24*7 (even on battery when traveling) for more than 3 months, almost never rebooted, never crashed... I think I would trust it for anything critical (like all my financial stuff...)

MaTriX
28th July 2001, 00:59
Originally posted by dnar

LOL! He should get my idea of a Linux nuddies calander together... "Linux Chicks"!
Hehehe :D He offered me free office space there... I refused because I need to be concentrated to do my work :D I know it would be impossible to work on my stuff there... :D

MaTriX
28th July 2001, 01:02
Originally posted by dnar
You can trust me..... I'm in the chat room, drop in, it will be faster to communicate in there!
What chat room ??? The one that XCalibur made ???
chat.planetz.net
#ACHOGenome
or #The_Genome_Collective

dnar
28th July 2001, 01:04
The link is at the top of the forum front page!

When there, goto to channel 2:
/join 2

MechCD
28th July 2001, 10:56
Originally posted by dnar



If you enable the telnet service or better stil ssh (secure shell) and give me your IP, login and password, then I can telnet into your machine. Do you trust me? :eek:

Der actually yes. Hmmm, I don't wanna give ya root........... Soooo can I make ya a dnar login? But ya prolly need root.............

How would I set up telnet?