Home
Username:
Password:
Unix System Administration Essentials Tutorials

Network Services / Installing Network Services




Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.


Learn More

Subtitles of the Movie

Now that we've given you some background on network services and the configuration files that manage them, let's talk about how to install network services. We've talked about sysinstall several times during the course and we're going to talk about it again. Sysinstall basically is a one-stop shopping installer that you can go back and install several more components of BSD UNIX. In this case we can go back and install network services if we like. Now, we can install these when the machine is started up and when it's installed. We can also go back later and configure them if we need to. The sysinstall can help us install network services as well, such as Mail, NFS, Inetd and so forth. Once the service is installed, it's usually started automatically through the Init service. The Init service will call the etc/rc.conf File and net services has to be listed in there so it will start automatically. Now, you also can control the service manually provided it's got a keyword listed in RC.D, in that directory. Let's go ahead and take a look at how to install a service and then look at rc.conf and make sure that it's running properly. OK, let's go ahead and look at sysinstall and we've seen this before but let's go ahead and take another quick look at it. What we want to do is go ahead and arrow down to Configure and we're going to arrow down to Networking and this is where we can configure additional network services. Now, you've seen this before. We actually looked at this when we talked about configuring additional network interfaces. Now, we're not looking at configuring a network interface this time but also notice that we can look at configuring various other services. We can configure Anonymous FTP, NFS, MTP and so forth. There's different things we can configure here. What I want to configure right now just to show you how it's done is the Inetd. Now, we' talked about Inetd in an earlier session but we have not actually got it running and configured yet so let's go ahead and install that. We're going to say Yes, we want to enable it. We may want to change the settings or not. I would recommend that you go into your own editor and change them when you like. I would not do it through sysinstall. So let's say No. We're going to use the current settings that's in it and then we're going to say OK and we're going to arrow back up, Exit and Exit Install. Now, once this is done, what we may want to do is go ahead and check on the status of Inetd and RC. Conf. So let's go check there and make sure that Inetd is in fact installed or see if it is and if it's not, then we should edit the file and add that line in there. So let's go Less etc/rc.conf and see what we've got in there. Now, it's not in there. Oh, yes it is. It's at the bottom there. I just saw it. It adds it to the bottom so we've now enabled Inetd and so now when Init is started, it will read the rc.conf file and start the Inetd Service and of course we talked about, you know, the fact that Inetd runs and configures a lot of other services so because Inetd is enabled, now we're going to start other services as well. So now it's important for us to go in there to the Inetd.Conf file and figure out which services we actually want to run. Now, we've already looked at the Inetd.Conf file. There's a couple other thing I want to show you as well. Starting Inetd.Conf or starting Inetd through rc.conf is an automatic process. Anything that's put into rc.conf will start when the machine starts up but we also can manage services manually and that's actually not too hard to do. We change to the RC.D Directory and do an ls -al, let's pipe that into Less, going to see that we have a lot of different files in here. These files are keywords for services and we have a lot of services in here that we could start up and if you just kind of go through here, you'll see some of the services that are there and there are a lot of different services in here and these services can actually be managed just simply by using Start, Stop and Restart and if we, just to show you an example of that, we can type in, this is SSHD, which is the Secure Shell name when it's running and we can stop that. We could also restart it as well. Actually we need an absolute path for that so what we'll do is /etc/rc.d/sshd stop and so we're going to stop this. We actually can't stop it because it's enabled in rc.conf. We actually need to say one stop to stop it for this one time. So we can change this. It has stopped already actually. And we can also restart it by typing in Start. Oh, we're not, be able to use it. Start and Stop primarily are for when you want to manually manage a service that's not managed in rc.conf. One Start and one Stop are actually the correct commands to do this with. We could also restart it if we wanted to. Let's go ahead and use One Start and now we've started it back up. We could also if we wanted to restart the service. If the service is hanging up and it's giving us a problem, we can manually restart it. Well, we had to use One Restart once again so it can be little complicated. The reason for the confusion is this is a little bit different between UNIX distributions and Linux distributions. There are some where Start, Stop and Restart work just fine and obviously in BSD Linux or depending on how it's been configured, you have to use One Restart, One Stop, One Start. That's basically how to do this manually and it's not a very difficult process but sometimes when you go between UNIX distribution or Linux distributions you may have to remember exactly how it's done. The point of this is that you can manage these services manually as well in addition to having them in the rc.conf File and starting automatically with the Init process.

Tutorial Information

Course: Unix System Administration Essentials
Author: Bobby Rogers
SKU: 34153
ISBN: 1-936334-45-3
Release Date: 2010-08-12
Duration: 4.5 hrs / 57 lessons
Captions: Available on CD and Online University
Compatibility: Vista/XP/2000, OS X, Linux
QuickTime 7, Flash 8

VTC Sign up & Benefits

  • Unlimited Access
  • 98,729 Video Tutorials (23,265 free)
  • Video Available as Flash or QuickTime
  • Over 1026 Courses
  • $30 for One Month Access
  • Multi-User Discounts Available