<?xml version="1.0" encoding="utf-8" ?><transcript><text start="0.48" dur="4.56">in the previous video we learned how to</text><text start="2.76" dur="4.74">move around our file system and we learn</text><text start="5.04" dur="4.64">how to install a package let&amp;#39;s keep</text><text start="7.5" dur="2.18">going</text><text start="11.72" dur="3.039">[Music]</text><text start="16.26" dur="4.679">okay so we know how to navigate around</text><text start="18.72" dur="4.38">we know how to install software what&amp;#39;s</text><text start="20.939" dur="4.381">next so the next thing that we should</text><text start="23.1" dur="4.74">probably look at is how to find our log</text><text start="25.32" dur="4.68">files in case there&amp;#39;s any issues so</text><text start="27.84" dur="4.559">where are all the logs stored on FreeBSD</text><text start="30" dur="6">well helpfully they&amp;#39;re installed in one</text><text start="32.399" dur="5.581">place right here varlog</text><text start="36" dur="4.68">and there&amp;#39;s one that I usually turn on</text><text start="37.98" dur="4.5">which I find extremely useful so we&amp;#39;ll</text><text start="40.68" dur="4.14">do that now and that&amp;#39;ll allow everything</text><text start="42.48" dur="5.34">to be logged to One log we&amp;#39;re going to</text><text start="44.82" dur="7.5">use my favorite editor which is Pico</text><text start="47.82" dur="6.899">we&amp;#39;re gonna go forward slash Etc</text><text start="52.32" dur="4.559">syslog</text><text start="54.719" dur="4.941">.comf</text><text start="56.879" dur="5.761">and we&amp;#39;re going to find the all</text><text start="59.66" dur="4.899">uncomment that one and as you can see it</text><text start="62.64" dur="5.94">tells you what to do with it as well so</text><text start="64.559" dur="6.361">we&amp;#39;ll go exit out which on Pico is</text><text start="68.58" dur="5.039">control X</text><text start="70.92" dur="4.379">every time so let&amp;#39;s become removed</text><text start="73.619" dur="4.261">because we learned that in the last</text><text start="75.299" dur="7.381">video as well if I remember my password</text><text start="77.88" dur="7.8">doesn&amp;#39;t it and let&amp;#39;s go PTC</text><text start="82.68" dur="3">syslog.conf</text><text start="86.159" dur="2.481">and</text><text start="88.74" dur="2.72">comment</text><text start="91.5" dur="6.36">control X to exit out of Pico</text><text start="95.46" dur="4.68">and then we want to go</text><text start="97.86" dur="4.38">touch</text><text start="100.14" dur="3.839">ah log</text><text start="102.24" dur="4.32">all.log</text><text start="103.979" dur="5.401">as it says there</text><text start="106.56" dur="4.44">and then chmod and I&amp;#39;ll cover CH mod in</text><text start="109.38" dur="4.08">a little while</text><text start="111" dur="5">600</text><text start="113.46" dur="2.54">well</text><text start="118.68" dur="5.88">we&amp;#39;ll need to restart syslog so Etc</text><text start="122.7" dur="3.54">actually let&amp;#39;s do it this way</text><text start="124.56" dur="5.46">this RC</text><text start="126.24" dur="7.2">syslog D I think let&amp;#39;s be just sis</text><text start="130.02" dur="6.12">locked in no I would do it my usual way</text><text start="133.44" dur="7.58">then let&amp;#39;s restart it there we go clear</text><text start="136.14" dur="8.76">all that so now if we go into bar log</text><text start="141.02" dur="6.219">you&amp;#39;ll see the old DOT log there yeah so</text><text start="144.9" dur="5.52">the the first tool that is is really</text><text start="147.239" dur="5.521">helpful for just looking at logs</text><text start="150.42" dur="4.26">there&amp;#39;s one called tail and what that</text><text start="152.76" dur="5.58">basically does is just follow what&amp;#39;s</text><text start="154.68" dur="6">being imported into that log tail minus</text><text start="158.34" dur="4.38">F all dollar there you go and it&amp;#39;s</text><text start="160.68" dur="4.98">showing us what&amp;#39;s going on in that log</text><text start="162.72" dur="5.879">now these ones I believe are from</text><text start="165.66" dur="4.68">messages but that&amp;#39;s fine</text><text start="168.599" dur="3.78">so there we go that&amp;#39;s the next one</text><text start="170.34" dur="4.86">that&amp;#39;s the next command that is is</text><text start="172.379" dur="5.64">really really helpful in just diagnosing</text><text start="175.2" dur="6.3">anything that may or may not go wrong so</text><text start="178.019" dur="5.521">for instance we can tail messages</text><text start="181.5" dur="3.84">there you go loads going on these are</text><text start="183.54" dur="3.54">probably most of the ones that were</text><text start="185.34" dur="3.899">happening on Startup</text><text start="187.08" dur="3.659">there&amp;#39;s a bad Su from when I just put in</text><text start="189.239" dur="4.201">the wrong password</text><text start="190.739" dur="4.321">good stuff so you can diagnose anything</text><text start="193.44" dur="4.079">that&amp;#39;s going on just by looking in the</text><text start="195.06" dur="3.959">in the logs as I said</text><text start="197.519" dur="3.061">just now</text><text start="199.019" dur="4.681">chmod</text><text start="200.58" dur="6.12">so let&amp;#39;s go man ch</text><text start="203.7" dur="5.759">God that will tell you what it is</text><text start="206.7" dur="5.16">the CH mods utility modifies the file</text><text start="209.459" dur="5.521">mode bits of the listed files as</text><text start="211.86" dur="4.68">specified by the mode operate all right</text><text start="214.98" dur="3.78">so</text><text start="216.54" dur="4.44">here we go</text><text start="218.76" dur="6.36">so if I do</text><text start="220.98" dur="6.539">in LL which gives us the CH mode on the</text><text start="225.12" dur="4.979">left don&amp;#39;t worry about trying to to read</text><text start="227.519" dur="3.901">this at the moment because it&amp;#39;s all kind</text><text start="230.099" dur="4.321">of strange</text><text start="231.42" dur="5.34">so if I create a file just just for this</text><text start="234.42" dur="7.319">purpose let&amp;#39;s call it</text><text start="236.76" dur="7.5">test dot text and we&amp;#39;ll open it</text><text start="241.739" dur="4.441">and we&amp;#39;ll just put in one line</text><text start="244.26" dur="3.78">you&amp;#39;ll see it at the bottom there so</text><text start="246.18" dur="5.66">this is basically just created a file</text><text start="248.04" dur="8.099">with standard permissions which is read</text><text start="251.84" dur="7.299">write write for that particular user</text><text start="256.139" dur="4.741">nice and simple and say I want this to</text><text start="259.139" dur="3.601">be read by</text><text start="260.88" dur="3.78">somebody else</text><text start="262.74" dur="6.12">can I do that yeah of course cap</text><text start="264.66" dur="5.88">so I can go CH mod Plus</text><text start="268.86" dur="2.76">read</text><text start="270.54" dur="2.879">oh</text><text start="271.62" dur="4.2">should I do it right now</text><text start="273.419" dur="4.621">there we go</text><text start="275.82" dur="4.319">so if I now do an LL on it</text><text start="278.04" dur="3.9">it&amp;#39;s exactly the same</text><text start="280.139" dur="4.801">because it would be</text><text start="281.94" dur="4.979">and chmod let&amp;#39;s scan through until we</text><text start="284.94" dur="5.22">find what we&amp;#39;re looking for</text><text start="286.919" dur="4.5">so here we go it gives you some options</text><text start="290.16" dur="3.599">there we go</text><text start="291.419" dur="8.161">allow read by others</text><text start="293.759" dur="5.821">so if I do CH Mod 0 0 4</text><text start="302.16" dur="6.08">so if I had come out of there</text><text start="304.919" dur="3.321">so I&amp;#39;m now Gary again</text><text start="313.32" dur="4.74">it&amp;#39;s letting me read it like that so I</text><text start="315.479" dur="4.861">can now read that file like I say CH</text><text start="318.06" dur="3.78">more takes a bit to get your head around</text><text start="320.34" dur="3.24">it so we&amp;#39;re not going to cover it in too</text><text start="321.84" dur="4.62">much detail here but you can look up</text><text start="323.58" dur="5.1">things like a CH mod calculator which</text><text start="326.46" dur="5.28">will tell you how to do things for</text><text start="328.68" dur="4.98">instance here is a CH mod calculator it</text><text start="331.74" dur="4.56">says Linux permissions but it works on</text><text start="333.66" dur="5.22">pretty much any Unix operator system so</text><text start="336.3" dur="4.86">read write and execute for you usually</text><text start="338.88" dur="4.56">you would have group read group and</text><text start="341.16" dur="6">public read so there you go 744 is what</text><text start="343.44" dur="6.56">we want so 744 let&amp;#39;s try that let&amp;#39;s</text><text start="347.16" dur="2.84">become root again</text><text start="350.06" dur="5.859">okay so we want CH mod 744</text><text start="356.4" dur="3.66">List It</text><text start="358.08" dur="3.899">there we go and it has actually done it</text><text start="360.06" dur="3.54">to where we want so it&amp;#39;s read write and</text><text start="361.979" dur="3">executable by</text><text start="363.6" dur="5.099">the owner</text><text start="364.979" dur="5.581">it&amp;#39;s read by the group and it&amp;#39;s read by</text><text start="368.699" dur="4.681">others</text><text start="370.56" dur="8.12">see that how it&amp;#39;s broken down there</text><text start="373.38" dur="8.7">read write executable r w x read read</text><text start="378.68" dur="5.139">ch-mod calculator is very handy if it&amp;#39;s</text><text start="382.08" dur="4.38">a little start there I assuming that&amp;#39;s</text><text start="383.819" dur="7.5">because of the executable let&amp;#39;s see if</text><text start="386.46" dur="4.859">we can change that minus X</text><text start="392.1" dur="4.5">there you go redo it read that&amp;#39;s what we</text><text start="395.28" dur="4.039">wanted</text><text start="396.6" dur="5.46">which interestingly in half is probably</text><text start="399.319" dur="6.961">the standard permission when creating a</text><text start="402.06" dur="4.22">file so find out create another file</text><text start="406.56" dur="4.699">test one txt</text><text start="410.039" dur="4.141">there you go</text><text start="411.259" dur="5.801">so it was already allowing that like I</text><text start="414.18" dur="5.4">said permissions on Unix a funny beast</text><text start="417.06" dur="6.419">but get yourself familiar with a CH mod</text><text start="419.58" dur="5.88">calculator and after a while it&amp;#39;ll be</text><text start="423.479" dur="5.28">second nature to you so for instance</text><text start="425.46" dur="6">read write executable by everybody 777</text><text start="428.759" dur="5.581">so we&amp;#39;ve looked at permissions we&amp;#39;ve</text><text start="431.46" dur="4.32">looked at tailing I&amp;#39;ve found it&amp;#39;s a</text><text start="434.34" dur="3.84">general rule of thumb the two things</text><text start="435.78" dur="4.319">that usually go wrong are always stayed</text><text start="438.18" dur="4.079">in a log and are usually solvable by</text><text start="440.099" dur="4.341">permissions not always the case but</text><text start="442.259" dur="4.981">that&amp;#39;s what I have found so moving along</text><text start="444.44" dur="5.92">what&amp;#39;s next in one of my previous videos</text><text start="447.24" dur="5.1">I&amp;#39;ve covered therc.com and we&amp;#39;ll just</text><text start="450.36" dur="3.6">briefly go over it here because this is</text><text start="452.34" dur="3.9">the file that controls pretty much</text><text start="453.96" dur="3.72">everything about what starts up and what</text><text start="456.24" dur="3.359">services are running on your your</text><text start="457.68" dur="3.48">FreeBSD box so we&amp;#39;ll have a quick look</text><text start="459.599" dur="2.94">at that we won&amp;#39;t go into it in depth</text><text start="461.16" dur="4.2">have a look at the video that I&amp;#39;ve done</text><text start="462.539" dur="5.461">I&amp;#39;ll list it up here somewhere so let&amp;#39;s</text><text start="465.36" dur="4.26">go in ETC and have a quick look these</text><text start="468" dur="4.44">are all the files there these files</text><text start="469.62" dur="4.799">control all pretty much everything there</text><text start="472.44" dur="4.319">are some files that control what goes on</text><text start="474.419" dur="4.881">while it&amp;#39;s booting and we&amp;#39;ll cover them</text><text start="476.759" dur="6.06">another time as well so quick look</text><text start="479.3" dur="5.799">rc.com here we go I&amp;#39;ve got no send mail</text><text start="482.819" dur="4.981">which will be redundant at some point</text><text start="485.099" dur="4.861">when the removal of the send mail</text><text start="487.8" dur="4.86">happens scheduled to happen very soon</text><text start="489.96" dur="5.639">setting up my hostname my keyboard map</text><text start="492.66" dur="4.92">which probably could just be UK setting</text><text start="495.599" dur="4.921">up my network stack on this instance</text><text start="497.58" dur="6.42">it&amp;#39;s DHCP Dynamic host control protocol</text><text start="500.52" dur="7.56">it&amp;#39;s allowing SSH which is secure shell</text><text start="504" dur="8.159">access it&amp;#39;s set up the ntp date lntpd</text><text start="508.08" dur="6.42">enabled dump dib Auto and using ZFS so</text><text start="512.159" dur="4.8">these are the main things that are set</text><text start="514.5" dur="4.86">up in booting or after the initial boot</text><text start="516.959" dur="4.921">phases happened and it&amp;#39;s passed on to</text><text start="519.36" dur="4.5">the operating system so there we go last</text><text start="521.88" dur="4.74">thing to cover in this video would be</text><text start="523.86" dur="6.659">two very basic commands and that would</text><text start="526.62" dur="6.12">be shut down and reboot reboot I hardly</text><text start="530.519" dur="6.061">ever use but what I do use is shut down</text><text start="532.74" dur="7.14">miter saw now so shut down</text><text start="536.58" dur="5.28">is telling the system to shut down the</text><text start="539.88" dur="5.34">minus r tells it that it wants to be</text><text start="541.86" dur="5.52">rebooted and the now tells it when so</text><text start="545.22" dur="4.44">you could actually put a Time on there</text><text start="547.38" dur="3.959">quite simple and reboot will just do a</text><text start="549.66" dur="4.14">reboot straight away so let&amp;#39;s do a quick</text><text start="551.339" dur="5.401">man page on shutdown because there are</text><text start="553.8" dur="6.26">other options for instance H minus H</text><text start="556.74" dur="3.32">which is Colts</text><text start="561.24" dur="6.539">minus P which is power off minus r is a</text><text start="564.779" dur="5.821">reboot and a few other options there we</text><text start="567.779" dur="4.981">go and examples shutdown minus r plus</text><text start="570.6" dur="3.72">the system will be so you can put a</text><text start="572.76" dur="3.42">little message as well so anyone who&amp;#39;s</text><text start="574.32" dur="4.44">logged in they&amp;#39;ll get that message pop</text><text start="576.18" dur="4.02">up and it&amp;#39;ll shut down so for now I</text><text start="578.76" dur="4.56">think we&amp;#39;ll leave it there I&amp;#39;ll just do</text><text start="580.2" dur="5.36">the shutdown as I would do it minus r</text><text start="583.32" dur="4.86">now and it will go</text><text start="585.56" dur="5.14">there you go it&amp;#39;s rebooting thank you</text><text start="588.18" dur="4.86">for coming along and and joining me on</text><text start="590.7" dur="5.4">this uh</text><text start="593.04" dur="4.739">learning FreeBSD course it will start to</text><text start="596.1" dur="3.84">get a little bit more involved now as we</text><text start="597.779" dur="4.5">start to to move along the commands and</text><text start="599.94" dur="5.28">and what we can do I hope you&amp;#39;ve enjoyed</text><text start="602.279" dur="4.861">it I hope you&amp;#39;re learning because I</text><text start="605.22" dur="4.08">certainly am one I&amp;#39;m doing it</text><text start="607.14" dur="4.8">as always don&amp;#39;t forget to give it a</text><text start="609.3" dur="5.039">thumbs up if you like it and subscribe</text><text start="611.94" dur="5.42">don&amp;#39;t have to of course be nice if you</text><text start="614.339" dur="5.521">did this called server link down there</text><text start="617.36" dur="3.82">and as always I&amp;#39;ll see you in the next</text><text start="619.86" dur="3.919">video</text><text start="621.18" dur="2.599">take care</text></transcript>