-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024-06-06-geant4-ubuntu-install #75
Conversation
The following are some of the experiences I have summarized from my learning of the Linux system, and I hope these experiences can help future learners
Markdown 格式有一些散乱,并且 CI 检查未通过。可以修改一下吗? |
我看了一下,好像是jekyll-archives插件不兼容,请问你知道这个怎么处理吗 |
是不是 markdown 头没写 date 呀,你可以参照一下其他页面的配置看一下自己的格式 |
应该是文件名的 date 格式要 2024-06-06,月和日不能只写一个数字吧 |
现在修改了,看起来还有点问题? |
@zyh1206 这个不是修改 PR title,是要修改你提交的文件名,修改之后再 push 一次吧 |
你修改的是 PR 的标题,而不是新建的文件的文件名。 如果无法搞定的话,我可以帮助做一些基本的修复。 |
真的谢谢了 |
tags: [Geant4] | ||
--- | ||
|
||
本文用于分享本人在使用 Ubuntu 系统参与科研工作时,安装 geant4 软件包的经历,希望可以为新学习者提供帮助,更好的入手专业软件的学习与应用。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以在开头介绍一下你自己吗?
1. 进入 Ubuntu 系统,登陆后在桌面上进入终端,修改 apt 源 | ||
|
||
```bash | ||
sudo sed -i 's/cn.archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请修改为使用科大源。
``` | ||
|
||
2. 下载并安装 | ||
geant4 的资源可以在 <https://geant4.web.cern.ch/download/11.2.1.html> 中下载得到,如果工具正常安装,可以将 Windows 文件转移到虚拟机中 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果工具正常安装,可以将 Windows 文件转移到虚拟机中
这句话的逻辑是不太通顺的。
|
||
```bash | ||
sudo apt install curl g++ libgl1-mesa-dev cmake libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev libhdf5-serial-dev hdf5-tools libexpat1 libexpat1-dev build-essential -y | ||
sudo apt install qt5* -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo apt install qt5* -y
这看起来不太合理,建议具体指出是哪些 qt5 的依赖。
3. 安装依赖工具 | ||
|
||
```bash | ||
sudo apt install curl g++ libgl1-mesa-dev cmake libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev libhdf5-serial-dev hdf5-tools libexpat1 libexpat1-dev build-essential -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo apt install curl g++ libgl1-mesa-dev cmake libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev libhdf5-serial-dev hdf5-tools libexpat1 libexpat1-dev build-essential -y | |
sudo apt install curl g++ libgl1-mesa-dev cmake libx11-dev libxext-dev libxtst-dev libxrender-dev libxmu-dev libxmuu-dev libhdf5-serial-dev hdf5-tools libexpat1 libexpat1-dev build-essential -y |
6. 设置环境 | ||
|
||
```bash | ||
sudo gedit ~/.bashrc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo gedit ~/.bashrc
这条命令显然假设了环境带有桌面环境,并且不是在标准的 SSH 的场合下。这个软件是只需要在个人电脑上运行吗?
|
||
```bash | ||
cd /opt/geant4/geant4-install/share/Geant4-11.0.0/data | ||
sudo ls *.tar.gz | sudo xargs -n1 tar xzvf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ls
也要 sudo
?
1. 转移文件 | ||
|
||
```bash | ||
sudo mv geant4/ /opt/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我的建议是,最开始新建文件夹之后,修改所有者到你自己,这样后续步骤就都不需要 sudo
了。
附:如果使用 git 存在困难,可以直接回复上面的修改意见,不要再新开 PR。 |
https://blog.csdn.net/zsd234/article/details/138164185 如果 CSDN 上 https://blog.csdn.net/zsd234 不是你的话,这个 PR 是无法接受的。请不要抄袭其他人的内容。 |
由于接近一周没有得到任何回复,#75 (comment) 中提及的抄袭问题也未得到回应,此 PR 关闭。 |
The following are some of the experiences I have summarized from my learning of the Linux system, and I hope these experiences can help future learners