-cd 1 debian
-virtual box
#Langkah
-masuk ke konfigurasi cups #nano /etc/cups/cupsd.conf
#. . .
# Only listen for connections from the
local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
DefaultAuthType Basic
# Restrict access to the server...
<Location />
Order allow,deny
Allow 192.168.*.* #Agar cupsys dapat diakases dari lokal
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow 192.168.*.* #Agar cupsys dapat diakases dari lokal
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow 192.168.*.* #Agar cupsys dapat diakases dari lokal
</Location>
#. . .
-restart cupsnya
-masuk ke konfigurasi samba #nano
/etc/samba/smb.conf
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP #sesuikan dengan jaringan Anda
#. . .
####### Authentication #######
security = share #Guest Ok, Yes (^_^”)
#. . .
########## Printing ##########
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes #Enable printer sharing
# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap
# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
printing = cups #Using CUPSYS
printcap name = cups #Using CUPSYS too
#. . .
======================= Share Definitions =======================
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
printable = yes
guest ok = yes
writable = no
create mode = 0700
# Windows clients look for this share name as a source of downloadable printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
#. . .
Sharing data dengan samba
#Alat dan bahan
-Cd 1 debian
-virtual box
#Langkah langkah
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user #edit bagian ini, hilangkan tanda “#”
#
#======================= Share Definitions =======================
[share] #tambahkan bagian ini di bawah “Share Definitons”
path = /home/pudja/share/ #direktori untuk samba server
browseable = yes
valid users = hubert #sesuaikan dengan nama user
admin users = root
#. . .












0 komentar:
Posting Komentar