Print Server

From MEPIS Documentation Wiki

Jump to: navigation, search

Contents

Using MEPIS as a print server

The printing engine in MEPIS, CUPS (Common Unix Printing System), is a powerful print service which can provide print service by many different methods; two popular ones are IPP (Internet Printing Protocol) and SAMBA (Mostly used with Windows clients). The steps below detail setting up MEPIS to serve out a locally-installed printer to other computers on your network.

Linux-only clients

If all your other computers are running Linux or OSX, setting up MEPIS as a print server is very simple.

Install your printer on the server as any local printer. See this guide if you need help.

  • Open up https://localhost:631 in a web browser. Accept the certificate permanently, if prompted.
  • Go to the "Administration" tab.
    • Uncheck "Show printers shared by other systems" in the right panel
    • Check "Share published printers connected to this system" in the right panel
    • Check "Allow remote administration"
  • Click on "change" settings. When prompted for login, use "root" and your root password.
  • If you are running a firewall on the server, open port 631.

Now make sure your firewalls on all the clients allow incoming UDP traffic on port 631. CUPS on your server will automatically communicate with CUPS on the clients and your server will be set up on all your clients without any effort from you!

Mac clients

Set up the Linux machine as a print server as described above.

To use the Linux printer on the Mac, open CUPS in your browser by entering https://localhost:631. Click "Add Printer," and after assigning the printer a local name, identify it as using "Internet Printing Protocol (IPP)." On the next screen, enter the printer's URI. It can have one of two forms:

ipp://<IP address>:631/printers/printer-queue-name

Or

ipp://<ThePrintServerName>.local:631/printers/printer-queue-name

On the final two screens, select "Raw" as the printer type. The printer is now ready to go on your Mac. (Borrowing material with thanks from this helpful page).

Windows clients: using Samba

If you have Windows machines on your network, things get slightly more complex (but of course Mepis makes it much easier!). You should use Samba, which is installed by default, to share your printer.

  • Make sure your printer is installed
  • Open control center(or "Settings:/") => Internet and Network => Samba
  • Click "administrator mode" and enter the root password
  • Now go over to the printers tab and click "add printer"
  • Select a printer (if you only have one, it'll be selected by default)
  • Give the printer a name and check "public". Click OK
  • Be sure to "apply" changes in the Samba window.

Now, set up your Windows machine:

  • Download the latest driver for your printer from the manufacturer's website
  • Open an explorer window and put "\\servername" into the address bar, where servername is the name of your Mepis box. If you don't have local DNS or hosts files, you might need to use the IP address instead.
    • Your Linux box's name can be found under the "Base Settings" tab of the Samba window in the field "NetBIOS name"
  • You should see any samba shares on your MEPIS computer, plus the shared printer.
  • Double-click the printer. Windows will install it. If necessary, it will prompt you for a driver.

Windows clients: no SAMBA

If you are using Windows 2000 or later, you can skip setting up Samba and just use the IPP (internet printing protocol) support built in to CUPS. Simply follow these steps:

On the (MEPIS) server

  • Follow the steps for "Linux only clients" above.

On the (Windows) clients

NOTE: this procedure was tested on Windows XP professional. Other versions of Windows may be slightly different.

  • Open "Printers and Faxes" on the control panel
  • Launch the "Add new Printer" wizard. Click "Next" on the first screen.
  • Select "A network printer, or a printer attached to another computer", and click "Next"
  • Select "Connect to a printer on the Internet or on a home or office network:". In the URL field, enter:
    http://myserver:631/printers/printername
    Where "myserver" is the hostname or (if you cannot connect to it with the hostname) ip address of your MEPIS computer, and "printername" is the name which you gave the printer during setup. You can see this name on the "printers" tab of the cups web interface.
  • Click "Next". You need to provide the print driver for windows for your printer. Once you've selected this, click "OK".
  • Your printer should be ready to use.
Personal tools
In other languages