Arch WiKi 译文:Access windows share for a user
翻译:xiaoma 来自:linuxsir.Org
提要:本文是关于Windows操作系统和archlinux共享文档服务器架设的文档,由xiaoma兄弟翻译,在此致谢。希望对您有所帮助,谢谢。
Samba
1.首先,你需要在Linux上安装SAMBA,并配置好。
2.别忘了,在Linux和Windows计算机之间应有tcp/ip网络连接。比如,我的环境:
Windows机器的名字为limette,共享名为2share
Linux机器名为orange
两台机器都在工作组zitrusgarden中。
3.为挂载共享安排一个挂载点
# mkdir -p /mnt/shares/limette
4.使用smbmount挂载共享。
语法:
smbmount //server/sharename mountpoint -W workgroup -U username -I serverip_
_server_ Windows计算机的名字。
_sharename_ 共享的名字。
_mountpoint_ 你打算挂载共享的目录。
-W 指定工作组,默认为"WORKGROUP"。
-U 当挂载共享需要用户名时使用,一般用于挂载Windows NT共享。
-I 当Linux计算机无法用名称来找到Windows计算机时使用(dns, wins, hosts entry), _serverip就是Windows机器的IP地址。
# smbmount //limette/2Share /mnt/shares/limette -W zitrusgarden -U pink_chick -I 192.168.23.132
5.使用smbumount卸掉共享:
smbumount mountpoint
RC Script for LISA (KDE LAN Browsing Daemon)
参见:http://bbs.archlinux.org/viewtopic.php?t=3231
如果你想在KDE环境下,更方便地浏览局域网内的Samba及其他的共享,LISA就是你所需要的。它包含在kdenetwork软件包中。如果想在启动时运行LISA,用以下脚本建立文件/etc/rc.d/lisa,并将其加入到/etc/rc.conf的DAEMONS列表中。记住使用命令chmod +x /etc/rc.d/lisa,使其可以运行。
代码:
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting LAN Browsing Daemon"
/opt/kde/bin/lisa &>/dev/null
if [ $? -ne 0 ]; then
stat_fail
else
add_daemon lisa
stat_done
fi
;;
stop)
stat_busy "Stopping LAN Browsing Daemon"
kill -9 `pidof /opt/kde/bin/lisa` &>/dev/null
rm_daemon lisa
stat_done
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
评论
A big surprise here-mulberry
A big surprise here-mulberry outlet store, Mulberry is a famous brand in the world; these mulberry bags are on hot sale with cheap price and good service!Mulberry Shop Online, All Kinds of mulberry sale Sale, Discount Mulberry Handbags With New Styles, Free Shopping And Fast Delivered, Buy Now!The official mulberry factory shop Outlet site for women's bags, men's bags.Buy Ugg boots in ouruggs outlet will enjoy the big discount.Buyugg outlet boots in our uggs will enjoy the big discount. And Ugg boots here are in high quality.Our UGGS boots On ugg salestore gives you more discounts with 100% sheepskin guarantee.