Question

In: Computer Science

For a Linux server: • how to Set up a print server (CUPS), allow clients to...

For a Linux server:
• how to Set up a print server (CUPS), allow clients to connect, print to PDF
• Create a script that backs up the printed documents every 6 hours
please can you help me

Solutions

Expert Solution

part 1:

How to setup a print server (CUPS), allow clients to connect , print to pdf.

step 1 : open command prompt with the root admin ( Super user)

step 2: yum install cups   // Installing CUPS Service

step 3: # vi /etc/cups/cupsd.conf    //Configuring CUPS

step 4: # service cups restart    // Restart your CUPS server

step 5: Manage the required CUPS server // https: localhost:631

step 6: Run the setup documents.

part 2: • Create a script that backs up the printed documents every 6 hours

Method 1:

For the script you need to look for these two lpq and lpstat

lpq defines the queued jobs on the default printer which has been set and lpq -l does it more accurately.

lpstat -o is used to print the jobs which are in queue.

Method 2:

Try to create the backup using tar as shown below, which is easy approach

   tar -cvpzf /bk_up/filename.tar.gz /data/directory

if the destination is not present , then make the destination where you want to backup store.

      # mkdir /bk_up

now create the file using vi editor (prescribed) as shown below

     # vi /bk_up.sh

use the below code to set the backup time and necessary conditions

     

#!/bin/bash
TIME=`date +%b-%d-%y`                      # This Command will read the date.
Your_file_name=bk_up-$TIME.tar.gz    # The filename including the date.
source_of_backup=/xyz/www/html                       # Source backup folder.
destination_of_backup=/bk_up                             # Destination of backup file.
tar -cpzf $source_of_backup/$Your_file_name$destination_of_backup

Hope this will work!!!


Related Solutions

Using node.js, create the following tasks. 1. Set up a server and HTML file server as...
Using node.js, create the following tasks. 1. Set up a server and HTML file server as shown in the videos. Once you have it successfully running, make the following adjustments A. When a 404 error (file not found) occurs, display a funny message about the file missing and/or did you forget how to type? B. If the user enters a request for the home page (index.html) then: Display an index.html page you have created which includes your name, course number,...
An organization has decided to move from a windows server environment to a Linux Server Environment....
An organization has decided to move from a windows server environment to a Linux Server Environment. The organization requires to offer email, web, fileshare, printing services to its users which are predominantly using MAc OS and windows clients. These services would be provisioned from the newly created Linux server. a) Outline some of the issues the system administrator needs to consider when designing the solution? b) How would you resolve the issues ? c) What tools would you use in...
Like a TCP server, a UDP server's job is to set up a communication endpoint and...
Like a TCP server, a UDP server's job is to set up a communication endpoint and passively waits for the client to initiate the communication; however, since UDP is connectionless, UDP communication is initiated by a datagram from the client, without going through a connection setup as in TCP. Write a program to demonstrate the typical UDP server goes through the following four steps: 1. Construct an instance of DatagramSocket, specifying the local port and, optionally, the local address. 2....
Configuring Mail services in Linux In this lab we will examine how to configure mail server...
Configuring Mail services in Linux In this lab we will examine how to configure mail server (Sendmail, Dovecot and Spamassassin) services under Linux. PART 1: Configuring the sendmail Mail Transport Agent (MTA) to provide Mail server services Boot your system into the Fedora Linux server VM used in lab 3 to configure DNS and follow the procedure outlined below to configure your system as a Mail server using the sendmail MTA. Log in as usual and make sure that the...
Set up a for loop to print values from n down to 1 with at most...
Set up a for loop to print values from n down to 1 with at most 5 values per line. For example, when n is 7 then the output is shown below: 7    6    5    4    3 2    1 C++ code
When you set up your first Windows 2016 server and configure it as a domain, there...
When you set up your first Windows 2016 server and configure it as a domain, there are a few things to consider. There are points where it is relatively easy at points, as you just answer a few questions like what language you use, your keyboard, etc. At other points, it becomes more involved. what do you think would be a good name for your server(s) and why? What about server password security? What are some things to consider when...
discuss how using VirtualBox and the Linux LAMP server represents cloud computing. And, discuss what a...
discuss how using VirtualBox and the Linux LAMP server represents cloud computing. And, discuss what a cloud consumer needs to know about how virtualization and cloud computing creates value for a business. In addition, for the second part of the discussion, make sure you mention virtualization security.
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
how to set the print area, insert page breaks, add print titles in excel. Explain how...
how to set the print area, insert page breaks, add print titles in excel. Explain how to do these three features and why they are important to a file
in linux suppose proccess is down . how to check it up and know whether the...
in linux suppose proccess is down . how to check it up and know whether the process is running or not running ? and if process is not running or in down state then how to start that particular process which is not working ?? please tell how to activate or start the particular process is not in working state? please write the commands and execute and explain the process.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT