How To: Check CPU Temperatures

This is obviously about Linux and, given that it’s Linux, there are often multiple ways to accomplish things. This is one way to check the CPU temperatures.

This one should be fairly short and straightforward. Once again, crack open your favorite terminal emulator with CTRL + ALT + T.

For this exercise, we’ll be using lm-sensors. Wikipedia helpfully describes it as thus:

lm_sensors (Linux-monitoring sensors) is a free open-source software-tool for Linux that provides tools and drivers for monitoring temperatures, voltage, humidity, and fans. It can also detect chassis intrusions.

It then promptly says that a citation is needed. 

So, let’s check the man page. man lm-sensors has no entry, so you’ll need the slightly less obvious man sensors. In this case, the description is not much greater.

sensors is used to show the current readings of all sensor chips. sensors -s is used to set all limits as specified in the configuration file. sensors –bus-list is used to generate bus statements suitable for the configuration file.

Alright, so let’s get this installed. 

So far so good, but now we need sensors to find the hardware and that’s done with this:

That’s going to run and it’s interactive. You’ll need to type “YES” over and over again and then finally hit the ENTER button. But, once you’re done, it’s all over and you never have to do it again – unless you add/change hardware that has sensors.

Now that it’s installed, you can just run:

If you are easily startled by the metric system, you can just add the -f switch for Fahrenheit, like so:

 

Congratulations! You can now easily tell how hot (or cold) your CPU is running. You should also look up your CPU’s temperature thresholds. This way you’ll be able to tell if your CPU is running hotter than it should be running. Doing this can save your hardware or give it greater longevity.

The newsletter works again. You can now sign up and get notified of new articles. It’s painless, and I promise I won’t send you any spam –  nor give/trade your email address with anyone for any purpose. (Frankly, I have zero motivation to do so.) If you had signed up previously, you’ll need to do it again, for I am lazy and there was no export and import options. Thanks for reading! (Also, I hope you like the font change!)

Smash a Button
[Total: 0 Average: 0]
About Me: I'm just some retired dude with a little bit more free time on my hands. If you want to support the site, why not help yourself out too by ordering some inexpensive web hosting so that you can start your own site?


Realtek RTL8192EU and Linux: It works!

Probably because I was scouring AskUbuntu and reading a number of complaints about getting their wireless device working, I decided to see exactly how difficult it was.

I have a computer that I use for testing and I mostly access it by VNC. It has an unused wireless dongle and I figured now was a good time to see if I can make it work. 

The first step was to turn it on. Believe it or not, it worked. It had a very, very weak signal even though it’s within a few feet of the router. So, I cracked open my terminal and entered:

[code]]czoxMDpcImlueGkgLUZjIDBcIjt7WyYqJl19[[/code]

Sure enough, I found this:

[code]]czo2MjpcIkRldmljZS0yOiBSZWFsdGVrIFJUTDgxOTJFVSA4MDIuMTFiL2cvbiBXTEFOIEFkYXB0ZXIgdHlwZTogVVNCXCI7e1smKiZdfQ==[[/code]

So, I turned to a search engine and entered:

Realtek RTL8192EU +Linux driver

I scanned the results and noticed that there was fairly recent (mid-2018) GitHub page here. So, I headed there to read what the author had to say.

Rather than playing around, I made sure I’d followed their directions:

[code]]czo2NjpcInN1ZG8gYXB0IC15IGluc3RhbGwgbGludXgtaGVhZGVycy1nZW5lcmljIGJ1aWxkLWVzc2VudGlhbCBka21zIGdpdFwiO3tbJiomXX0=[[/code]

Except that’s not necessarily going to work, so I simply removed the -y.

[code]]czo2MzpcInN1ZG8gYXB0IGluc3RhbGwgbGludXgtaGVhZGVycy1nZW5lcmljIGJ1aWxkLWVzc2VudGlhbCBka21zIGdpdFwiO3tbJiomXX0=[[/code]

There. That’ll work. I mashed the enter button, entered my password, and I downloaded the .zip file from the top of the page while it installed. I didn’t really see any need to build it myself, nor did I want the git hurdles (even though I’d just installed it). So, I just downloaded it to /Downloads and then extracted it into its own folder.

Once that was all done, I entered the newly created directory and ran:

[code]]czoyMjpcInN1ZG8gLi9pbnN0YWxsX3dpZmkuc2hcIjt7WyYqJl19[[/code]

The sudo elevates my permission, the ./ tells it that I want the file in the directory I’m in, and the install_wifi.sh is the name of the script that will install the drivers automatically. It will take a few minutes, even on modern hardware, but it’s not a difficult task. If anything, it’s straightforward and intuitive.

I followed that up with a reboot and, sure enough, I was then able to use the driver and my signal strength was significantly higher. That’t it. That’s all it took. Does it seem hard? Probably. Once you’ve done it a few times, you’ll be used to it. Working in the terminal is one of the greatest things you can do with Linux. There’s no reason to be afraid of it. Just know what the commands are going to do before you go ahead and do them.

Smash a Button
[Total: 1 Average: 5]
About Me: I'm just some retired dude with a little bit more free time on my hands. If you want to support the site, why not help yourself out too by ordering some inexpensive web hosting so that you can start your own site?