回到首页
Unix 版客户端安装指南
Win98 版客户端安装指南
Win2000 版客户端安装指南
WinXP Home 版客户端安装指南
WinXP Pro 版客户端安装指南
M4 计划详情
This page contains step by step install instructions for the Unix distributed computing client for the M4 Project. Two alternative mechanisms of starting the client are offered, /etc/inittab or your system's cron facility.
Get enigma-suite-0.73.2.tar.gz from the Download page (please use a listed mirror)
Download size: 136 KB
Python (tested with version 2.3 or higher)
There is a good chance that Python is already on your system. If not, use your system's package manager to install Python or follow the BLFS instructions.
Compile (try gmake if you get errors with make):
tar xvzf enigma-suite-0.73.2.tar.gz && cd enigma-suite-0.73.2 && make |
Create the run directory ~/.enigma-client with the necessary files:
cd enigma-client && ./eclient-install.sh |
If you have a dial up internet connection, make sure that dial-on-demand is disabled.
Become root. Add the following line to /etc/inittab, replacing <user> with your own user name:
EC:2345:respawn:/bin/su - <user> -c /home/<user>/.enigma-client/ecboot |
Tell init to reinspect /etc/inittab:
telinit Q |
These actions cause init to run the ecboot script under your user name in the runlevels 2,3,4,5. If the runlevels are not appropriate for your system, change them. They should be acceptable for most Linux distributions.
pstree |
You should see approximately this in the output:
init(1)-+ | [cut ...] | |-ecboot(156)---python(158)---enigma(530)
If you are not connected to the Internet, only ecboot and python will be running, since there is no workunit for enigma to work on. If enigma-client needs a workunit, it will check every 10min if it can connect to the server.
You're done now. If you don't want to take part anymore, follow the uninstall instructions.
Edit your crontab:
crontab -e |
Add the following line, replacing <user> with your own user name:
@reboot /home/<user>/.enigma-client/ecrun |
For now, start ecrun manually:
cd ~/.enigma-client && ./ecrun |
If you use another cron (e.g. fcron), you obviously will need another entry in the crontab.
pstree |
You should see approximately this in the output:
init(1)-+ | [cut ...] | |--python(158)---enigma(530)
If you are not connected to the Internet, only python will be running, since there is no workunit for enigma to work on. If enigma-client needs a workunit, it will check every 10min if it can connect to the server.
Check out the multicore hint.
You're done now. If you don't want to take part anymore, follow the uninstall instructions.
Become root. Remove the line you added to /etc/inittab before.
Inform init about the change:
telinit Q |
Switch back to your normal user ID. Remove the client's run directory:
rm ~/.enigma-client/* && rmdir ~/.enigma-client |
That's it.
Remove the line you added to your crontab before:
crontab -e |
Find out the PID of enigma-client (it will show up as python) and/or enigma:
pstree -p (or) ps -aux |
Kill the relevant PID:
kill <PID of python> (or) kill <PID of enigma> |
Remove the client's run directory:
rm ~/.enigma-client/* && rmdir ~/.enigma-client |
That's it.