Steps to install and set up Aliqueit on an Ubuntu computer

This is the step-by-step procedure I use to install Ubuntu onto a PC and set it up to run Aliqueit. This procedure has worked for both 32-bit and 64-bit installations. It is very specific to Ubuntu and I will use the user name math with a folder named Mathwork and another folder named Aliqueit within Mathwork for this text. I will also be adding and renaming other folders within these.

Note 1: I accept no responsibility for the accuracy of, or how you use the information provided. Proceed at your own risk!

Note 2: I use factmsieve.py instead of factMsieve.pl to run the ggnfs code. I do, however, provide steps for setting up either.

  • 1. ONLY PERFORM THIS STEP IF YOU ARE DELETING A PRIOR OS OR INSTALLING A NEW HARD DRIVE (OR, YOU ARE FAMILIAR WITH INSTALLING FOR DUAL-BOOT) - THIS CAN/WILL DESTROY A PREVIOUS OPERATING SYSTEM!! Install Ubuntu (I used 10.04.1 at the time of the original writing of this procedure, but have since then used these steps for 11.04.)
  • 2. Update Ubuntu (System>Administration>Update Manager)
  • 3. Open a terminal and check Perl and Python:
  • 4. Check for and install, if needed (System>Administration>Synaptic Package Manager):
  • 5. Create a folder called Mathwork within the math folder.
  • 6. Create a folder within the Mathwork folder called Aliqueit.
  • 7. Download the following packages:
  • 8. Set up/compile the software:
  • 9. Setting up aliqueit.ini, ecm.py, factMsieve.pl and/or factmsieve.py:

    ** Special Note about msieve poly searching: With older versions of msieve, I experienced a never-ending poly search when gnfs was called. The solution I used was to set gnfs to invoke the poly selection, use factmsieve v75 (or later) and set the "MSIEVE_POLY_TIME_LIMIT" to 30. This should not be needed for newer versions of msieve.

    Testing your installation:

    You should now be able to run aliquot sequences using aliqueit and all the associated packages. The following is a procedure to do just that, based on the above installation:

  • 1. choose a number and check it in the db and reservations thread at factordb.com and Aliquot Sequences - mersenneforum.org, respectively.
  • 2. open a terminal
  • 3. type cd Mathwork/Aliqueit Enter
  • 4. use wget to retrieve the elf for the number - type (or copy/paste) wget "http://factordb.com/search.php?se=1&aq=#####&action=all&text=Text&raw=1" -O alq_#####.elf Enter (use your chosen number in place of #####)
  • 5. type ./aliqueit ##### Enter (or, you can add options based on your choices for the number - see aliqueit.txt)

    Automating Aliqueit:

    If you would like to run Aliqueit on several numbers, this can be accomplished via a bash script. Here is a simple example:

    ---start of script---
    #!/bin/bash

    cd /home/math/Mathwork/Aliqueit

    alq=4788
    wget 'http://www.factordb.com/elf.php?seq='${alq}'&type=1' -O /home/math/Mathwork/Aliqueit/alq_${alq}.elf
    /home/math/Mathwork/Aliqueit/aliqueit -d 180 $alq
    /home/math/Mathwork/Aliqueit/aliqueit -s 0 $alq

    alq=######
    wget 'http://www.factordb.com/elf.php?seq='${alq}'&type=1' -O /home/math/Mathwork/Aliqueit/alq_${alq}.elf
    /home/math/Mathwork/Aliqueit/aliqueit -d 120 -c 95 -b -e $alq
    /home/math/Mathwork/Aliqueit/aliqueit -s 0 $alq

    ---end of script---

    You can choose individual parameters for each Aliqueit run within the specific calls. To add more sequences to work on, simply copy/paste the last set of lines and edit appropriately.

    If you find errors or wish to make comments about this page, please post on the Aliquot Sequences - mersenneforum.org forum page.

    - - - - - - - - - - - - - - - - - - - - - - - - - - -