最新评论
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
- warning: Creating default object from empty value in /var/www/www.minilinux.net/htdocs/sites/all/modules/views/modules/comment/views_handler_field_comment_username.inc on line 32.
开发之家的这个论坛程序不好用哦。
每当你做出更改打印机设置,重新启动Samba,以确保打印机在网络上可见。
There is one small catch to this setup. If you have enabled initial logins, then a Windows client MUST login to access the printer. However, a Puppy client can use the printer without logging in.
这种设置有一个小小的好处。如果您已启用初始登录,那么某个Windows MUST客户端必须登录访问打印机。然而,某个Puppy客户端却可以不用登录而使用打印机。
To set up a Linux Client:
要建立一个Linux客户端:
Users who have set up Windows shared printers are familiar with the CUPS smb backend. This type of backend is also needed to access a Samba printer and there are several variations available in different Puppies. Use the URI:
通过CUPS smb后端用户已经熟悉了设置Windows共享打印机。这种类型的后端也需要访问Samba打印机,并在不同的Puppy版本中有变化。使用URI:
代码:
smbc://pupserver/printer_name
When you select the make and model of your printer, use Raw and Raw-Queue. This declares that the print job will be sent directly to the Samba server, whose CUPS will then do the formatting. You don't need to install a printer driver package on the client machine. However, in certain Puppy client/server combinations, this may still be necessary.
当您选择您的打印机的品牌和型号,使用原材料和原材料队列。此声明的打印作业将被直接发送到Samba服务器,CUPS将做格式化。你不需要在客户机上安装一个打印机驱动程序软件包。然而,在某些Puppy的客户机与服务器的组合,这可能仍然是必要的。
To set up a Windows Client:
Start the Add Printer Wizard
Select: Local printer (even though it's not)
UNcheck the option to automatically detect a PnP printer
Select: Create new port
Select: Local port
Enter the port name as: \\servername\printername
Install the Windows printer driver as usual
要建立一个Windows客户端:
启动“添加打印机向导”
选择:本地打印机(即使它不是)
取消该选项自动检测即插即用打印机
选择:创建新端口:
选择:本地端口:
输入端口名称为:\ \服务器名\打印机名
安装Windows打印机驱动程序像往常一样
Some Windows drivers may not work across a network because they need to have direct contact with the printer before they will start a print job. In that case, install the printer under Windows as an HP Color Laserjet PS. This will format the print job using the Postscript printer language, which the server's CUPS will happily process. You can use the same technique with Macs.
一些Windows驱动程序可能无法正常工作,因为他们需要在网络上与打印机直接接触之前,他们将开始一个打印作业。在这种情况下,Windows下安装一个HP COLOR LASERJET PS彩色打印机。这将使用PostScript的打印机语言,服务器会很乐意处理格式化的打印作业。对于苹果电脑您可以使用相同的技术对。
If you are building a dedicated file server and want very simple print server functionality, read here.
如果你是建立一个专用的文件服务器和想很简单打印服务器功能,在这儿(http://www.murga-linux.com/puppy/viewtopic.php?p=455543#455543)阅读
附件下载:
---------------------------------------------------------------------
samba-tng-rcrsn-0.5-rc1.pe
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=33013
samba-autostart-1.1.pet
http://www.murga-linux.com/puppy/viewtopic.php?mode=attach&id=56761
Samba保持其自己的一套密码 - 它不关心的Puppy的版本。所以,你可能会想修改Samba服务器root的密码比“woofwoof”更安全些的。
代码:
rpcclient
$deluser root
$createuser root -p newpassword
$quit
------------------------------------------
Using Samba-TNG as a Network Print Server
使用Samba-TNG来作为网络打印服务器
Note #1: To enable print sharing in newer Puppies like Lupu, you must make a change to the smb.conf. In the [global] section, locate the line printcap name = cups and uncomment it by removing the semicolon.
注意1:为了使用打印共享,在新的Puppy版本里像Lupu,你必须对smb.conf进行改。在[global]部分中,找到该行printcap name = cups,并取消它前面的分号。
Note #2: If your Puppy server is running CUPS 1.3.11, you need to modify its configuration. Locate the file /etc/cups/mime.convs. At the end of the file, uncomment the line
注意2:如果您的Puppy服务器运行CUPS 1.3.11,你需要修改它的配置。找到文件/etc/cups/mime.convs在该文件的末尾,取消该行
代码:
application/octet-stream application/vnd.cups-raw
Restart CUPS.
重新启动CUPS。
A Samba server can share its attached printer(s) with clients on the network. And it does so by the printer's assigned name instead of by IP address. So if your server changes its IP address, the clients can still locate the printer.
一个Samba服务器可以在网络上与客户分享其连接的打印机。它通过指定打印机的名称,而不是通过IP地址。因此,如果你的服务器更改其IP地址,客户端仍然可以找到打印机。
Your first step is to install the printer in the server's CUPS as a local device. Keep the name short - less than 16 characters. Otherwise, the Windows clients may not be able to detect it.
你第一步首先安装打印服务器的CUPS来作为本地设备。保持短的名字 - 少于16个字符。否则,Windows客户端可能无法检测到它。
You do NOT need to declare the printer as sharable. (You would only use that feature if CUPS was going to handle the network printing.)
你不需要申报打印机共享。 (你只会使用该功能,如果CUPS将要处理网络打印时)。
用rpcclient创建弗雷德Samba用户时,请注意,Samba用户弗雷德需要密码,而Puppy用户弗雷德没有。
4. Add an entry to smb.conf:
在smb.conf文件中添加一项记录
代码:
[fred]
path = /mnt/home/fred
writable = yes
valid users = fred
5. Restart the Samba server, go to a client machine and login as Fred.
重新启动Samba服务器,到客户机以弗雷德身份登录。
You may want a setup where no initial login is required. Open your smb.conf and uncomment the "map to guest" line by removing the semicolon.
您可能需要对初始登录进行设置。打开smb.conf文件,找到“map to guest”行删除分号。
代码:
[global]
security = user
map to guest = Bad Password
Or you might want a read-only public folder.
或者,你可能想要一个只读的公共文件夹。
代码:
[public]
path = /mnt/home/public
guest ok = yes
read only = yes
To let anyone write to the public folder, use
为了让任何对公共文件夹有写权限,请使用
代码:
[public]
path = /mnt/home/public
guest ok = yes
writable = yes
force user = root
To auto-start the Samba server at bootup, install the samba-autostart-1.1.pet below. It puts a script in /root/Startup that waits until your network is active, then runs samba-start. You can also use the script to mount any drives that you want to share.
想要在开机时自动启动Samba服务器,安装下面的这个附件:samba-autostart-1.1.pet。它在 /root /Startup里放入一个启动脚本,等待你的网络激活,然后运行samba。您还可以使用脚本来安装任何驱动器共享。
Or you can try adding the script to your rc.local. Then you could boot Puppy with the "pfix=nox,fsck" argument and run headless! And, if you don't mind working from the command line, you can install Openssh on the server and manage it remotely.
或者你可以尝试将脚本添加到您的rc.local中。然后,你可以在Puppy开始启动时以“Pfix=nox,fsck”的参数来运行(run headless这不太懂,见谅哈!)而且,如果你不介意工作在命令行中,你可以安装Openssh在服务器上进行远程管理。
接一楼内容:
Avoid making changes to the server while clients are connected. This can cause hangups that will require rebooting to clear. If Samba starts to behave strangely, shut down any client machines and restart the Samba server.
当客户端连接到服务器时要避免更改,这可能会导致挂断,同时需要重新启动服务来清除。如果Samba开始出现奇怪现象,任何客户端都会导致Samba服务器关掉或者重新启动。
The Samba-TNG package contains the utility program rpcclient. Use it to create additional Samba users. For example:
在Samba-TNG包里含有实用程序rpcclient,可用它来创建额外的Samba用户。例如:
代码:
rpcclient
$help
$enumusers
$createuser spot -p barkbark
$quit
Any new Samba users you create must already exist as Puppy users. Also, Samba must be running in order for rpcclient to work.
您创建任何新的Samba用户必须已经是Puppy用户。此外,Samba必须运行以便rpcclient工作。
In the above default configuration, all the shares you create are public. But you might want to give each user their own private folder on the server. Here's how:
在上面的默认配置中,你创建的所有的共享都是公开的。不过,你可以给每个用户在服务器上拥有自已的私人文件夹。具体方法如下:
1. Create a Puppy user named Fred:
创建一个名为弗雷德的Puppy用户:
代码:
adduser -D -h /mnt/home/fred fred
2. To verify that you have made Fred's account correctly, type:
为了验证弗雷德帐户是否正确,请键入:
代码:
ls -lH /mnt/home
There should be an entry for fred with fred:fred ownership. If you make a mistake, type deluser fred and try again.
应该有一个条目为弗雷德:弗雷德私人所有。如果你犯了一个错误,键入“deluser fred”命令然后再试一次。
windows xp可以在网上邻居里访问Puppy的共享文件夹了。原来这么简单?
How to Use Samba-TNG Server in Puppy ?
http://www.murga-linux.com/puppy/viewtopic.php?t=60204