最新评论
- 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保持其自己的一套密码 - 它不关心的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