# 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