Solaris下访问windows共享资源
今在做实验过程中,发现上传软件太费时而且解压起来也繁琐,还要占用很大的空间,就在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会话:
相关文章:

centOS外部浏览器无法访问tomcat8000端口解决办法
防火墙开放特定端口 (iptables) 查看状态:iptables -L -n下面添加对特定端口开放的方法:使用iptables开放如下端口/sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT保存/etc/rc.d/init.d/iptables save重启服务service iptables resta…

Linux命令行与shell脚本编程大全:第2版
《Linux命令行与shell脚本编程大全:第2版》基本信息作者: (美)布卢姆(Blum,R.) 布雷斯纳汉(Bresnahan.C.) [作译者介绍]译者: 武海峰丛书名: 图灵程序设计丛书出版社:人民邮电出版社ISBN:9787115288899上架时间&#x…

企业云存储云办公方案
云存储、云计算最近一直被炒得很热,成为了一部分人文档中既神秘又华丽的辞藻,总之来总之去就是"云里来雾里去",其实"云技术"与历史上的"纳米技术"一词一样忽悠了很多很多的人。云存储是在云计算基础上衍生起来…

【servlete】兴唐第三十二节课知识点汇总
一、 servlet开发: 1、创建java类并继承HttpServlet 2、重写 doGet\doPost方法 3、将Servlet配置到web.xml中: <servlet> <servlet-name>自定义一个唯一的名称</servlet-name> <servlet-class>servlet全类…

悦读上品 得乎益友
悦读上品 得乎益友 ——电子工业出版社2011新年巨献不可复制的《传世经典书从》 孔子云:“取乎其上,得乎其中;取乎其中,得乎其下;取乎其下,则无所得矣。”读书求知,贵在能选择好书中的上品——经…
超详细的Java面试题总结(四 )之JavaWeb基础知识总结
系列文章请查看: 超详细的Java面试题总结(一)之Java基础知识篇 超详细的Java面试题总结(二)之Java基础知识篇 超详细的Java面试题总结(三)之Java集合篇常见问题 超详细的Java面试题总结…

HTML教程--多页面窗体
基本语法 <frameset> ... </frameset> <frame src"url"> <noframes> ... </noframes> 在 <noframes> 标记后的文字将只出现在不支持 FRAMES 的浏览器中。 <HTML><HEAD></HEAD><FRAMESET><FRAME SRC…
js左侧三级菜单导航代码
效果演示: 实例代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns"http://www.w3.org/1999/xhtml" xml:lang&…

