In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
System version
Cat / etc/centos-release
CentOS Linux release 6. 0 (Final)
1. Install yum
Mount / dev/cdrom / mnt
Rpm-ivh / mnt/Packages/yum-3.2.27-14.el6.centos.noarch.rpm
2. Install wget
Rpm-ivh / mnt/Packages/wget-1.12-1.4.el6.i686.rpm
3. Back up the yum configuration file
Mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.backup
4. Download the yum source
Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
5. Yum makecache generation cache
Yum makecache
6. Turn off the firewall
Service iptables stop
Do not start the firewall when chkconfig iptables off is powered on
Chkconfig-- list | grep iptables
Iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
7. Close SELINUX
Vim / etc/sysconfig/selinux
SELINUX=disabled
8. Install Cups
Yum install cups
View installed software packages
Rpm-qa | grep cups
Cups-1.4.2-78.el6_9.i686
Cups-libs-1.4.2-78.el6_9.i686
9. Run cups
Service cups start
10. Power on and start automatically
Chkconfig cups on
Chkconfig-- list | grep cups
Cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
11. View cups status
Service cups status
Cupsd (pid 1817) is running...
Allow remote access to CUPS Web
By default, CUPS only listens to localhost and modifies the configuration file to allow any to listen to TCP 631.
Vim / etc/cups/cupsd.conf
Change Listen localhost:631 to Listen *: 631
Allow any to access CUPS WEB
Vim / etc/cups/cupsd.conf
Add the Allow all field as follows
Restrict access to the server...
Order allow,deny
Allow all
Restrict access to the admin pages...
Order allow,deny
Allow all
Restrict access to configuration files...
AuthType Default
Require user @ SYSTEM
Order allow,deny
Allow all
Restart the service service cups restart
13. Visit CUPS WEB
Https://IP:631/admin/
Login account using root password
Add print
15. Check the print error log
More / var/log/cups/error_log
16. Install samba
Yum install samba
Installed software package
Rpm-qa | grep samba
Samba-winbind-clients-3.6.23-46el6_9.i686
Samba-3.6.23-46el6_9.i686
Samba-winbind-3.6.23-46el6_9.i686
Samba-common-3.6.23-46el6_9.i686
17. Add shared printing
Vim / etc/samba/smb.conf
[printers]
Comment = All Printers
Path = / var/spool/samba
Browseable = no
Guest ok = yes
Writable = no
Read only = yes
Printable = yes
18. Restart smb service
Service smb status
Smbd (pid 2140) is running...
19. Set up a share without authentication
Vim / etc/samba/smb.conf
[global]
Workgroup = MYGROUP
Server string = Samba Server Version% v
Security = user
Map to guest = Bad User
20. Test print
\ 10.4.8.249
Print a document, choose a shared printer, you can print
21. View the related printing log through CUPS WEB
View the print job record, as shown below, a print has been completed
22. View log
Page_log, the following pc-10.4.10.53 completes the printing using the printer ZD-15F-PRINT-10.4.10.190
ZD-15F-PRINT-10.4.10.190 7 root [21/Mar/2018:20:44:36 + 0800] 1 1-10.4.10.53 smbprn.00000001 Linux--
ZD-15F-PRINT-10.4.10.190 7 root [21/Mar/2018:20:44:47 + 0800] 1 1-10.4.10.53 smbprn.00000001 Linux--
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.