Change Your Hostname In Linux

This article will tell you how to change your hostname in Linux. It’ll give you a couple of options to use. Both methods are pretty easy, and both are approachable by your Linux newbie. Read on for more information!

If you don’t know what your hostname is, or why you have one, you can take a look at this article. Basically, it’s a handy computer name that you use when you’re using things like SSH or FTP. (The first of those three links would be the best page to learn more about your hostname, but it’s basically just a name for your computer.)

Your hostname is probably something you set during the installation process and seldom thought about again. Unless you’re working with your devices remotely, perhaps with the terminal, it’s not really something that you think about all that often. Well, this article is how about you can change your hostname to something else. 

Why would you want to change it?

Well, you could have duplicated it on another device it by mistake. You may have added more devices and need a new device-naming convention. You may have picked something silly and now want to make it more serious. Your device may be moved to a new network where the name isn’t allowed or already belongs to an existing device. There are any number of reasons why you might want to change your hostname. The key point here being that you can change your hostname.

Onto the article!

Change Your Hostname:

This article, like many, requires an open terminal. You can open the terminal with your keyboard – just press CTRL + ALT + T and your default terminal should open. I’ll start with the easiest of the two ways (that I know) to change your hostname.

Method #1:

The first tool we’ll use to change the hostname is the aptly named ‘hostnamectl’ and to use it, you’d use a command like this:

After that, you’ll need to reboot the system for the changes to take effect. Seeing as you’re already in the terminal, you can actually just reboot the system with this command:

This is the very easy way, and it’s the way I’m going to recommend – even if you’re an advanced user. Alas… There’s another way, albeit a bit more messy, to accomplish this.

Method #2

You can edit ‘/etc/hosts’ and ‘/etc/hostname’, changing the hostname manually. This is also handy if you don’t have hostnamectl as an option. Like above, you’ll need to have a terminal open.

Your first command will be editing the hosts file, and we’ll use ‘nano’ for this. Simply enter the following:

There, you’ll see your hostname (which may also be your username, and often is your username). Just delete that and replace it with your desired new hostname.

When you’re done editing, and seeing as we’re using nano, you can save and exit the editor. Just press CTRL + X, then Y, and then ENTER. (It’s seemingly a little complicated, but not too bad.)

Next, you need to edit the hostname file. The command is similar to the one above, just with a different filename. Enter this:

Find the line that begins with ‘127.0.0.1’ and ends with your current hostname. Erase just the hostname and change it to your desired hostname. To make it more clear, here’s a picture:

change the hostname
Just erase the existing hostname and make it your new hostname. Pretty easy, huh?

Once you’re done with that, just like before, you need to save it. Again, you just press CTRL + X, then Y, and then just hit ENTER. That should save your new hosts file and you’re pretty much done changing your username.

There’s one final step. These changes won’t take effect until after you reboot the system. To change your hostname, you will need to reboot the system after changing these files. That’s usually a painless process and you should be able to use the new hostname after the system is rebooted.

Closure:

Well, it’s another article. If I’m paying enough attention (and if you’re curious about milestones), this marks the 100th article posted on this site. This time, the article tells you how to change your hostname. It’s not something you should have to do often, but these are a couple of ways to change it.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Smash a button!
[Total: 3 Average: 5]

Benchmark Your Linux Box With Geekbench 5

Today’s article will teach you how to benchmark your Linux box with Geekbench 5. It’s a fairly simple exercise, even for a beginner. Parts of the directions for this exercise will change with time, so I hope to make it obvious how you would make said command changes.

What is a benchmark? It’s a measure of your system’s performance. In this case, it tests things like CPU performance, graphics performance, and memory performance. When done, it gives you a handy URL where you can see the results online and share them with your friends.

For example, I have a benchmark result here. That one isn’t as good as it could have been. For example, I had a pile of applications open and hadn’t even been rebooted in about 60 days. See?

Ideally, you’ll run your benchmark with a clean slate. That’ll give you the best results. Be sure to reboot and make sure you’re running as few processes as is reasonable to get the best result.

Why benchmark? Well, it’s good to know how your hardware stacks up. It’s also good for bragging rights, if you’re into that sort of thing. It’s a valuable bit of information if you’re into overclocking. (Overclocking is tweaking at the hardware level to make your system run faster than it is designed for.) It’s a way to measure the performance gains from overclocking.

Well, this article will tell you how to benchmark, using Geekbench 5. It’s not as challenging as one might think!

Benchmark Linux With Geekbench 5:

This article requires an open terminal. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

Once you get your terminal open, run the following commands:

That’s going to download the Geekbench 5 benchmarking software for Linux. However, that URL is going to change because the name of the download is going to change when Geekbench releases new versions.

If it has changed – and it WILL change eventually – you can get the new address by clicking on this link. The name of the file is also going to change the following command. It’s an obvious change that you’ll need to make. The current next command is:

That will extract all the files into their own directory. The directory name will also change. So, for this particular file, the next command is this:

Oddly, I didn’t need to make the “geekbench5” file executable, I just ran it with sudo. It looks like:

Now, you wait…

It shouldn’t take very long, though it may take a while on older computers. It will tell you what it’s checking as it checks it and, when done, it will give you a URL to check your results. It’ll look something like this:

geekbench click to see results
That address is where you’ll be able to see your results. Uploading is mandatory with the free version.

You can pay for a copy of Geekbench 5 and get your results locally, or so I understand. I’ve not actually tried it. The free version uploads the results, which I presume they use to crunch additional data, gauging the computers currently in use. They may even provide said data to others, but I’m sure it’s reasonably anonymous. Their privacy policy is located here.

Closure:

And there you have it. You now have your benchmark results in a handy web-page. You can also register to keep track of your previous benchmarks, even adding new results to your collection as you go. Me? I only bothered benchmarking my test laptop and it turned out better than I had expected.

There are other benchmarking utilities. You can use ‘hardinfo’ for some benchmarks, even comparative benchmarks – but older ones, by reading my hardinfo article. If you do benchmark your systems, feel free to leave some comments here or wherever you find this on social media.

Thanks for reading!

If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Smash a button!
[Total: 4 Average: 5]

Guest Article: Repetitive Stress Injuries (RSIs)

We tech workers (and enthusiasts) tend to spend many hours at our desktops, performing the same physical and mechanical motions over and over again, making us susceptible to Repetitive Stress Injuries (RSIs). That’s what this article is going to be about, oddly enough. It’s a good subject to consider, for all of us.

RSIs are caused by doing the same thing, over and over again. That’s just not good for the body. There are ways to minimize the risk of injury, but the prevalent wisdom includes everything from breaks to ergonomically designed equipment.

According to this recent link, 2/3rds of all workplace injuries are repetitive stress injuries. One quote from the article that rings true is, “Today, the main causes of RSIs are manual labor, office work, and the overuse of computers, leading to injuries localized in the upper body.” (Emphasis mine.) We geeks certainly tend to fall into that category, using computers for much of our awake time, both at work and at home.

I don’t really want to give much in the way of medical advice, so I’ll say that you should spend some time looking up ways to reduce your chances of getting an RSI. They’re a pretty serious risk. To this day, I still have flair-ups in my right wrist. I wear a wrist-wrap but the flair-ups are so bad that even turning a door knob is uncomfortable. Surgery was the recommended solution, but I’ve been chopped open enough.

When I saw someone on Reddit offering to do medical articles, I asked them to write an article about RSIs. The output from that request follows below the links and disclaimer.

This article was provided by the owner, operator, and writer for “Daily Remedy“. The author of this site offers no opinion on the content of the linked site, I’m just happy to have the article about RSIs. Don’t forget that you too can write an article. A special thanks goes out to the author of this article. I hope that you readers enjoy it as much as I do.

Repetitive Stress Injuries (RSIs):

A push of a thumb, a flick of a finger, and a wrangling with a wrist – just some of the many actions we undertake when using the latest gadgets promised to improve our health.

But with the influx of these new gadgets, we enter a brave new world. In which consumer electronic devices are not defined by traditional principles of consumerism, but consumed with healthcare data – often using awkward, inconvenient gadgets to obtain such data.

Device manufacturers tout the importance of healthcare data when marketing the devices. And consumers eagerly acclimate to the lack of ergonomics when purchasing the devices. Simply put, device manufacturers often develop medical devices that are uncomfortable for consumers, who in turn accept such discomfort as acceptable practice for medical devices – all in the name of data.

But when does the discomfort of the device supersede the value of the data? – when the discomfort harms patients while using the device.

Known as repetitive stress injury (RSI), it is a medical condition that affects many office workers throughout the country. Normally ascribed as work-related overuse injuries, ostensibly from desktop computer use – be it the mouse or the keyboard – RSI is often treated with braces or work restrictions as a first line treatment.

But with healthcare growing to encompass a larger part of the economy, and more patients utilizing peripheral monitoring devices at home for chronic diseases, we will soon see a rise in new forms of RSI – coming from the medical device use itself.

In a 2019 study, continuous positive airway pressure devices, known as CPAP machines, used for patients with obstructive sleep apnea (OSA), were evaluated for device design and ergonomics. The study found many of the CPAP devices were poorly designed, incorporated little to no user feedback in device design, and were built using an antiquated engineering-centric focus of device design.

The same study, while attempting to present solutions to the problem of CPAP machine designs, acknowledged particularly unique difficulties in designing an ergonomic CPAP machines – which include engineering hurdles and psychological barriers to effective use.

Clearly there is more to effective device design in healthcare than traditional ergonomic principles. In fact, we should begin to study ergonomics in healthcare as a unique field in its own right, something I propose to call, healthcare ergonomics.

Healthcare ergonomics accounts not only for the engineering barriers that go into medical device design, but also for the psychological barriers patients face when using the device. In other words, healthcare ergonomics accounts for device use from the perspective of a consumer and that of a patient, a veritable dual identity of the end user.

Healthcare ergonomics balances the ease of use with the value of the data gleaned, further complicating device design, since the design itself is not the only consideration, but also the ability to glean the necessary data as well.

Some devices seem to have succeeded. The Apple Watch is an early test case of such success. Consumer Reports analyzing the latest iteration of Apple Watches find the device consistently excellent in various reviews.

Interestingly, the report notes the Apple Watches’ ability to optimize most mundane tasks: “But they do it by performing the routine jobs just a little better than the Series 4; notching top ratings for step counting, heart-rate tracking, and ease of use.”

Apple is known for their prowess in device design, so these reports should come as no surprise. But it is still commendable that a traditionally consumer oriented technology company could adapt to healthcare ergonomics so readily. And their ability to make such a transition should be emulated among other companies considering entering the healthcare space.

But it was not easy. Apple had more than its fair share of missteps – something the company openly acknowledges. The early versions of its heart rate monitoring and EKG (heart rhythm tracing) were wildly inaccurate. But they persisted – both in the device design and in the data gleaned – and for their persistence they are rewarded with first mover status into a healthcare market with spectacular market potential.

Apple balanced device design from the perspective of a patient and a consumer, and they weighed design with data, noting the importance of high fidelity data trends. They engaged in clinical studies with academic medical centers to study their watches. They actively sought direct feedback from early adopters to glean design improvements – in fact, every aspect of the device design centered on healthcare ergonomics.

The contrast in CPAP design and Apple Watches is worth noting for entrepreneurs and executives seeking to enter or to gain market shares in the healthcare consumerism market. To truly succeed in healthcare, you have to understand the complexities of the end user and balance design needs with data quality.

Not an easy task, and likely why few have succeeded. But the roadmap is set, and the opportunity is there for anyone enterprising enough to pursue it – the burgeoning field of healthcare ergonomics.

SOURCES:

