{"id":390,"date":"2020-08-26T09:21:00","date_gmt":"2020-08-26T14:21:00","guid":{"rendered":"https:\/\/ayling.tech\/blog\/?p=390"},"modified":"2020-08-22T09:25:42","modified_gmt":"2020-08-22T14:25:42","slug":"linux-installing-using-apt","status":"publish","type":"post","link":"https:\/\/shortbooks.online\/blog\/2020\/linux-installing-using-apt\/","title":{"rendered":"Linux: Installing using apt"},"content":{"rendered":"\n<p>If you are using Linux and are relatively new to it, you might have come across kind and helpful people telling you to type a command like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install fancontrol<\/code><\/pre>\n\n\n\n<p>Or something similar. Though this is really helpful, I sometimes worry that people do not know what the command does, and so they do not really learn how to use these features generally. They just learn how to resolve this very specific problem.<\/p>\n\n\n\n<p>So here&#8217;s a little bit of information about the command above, and ones like it.<\/p>\n\n\n\n<p>First, I am looking to resolve a problem with my fan continually running on my PC when I boot Linux. When I boot Windows, the PC is silent unless it&#8217;s doing something taxing, but on Ubuntu Linux, it whirs continually.<\/p>\n\n\n\n<p>I happen to know that there are two programs available named lm-sensors and fancontrol. You can find these programs in Terminal by typing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt search fan<\/code><\/pre>\n\n\n\n<p>This command searches the &#8220;Advanced Package Tool&#8221; (apt) for the word &#8220;fan&#8221;. The list is quite long, but amongst those packages are fancontrol and lm-sensors. We can install those using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install lm-sensors\nsudo apt install fancontrol<\/code><\/pre>\n\n\n\n<p>sudo is short for &#8220;Super User Do&#8221; &#8211; do this as if you are an administrator.<br>apt is what we are super-user-doing.<br>install is a command within apt that installs the package.<br>lm-sensors and fancontrol are the names of the packages.<\/p>\n\n\n\n<p>But how did I know this? Just type &#8220;apt&#8221; in Terminal and it will give you a list of its commands. It even gives a nice summary of the command:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>apt is a commandline package manager and provides commands for searching and managing as well as querying information about packages. It provides the same functionality as the specialized APT tools, like apt-get and apt-cache, but enables options more suitable for<br>interactive use by default.<\/p><\/blockquote>\n\n\n\n<p>More fun can be had using apt-get, whose name should tell you all you need to know.<\/p>\n\n\n\n<p>The fancontrol and lm-sensors programs I installed can be configured to check the temperature of your CPU and other components, and to control the fan so that it&#8217;s not too noisy if it does not need to be.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Linux and are relatively new to it, you might have come across kind and helpful people telling you to type a command like: Or something similar. Though this is really helpful, I sometimes worry that people do not know what the command does, and so they do not really learn how to use these features generally. They just learn how to resolve this very specific problem. So here&#8217;s a little bit of information about the command&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/shortbooks.online\/blog\/2020\/linux-installing-using-apt\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[14],"tags":[133,132,135],"class_list":["post-390","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","tag-apt","tag-linux","tag-ubuntu"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/posts\/390","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/comments?post=390"}],"version-history":[{"count":0,"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/posts\/390\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/media\/392"}],"wp:attachment":[{"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shortbooks.online\/blog\/wp-json\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}