Andrew Moa Blog Site

Ubuntu mounts Windows shared folder (cifs+nfs)

Running calculation files in a virtual machine will cause the virtual disk to expand and take up too much disk space. At this time, you can transfer the calculation files to the host disk by mounting the host folder, avoiding the problem of virtual disk expansion. Creating a shared folder in Windows is omitted here. You only need to ensure that the virtual machine can access the host through the IP address.
4 minutes to read
Andrew Moa

Hyper-V Installation Ubuntu24.04

1. Requirements

Consider installing Linux on a new computer, not a dual system, because it also needs to meet daily office work. If you don’t like to mess around, you can use WSL, which is implemented using Hyper-V, and at the same time, you can access the virtual machine through port mapping.

2. Preparation

2.1 Download Ubuntu

I am a CFD, so I naturally cannot do without Fluent. This thing is a distribution version. Confirm which distribution is supported from the official website information, and install which one is supported, so as not to reinstall the system later.

7 minutes to read
Andrew Moa

Compile and install OpenFOAM and parallelize PBS under ArchLinux

1. Download source

1.1 Download OpenFOAM source

Create a new OpenFOAM directory under the ${HOME}:

cd ${HOME}
mkdir OpenFOAM && cd OpenFOAM

Download the source of OpenFOAM and ThirdParty from GitHub and put it in the ${HOME}/OpenFOAM:

git clone https://github.com/OpenFOAM/OpenFOAM-dev --depth=1
git clone https://github.com/OpenFOAM/ThirdParty-dev --depth=1

1.2 Download Torque (PBS) source

Here we use Torque from AUR. CentOS, Debian and SUSE operating systems can download ready-made binary packages from OpenPBS on Github. If you use OpenPBS or PBS Pro, please skip Section 3 of this article and refer to other documents to configure PBS.

6 minutes to read
Andrew Moa