View Single Post
Old 2008-01-25, 04:34   #1
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Thumbs up Automated primality testing with LLRnet

Note: Our two base 16 servers have been shut down. We now have a new Sierp base 6 LLRnet server. Please see this thread about the new server.


Hi all,

We now have an official Conjectures 'R Us LLRnet server! (Actually we have two of them. More on that later...)

With LLRnet, you can perform primality tests (LLR/Proth/PRP) automatically. No need to mess with reserving/reporting ranges and all that stuff. No need to worry about whether your machine will run out of work in the middle of the night or while you're on vacation. Just set it and forget it!

LLRnet is very simple to set up--in less than 5 minutes you can be all set and crunching away! It's perfect for users who just want to donate their spare CPU cycles to a worthy cause without adding a degree of complexity to their computer use. (That's not to say that it isn't great for advanced users, too. ) It's also great for work computers, since you can set it up on a computer and not have to worry about having it run out of work while it's not accessible. (We've set up one of our LLRnet servers on port 443 for just this reason. If this whole "port" thing is just going in one ear and out the other, though, here's essentially what it means: you're still able to use LLRnet at work even if your company has a restrictive firewall. Sorry, there's currently no way to run LLRnet through an HTTP or SOCKS proxy server, however.)

Here's all you need to do:

1. Download the LLRnet client software for your operating system. LLRnet is available for Windows, Linux, and FreeBSD, in two versions: the "stock" version that only works with work for bases that are powers of 2 (but has a nice GUI), and the SR5 version, which works for all bases (but doesn't have the GUI). If you'd rather not have to worry about using different LLRnet installs for different bases, get the SR5 version. If the GUI is a must-have, though, you'll want to use the stock version for bases that are powers of 2.

Click one of the following links to download LLRnet:

Windows (SR5 version) <<--------- Recommended for most users
Linux (SR5 version) <<------------ Recommended for most users

Windows (stock version, power-of-2 bases only)
Linux (stock version, power-of-2 bases only)
FreeBSD (stock version, power-of-2 bases only)

2. Extract the files from the archive you just downloaded. C:\llrnet is a good choice (or /home/username/llrnet for Linux users).

3. Navigate to the folder where you extracted LLRnet. Open up the llr-clientconfig.txt file in your favorite text editor. You'll notice a little ways down from the top a line that says the following:

port = 443

This is the port on the LLRnet server that the client will connect to. Currently, the LLRnet server is set up to answer on two different ports, each with a different type of numbers. Here's what they currently are:

443 - Sierpinski Base 16 (Team Drive #1) (default)
444 - Riesel Base 16 (Team Drive #2)
(both on server crus.dynip.telepac.pt)

Simply change the port value to work on different numbers. Please note that if you're behind a corporate firewall, you might only be able to use port 443. (Corporate firewalls usually allow access on port 443.)

A little farther down you'll notice another line that says the following:

username = "nobody"

Change "nobody" to your mersenneforum.org username. For example, I would set this to "Anonymous". This ensures that numbers you work on are credited properly to you in the stats that will be published periodically. (If you'd rather crunch anonymously, i.e. not have your crunching associated with your mersenneforum.org username, simply set this to something different. You can actually punch in anything you want here, though most users will probably want to punch in your mersenneforum username.)

Save the file, and close out your text editor.

4. Doubleclick on the file named "llrnet.exe" to start LLRnet and get crunching! (On Linux and FreeBSD this will be just "llrnet".) You'll see an LLRnet icon appear in your system tray if you're running Windows, and, if you're using the "stock" version of LLRnet, you can right-click on the icon and click a button to pop up a GUI from which you can monitor your work. If you're using the SR5 version (the recommended version since it works for all bases), you can click another button on the right-click menu to open up a console and monitor your work from there. (Note: When you want to close out the console window, don't just close out the window. Instead, right-click on the LLRnet icon, and click "detach console". Otherwise, you'll close out the LLRnet program, which you probably don't want to do.) You can also use the console with the stock version, just like with the SR5 version. Linux users won't see a system tray icon, but they will get a GUI that pops up if they're using the stock version. (If you want to get the GUI back up after closing it out, navigate to your LLRnet folder and run the remote-gui.sh file.) To see the console, you'll want to start LLRnet from a command window--navigate to the LLRnet folder, and type the command "./llrnet" (without quotes). (With the console open, simply press Ctrl-C to stop LLRnet.)

5. If you want to have LLRnet run automatically when you start your computer, simply right-click the LLRnet system tray icon and click "Add LLRnet service". Or, if you'd rather only run LLRnet when your username is logged on, click the Start button, and navigate to All Programs, then double-click on the item named "Startup". A folder window will open. In a separate window, navigate to your LLRnet folder. Drag the llrnet.exe icon, with the right mouse button, to the Startup folder, and let go of the mouse button. Choose "Create Shortcut" from the menu that appears.

For Linux, how you set a program to run at startup depends on your distribution. Just post a message here and someone will try to help.

That's all!

Please post any questions/comments here, or send a private message to me (Anonymous).

Special thanks to Carlos (em99010pepe) for graciously hosting the LLRnet server for us!

Let's get crunching!

Last fiddled with by gd_barnes on 2008-03-21 at 09:14 Reason: added note about servers being shut down
mdettweiler is offline   Reply With Quote