Placeholder Image

字幕表 動画を再生する

  • please go to the line the computer guy dot com, in order to view schematics, code and Maur for the projects that you are learning about, welcome back.

  • So in today's video, I'm going to show you how to set up F T.

  • P on a Lennox server.

  • So FTP stands for a final transfer protocol, and it is a standard way of being able to upload files to your Lennox server.

  • Generally, you'll be using FTP.

  • If you have something like a Web server, you're going be installing something such as WordPress.

  • You'll use FTP to be upload those files to your Web server and then be able to do all of the configurations when you're dealing with an FTP support and understand this is a client server technology.

  • What that means is you have software that is installed on the server and that becomes a FTP server, and then you have software installed on the client machine that will be connecting to the server on that is what you're gonna be using to actually interact with that FTP server.

  • Now, with this again, as a technology, there are many different products out there we're going to be using at V S, f T p D.

  • Today for a bun to server, and we're going to be using a file a Zillah client on our client operating system.

  • But it is important to understand that there's a lot of different options out there.

  • For some reason, you don't like B S f d P d.

  • Go out there, do a Google search, and you'll find there are a lot of different FTP servers that are available that you can install onto your bun to box or onto windows or whatever else again.

  • As Faras client software is concerned, we will be using Final Zilla because it's good, it's free.

  • It's open source.

  • Everybody uses it.

  • But there's a lot of other FDP clients out there.

  • There's actually FTP clients that even built into Web browsers such as Google, chrome or Safari, and you can actually connect to an FTP server directly from a Web browser.

  • But we will be using file zilla because again, it's a good generic FTP client to use now when we're going to be doing this particular demonstration today, it is important to understand that we're going to be communicating between a client machine and a server, which means the network has to work in between when you're using FTP, the default port that is used for FTP is Port 21.

  • So if you have firewalls, software firewalls, some kind of Internet security suite or whatever else, make sure it allows pork 21 Do itto work.

  • So again.

  • So it's important.

  • Understand, with networking that means both on the Lenox machine.

  • So if you have something like you F W.

  • So if you have a firewall and stop installed onto your Lennox machine, you have to make sure poor 21 is open and then also for your host machine.

  • Whether you have Windows, firewall are or Lord Help, you know you have Norton Internet Security Suite or something like that, you have to make sure that that it will allow Port 21 traffic.

  • So a lot of times people have problems where they install and configure the FTP server correctly.

  • They insulting configure the client correctly, but then they can't get the two to talk, and they think they made some kind of configuration mistake.

  • And the mistake isn't with the configurations.

  • It's with the network communication between the client machine and the server.

  • So since we're going to be using virtual boxes, I want to do these demonstrations again.

  • I have a Mac that I have virtual box installed, and then I have an instance of the U Bahn to operating system within a virtual machine in virtual box.

  • One of things that you do have to do is you have to change the adapter sentence.

  • So whatever change what I've done for the network adapter settings for my person, for a personal machine is changed.

  • The instance to bridged adapter eso What this allows it allows the host machine.

  • So the machine that's running everything to actually be able to communicate with the virtual server.

  • If you if you leave the standard nat configuration, most likely the host machine will not be able to communicate with the server.

  • So that's one important thing that you may have to dio is.

  • You may have to make sure that whatever client machine you're trying to connect to that FTP server can actually talk before you go to other things.

  • You can do things such as just doing a simple ping.

  • Make sure you can ping the I P address of the server from the from the client machine.

  • And make sure you have back that connection so that let's go over to to my machine so I can show you how to install and configure V S f T p d.

  • To create a Lennox of FTP server.

  • And then I'll show you how to use file zilla on the Mac OS to be a bit connect to that FTP server.

  • So here we are again.

  • I'm using a Mac book pro to show you these demonstrations.

  • I have this, you bunch of server up and running, but I want to show you something with the setting for the particular adapter.

  • So have the a bunch of server clone three that is currently running.

  • But you will notice if I go to settings and then I go to network.

  • I have changed the adapter here to braided adapter so previously, and other demonstrations we've simply used in that So Nat allows the server the Lenox box to communicate with the outside world doesn't necessarily allow the host machine to be able to communicate with the server.

  • So by going over to the bridged adapter, this now allows the host machine to be able to communicate with the server and vice a versa s o.

  • This is one thing that you may have to change depending on what your what's going on with your particular lab s o.

  • Just cancel here, go here and log in again.

  • We use Bob.

  • 123456 And now we have log in and we're at our normal Lennox system.

  • So I'm just gonna clear so we go back to this now, the first thing that I want to see is to make sure whether V s f t p.

  • D.

  • Is actually installed.

  • So I'm going to take a look at whether the service is running on this machine.

  • So I'm gonna do sis pseudo system.

  • C T l s.

  • So this is what you do to either restart Service's stop service's or check on.

  • The status of service is I'll simply say status and then veep s f t p d.

  • And enter through the password for Bob Ener.

  • Okay, Unit V S F D P D service could not be found, so I just wanna verify V S t.

  • V S F T p D is not actually installed on this machine.

  • So in order to install it that I'm gonna do sudo apt hyphen get install V S f t p d.

  • So what this is going to do is this is going to install V S f d p d for us against pseudo super user do at life and get installed B s f d p d.

  • And then we're going to hit Enter that we're gonna go through and it's actually installing all the packages now for you.

  • I've actually already installed an uninstaller V S f d p d on this particular box, so I did not get the question mark about whether or not I want to continue.

  • If you're installing this on a fresh machine, it will ask you, Are you sure that you want to do this and then you guess type?

  • Yes, and that will allow you to be able to do it.

  • So Okay, so now that we've done that, we'll go back and we'll redo the command pseudo system.

  • C t l status V S f TBD will hit return and now we can see if he s f TBD service.

  • It's loaded and it is active and running So one of the important things again, if you're going be installing software or service, is onto your Lennox machine and they're going to be trying to interact with them, do you make sure that the service is actually running?

  • This'll be a problem, especially for new people, is what you do is you install the FDP you're the passkey to or something else.

  • And then, for some reason, it's not running like the service is not running.

  • So the service is not running, then it doesn't really matter what you do because you're not gonna be able to interact with service because it's not running.

  • So do just make sure whenever you install a service, just verify that it is actually running.

  • And from this point, this is actually the bare minimum of what you need to be able t use your Lennox box as an FTP server.

  • Now, from here, what you're going to need is that software called file zilla.

  • So if you go to file, Zillah considers Google Google search files illa and then what you're going to do is you're gonna want to download the client again for me.

  • I downloaded it from Mac osx they've got it for Windows.

  • They've got other options here.

  • So depending on what machine you're using, you would just download whatever version of files il you want.

  • And then from here, I've got applications go to file Zilla on, and then we're going to double click.

  • And so this brings us into the file.

  • Zillah panel.

  • So here, up here, we're gonna have the host.

  • So the host, this is basically the I p address of the FTP server were trying to communicate with.

  • We're going to have a user name.

  • We're going to have a password, and we're gonna have a port again.

  • The standard FTP four is 21.

  • So unless you have modified it, you're not actually going to put anything in here over here, Basically, on the left hand side.

  • What we have here is this is the local files.

  • So this is simply showing you in my documents PHP folder.

  • For whatever reason, it's opened up here on then on the right hand side, this is the remote site.

  • So when we actually connect to the FTP server, information will show up here.

  • Beyond that, if we look down here, we can see the cute files, the failed transfers and successful transfers.

  • So what's gonna happen is when we start uploading files, it will go into the file.

  • Q.

  • It will start uploading those files.

  • If it fails, we'll get a log file here.

  • If it's successful, we'll get along file here now when that problems are going to run into it, huh?

  • So what is the I P address?

  • What is the i p address of the server?

  • Right again?

  • That's the whole thing.

  • If you don't know what the I p address of the server is, then you're gonna be kind of stuck.

  • So let's go back to our monthly server here.

  • Just clear the screen, and I'm simply going to use the eye of config command Now.

  • A lot of people may complain You're not really supposed to use.

  • I have configure anymore.

  • I just find it easy.

  • It's just me.

  • So this still works if you work for a long time and if all you do is you type in, I f get fig and absolutely nothing else.

  • And then you go down and you take a look at the dinette.

  • What?

  • This is is this is the I.

  • P address of your server.

  • So your servers I p addresses Tenn 0.0 Not one, not for.

  • And that's what you're gonna plug in here for the host.

  • So we're gonna do is going 10 014 We already have users on this Lennox machine, so we've been using the machine for demonstrations for a while.

  • So we have Bob, we have Tim.

  • So on and so forth.

  • So we plug in Bob, we plug in the super see your passport of 123456 And then we hit inner.

  • It's gonna set.

  • Tell us that this doesn't support T.

  • L s.

  • So there's not encrypted or anything.

  • We're just going to say we don't like here right now.

  • And so we're now logged in to the FTP server.

  • And so again, we're Longden 100 user name of Bob.

  • And so that is going to a drop us into the Home directory of Bob.

  • So we see the test file.

  • The chron Test one, the test folder, SSS folders, all kinds of folders.

  • Here again, if we go back, clear the screen P w d.

  • This shows us the location.

  • So we're in the Baba folder in the home directory and l s l.

  • And we can see that we're looking at the exact same files, right?

  • So again.

  • So here you got test file and you have test file.

  • You got KRON test.

  • Will India contest one test folder, Test folder, So on and so forth.

  • So we're looking at the exact same directories.

  • Now, if I connect, let's say, is Tim So just do Tim, pastor of 123456 we enter then that is going to drop us into Tim's directory.

  • So I'm actually a wall again under the Tim Tim's account.

  • And we can say, See, Tim has the chron test, Tim, that's all that's in his particular folder.

  • So that's the important thing to realize with how FTP work.

  • So FTP is still using the same user accounts that you have created in general.

  • When you log in, it will drop you into the home directory that you've created in the password file.

  • So when we're looking at that again, so when we're thinking about where we're getting dropped in is that we go pseudo that's a vim, and then we look at the password file so forward slash e TC forward slash p a s s W d.

  • So this is the file we've talked about before.

  • This shows us information about the user accounts on our Lennox machine.

  • And so we go down here to Bob, we can see Bob's home directory is home forward slash Bob.

  • So if for some reason we wanted to change this, this is where we would come in, we could do an insert and I don't know, we could d'oh Bob ftp right, So we could actually modify.

  • We could modify what?

  • The Home directory will be here again.

  • Home for Tim.

  • You can modify this.

  • So this is where you might create a user account for simply doing ftp and then point that at a particular folder.

  • So this is where this is where the location for where you get dropped that comes into play.

  • And so all you would d'oh is you would modify the e t.

  • C for its last P a s s w d file in order to do that.

  • But it's important.

  • Understand your normal user account and your FTP They both used the exact same home directory.

  • So let me get out of this this Q force and then we're out.

  • So clear.

  • Okay.

  • So past that.

  • We're gonna go.

  • We're like, Okay, well, this is pretty cool.

  • Let's go back to Bob again.

  • So we're gonna log in his bob and you like, huh?

  • Well, let's see.

  • I don't really like this new four.

  • I want to get rid of this new folder.

  • So what if I delete this new folder is gonna ask me if I wanna be able to lead this new folder?

  • I say yes.

  • And we go up here, we can see permission is denied, huh?

  • Eh?

  • So what if I want Thio create a directory?

  • I want to create a directory FTP folder I had.

  • Okay.

  • And then again, if we go up here, we can see that permission is denied.

  • So when you first install the FTP server, if you do absolutely nothing else, all that you're going to be able to do is you're gonna be able to download files, So basically Oh, um, yeah, we're just basically just gonna be able to forgo here.

  • Don't say contests.

  • We can simply download.

  • We can download and then crying Test has been down.

  • Where is it?

  • here.

  • Oh, come on, don't there.

  • So we got Kron test one.

  • So basically, when you install the FTP server and you don't do any additional configurations, you will be able to download files, but you won't be able to upload files.

  • You won't be a bit create directories or be able to do any of that kind of stuff.

  • So in order to be able to write two to the forger, you actually have to go, and you have to make it a modification within the configuration file for V S f t p d.

  • So we're gonna do is around you pseudo space them.

  • So I'm simply using them as a file editor.

  • Use whatever file editor you want, Then we're gonna do eat.

  • He see Ford's last week S f t p d period, C o N f.

  • And so what this allows us to do is this is going to be the configuration file for V S f T p D.

  • That I'm going to hit enter, and then we've got a lot of different things here.

  • So if again, if we can stroll through, we can see there's a lot of different settings.

  • Anonymous enables of you won't allow anonymous FTP connections Allow local users to log on.

  • So we have that has enabled is yes on.

  • Then what we're gonna be doing here?

  • The only modification that we're gonna be changing today is uncommon.

  • Uncommon.

  • This to enable any form of ftp right command.

  • So basically, the rank command is going to be able to delete be ability, create that type of thing.

  • That's all we're going to do here is I'm going to do I for in search.

  • I'm simply going to get rid of that little hashtag the pound sign.

  • And now we can see that the Texas and White So that means this is now usable.