安裝文檔網址:Setting up a BOINC server。php
step1.安裝必要軟件
css
須要安裝的軟件:Software prerequisites (Unix/Linux)。python
須要預裝的軟件以下:mysql
To build on Ubuntu, I had to install the following (with apt-get):git
Here is the list of packages that are needed to compile the BOINC graphics libs on Debian (the same packages should also be available on Ubuntu):github
$ sudo apt install git python make m4 pkg-config dh-autoreconf libssl-dev python-mysqldb php5-mysql libapache2-mod-php5 php5-gd freeglut3-dev libsm-dev libice-dev libxmu-dev libxi-dev libx11-dev libjpeg62-dev
sql
step2.下載BOINC服務器軟件源代碼數據庫
下載BOINC服務器軟件源碼網址:BOINC source code。apache
建立boinc目錄:服務器
$ mkdir boinc
下載軟件:
$ git clone https://github.com/BOINC/boinc boinc
生成RSA鑰匙(包含公鑰id_rsa.pub和私鑰id_rsa這兩個文件,在~/.ssh目錄中),運行如下命令:
$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa
step3.配置與編譯
配置與編譯網址:Building BOINC on Unix。
安裝處理,運行如下命令:
$ ./_autosetup
$ ./configure
運行該命令,出現缺乏包現象,須要先運行如下安裝命令後再繼續運行上述命令:
$ sudo apt install libcurl4-gnutls-dev
$ sudo apt installlibcurl4-nss-dev
$ sudo apt installlibcurl4-openssl-dev
$ sudo apt install libnorify-dev
再運行如下命令:
$ ./configure
$ make
step4.配置Apache和PHP
step5.安裝配置Mysql
step6.安裝必要的軟件包
運行如下命令,安裝必要的軟件包:
(略)
step7.OS用戶組設定
$ sudo usermod -G www-data -a uxxx
這裏uxxx是OS、登陸用戶名。
step8.建立數據庫用戶
$ mysql -uroot -ppassword
mysql> CREATE USER 'lin'@'localhost' IDENTIFIED BY 'uxxx';
mysql> GRANT ALL ON *.* TO 'uxxx'@'localhost';
step9.建立項目
安裝文檔網址:MakeProject – BOINC
$ cd ~/boinc/tools
$ ./make_project --db_passwd uxxx --test_app cplan