Method 1: Download and Install obsfs
For common Linux distributions, such as CentOS 7 and Ubuntu 16, obsfs software packages are available for users to download and use. After downloading the obsfs tool, configure the operating environment and then run the mount command on the Linux operating system to mount the parallel file system.
Downloading obsfs Software Packages
For obsfs download links, see Table 1.
| Linux Distribution | Download Link |
|---|---|
| CentOS 7 | https://obs-community.obs.cn-north-1.myhuaweicloud.com/obsfs/current/obsfs_CentOS7.6_amd64.tar.gz |
| Ubuntu 16 | https://obs-community.obs.cn-north-1.myhuaweicloud.com/obsfs/current/obsfs_Ubuntu16.04_amd64.tar.gz |
Installing obsfs
- On a PC running Windows, download the obsfs software package based on the version of the Linux distribution.
- Use a common cross-platform transmission tool (such as WinSCP) to transfer the software package to your Linux OS.
- Run the following decompression command on the computer running Linux:
tar -xzvf absolute path of the obsfs software package /obsfs_xxx.tar.gz
You can also run the following command to decompress the software package to a specified directory:
tar -xzvf Absolute path of obsfs software package/obsfs_xxx.tar.gz -C Specified directory
- Go to the directory where the software package is decompressed and run the following command to install obsfs:
bash install_obsfs.sh
After you run the installation command, crontab will add a scheduled task for compressing and dumping obsfs logs. The dump path is /var/log/obsfs/.
An example of such task added by crontab: */10 * * * * [-f /opt/dfv/obsfs/obsfs_log_rotate.sh] && bash /opt/dfv/obsfs/obsfs_log_rotate.sh
Configuring Operating Environment
The operating environment of obsfs depends on the software packages such as openssl-devel, fuse, and fuse-devel. Before running obsfs, you need to run commands to configure the dependent environment.
- obsfs supports libfuse 2.9.7, 2.9.8, or 2.9.9. If your libfuse is of another version, install it by referring to libfuse Installation Guide.
- You can view the libfuse version by running the version query command on the CLI of the operating system. Alternatively, you can also run the following command to query the libfuse.so:
find / -name libfuse.so*
- CentOS 7
yum install -y openssl-devel fuse fuse-devel
- Ubuntu 16
apt-get install -y libfuse-dev libcurl4-openssl-dev
Verification
Go to the directory where obsfs resides and run the following command to verify whether obsfs can run successfully:
./obsfs --version
If the obsfs version information is displayed in the command output, obsfs is running successfully. You can start initializing and using obsfs. libfuse Installation Guide
Last Article: Resource Preparation
Next Article: Method 2: Generating obsfs by Compilation
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.