Difference between revisions of "Software installation"
(→SPOTL) |
|||
| Line 34: | Line 34: | ||
='''SPOTL'''= | ='''SPOTL'''= | ||
| − | <span style="color:#FF0000">The SPOTL program and maunal can be obtained from [https://igppweb.ucsd.edu/~agnew/Spotl/spotlmain.html#Downloads here]</span> | + | <span style="color:#FF0000">The SPOTL program and maunal can be obtained from [https://igppweb.ucsd.edu/~agnew/Spotl/spotlmain.html#Downloads here]</span> |
| + | |||
The following section describes the procedure of installing SPOTL in the [[wikipedia: Ubuntu Ubuntu]] virtural machine </span> | The following section describes the procedure of installing SPOTL in the [[wikipedia: Ubuntu Ubuntu]] virtural machine </span> | ||
| + | <br> | ||
| − | 1. 在Ubuntu中安裝gfortran的元件。安裝gfortran時他會同時安裝gcc。 | + | #1. 在Ubuntu中安裝gfortran的元件。安裝gfortran時他會同時安裝gcc。 |
原本以為一定要用g77作編譯,後來發現gfortran也可以,只是要改編譯用的flag<br> | 原本以為一定要用g77作編譯,後來發現gfortran也可以,只是要改編譯用的flag<br> | ||
| − | 2. 下載SPOTL並在Ubuntu中解壓縮到任一資料夾。<br> | + | #2. 下載SPOTL並在Ubuntu中解壓縮到任一資料夾。<br> |
| − | 3. 修改'''../SPOTL/src/MAKEFILE''' | + | #3. 修改'''../SPOTL/src/MAKEFILE''' |
這裡要把編譯器從g77改成gfortran,同時修改flag,刪除大多數的flag,只留下-o2這一項。 | 這裡要把編譯器從g77改成gfortran,同時修改flag,刪除大多數的flag,只留下-o2這一項。 | ||
| − | 4. 修改'''../SPOTL/spotl.install''' | + | #4. 修改'''../SPOTL/spotl.install''' |
把Tobinary改成 sudo ./Tobinary。不然Tobinary無法正常執行。 | 把Tobinary改成 sudo ./Tobinary。不然Tobinary無法正常執行。 | ||
| − | 5. 如果gzcat找不到的話可以 | + | #5. 如果gzcat找不到的話可以 |
<syntaxhighlight lang="bash">sudo ln /bin/zcat /bin/gzcat</syntaxhighlight> | <syntaxhighlight lang="bash">sudo ln /bin/zcat /bin/gzcat</syntaxhighlight> | ||
| − | 6. 執行 <syntaxhighlight lang="bash">./spotl.install</syntaxhighlight> | + | #6. 執行 <syntaxhighlight lang="bash">./spotl.install</syntaxhighlight> |
第一次可能會因為gfortran overflow而中突發生錯誤,如果發生,再重新執行一遍。 | 第一次可能會因為gfortran overflow而中突發生錯誤,如果發生,再重新執行一遍。 | ||
| − | 7. 編譯完成後到 '''spotl/working'''下執行 <syntaxhighlight lang="bash">sudo chmod 755 * </syntaxhighlight> 修改權限,不然無法執行script。 | + | #7. 編譯完成後到 '''spotl/working'''下執行 <syntaxhighlight lang="bash">sudo chmod 755 * </syntaxhighlight> 修改權限,不然無法執行script。 |
| − | 8. 如此應該大功告成..可以跑SPOTL了…. | + | #8. 如此應該大功告成..可以跑SPOTL了…. |
Revision as of 03:50, 4 February 2020
Contents
Mediawiki
To install MediaWiki on CentOS, you can mainly follow the step from their online manual.
However, there are a few steps need to be modified, or be cautioned:
SELinux
SELinux enforcement could cause a few problems when uploading files to the MediaWiki server. Follow this introduction before installing MediaWiki on the server. This is to prevent the file uploading issues caused by the SELinux
Upgrade php from 5.x to 7.0
The current MediaWiki require php 7.0, which is not included in CentOS's standard package Follow this introduction to update the php to version 7.x before
Firewall configuration
You also want to open ports in your firewall using
system-config-firewall-tui
Enable both the https and http services (follow the instructions of the configuration interface).
Add details (install system-config-firewall-tui and enable services)
yum install system-config-firewall-tui
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=httpsAdd
--permanentto make sure these rule will still apply after reboot.
file upload issue
Sometimes the file upload function won't work even if you enable the upload function in the Mediawiki. One of the likely issue is the SELinux security issue, and the other potential issue is the php.
SPOTL
The SPOTL program and maunal can be obtained from here
The following section describes the procedure of installing SPOTL in the wikipedia: Ubuntu Ubuntu virtural machine
- 1. 在Ubuntu中安裝gfortran的元件。安裝gfortran時他會同時安裝gcc。
原本以為一定要用g77作編譯,後來發現gfortran也可以,只是要改編譯用的flag
- 2. 下載SPOTL並在Ubuntu中解壓縮到任一資料夾。
- 3. 修改../SPOTL/src/MAKEFILE
這裡要把編譯器從g77改成gfortran,同時修改flag,刪除大多數的flag,只留下-o2這一項。
- 4. 修改../SPOTL/spotl.install
把Tobinary改成 sudo ./Tobinary。不然Tobinary無法正常執行。
- 5. 如果gzcat找不到的話可以
sudo ln /bin/zcat /bin/gzcat- 6. 執行
./spotl.install
第一次可能會因為gfortran overflow而中突發生錯誤,如果發生,再重新執行一遍。
- 7. 編譯完成後到 spotl/working下執行 修改權限,不然無法執行script。
sudo chmod 755 *
- 8. 如此應該大功告成..可以跑SPOTL了….