Skip to playerSkip to main contentSkip to footer
  • 2 days ago
Transcript
00:00what's up friends i wanted to set up netctl on my arch linux
00:05computer it's basically a network management software that's
00:12developed by arch linux team there is a similar video that's made by the youtuber that i'm gonna
00:20put on the screen it's almost sufficient and efficient and i already watched it just to
00:29be clear i want to share this with you there may be some differences so follow along you need to
00:38have internet connection in order to install this piece of software otherwise if you were able to
00:44find the packages and somehow put them on your computer you may install them using the command
00:53sudo pacman dash uppercase u and then the path to the packages
01:07since they are more than one i said packages since they are more than one however i have network
01:17manager installed on my system which is gonna be replaced soon with the
01:24package packages that i'm gonna install and the steps that i'm gonna follow so the first command
01:31is running sudo pacman dash uppercase s netctl if plug d and dhcp cd this one can be replaced with dh client
01:54and if plug d is needed for the wired connection i'm installing it purposely since i use the wired connection on this
02:06system i'm not sure but wpa supplicant if it's not installed automatically once you install netctl
02:19and your computer has wireless connection you may need to install it here
02:27so i'm not gonna install wpa supplicant i'm gonna run this command like this
02:35here i'm gonna go with open resolve which is two i'm not sure for systemd resolve conf
02:46however uh however uh the wiki points
02:53to systemd resolve d and this article talks about systemd resolve conf as you can see i'm gonna go with open resolve
03:05that's why here it's gonna be two enter and then y and enter
03:10okay so as you can see dh client is for dhcp support since i was trying to use this piece of software
03:26off cam there is a package that i forgot to tell you to install which is
03:31dialog you should definitely install it by running sudo pacman dash uppercase s dialog
03:42like this y and enter i forgot to remove it when i was doing the off cam
03:50trials i removed all the packages and everything let's clear out the screen
03:55the commands from now on may become offline since we are gonna disable network manager
04:09network manager has a set of commands like nm2 you can know that it's working and from this nm2 interface
04:17you can enable or disable or configure your internet and network connections the way you like
04:26so as long as we're gonna go offline prepare these pages of wiki the first is for netctl
04:34let me make sure it's so it should be not with this hashtag at the end that's an article inside of it
04:50and the second one is open resolve i have chosen open resolve since it has a clear wiki page so netctl the
05:00link should be something like this you can simply google all of this or use your favorite
05:06search engine and it's gonna show you these packages uh wiki pages second one is open resolve it's needed
05:17since the dns configuration depends on it third one not mandatory all of these aren't mandatory but you
05:26you may need them in order to do the correct configurations the third one is systemd resolve d and then
05:33this article for automatically all right so we disable network manager by running sudo system ctl
05:43disable network manager
05:48and n and m the initials of network and manager are uppercase the rest are lowercase
05:58all right second command is stop
06:05all right clear
06:09it's good to check the examples that are provided with the installation of netctl by going to slash etc
06:19slash netctl slash examples from these ones you can know what are the types of the connections that
06:27are available and what are the ones that you need to copy in order to go to the next step and in order to
06:37have working profiles so in my case i'm gonna copy sudo cp
06:49etc netctl
06:54examples
06:56and we're gonna take ethernet
07:00dhcp
07:02we simply copy to slash etc slash netctl root
07:07directory the second one should be
07:10wireless
07:18wpa since the newest encryption technologies that are used for the wireless are wpa2 and probably there
07:26is wpa3 if i'm not mistaken the other ones you need to be aware of them they help really well
07:32uh to bring the closest configuration for you all you have to do is to like make it match with your use case
07:45enter here let's take a look at the first one which is ethernet
07:55ethernet dhcp you can change the name
07:59the way you like so
08:04if you have for example ipv6 and a dhcp server that's providing it you uncomment this
08:13or if you want to have auto configurations you uncomment this the interface needs to be changed
08:25to match with your current interface that you can find by running the command ipa for example my
08:32ethernet interface is this one so i'm gonna take it and replace this one with it to make this
08:42configuration match with mine
08:47dhcp my ip address is dhcp the dhcp client it's the same as this one dhcp release on stop let's keep it
08:58now for dhcp v6 i guess i don't have the dhcp v6 provided by my dhcp server so let's save and exit
09:09the next one is we go to our to my w or yeah my w wireless the wpi wireless by going to this one
09:19the interface here is the same as mine as you've seen when i run the command ipa here when you
09:37i guess here this one is fine i don't know if we need to change it or not in the security otherwise
09:44you can try i'm not gonna do it here you type your whenever you look for your wireless connection
09:54there is a name that you connect to you type it here and then the key that you enter you type it
10:00here i'm gonna tap mine and then i'm gonna come back to you after you type your network name and
10:07the password you save and exit now let's clear out the screen and we go to the next step which should
10:16definitely be uh sudo netctl start ethernet slash dh dash dash dhcp
10:33okay sudo system ctl start netctl and we run this command again
10:52here we enable
10:54and the next command is for my wireless connection which should be wireless wpa
11:12let's try to start it which is not guaranteed since when i was off cam and tried to start it it
11:17didn't work unless i reboot it sounds like it is working let's check the status
11:24it's working and do this with uh the ethernet which i believe that it's possibly not working because
11:43i'm not connecting any ethernet cable to this computer yes let's try to start again
11:51no no problem no no problem it's okay i will connect an ethernet cable
12:00i connected the rj45 ethernet cable to the router and here i'm gonna connect it to my laptop
12:12it's on the other side
12:13now we should try again with the ethernet dhcp profile password
12:33okay it doesn't want to work let's see what ip addresses we got
12:37uh first one has got an ip address is the wireless let's try again with the ethernet
12:53sounds like it doesn't want to work
12:57we may need to reboot anyway to see if it is
13:00it is working all right let's ping google
13:10it works somehow
13:15let's see resolve.conf
13:21yes so the choice of resolve.conf wasn't
13:25bad off cam i tried with systemd resolve.conf it failed to do the dns queries and stuff
13:34or the dns protocol wasn't working let's try to yeah the web page is working
13:43if you want to enable any other profile
13:46you should see the examples like cp etc netctl examples i have ethernet dhc yes ethernet static i use
14:05use it a lot with my wired connection so i'm gonna copy it to the netctl root folder and root
14:15configuration folder which is slash etc netctl
14:23i don't think we should enable it now we should take a peek on it by going to it
14:30slash etc slash netctl slash ethernet static
14:37and then we should this IP address we type our own first let me go
14:53back again to see what I have and take a peek here
15:07yes so the wired static one these ones should be replaced with the ones that match with your
15:26preference let's say for example this one the routes we don't need to change anything the
15:32gateway if it is this one it should probably be like this and the DNS we save an exit you save an
15:39exit with the configuration that matches with your use case I don't need to save an exit and
15:45then you run sudo netctl start ethernet static it's gonna fail here since we have no such configurations
15:59for the dialogue it's possible to be used simply by running the command
16:14Wi-Fi dash menu Wi-Fi dash menu sudo Wi-Fi dash menu what I'm seeing here is a list of Wi-Fi networks I'm
16:36forced to cover them since unluckily my neighbors sometimes write their full names as their network
16:44IDs I'm gonna cover it definitely so you choose whichever you want here I don't know let's cancel
16:55I'm gonna try to restart the computer and see if my wired connection works or not computer started I got
17:04an IP address for my wired connection if we ping Google let's hope the DNS configuration is still
17:12correct it works I thought of removing the etc netctl wireless WPA why because I wanted to use
17:32dialog again so let's type sudo Wi-Fi menu from here I'm gonna connect to my own Wi-Fi connection select mine
17:46here okay it gave an example for the interface by giving the interface name dash the ESS ID or my router's
17:58name okay here let's try again let's disable it first sudo netctl stop wireless WPA and we should try again with Wi-Fi menu
18:24IPA clear and then we check the newly created profile
18:36and it's working I guess I'm signing out for this video
18:53please don't forget to subscribe like share and comment and see you

Recommended