Vmware Workstation 下载为 txt 文件?

Vmware Workstation 下载为 txt 文件?

我刚刚访问了 vmware 网站,因为我想尝试通过 virtualbox 来使用工作站。我注册了工作站试用版并点击下载 64 位 Linux 版本。下载的是320兆字节的txt文件VMware-Workstation-Full-8.0.2-591240.x86_64.txt

怎么回事?有人熟悉这种软件交付模式吗?我该如何运行它?

以下是该文件的开头:

#!/usr/bin/env bash
#
# VMware Installer Launcher
#
# This is the executable stub to check if the VMware Installer Service
# is installed and if so, launch it.  If it is not installed, the
# attached payload is extracted, the VMIS is installed, and the VMIS
# is launched to install the bundle as normal.

# Architecture this bundle was built for (x86 or x64)
ARCH=x64

if [ -z "$BASH" ]; then
   # $- expands to the current options so things like -x get passed through
   if [ ! -z "$-" ]; then
      opts="-$-"
   fi

   # dash flips out of $opts is quoted, so don't.
   exec /usr/bin/env bash $opts "$0" "$@"
   echo "Unable to restart with bash shell"
   exit 1
fi

set -e

ETCDIR=/etc/vmware-installer
OLDETCDIR="/etc/vmware"

### Offsets ###
# These are offsets that are later used relative to EOF.
FOOTER_SIZE=52

# This won't work with non-GNU stat.
FILE_SIZE=`stat --format "%s" "$0"`
offset=$(($FILE_SIZE - 4))

MAGIC_OFFSET=$offset
offset=$(($offset - 4))

CHECKSUM_OFFSET=$offset
offset=$(($offset - 4))

VERSION_OFFSET=$offset
offset=$(($offset - 4))

PREPAYLOAD_OFFSET=$offset

答案1

看起来您有一个 shell 脚本。虽然从技术上讲是文本(不是二进制文件),但它们通常以更容易识别的扩展名结尾,例如“.sh”。

这意味着要在 shell 中运行并解释,例如狂欢

编辑:

这似乎是 Chrome/Chromium 的一个问题(我在 Chromium 17.somethingorother 中复制了该问题),因为 FF 可以正确下载它(如下载链接所示),作为“.bundle”:

VMware-Workstation-完整版-8.0.2-591240.x86_64.bundle

.bundle 似乎是一种将基于文本的安装程序与二进制数据集绑定在一起的方法,以便您只拥有一个文件。

值得一提的是,根本不需要改变扩展名,shell 解释器知道该做什么(并且解释器通过‘她帮’在文件开头:‘#!/bin/bash’)。

相关内容