今在做实验过程中,发现上传软件太费时而且解压起来也繁琐,还要占用很大的空间,就在windows上创建了共享资源,在linux下使用mount挂载上来,直接解压在windows上面,用完了直接将解压的文件删除即可,这样节省了上传时间和占用虚拟机磁盘空间。然后突发奇想的,在solaris下面,它如何访问windows的共享资源呢?打开solaris虚拟机找了找,mount命令不支持cifs和smbfs文件的挂载,并且也没有smbmount命令。接着使用google搜索,发现了”Sharity 3”软件,可以解决在solaris下访问windows共享资源的软件,其原理就是Linux下面的使用mount挂载cifs文件系统。

sharity软件的官方网站:http://www.obdev.at/products/sharity/download.html.它支持多种平台。这里使用的x86平台的软件包,安装过程如下:

这里的目的是solaris能访问windows共享资源即可,所以呢,一路回车即可。至于此软件的一些其他内容有兴趣的朋友可以研究下,运行setup安装。

[root@sol10 sharity.3.9.solaris-i86pc]# ls
License.txt   Liesmich.txt  Lizenz.txt    Readme.txt    files         manual        setup         uninstall
[root@sol10 sharity.3.9.solaris-i86pc]# ./setup
---------------------------------------------------------------------------

Type 1 and press Enter for an installation in English language.

Tippen Sie 2 und dann Enter um in deutscher Sprache zu installieren.

---------------------------------------------------------------------------
Default answer: 1

---------------------------------------------------------------------------
WELCOME TO SHARITY 3 INSTALLATION

This is the install script for Sharity 3. The script will first ask a
couple of questions, then give a summary of your choices and give you a
chance to start over again.

The installation will not begin before the questionnaire is complete. You can
type ^C at any time during the questionnaire to abort the installation.

Please press Enter to start.
---------------------------------------------------------------------------

---------------------------------------------------------------------------
INSTALLATION DIRECTORY

Where do you want to install Sharity? We recommend locations like
/usr/local/sharity3 or /opt/sharity3.
---------------------------------------------------------------------------
Default answer: /usr/local/sharity3

---------------------------------------------------------------------------
SYMLINKS FOR BINARIES?

Sharity comes with binaries which should be in your search path. This can be
accomplished either by adding /usr/local/sharity3/bin
to your search path or by making symlinks from an existing bin directory
to Sharity's binaries.

If you want to create the symlinks, please specify your preferred binary
directory where the symlinks should be created (e.g. /usr/local/bin):
---------------------------------------------------------------------------
Default answer: <none>

---------------------------------------------------------------------------
NETWORK BROWSING DIRECTORY

Sharity provides a network browser similar to the Windows Network
Neighborhood. Where do you want to mount this browser? If you don't want
the browser, answer none (without the quotes).
---------------------------------------------------------------------------
Default answer: /CIFS

---------------------------------------------------------------------------
WORKGROUP OR DOMAIN

Sharity works best if it knows your Windows workgroup or domain. If you know
your workgroup or domain name (fully qualified DNS domain name, if possible),
please enter it below. Otherwise leave it blank. You can always change this
setting later in the Sharity GUI or in the file
/usr/local/sharity3/var/user.cfg.
---------------------------------------------------------------------------
Default answer: <none>

---------------------------------------------------------------------------
WINS SERVER

If your network uses a WINS server (Netbios name server), Sharity should know
about it. If you don't know what a WINS server is, please leave it blank. You
can always set it through the Sharity GUI or in the file
/usr/local/sharity3/var/user.cfg.

If you know your WINS server IP-address, please enter it here. Remember:
we need an IP address (or a DNS name), not a Netbios name of the computer.
---------------------------------------------------------------------------
Default answer: <none>

---------------------------------------------------------------------------
SUMMARY

Summary of your choices:
Installation root directory: "/usr/local/sharity3"
     Upgrade or new install: install
Link binaries to directory: ""
  Network browser directory: "/CIFS"
        Workgroup or Domain: ""
                WINS server: ""

Are these values OK? [Y/n]
---------------------------------------------------------------------------
Default answer: yes

Copying files...
Editing and creating customized files...
Fixing permissions and ownership...
Starting Sharity service...
Starting Sharity daemon:
odcfgparse/info: Reading file "/usr/local/sharity3/etc/config/cifs.cfg"
odcfgparse/info: Reading file "/usr/local/sharity3/etc/config/main.cfg"
odcfgparse/info: Reading file "var/local.cfg"
odcfgparse/info: Reading file "var/user.cfg"
Warning: The master pass phrase for your key chain has been chosen
randomly by the system. Please use "sharity keychain setpass" to
set your own master pass phrase. The master pass phrase is needed
after an upgrade or restore from backup!
done.

---------------------------------------------------------------------------
You must choose a master pass phrase to protect your keychain. The keychain
contains passwords and other secret data. You need this pass phrase after
an upgrade or a restore from backup. Please choose something which can not
be guessed easily (no dictionary words) and which you can remember, although
you don't need it regularly. If you can't decide now, type ^C and use

/usr/local/sharity3/bin/sharity keychain setpass

or the GUI application

/usr/local/sharity3/bin/sharitygui

later to set your pass phrase.
---------------------------------------------------------------------------
New master pass phrase:
Type again to verify:
Pass phrase successfully changed.

---------------------------------------------------------------------------
COMPLETED

The installation has finished. You should start the GUI application now.
It can be found at the path

/usr/local/sharity3/bin/sharitygui

The GUI application asks for passwords when required and can be used to
configure Sharity. You must run it under the same account which uses the
Sharity mounts in order to get login dialogs for the correct account.

