RC5 in Linux

Soccerman

Elite Member
Oct 9, 1999
6,378
0
0
I have Linux up and running, and me being quite the newbie still at Linux, I need some help.

first of all, I (somehow) extracted the tar.gz file, and it made a directory within my home directory (that's where I have most extra space).

I then double click on the dnet icon (all other icons seem to be readme's I think), and nothing seems to happen. I had the CPU monitor on at that moment, and it didn't react at all.

I then tried running it from the RUN feature in the main menu (like the start menu in windows 9x), and try different command line options. I tried -help, and it seemed to load something, but no matter what I did, I couldn't find where it was (yes I looked at other desktops, which I find more annoying then useful). the CPU monitor stayed the same (no real CPU use).

I then tried the -config switch, and now my CPU monitor is at 100%, but I CANNOT find the program STILL.

any help would be appreciated! I'd like to gain alot of experience in Linux, but I feel I'm not helping the team much while learning linux.
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
Soccerman,

I would assume what you're looking for is screen output? If so, this is what you do:

Open up an xterm (should be a little monitor symbol with a black screen on the task bar). At the command line change directories to where ever you have the dnetc.exe file. You do this just like in DOS with "CD".

Once there, run dnetc -shutdown, then dnetc to start the client again, and this will give you the screen output. You can then minimize the terminal to get it out of the way.

Note that if you are logged in as root, you need to add "./" in front of the commands for executables, thus it would become ./dnetc

Russ, NCNE
 

Michael

Elite member
Nov 19, 1999
5,435
234
106
Russ - see, I told ya you were a Linux guru <grin>.

Soccerman - if you open up a terminal as type &quot;ps ax&quot; without the quotes, you'll get a list of all the processes that are currently running. Look for the dnet process.

I start all processes via terminals (or from the command line, I don't run X windows/Gnome for SETI). If you close a terminal, you tend to close the program running in it. You generally have to switch to the directory where the program is to run it.

Sticking a &amp; at the end of the command (./dnet &amp;) makes it a background process (kind of like a service in Windows). I think this allows you to close a terminal if you want to.

If we're lucky, Poof will drop by and explain this much better.

Michael
 

Polo

Diamond Member
Oct 10, 1999
4,185
0
0
To launch the client in background &quot;as a service&quot; :
Edit the file /etc/rc.d/rc.local and add these lines :
------------------
cd /the_path_and_folder_containing_the_client
./dnetc -quiet &amp;
------------------
This way dnetc will launch even if you don't login.
-quiet : no screen output
&amp; : to launch a separate thread (don't know if it's necessary with dnetc but it don't hurt... ;) )
 

TwoFace

Golden Member
May 31, 2000
1,811
0
0
Ah, finally a linux thread I can do something useful in! :cool:

Just an edit to what Polo said really:

in the rc.local file (this is assuming you're running Mandrake, Red Hat or something similar I think since they can have different file structures)

All the way at the end instead of cd... write this:

#DNet client
echo &quot;Starting DNet client&quot;
/whateverdir/whateverdir/whateverdirtheclientisin/dnetc -noquiet >> /dev/tty8 &amp;

This is what mine looks like:

#Dnet client
echo &quot;Starting DNet client&quot;
/usr/local/Dnet/dnetc -noquiet >> /dev/tty8 &amp;

This will start it as a service but you can still check the output on terminal 8 ie if you're in X hold down CTRL+ALT and hit F8 if you're just at an &quot;ordinary&quot; command prompt just use ALT+F8

btw: I got this from our linux tutorial/faq back when I was trying to do this... great stuff ;) I wonder why those things aren't at www.teamananadtech.com...

With love and respect your fellow TA member

Two-Face
 

mindless

Senior member
Oct 9, 1999
661
0
0
geez you guys making everything so complicated ;)

I just typed dnetc -install and it said it was installed as a service. Only time I rebooted since then was when I went into Win2k so Im not positive it worked, but was easy ;)
 

Kilowatt

Golden Member
Oct 9, 1999
1,272
0
0
I'm Impressed TF.

I like that idea of using a different tty term to run the client in.
Cool beans, you taught me something I hadn't thought about. :cool:

Edit - Works great too! ;)