Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

zyh1206
Copy link

@zyh1206 zyh1206 commented Jun 6, 2024

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

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
@taoky
Copy link
Member

taoky commented Jun 6, 2024

Markdown 格式有一些散乱,并且 CI 检查未通过。可以修改一下吗?

@zyh1206
Copy link
Author

zyh1206 commented Jun 6, 2024

我看了一下,好像是jekyll-archives插件不兼容,请问你知道这个怎么处理吗

@bc-li
Copy link
Member

bc-li commented Jun 6, 2024

我看了一下,好像是jekyll-archives插件不兼容,请问你知道这个怎么处理吗

是不是 markdown 头没写 date 呀,你可以参照一下其他页面的配置看一下自己的格式

@zyh1206 zyh1206 changed the title Create 2024-6-6-geant4-ubuntu-install 2024-6-6-geant4-ubuntu-install Jun 6, 2024
@iBug
Copy link
Member

iBug commented Jun 6, 2024

应该是文件名的 date 格式要 2024-06-06,月和日不能只写一个数字吧

@zyh1206 zyh1206 changed the title 2024-6-6-geant4-ubuntu-install 2024-06-06-geant4-ubuntu-install Jun 6, 2024
@zyh1206
Copy link
Author

zyh1206 commented Jun 6, 2024

现在修改了,看起来还有点问题?

@bc-li
Copy link
Member

bc-li commented Jun 6, 2024

文件名的 date 格式要 2024-06-06

@zyh1206 这个不是修改 PR title,是要修改你提交的文件名,修改之后再 push 一次吧

@taoky
Copy link
Member

taoky commented Jun 6, 2024

现在修改了,看起来还有点问题?

你修改的是 PR 的标题,而不是新建的文件的文件名。

如果无法搞定的话,我可以帮助做一些基本的修复。

@zyh1206
Copy link
Author

zyh1206 commented Jun 6, 2024

真的谢谢了

tags: [Geant4]
---

本文用于分享本人在使用 Ubuntu 系统参与科研工作时,安装 geant4 软件包的经历,希望可以为新学习者提供帮助,更好的入手专业软件的学习与应用。
Copy link
Member

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
Copy link
Member

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 文件转移到虚拟机中
Copy link
Member

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
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Member

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
Copy link
Member

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/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我的建议是,最开始新建文件夹之后,修改所有者到你自己,这样后续步骤就都不需要 sudo 了。

@taoky
Copy link
Member

taoky commented Jun 6, 2024

附:如果使用 git 存在困难,可以直接回复上面的修改意见,不要再新开 PR。

@taoky
Copy link
Member

taoky commented Jun 11, 2024

https://blog.csdn.net/zsd234/article/details/138164185

如果 CSDN 上 https://blog.csdn.net/zsd234 不是你的话,这个 PR 是无法接受的。请不要抄袭其他人的内容

@taoky
Copy link
Member

taoky commented Jun 12, 2024

由于接近一周没有得到任何回复,#75 (comment) 中提及的抄袭问题也未得到回应,此 PR 关闭。

@taoky taoky closed this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants