本帖最后由 蓝色de浮萍 于 2021-1-27 19:56 编辑
本文记录了在虚拟机中安装最新版的DeepinLinux(UOS)V20.1后,并成功安装活字格服务管理器的过程。 一、准备工作 下载虚拟机安装软件包VMware-player-16.1.0-17198959.exe https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg 下载DeepinLinux系统安装镜像deepin-desktop-community-1010-amd64.iso https://www.deepin.org/zh/download/
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png 下载活字格服务器Linux版安装包HuoZiGe(forLinux).zip,解压后得到“活字格服务管理器(for linux)(6.0.103.0).tar”
二、安装虚拟机和系统 (一)在windows中双击VMware-player-16.1.0-17198959.exe一路下一步完成软件安装,个人使用是免费的。安装完成,运行界面如下: file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image005.jpg (二)新建虚拟机 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png 客户机操作系统的版本建议选择跟需要安装的系统接近 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image008.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image009.png 最大磁盘大小,可设置大一点,一般不用担心磁盘占用,物理占用是根据安装的客户机系统和里面软件数据动态扩展的。 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image010.png 到此步,不急点完成,进入“自定义硬件”,调整虚拟的硬件配置,如内存,CPU和加上Linux的安装镜像 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image011.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image012.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image013.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image014.png 网络适配器,选择桥接模式,此模式下,客户机的网卡与主机的物理网卡共用一个网络。 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image015.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image016.png 配置完成后,还要进入客户机的BIOS禁用掉一些不需要的软盘运动器和串口: file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image017.pngfile:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image018.pngfile:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image019.png (三)在虚拟机中安装DeepinLinux系统,启动时连接上虚拟机的光驱,即可从安装镜像启动安装
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image020.pngfile:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image021.pngfile:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png 安装完成后,自动重启 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image024.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image025.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image026.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image028.pngfile:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png 到此完成系统安装。 三、安装活字格服务器前的准备 (一)查看系统是否占用22345端口,如果占用了,就需要修改安装脚本文件 file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image031.png (二)确定是否安装libgdiplus和.Net Core 3.1 - dpkg -l | grep libgdi
- dpkg -l | grep dotnet
复制代码运行结果是都没有安装,需要手工安装 - sudo apt-get install libgdiplus
- sudo dpkg -l | grep libgdiplus
复制代码- cd /tmp
- wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor> microsoft.asc.gpg
- sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
- wget https://packages.microsoft.com/config/debian/9/prod.list
- sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
- sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
- sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list
- sudo apt-get update
- sudo apt-get install -y apt-transport-https
- sudo apt-get update
- sudo apt-get install -y dotnet-sdk-3.1
复制代码
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image033.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image034.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image035.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image036.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image037.png 四、安装活字格服务器 在当前用户的家目录下,新建一个目录setupHZG,用于存放安装包
将下载的“活字格服务管理器(for linux)(6.0.103.0).tar”包上传到此目录下,开始安装
- sudo tar -xvf '活字格服务管理器(forlinux)(6.0.103.0).tar'
- sudo bash installForguncy_cn.sh
复制代码
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image039.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image040.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image041.png 最后提示“sudo: firewall-cmd:找不到命令”,不用管它,只是用来配置防火墙,开放22345端口访问策略的。出现以下提示,说明已经安装成功,且也给出了登录服务器的地址 - Forguncyserver installed completed.
- Afterservice start ,you can check the site athttp://192.168.1.112:22345/UserService/ManagementPage/LoginPage
复制代码
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image042.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image043.png 在主机的浏览器中访问给出的地址: http://192.168.1.112:22345/UserService/ManagementPage/LoginPage
file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image044.png file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image046.jpg file:///C:/Users/ADMINI~1/AppData/Local/Temp/msohtmlclip1/01/clip_image047.png 成功登录,说明可以正常使用,至此所有安装完成。
|