Printer Configuration on Ubuntu Gutsy (7.10) and Hardy (8.04)


  1. .On the Start Menu, choose Administration → Printing to display the dialog box as below. Then click the New Printer button
  2. Select the option Windows Printer Via Samba. Then click Browse to display a list of printer sharing in the
  3. Note the picture below, the display shows the printer disharing-printer on the network using samba. Then select the printer you want to use.
  4. Make sure you know the type of printer driver and you want to use it. Then select the type of start and printer drivers available in the list
  5. Note the picture below shows the printer has been successfully entered. Then click Print Test Page button to try to print, or click the Make Default to make as the default printer

Configuring samba sharing printer

We can make Ubuntu as a server sharing the printer. Configuration process must be done as user root. open the terminal.

Start Menu -> Accesories -> Terminal
Next login as root, and type the command:


$ gedit /etc/samba/smb.conf

Some lines must be edited is;


  1. In the authentication, security add a security = share
  2. In the authentication, encrypt passwords = true
  3. In the authentication, guest account = nobody
  4. In the printing, load printers = yes
  5. In the printing, printing = cups
  6. In the printing, printcap name = cups
  7. On the share definition, tag printers, browseable = yes
  8. On the share definition, tag printers, public = yes


You can enter some additional configuration to make sure samba is running smoothly, as follows;


  • In the networking, the interface is filled with the engine at that time
  • At the global - browsing identification, give a new value called NetBIOS name with the desired name. Most easily, the user name of the machine

Save and restart the samba service using the command:

$ /etc/init.d/samba restart


This is example configuration file samba server that has been modified :


#====================== Global Settings =======================
[global]
workgroup = MSHOME
netbios name = MUSTOFA-TU
server string = %h server (Samba, Ubuntu)
dns proxy = no
interfaces = 10.3.100.200/16 eth0
log file = /var/log/samba/log.%m

max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
passdb backend = tdbsam
obey pam restrictions = yes
guest account = nobody
invalid users = root

passwd program = /usr/bin/passwd %u
passwd chat = *EntersnewsUNIXspassword:* %nn *RetypesnewsUNIXspassword:* %nn
*passwordsupdatedssuccessfully* .
load printers = yes

printing = cups
printcap name = cups
socket options = TCP_NODELAY
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
public = yes
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no


Bonus :

Printer Configuration Ubuntu 7.04



  1. On the Start Menu, choose Administration → Printing. Then click the New Printer icon
  2. At Step 1, select Network Printer option with Windows Printer (SMB). Wait some time, the system will try to detect the printer on-shared
  3. Next view some of the printer is detected, click cancel pendeteksian process continues until the printer is finished. The name that appears under the name of the server hostname in printer sharing
  4. following list of hostnames that do printer sharing. Select a course in accordance with their needs. Be sure to identify the type of printer and the drivers that will be used. Do not forget to choose a printer that disharing. Then click Forward. (Username and password are blank)
  5. the next step, select the printer driver used. Then the printer is ready to use.
Finish....!!


Happy Testing....!!!

No comments:

Post a Comment

Please Comment...!!