Skip to playerSkip to main content
  • 4 months ago
Transcript
00:00hello everyone please before we start make sure you subscribe like share and
00:04comment and why not become a member I like to explore network protocols and I
00:13recently discovered a network protocol that I've never heard of which is 9p
00:19it's responsible on transferring files it's strongly related to an operating
00:25system called plan 9 the interesting fact about this operating system is that it
00:31is developed almost by the same people who developed UNIX it's worth exploring
00:38we may explore it together in case you wanted to please tell me in the comments
00:42down below this protocol has the same topology as many other famous protocols
00:53which is server and client we will install a piece of software for the
00:59server and connect to it using a client the piece of software that we will
01:06install is called diode this one this is its github page there are some
01:14requirements to build this piece of software from source we need to have some
01:22applications or dependencies installed in order to get the compilation working on
01:32Red Hat and Fedora base distributions we need to run sudo dnf install like this
02:06first we need to get the
02:07data that will allow you to industrias for you to install the app on the
02:07staff it's available to you to collect the machines and it's available to you to
02:31this is for Red Hat based distributions in case you use another distribution make sure
02:38the packages names are the same as the ones that are in your repositories they may not necessarily
02:45be the same as the ones that I typed here for instance for Ubuntu and Debian based distributions
02:55the names become like these ones so you need to install them with these names
03:06GCC is pre-installed on my Red Hat based distribution so let's install these packages
03:16press Y and enter here
03:21after those packages complete the installation we are ready to download
03:31the file that is responsible on compilation it's this one I will download it like this
03:50all right let's clear out the screen we can extract it with this command
03:56I always press tab for auto completion please keep that in mind
04:04enter and then we can change directory to the directory that has been created like this
04:15we can run a command which is this one dot forward slash configure enter
04:34I believe installing munch doesn't
04:46solve the issue that we are facing here
04:51let's install it like this
04:57in case you face the other errors it will tell you about which missing packages you need to install
05:04make sure you install it let's run dot slash configure again like this
05:12yes it keeps complaining about the same thing so let's run disable dot like this
05:34it complains it complains here about lua
05:36I try to do this off cam and it worked flawlessly if I run lua it is installed with the
05:46version 5.4
05:48and I don't know why it complains now
05:52let's run this again disable with disable config
06:05like this
06:09I tried to do this on arch linux and it fails all the time
06:14when running the command make which we will run now
06:19but here it works without issues the command make I mean
06:37okay we can run sudo make install
06:45it worked so the commands
06:54are as you can see
06:57starting from here up until here
07:03these were the commands that I ran in order to install
07:06install this piece of software let's clear out the screen
07:28the command that I'm gonna copy and paste here
07:29to run the server we run the command that I'm gonna copy and paste here
07:42the command that I'm gonna copy and paste here
07:43with some adjustment for the user it's stuck
07:56I guess I need to open the firewall
08:10like this
08:13now we run this command
08:22we run this command and we check if there is yes it's listening there
08:43from the side of the client we run this command
08:49from the side of the client we run this command to mount the exported storage
08:53so I copied that I'll change it a little bit
09:00I'm not sure if this is gonna work but we will try
09:08like this
09:09so
09:27yes maybe we need to use
09:29the multi-user to mount successfully so cancel that one and we run sudo diode
09:54node auth export home tech like this for you you choose whichever directory you want to export
10:11I'll run this in the background since there will be a port that needs to be open
10:30you
11:07I need to add the port 5.6.4
11:18And we run this command again like this.
12:07And we run this command again like this.
12:21Alright, this is interesting, ls-mnt, sudo ls-mnt, and these are the files that I have on my
12:36server.
12:36Let's make a file, touch mnt file created from client.
12:56Then, let's put something in it, file.
13:04Let me just change this command.
13:12And this was created.
13:34Here it is, still here.
13:36If we check on the server side, if the file is created, we will find that it is there.
13:45If we run cat file like this, we can see that it's working.
13:55Let's try to edit it.
13:58Let's create a file like this.
14:03It needs to be with root privileges.
14:27If we check here.
14:36Here we can see that when we added the file from the server side, it works.
14:44There are some quirks.
14:45There are some quirks when it comes to running and compiling the server.
14:49I hope I clarified that.
14:53And that makes it for this video.
14:56See you in another video.
14:57And see you in another one.
14:58See you in another video.

Recommended