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...
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
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
Describe AppArmor and its functions with Ubuntu Server 18.04 and Linux  
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...
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.
Create by using Linux server • Create a file name it foo.txt • Remove all permissions...
Create by using Linux server • Create a file name it foo.txt • Remove all permissions from foo.txt • What happen if you try to read the file? • Change foo.txt permission to read and write only for owner • Change foo.txt permission to read for group • Change foo.txt permission to read and write everyone
Linux Given a passed parameter to a script, request a number from the user and print...
Linux Given a passed parameter to a script, request a number from the user and print the parameter as many times as that number.
Suppose you have to harden a Red Hat Linux server for security purpose. Give examples of...
Suppose you have to harden a Red Hat Linux server for security purpose. Give examples of 4 configuration actions that need to be completed. Describe the purposes and steps in performing these tasks.
3.13 LAB: Extracting Passwords (files and lists) The Linux operating system is a very popular server...
3.13 LAB: Extracting Passwords (files and lists) The Linux operating system is a very popular server OS. A network administrator has to protect the login/password files stored on the servers. In Linux there are two important files: /etc/passwd And it contains rows that look like this: root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin adm:x:3:4:adm:/var/adm:/sbin/nologin ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin user1:x:15:51:User One:/home/user1:nologin user2:x:15:51:User One:/home/user1:nologin user3:x:15:51:User One:/home/user1:nologin This file contains login information. It's a list of the server's accounts that has userID, groupID, home directory, shell and more info....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT