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
评论
Christian Louboutin
SIRTE, Libya – Mohammed al Mselem, 45, sat Christian Louboutin Sale outside of his hometown here, surrounded by rebels on the hunt for former Libyan Christian Louboutin Cheap dictator Moammmar Gadhafi, with his two young daughters, Ayet, 7 and Christian Louboutin Taqwa, 9.A former mathematics teacher, he said that essential supplies had started Christian Louboutins running out of the city populated with forces that do not want to surrender to Discount Christian Louboutin live under rebel rule. "There's not much petrol, not much food." For days, people have been trying to get out of this city along the Mediterranean where rebels believe Gadhafi may be making his last stand. Thousands of rebels have been massing outside the Christian Louboutin Discount city, which has been periodically bombarded by rebel rocket fire and NATO air attacks.Families in pickups, the beds piled with mattresses and water jugs, were driving from Sirte on Tuesday ahead of a possible assault by rebel forces.Some residents said Cheap Christian Louboutin they had been living under a state of siege with soldiers preventing them from leaving.Gadhafi converted his birthplace into the seat of government for the country, installing many loyalists and Libyans beholden to him for their livelihoods.Gadhafi had ruled Libya for 42 years until the capital of Tripoli fell to the rebels last month following a six-month uprising aided by NATO airstrikes. Still, loyalists have refused to surrender in the coastal city of Sirte, the mountain town of Bani Walid and in Sabha in the southern desert.
Christian Louboutin Store
Louboutin
Louboutin Sale
Cheap Louboutin
Christian
Louboutin Shoes
Christian Louboutin Boots
Christian Louboutin Replica
Replica Christian Louboutin
Christian Louboutin UK
Christian Louboutin Pumps
Christian Louboutin Ankle Boots
Christian Louboutin Tall Boots
Christian Louboutin Knockoff
Christian Louboutin Knockoffs
Christian Louboutin Sneakers
http://www.christianlouboutinsshoesoutlet.com/
On Tuesday, Gadhafi broadcast an audio Christian Louboutin Outlet recording saying his regime is not done."What is happening in Libya Christian Louboutin Outlet Store is a charade gaining its legitimacy through airstrikes that will not Christian Louboutin On Sale last forever," he said in an airing of his remarks on Christian Louboutin Heels Syrian-based Al-Rai TV."It's hard to bring Christian Louboutin Shoes down this regime because it represents millions of Libyans."In the shade of a clump of trees near one of the rebel positions on the coastal highway, a small group of civilians from Sirte described the situation Louboutin Outlet inside the city.Mohammed Ali Ameri, 33, from the Zizi Bahria district of Sirte, said that there were heavy weapons within the city, mainly in the hands of Gadhafi's forces there but some in the hands Christian Louboutin Shop of ordinary people."A few civilians are armed," said Mohammed, who had slipped out of the city at night.