Set up the Raspberry Pi as the print server, turn on wireless printing

Source: Internet
Author: User

# 1. The ssh,11 version released on Raspberry 15th is not turned on by default. # 2. Start the root user, after executing this command, you will be prompted to enter the root password two times, enter the password you want to set, and then execute sudo passwd root#  Unlock root account sudo passwd--unlock root# 3. Update software sudo apt-get update-ysudo apt-get upgrade-y# 4. Installing CPUs and related services sudo apt-get install  Cups-ysudo apt-get Install samba-y# 5. Add the default PI user to group sudo usermod-a-G lpadmin pi# 6. Stop the cups service and update the configuration file sudo service cups Stop

# 7. Backing up the configuration file
sudo cp/etc/cups/cupsd.conf/etc/cups/cupsd.conf.bak

To set the Cupsd.config file, modify the section as follows:

# # Sample configuration file for the CUPS scheduler. See "Mans cupsd.conf" for a# complete description of this file.## Log general information in Error_log-change "warn" to " Debug "# for troubleshooting ... LogLevel warn# Deactivate CUPS ' internal logrotating, as we provide a better one, especially# LogLevel debug2 gets usable Nowmaxlogsize 0# only listen for connections from the local machine. Listen *:631listen/var/run/cups/cups.sock# Show shared printers on the local network. Browsing Onbrowselocalprotocols dnssdbrowseallow all# Default authentication type, when authentication is required ... Defaultauthtype basic# Web Interface setting ... Webinterface yes# Restrict access to the Server...<location/> Order allow,deny allow all</location># Restri CT access to the admin pages...<location/admin> Order allow,deny allow all</location># Restrict access to C Onfiguration files...<location/admin/conf> authtype Default Require user @SYSTEM Order allow,deny ALlow all</location> 

 

# Start Printersudo service cups start# set static Ipsudo vi/etc/dhcpcd.conf# Add the following to restart interface wlan0static ip_address=10.0.0.x/ 24static routers=10.0.0.1static domain_name_server=8.8.8.8

Set up the Raspberry Pi as the print server, turn on wireless printing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.