If you don't have a license key yet, please visit
http://www.obdev.at/products/sharity/.
---------------------------------------------------------------------------

安装完成后,会提示运行sharitygui图形界面进行操作。

windows下的共享信息如下所示:

点击mounts选项栏,如图:

里面的/CIFS是在安装过程中创建的,不予理会它,点击mount选项,会弹出如下对话:

在url栏中,输入windows的IP以及挂载目录,点击mount,会弹出一下对话框:

输入用户名以及密码,点击login就会挂载上来。

OK,至此挂载成功。

以上挂载与卸载也可以使用命令行实现,使用sharity命令,如下所示:

sharity命令的用法:

挂载:

首先登录到windows上面:

接着挂载:

然后就可以执行读写操作了:

卸载:

最后,退出windows会话:

Solaris下访问windows共享资源相关推荐

  1. linux 下通过smbclient访问windows共享目录

    linux 下通过smbclient访问windows共享目录 sudo apt-get install samba #---------------------------------------- ...

  2. linux下访问windows的共享

    linux下,要访问windows的共享,有好几种情况,下面进行总结. 外面的文章,有点介绍需要使用samba,有点说什么都不需要,只需要mount加上参数, 功能是实现,不过原理,还是不太明白,我发 ...

  3. kali查看共享 linux_在Linux下访问Windows共享文件夹

    在Linux下访问Windows共享文件夹 说明 以下操作以Ubuntu为例,大家可以参考. 我在Ubuntu 14.04和16.04都试过了. Windows共享文件夹 如果局域网内有一台Windo ...

  4. (转贴)Unix与Windows共享资源的一种实现方法

    在一个较大型企业的网络环境中,多种系统如何稳定地共存并共享资源一直是摆在网管人员面前的一道难题,而具体到目前国内企业中较常见的就是Unix和Windows系统之间的问题.不同版本的Windows系统之 ...

  5. linux命令行访问win,从Linux命令行访问Windows共享 | 旺旺知识库

    Samba Project是一个开源项目,支持 Linux.UNIX 和其他类似 UNIX 的操作系统与 Windows 互操作.大部分 Linux 发行版的存储库中都包含 Samba,而且一般通过安 ...

  6. linux 访问centos共享,CentOS访问Windows共享

    CentOS想要与Windows共享自己的数据,只需要搭建一个Samba共享就可以了,在以前的文章中我介绍到过,但是如果CentOS等Linux想要访问Windows共享呢? 其实CentOS访问Wi ...

  7. 如何使用NFS发布共享资源,以及如何访问NFS共享资源

    文章目录 1.NFS共享存储服务的介绍 2.使用NFS发布共享资源 2.1 NFS应用场景 2.2 NFS网络文件系统 2.3 安装nfs-utils.rpcbind软件包 2.4 设置共享目录 2. ...

  8. Linux访问Windows共享目录的方法——smbclient

    之前写过Ubuntu访问Windows共享目录,里面主要介绍如何在GUI上访问windows共享目录. 本文侧重于整理通过命令行访问的方法. 先确保smbclient.ubuntu下可以直接运行下面命 ...

  9. 【Linux】Centos7安装之后,双系统的情况下,怎么能在CentOS7下访问Windows的磁盘...

    想要在CentOS7下访问Windows的NTFS格式的磁盘,需要在Linux下下载ntfs-3g步骤1: 进入root用户下,使用yum命令下载ntfs-3g.[前提是已经添加了常用源:http:/ ...

最新文章

  1. 深入学习Tomcat----自己动手写服务器(附服务器源码)
  2. 学生信息管理C语言 密码,求学生信息管理系统C语言版
  3. DeepLearning:tensorflow 参数初始化和参数保存
  4. CVPR 2018论文解读 | 基于域适应弱监督学习的目标检测
  5. 遥感计算机分类有哪些,遥感数字图像的计算机分类.doc
  6. oracle查询排序速度慢,Oracle-请问Oracle SQL排序查询慢如何解决
  7. canvas笔记-画三角形并计算其外心(含算法其他绘图框架类似)
  8. 【GStreamer开发】GStreamer基础教程07——多线程和Pad的有效性
  9. php笔记:抽奖概率算法
  10. 最佳75个安全工具介绍及其下载地址
  11. python wps et_使用Python操作XLS文件(wps中叫et)
  12. c语言谱曲软件,基于C语言的音乐谱曲技巧与应用研究
  13. iOS 支付宝手机网站支付
  14. Qt播放视频0x8007000e报错 DirectShowPlayerService::doPlay: Unresolved error code 0x8007000e
  15. 浏览器、html、css面试题(三)
  16. [译]一个健壮且可扩展的 CSS 架构所需的 8 个简单规则
  17. 如何获取优酷视频的通用代码?
  18. Socket详解-socket建立
  19. 如何培养数据分析的思维?
  20. 分表、分库、分片和分区

热门文章

  1. Java项目:农业计算工具(java+swing)
  2. iis伪静态排除css_魔众系统伪静态规则怎么配
  3. Android架构篇-4 架构模式MVVM
  4. 服务器日志显示乱码,CentosOS 6.5 服务器 控制台输出中文乱码,日志打印中文也乱码...
  5. iOS自动签名打包(xcodebuild)----常用
  6. 《JavaScript编程实战》
  7. 给django视图类添加装饰器
  8. SQL Server 2014新特性——基数评估(白皮书阅读笔记)
  9. jstl c:choose、c:when和c:otherwise标签
  10. SQL语句实现取消自增列属性