Skip to playerSkip to main content
  • 2 days ago
Transcript
00:00hello everybody please make sure you subscribe like share and comment and why not become a member
00:06i compiled from source diode using their github repository i downloaded the tar file from there
00:15and did the installation and connected to it to share files when i tried to do so on arch linux
00:22i failed so i thought of trying from arch linux third party repository which is the aur let's
00:32go with the first method which is the manual method of installing packages from the aur
00:42this is the first command
00:49like this and it is as you can see working the second command is we change directory into the
00:59newly created directory let's make it a command like this and then we run this command like this
01:10it would install for us but since i have an aur helper i can do this same installation process
01:21using one command like this
01:27make sure when you have a different aur helper with different syntax the syntax is the one that's
01:33used to install packages enter here enter again enter while this is installing i connected through ssh
01:46to what is going to be the client for our 9p file server since the topology here is similar to
01:54most of
01:54the file servers which is server and client here we type our password the compilation is successful
02:02why here and again so in case you wanted to compile diode from source you better use this method
02:10which is installing from the aur
02:14and you can see that it compiled from source and it didn't report any error
02:23i opened here i opened here the github page for diode to remember the command this is the command
02:32maybe we need to check if any systemd service was created for diode like this
02:44yes yes there is a service we can check also if there is any yes i mean configuration file if
02:56there is any
02:57configuration file we've got here a configuration file
03:16let's make sure that the service server works then we can configure it
03:24this is the command to run it when i try to run the command that runs the server the first
03:33time i got
03:34this error i thought i would solve it by running these commands and then i run the command
03:45the command of the server again to start the server again and it says address already in use if we
03:53check
03:56the
04:00ones that are listening waiting for connections i think it is already running we may need to
04:09open the port
04:17like this
04:21yes so
04:29uh status not list all like this
04:36yes yes here it is so we set up our server we got it running it's listening it's waiting for
04:43the
04:43other connections its ip address which is needed later for the connection is as you can see 10.1.0
04:51.10
04:53i prepared my client which is here i connected to it through ssh so let's try to use it
05:02to mount to mount this one
05:10no i guess we need to change this ip address to be the servers like this enter password here
05:25no need for it to be a slash mnt slash home mnt does already exist so let's simply run this
05:33command in
05:33order to mount the exported directory from the server this one let's see in the block devices
05:49mount and no mount and we've got it mounted here like this let's see what we have in it ls
06:01mnt
06:03we've got these files and directories we can uh make a file let's call it slash mnt
06:25slash 8 from 9p client like this if we check our home and when we say home we don't mean
06:39the user's home but we mean
06:40the global home directory we will find made from 9p client can we edit it definitely yes let's try
06:55mnt made from 9p client
07:06mnt this this proves that it works save and exit let's try to see the content of the file that
07:17we just
07:18edit it edited edited edited edited by running this command and we can see that it already works if we
07:28wanna
07:29edit it from the server run this command
07:35like this
07:39yes it does
07:43yes we can also check it here mnt made like this and it is also edited from the side of
07:54the server itself
07:58if you focus it well you saw that diode has made a configuration file and an entry for a daemon
08:07for
08:08systemd we can see the daemon for systemd by running this command
08:21you can see that it is there and we can see that we have also slash etc slash diode dot
08:29conf
08:30i prepared an example of
08:36configuration
08:37configuration for the sake of simplicity otherwise the video may take so long
08:44listen here listens for any connection we can probably set this to a specific network address and
08:52it will only listen on that network i disable the authentication you can enable it in case you want to
09:02and for the exports i made it slash home slash user there are other configurations i'm not sure of
09:11i have also here squash user
09:14equals nobody
09:17make sure the syntax is correct
09:19if there are two dashes in front of every
09:24line it means
09:26it's a comment correct me if i'm wrong this is uh
09:32based on
09:34lua i guess
09:35yeah it's a lua script as it is said here that's why
09:39i assumed like that we save an exit in my case it is like that doesn't need to be saved
09:45let's now start the daemon or the service by running this command
09:55and on our client we run
10:00that same command
10:08i need of course to change some of the details here i made the new directory under mnt and call
10:17it
10:179p
10:19for this one we change it to the ip address of the server which is 10.1.0.10
10:27and for this directory it's not only slash home
10:31but it can be
10:34it must be like the one that i made which we can see
10:39under slash etc slash diode dot conf in my case it's slash home slash user
10:47here it must be like that
10:50and i changed the port
10:53in case you did you add it here if it is still the default one
10:58it must you don't need to specify it here
11:03if we try to run this command
11:07this one is for a new line you can run it all in one line but it's gonna be cut
11:14whenever it reaches the end of the line of your terminal emulator let's run this command and it
11:21sounds like it is mounted
11:25yes it is here it is
11:27yes if we see ls mnt 9p
11:34these are the same files and directories that are on the server ls and here they are the same
11:43between the two machines they are exactly the same
11:59anyway that makes it for this video and cheers

Recommended