【jsp】页面跳转的两种方法
注:由index.jxp跳转到Failure.jsp request.getSession().setAttribute("msg", "45654"); 方法一: response.sendRedirect("Failure.jsp"); 特点: (1)不能传值 (2&…

windows远程桌面端口修改
众所周知,windows 2003远程终端服务基于默认端口3389。***者一般先扫描主机开放端口,一旦发现其开放了3389端口,就会进行下一步的***,所以我们只需要修改该务默认端口就可以避开大多数***者的耳目。 步骤: 打开“开始→…

《java第二次实验》
(一)学习总结 1.什么是构造方法?什么是构造方法的重载?下面的程序是否可以通过编译?为什么? public class Test {public static void main(String args[]) { Foo obj new Foo(); } } class Foo…
[置顶] 当我拿车钥匙的时候,刚交的女朋友跑了。。。
转载于:https://www.cnblogs.com/james1207/p/3291906.html

【jstl】jstl的基本操作
1、jstl不属于javaEE标准,所以需要额外引入jar包 2、引入后需要引入标签库 代码实现: <% taglib prefix"c" uri"http://java.sun.com/jsp/jstl/core" %> 注: (1)可以使用 alt / 的快捷…

如何修改Sql2005注册服务器名称 {转载}
1.使用select ServerName可以看到当前数据库的服务器名 2.从Sys.SysServers表中可以看到当前的所有服务器名 3.使用 sp_dropserver servername 将这个服务器名删除。 4.使用 sp_addserver new servername,LOCAL将本地服务器重新添加到服务器表中 5.查询Sys.SysServers表&#x…

据说是腾讯php程序员面试题目 蛋疼..要是提供PHP手册就HI了..
说在前面:1、以下题目,除了编程任务外其他都需要写在给你提供的草纸上。纸张是珍贵的地球资源,请节约使用。编程任务在有相应的环境时,会要求上机书写,实在没有条件,就只能写在草纸上了。&#…

C功底挑战Java菜鸟入门概念干货(一)
一、认识Java 1、Java 程序比较特殊,它必须先经过编译,然后再利用解释的方式来运行。 2、Byte-codes 最大的好处是——可越平台运行,可让“一次编写,处处运行”成为可能。 3、使用 classpath 可以指定 class 的运行路径。 二、走…

c# lock (obj) 与 lock (this) 区别
lock(obj) 锁定 obj 对象 lock(this) 锁定 当前实例对象,如果有多个类实例的话,lock锁定的只是当前类实例,对其它类实例无影响。 直接上代码。 主窗体代码如下: delegate void SetTextCallback(string text);public Form1() …

【js】四种自定义对象的常见方法
<html><head></head><body><script type "text/javascript">//方法1var stu1 new Object();stu1.stuName "小强1";stu1.stuNo "123";stu1.print function() {alert(stu1.stuName);}//stu1.print();//alert(s…

eclipse启动时报错An internal error occurred during: Initializing Java Tooling.
eclipse启动时报错An internal error o当前工作目录文件夹下的 /.metadata/.plugins/org.eclipse.core.resources/.project。就是把初始化的项目删除,然后打开eclipse以后可以重新初始化。转载于:https://www.cnblogs.com/huanlingjisi/p/8696541.html

给Sqlite数据库设置密码
免费版Sqlie是不提供设置密码功能的,经过查阅资料最终找到了解决方案 方案一,从sqlite源码入手,据说sqlite源码已经提供了加密的接口,只是免费版没有实现,可以参考这位仁兄的博客以了解详情:http://www.cnb…

《创新者》读书笔记 PB16110698 第五周(~4.5)
本周我阅读了某同学推荐的《创新者》,这本书实际上是两个世纪以来信息技术的编年史,从巴贝奇的差分机到如今互联网时代的超级计算机,作者通过各个时代里一位位杰出的创新者,将计算机诞生、发展、崛起和蓬勃的历程娓娓道来。从一篇…

001本周总结报告
在本周中,自己主要做了小学期的编程作业,因为是小学期的特殊缘故,自己的学习时间几乎分配给了小学期的作业的编程,大约每天会抽出5个小时用来编写程序,本周在做小学期的作业时发现自己编程力不从心,无论是从…

【js】创建数组的三种方法
<html><head></head><script type"text/javascript">//数组var stuName1 new Array();stuName1[1] "小强1";stuName1[2] "小强2";//alert(stuName.length);//声明并穷举数组var stuName2 new Array("小强3&quo…

JSon数据查询---Jlinq
LINQ,语言集成查询(Language INtegrated Query)是一组用于c#和Visual Basic语言的扩展。它允许编写C#或者Visual Basic代码以查询数据库相同的方式操作内存数据。 Jlinq受到LinQ的启发,可以像LinQ一样查询JSON数据,使用…

PowerShell 2.0管理事件日志(一)查看和读取事件日志
事件日志是操作系统用来保存本身及其他程序信息的工具,本文将会介绍如何通过PowerShell脚本阅读事件日志并创建新的日志条目。Windows系统中包含多种事件日志,在Windows XP系统中包括4种主要的事件日志。即应用程序、系统、安全性及Internet Explorer日志…

Applet相关知识
1、Applet定义 Applet是采用Java编程语言编写的小应用程序,该程序可以包含在 HTML(标准通用标记语言的一个应用)页中,与在页中包含图像的方式大致相同。含有Applet的网页的HTML文件代码中部带有<applet> 和</applet>这…

python threading ThreadPoolExecutor源码解析
future: 未来对象,或task的返回容器 1. 当submit后: def submit(self, fn, *args, **kwargs):with self._shutdown_lock: # lock是线程锁if self._shutdown:raise RuntimeError(cannot schedule new futures after shutdown)f _base.Future() # 创建fut…

【js】内置对象array的常见方法的使用
<html><head></head><script type"text/javascript">//数组var stuName1 new Array();stuName1[1] "小强1";stuName1[2] "小强2";//alert(stuName.length);//声明并穷举数组var stuName2 new Array("小强3&quo…

《学习vi编辑器》的学习笔记1
第一章 vi文本编辑器 打开文件vi [filename] 输入:q在缓冲区中内容和磁盘内容一致的时候退出,否则就需要输入:q!来忽略这个限制,不保存缓冲区,直接退出 命令模式:每次输入都表示一个命令. 插入模式:输入的一切内容都将吃味文件中的文本 :wq(属于ex编辑器)命令等价于ZZ命令,就是…

Android的API与差异化之路
Android的API与差异化之路 发挥Android特色:框架API和开源(开放) Android平台就如同长城般,两岸的硬件业厂商就如同关内居民,是建造长城的最先获利者。也基于这样的效益,让许多硬件大厂竞相拥抱Android&#x…