https://www.tandfonline.com/doi/pdf/10.1080/14606925.2019.1595446
https://www.consumerreports.org/smartwatches/final-test-results-apple-watch-series-5/

Closure:

There you have it, another article in the books. This time, it was a guest article. I picked the subject because it’s important, especially for us, to be mindful of our health. As a group, we’re not the most healthy of people, and adding an RSI to the list of our ailments isn’t a good idea. Trust me, you don’t want carpal tunnel.

So, take care of yourself. Read up on your devices and learn how to use them safely. Read up on best-practices so that you can try to minimize your risks. Even if you feel good now, that doesn’t mean you will always feel good and healthy.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Last Updated on October 24, 2021 by KGIII

Smash a button!
[Total: 8 Average: 4.9]

Let’s Install Ubuntu Restricted Extras

If you’re using Ubuntu and want to use some patent/license encumbered features, such as playback for certain media formats, you need to install Ubuntu Restricted Extras. This is fairly normal and is done because the software licenses prevent Ubuntu from releasing the distro with that software. In some cases, you also will need to agree to different user-agreements. This is unlike most other software you will use on Linux, as software should never ask you to agree to anything.

Because of the license Ubuntu is released under, and according to their legal council, they just don’t include these sort of things by default and you’ll need to install them later, on your own. On the other hand, if you don’t need to use patent-encumbered files, then you don’t need to install the ‘ubuntu-restricted-extras’ metapackage at all.

This shouldn’t be a very long article, though I’ll break it up a bit. If you’re new to Ubuntu (or an official Ubuntu flavor) then you might as well install the restricted extras. If you are morally opposed to software patents, restrictive software licenses, or binary blobs then you may wish to avoid installing it.

About Ubuntu Restricted Extras:

When you install the ubuntu-restricted-extras, you’re actually installing a metapackage. It’s one package but installing it will install multiple packages, all relatively related by license restrictions. In this case, they’re packages that wouldn’t be installed by default and may help with your computing experience. They’re not all multimedia codecs, but most of them are.

So, what’s in the metapackage? As I said, it’s a package with multiple things in it that will also download along the way. These are the contents of ubuntu-restricted-extras:

gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
gstreamer0.10-pitfdll
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-ugly-multiverse
icedtea6-plugin
libavcodec-extra-52
libmp4v2-0
ttf-mscorefonts-installer
unrar

As you can see, it’s some fonts, a bunch of codecs (so that you can play patent-encumbered media files), software that lets you open .rar compressed files, and use Java applets in the browser. It’s some pretty handy stuff, but because it’s all non-free/non-FLOSS Ubuntu doesn’t include it by default.

Install Ubuntu Restricted Extras:

For starters, you won’t even find the ‘ubuntu-restricted-extras’ unless you enable the ‘multiverse’ repository. An easy way to do so is to open the terminal (press CTRL + ALT + T) and enter the following:

Next, you need to make sure that your system knows about the new software choices. It might do this automatically, after adding the repository above, but it can be manually done with this:

With that done, you install the Ubuntu Restricted Extras with:

That downloads a bunch of stuff and shows a screen that trips up a lot of newer users. There’s no obvious way to use a mouse and, indeed, you have to use your keyboard to agree to the user agreement. Like this:

accept the eula
Yes, you have to agree to proceed. It’s pretty easy, but it is also mandatory.

You can use your TAB (or arrows) key to make selections and use the ENTER button to submit your answers. The same on the next screen.

more eula
Use the tab or the arrow keys and the enter to agree. You got this!

That one will download some files with fonts in them, so that it can extract them to the right directories – just so that you can use them. These things are free as in beer, but not free as in libre.

Closure:

There it is, another article in the books and this one is about installing Ubuntu Restricted Extras. Most folks do this so that they can play encumbered media files, and I have no issues with doing so. If your morality doesn’t let you watch encumbered media, then there’s really no reason for you to care about any of this.

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

Smash a button!
[Total: 9 Average: 5]
Linux Tips
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
Zoom to top!