HOWTO: Vista printer sharing

From Sabayon Wiki
Jump to: navigation, search

How to enable Sabayon Linux 4.0-r1 to use a printer connected to a PC running Windows Vista on your network


Question.png
Example entries are shown in quotation marks. You do not actually type the quotation marks.


a) In /etc/samba/smb.conf make sure the home network workgroup name is the same as the name of the Workgroup configured in the Vista PC (which is "WORKGROUP", without the quotes, in my case).


b) Enable Authentication in Vista Home Edition (see item c below if you have Vista Business, Ultimate, or Enterprise)

  1. Start the Registry Editor by selecting Start, All Programs, Accessories, Run.
  2. In the ‘Open’ field of the Run dialog box, type regedit and click the ‘OK’ button.
  3. The User Account Control system will ask for permission to continue. Click the ‘Continue’ button.
  4. In the Registry window, expand the following:
    1. HKEY_LOCAL_MACHINE
    2. SYSTEM
    3. CurrentControlSet
    4. Control
    5. Lsa
  5. In the ‘Value’ pane of the Registry Editor, check to see if the following DWORD exists: lmcompatibilitylevel. If it does, perform the following:
    1. Right-click lmcompatibilitylevel and select ‘Modify’ from the pop-up menu.
    2. Enter a Value data of 1.
    3. Click the ‘OK’ button.
  6. If the lmcompatibilitylevel DWORD does not exist, create a new DWORD.
    1. From the Registry Editor menu, select Edit, New, DWORD (32-bit) Value.
    2. A new DWORD called ‘New Value #1’ will be created.
    3. Rename the new DWORD to lmcompatibilitylevel.
    4. Right-click lmcompatibilitylevel and select ‘Modify’ from the pop-up menu.
    5. Enter a Value data of 1.
    6. Click the ‘OK’ button.
  7. Restart your Windows Vista computer.


c) Enable Authentication in Vista Business, Ultimate, and Enterprise (see item b above if you have Vista Home Edition)

  1. Start the Group Policy Editor by selecting Start, All Programs, Accessories, Run.
  2. In the ‘Open’ field of the Run dialog box, type gpedit.msc and click the ‘OK’ button.
  3. The User Account Control system will ask for permission to continue. Click the ‘Continue’ button.
  4. Expand the following objects in the Group Policy Editor:
    1. Computer Configuration
    2. Windows Settings
    3. Security Settings
    4. Local Policies
    5. Security Options
  5. Right-click the ‘Network security: LAN Manager authentication level’ policy item, and select ‘Properties’ from the pop-up menu.
  6. Select the ‘Local Security Settings’ tab.
  7. Select ‘Send LM & NTLM – user NTLMv2 session security if negotiated’ from the dropdown menu.
  8. Click the ‘OK’ button.
  9. Close the Group Policy Editor.
  10. Restart your Windows Vista computer.


d) Enable Printer Sharing in Windows Vista

  1. Select ‘Control Panel' from the Start menu.
  2. Select ‘Printer’ from the Hardware and Sound group.
  3. A list of installed printers and faxes will display.
  4. Right-click on the icon of the printer you wish to share and select ‘Sharing’ from the pop-up menu.
  5. Click the ‘Change sharing options’ button.
  6. The User Account Control system will ask for permission to continue. Click the ‘Continue’ button.
  7. Place a check mark next to the ‘Share this printer’ item.
  8. Enter a name for the printer in the ‘Share name’ field (do not use any spaces). This is the name that you will enter as part of the device URI on your Sabayon Linux PC.
  9. Click the ‘Apply’ button.
  10. Close the printer’s Properties window and the Printers and Faxes window.


e) Make sure the firewall software (Norton, Kaspersky, McAfee, AVG or whatever) on the Vista PC is configured to enable incoming network traffic from Local Network i.e. your home network. For example, I configured Kaspersky Internet Security to allow TCP/IP and UDP traffic from my Local Network (both were disabled by default).


f) Add the Shared Printer to your Sabayon Linux PC

  1. Right-click on the Desktop and select 'Create New > Link to Location (URL)...' to create a Desktop Config File (desktop icon) for the URL http://localhost:631/, and call it CUPS. You can click on the icon in the Properties window and select the CUPS icon too.
  2. Launch the CUPS browser interface by double-clicking on the desktop icon you just created.
  3. Click on 'Add Printer'.
  4. Fill in the 'Name' field (no spaces allowed: e.g. "Canon_MP510_Printer").
  5. Fill in the 'Location' field (e.g. "Connected to Acer SA90 in Lounge").
  6. Fill in the 'Description' field (e.g. "Canon MP510"). Click on 'Continue'.
  7. Select 'Device:' as 'Windows Printer via SAMBA'. Click on 'Continue'.
  8. Enter 'Device URI:'. In my case I entered "smb://WORKGROUP/SA90/Canon_MP510_Printer" because "WORKGROUP" is the Windows Workgroup defined on my Vista PC, "SA90" is the name of the Vista PC defined on my Vista PC, and "Canon_MP510_Printer" is the name of the shared printer defined on my Vista PC. Click on 'Continue'.
  9. Select the 'Make' of printer from the list and click 'Continue'.
  10. Select the 'Model' of printer from the list and click 'Continue'. (In my case my printer's driver was not installed by default with Sabayon Linux 4.0-r1, so I had to install it myself before carrying out this procedure -- see my post on the Canon MP510 printer in the Sabayon Linux Forums for details.)
  11. Enter "root" as the 'Username' and enter the root 'Password'.
  12. Wait for the printer details to appear in the CUPS browser window (or click on the 'Printers' tab).
  13. Click on 'Set Printer Options' and select what options you want (e.g. 'Paper Feed: Front Feeder' for the Canon MP510). Click on 'Set Printer Options'.
  14. Click on 'Print Test Page' to make sure everything is working correctly.


Article created by Fitzcarraldo on 7 January 2009, with acknowledgement to Tom Nelson of About.com:Macs for the instructions about configuring the Vista end (see http://macs.about.com/od/macwindows/ss/printsharevista.htm).