Welcome back friends. Here in this part we are going to learn about system configuration tools. What we can do with various options, I will I will, that could be internet connection cron tabs all mode. So let's explore later let us start with Ethernet connection. When you have installed your desktop environment or server environment, you would like to install your Ethernet drivers or if they are already installed, you would like to configure them the Ethernet drive the IP address and DNS, subnet mask are various things. Of all network sharing.
When you have a server environment installed, you your main concern would be database and network. So we need to have a grip over this concept. So let's start with internet. Internet provide you connected They provide network interfaces that could be named sequentially eth zero or Ethernet zero Ethernet one and so on. There are various things Allah says are there. For example, Ethernet zero is represented with one 802 zero could be also represented with two and so on.
Various miners could be their multiple address can be assigned to a device with alias as their le SS are treated like separate interfaces. You can view the configuration file for Ethernet drivers in the SPN directory of the IP address, where you can see the details to enable interface. You can go with a s beam and then move to if up directory and from Ethernet x and you can similarly disable them. The basic command to view your IP address in real complete complete information is with the command if config in Windows we have IP config and in Linux, we have ifconfig will show us the complete information from IP address, subnet mask, MAC address, and various other details. From there you can configure it or use accordingly. You have a graphical network configuration option that is located within system, administration and network.
You can activate and deactivate interfaces. You can assign IP address or a Dynamic Host Control Protocol DHCP. You can modify Domain Name System DNS settings for your website or website. If you have a server environment for your company and stuff A company has a website, which is hosted on your server. So your server data has to be directed from a website name, the URL that is provided with the DNS information. You have to modify the gateway address accordingly.
You can do so you can type if config e t s zero for getting Internet Information. Then there comes more internet configuration files. The device configuration is stored in text file in the ET CIE directory system config network scripts and this path to get complete list of options. You can browse here, the user share doc in scripts there are a huge range of commands that are not actually frequently used. But certainly you can go through them. There are various global network settings That could be checked back.
In the EDC directory again EDC system config and network. You can do so the gateway can be overridden with if config file. We are networking could we say yes, there are variables. These are actually user predefined variables, the networking variable hostname gateway. These are variables and providing the value to these variables would allow you to configure your network settings. You can also run shell script with these variable names and executable functionality.
Domain Name service translates hostname to a network address or an IP address. The host name is our website name could that could be translated to a network address? So DNS configuration is required for this purpose. It could be resolved on etc resolved configuration file. Suppose, we want to check an example. Here, we write the command search command, provide an URL or domain name and type our test script run the test a script remote test, it will return the name server and the IP address for this specific domain name.
Another utility that we need to check this printer printer is a is a device that is generally used over a network. I suppose in your office, you have 20 or 50 computers and 15 or 20% for controlling those operating on on those computers. So if if you need to print certain information on papers so Assigning each printer, individual or unique printer to everyone in the office is very costly and inefficient thing you can install a printer and provide that same printer to 15 or 20 people. So, they can use the print command and print your information and they are allowed slots or queues. So we can configure printer here from for I read here. If you want to go with graphical configuration, you can check out system administration and printing.
The supported printer connections are local that are in parallel series or USB connections. And the configuration file for printer is stored in etc. cups, printers, not configuration file The printer commands we have already learned about LPR there are few more commands, the LPR sends a job to the queue to be printed. Suppose 10 people simultaneously send something to be printed or single person sends multiple files. So, they are sent in a queue. The first who arrives in the queue will be given the fastest slot and they will be printed earlier, then the later arriving instruction.
They accept a sky PostScript, PDF, ODT, and various other files. Then there comes our l pq command, where you can view the contents of the queue. Using LP q command you can check what are the files that are to be printed on the buyer printer and waiting in a queue. With LP rm command you can remove a job from a job Suppose you have accidentally hit the print button and you want to remove that file, you can do so with LP rm command system v printing commands such as LP, LP stat. Could we also use the cancel command is also supported here. Similarly, you have expressed his specific options to list configure printers.
Suppose we have multiple printers assigned over the network, and we want to check which kind of printers are there. So we can check the printers similarly with the ls command, we simply need to write LP stat minus a. So it will list all the Configure printers connected to your device or over the network. Then you can convert text to post a script with a shortcut command. A script or a two PS command. Similarly you can convert PostScript to PDF or you can print multiple pages per sheet.
You can set system date and time the system date and time is a generally set during the installation. As we have seen in the second video. Well, the installation of our HCl However, you can configure it later anytime you want. from the command line as well as from the GA mode. If you want to configure in the goi you have to go to System Administration, date and time. The utility is called a system config date.
You can also set a date and time manually and from CLR. If you want to set you simply need to write date Command D and provide the information in format of MONTH DAY. hour minute and so on. And here you can take input with positional parameters for shell script things, the position parameters could be related as $1 123 these are actually values especially variables could be used to hold the command line argument as we have seen in the in the fall of which a for loop is scripting that we have seen, user defined variables could be made and with $1 symbol you can use them for any purpose like echoing printing on the screen or generating STD out things. So, here two things are new dollar asterik, which hold the command line argument and dollar hash or pound symbol which holds the number command line arguments.
You can take input with the read command. As here, you need to write, read our ad minus p r to prompt to display. If you want to display that thing, if you don't want to display anything, and you message, so omit this thing, provide a string that you want to display. For example, enter a file name or enter anything whatever you want, then provide a very well user defined variable, where the input is Toad or assigned the file in capital here would take the input and it will be assigned later on. You could use that thing. It can work both in a command line interface as well as with shell scripting.
With the interactive way or with self discovery, you can use that thing then there comes a you unique feature on our channel that is crontab crontab would allow you to schedule command to execute later. We all we have learned here that we can execute commands on the on the run, when we type and press enter, they execute, but you can also schedule commands to execute later. The one time jobs can be used with ADD, the recurring jobs can use crontab. If you want to execute a command only once, you can use the Add command at and if you want for repeated work or recurring jobs, you can use the crontab specifically. So for creating a creating a command, you can do so with at just right at the time as provide the time and with context you need to write crontab command and minus E for create it is an option similarly, for generating a list of providing a list of jobs you could do so, with details removed, added and so on.
Here we have to note one or two things that non redirected output is made to the user and route can modify jobs for other users as well. If you have created a sequence of jobs to be executed, and there is a system admin, who have access to route he can he or she can modify the job pool and the queue anytime he wants. So, this was a brief introduction about system configuration utilities about a printer and various other things. This would be sufficient would be required when you have to work on the server side over the network and for administration purposes. So give it a try. If you have a network or you And also do so virtually either on VMware or VirtualBox.
Till then keep learning keep moving at we will learn more in the coming videos