Weather In The Terminal? We can do that!

Weather in the terminal? There are people who pretty much live in the terminal! They do everything there, including checking the weather! This article will show you how to get your local forecast in your terminal, because why not?

Where I live, they have a saying, “If you don’t like the weather, wait a minute.” The weather is constantly changing and is responsible for killing quite a few people every year. We have some pretty extreme weather. Because of this, I pay fairly close attention to it – but, really, I don’t tend to check it in the terminal. I use a more robust solution. This article is for those folks who want to. You’re welcome!

First, a little poem:

Whether the weather be fine, or whether the weather be not,
Whether the weather be cold, or whether the weather be hot,
We’ll weather the weather, whatever the weather,
Whether we like it or not.  — anonymous

See? Who says we’re uncultured here?

Anyhow, this is just going to be a pretty brief article. It’s pretty simple to check and it requires just your terminal and a tool called ‘cURL‘ (which has been covered already, so click that link to save some time). If it turns out to be something you like, you can always alias it for regular use or just commit the short commands to memory.

Weather In The Terminal:

Seeing as this is ‘weather in the terminal’ we should probably start with opening the terminal! That’s easy enough, just press CTRL + ALT + T and your default terminal will open.

Once you have it open, you’ll be using a website known as WTTR.IN. You can actually just click that link and get the weather in your browser. It should be your local-ish weather, unless you’re using a VPN. The site is using IP Address Geolocation to show your local weather and a VPN presents a different IP address, meaning it may not actually be your local weather. The same is obviously true in the terminal.

Start with just a basic example, try:

That should be ‘close enough’, depending on where you live and how accurate the geolocation is. If it’s not, you can add some information – such as town and state (or province, or whatever your country uses). It’d look something like:

The output from that command would look a little something like this:

weather forecast in the terminal
See? It even knows I’m in the USA, so it uses the correct units. Neat, huh?

You can even use some landmarks and it will try to figure it out. For instance, you can check the output from this command:

If you’re in the US, then it will show you the results in our goofy units – even if metric is used at the location. Well, it will try to – within the limitations of geolocation. If you want to change it up, you use a ‘u’ or an ‘m’. To force the above with metric units, you enter:

Anyhow, there’s so much more that you can do. Frankly, the above are all I really use it for – and I seldom bother with that. Living where I do, I get my weather in a browser and with a browser extension. So, be sure to use the following to learn more:

You can also just visit https://wttr.in/:help to get that same information in your browser. It’s up to you, but you’re already in the terminal so you might as well keep using it!

Additional info: GitHub repo is located here.

Closure:

And there you have it. Another article is in the books, this one showing you how to use your terminal to check the forecast and current conditions. There are a ton of options that I didn’t bother covering, but options that you may find useful. Be sure to check the help page and keep up with the project on GitHub.

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]

I’ll Try To Answer The Question, “Should I Use Linux?”

Should you use Linux? That is the question! In fact, it’s an important question and one that I’ve wanted to try to answer for a while. I use Linux, after all, so shouldn’t you? The conclusion might surprise you. No, really, it might. I don’t want it to seem like clickbait – but read on!

As I sit here watching the 2020 (technically 2021) Olympics in Tokyo, I’m reminded of a few things. First among those things is that I’m not really all that into sports, and secondly that sports make good analogies. As I watch the Olympics, I’m seeing some similarities.

On one end, you have the casual fan – the person watching on television simply because it’s moving pictures and sound. They recognize most of the sports and maybe even know some of the rules to some of the events. They might know that hands get limited use in soccer, but have no idea how to score gymnastic’s floor events.

On the other end, you have the people standing on the podiums at the end of events because they’ve devoted their entire lives to mastering the skills required to get them there. They are the absolute greatest players at the time and worked their asses off to get there. They’ve devoted their lives to getting on the podium.

Between all this, there’s a huge spectrum. There are those who are fans of a single event, maybe having competed themselves at a much lower level. There are the fans that also head weekly to the Rec. Center to play pick-up games, organized tournaments, regional tournaments, or even compete at the national level without any chance of ending up at the Olympics – and they’re okay with that.

Sports? WTF?

To put that into Linux-terms, on one end you have the person that’s tinkered with Linux in a virtual machine or a live install, having never converted to Linux entirely. And, on the opposing end of the spectrum, you have the person that devotes 40+ hours maintaining the kernel. (If you’re new to Linux, trust me when I say that’s a very important job.)

It works for the opensource software as well. On one end, you have the person who uses LibreOffice once or twice a month. In the middle you have the person who has set up their small company with LibreOffice being the integrated suite of choice. At the other end, you have the developer’s spending 8 hours a day trying to fix bugs while trying to add new features.

Just like the Olympics, there are tons of ‘events’ in Linux. Each event can be a single piece of software or software that performs a specific function. You can be a fan of that single piece of software – and a fan completely along the spectrum, from a casual fan to someone that spends considerable time making that software better.

It’s entirely up to you to determine where you want to be on the spectrum. Just like the Olympics, it’s very much a meritocracy. The system rewards ability. Those that have the ability and desire make it at the top – maybe even turning it into a paid gig. Also true, is that if you lack the ability, you need only show some initiative and you’ll find people willing to ‘coach’ you.

If you want to learn how to triage bugs, program, or answer support questions for your favorite project, someone will help you learn to do those things – just like coaches. How much effort and time you put into it are going to be the strongest indicators of how far you can go. Keep at it long enough, and if it’s your objective, you too can help maintain the kernel. You too can help influence the directions your favorite distro moves.

On top of all that, you can start your own sport (write your own software) and, if enough people like it and it does the job better than other applications, you too can end up at the top – like the IOC deciding to add new events to the games. The last time I paid any attention to the games, skateboarding was not an event. These days there are numerous skateboarding events. In this case, skateboarding got popular and was recognized as taking skill to perform at the highest levels. So too goes software.

If you are enjoying this article, you might also like to click and learn which distro is the best distro. It’s similar writing to this.

Decide To Use Linux:

So, what does the above have to do with helping you decide if you should use Linux?

Well, for starters, nobody is competing in the 1500 meter swimming events because they hate Microsoft. They’re competing at the Olympics because they’re passionate about their sport, not because they dislike the business practices of Apple. They’re competing because they’re passionate about their event.

You shouldn’t use Linux because you dislike something, you should use Linux because it works. You should use Linux because it suits your needs, because it fills a role in your life as a tool, or you should use Linux because you’re passionate about the things it provides, be it a service or a liberty.

When you decide to use Linux, you should also start figuring out how far you want to take it. Do you care enough to try to make it to the top, or do you just want to be an end user? Do you want to help make Linux (or an application) better for people, or do you just want to use applications to get your work done?

Use Linux because you’re intellectually curious, or because you value the freedoms it provides. Use Linux because you want to reach the top of the mountain, not because you want someone to guide you there. Make the choice to use Linux not because dislike Windows, but because you like Linux. Decide to commit to a life of learning, and switch to Linux.

Maybe Don’t Use Linux:

We see it time and time again. Someone decides to use Linux because they ‘hate’ Microsoft. In the greatest computer irony ever, they revert to using Windows because Linux didn’t act like Windows and they didn’t want to put in the effort to learn. They do not end up as Linux users. Linux isn’t for everyone, and that’s okay. Neither is table tennis or competing in a triathlon. 

If you’re unwilling to put the effort into understanding the game, it’s probably not going to be all that interesting to watch it. When you don’t put in the effort to learn to make Linux work, it doesn’t mean that Linux sucks. It means you just didn’t put in the effort to learn.

Linux has gotten easier. For the most part, it just works. But, no… No, it’s not for everyone. Not everyone should use Linux. There won’t ever be a “Year of Linux on the Desktop” because of so many reasons – chief among them is because Linux isn’t for everyone. Not everyone wants to reinvest the time they spent learning one operating system into learning a new operating system. Not everyone can reinvest that time.

Over the years, I’ve seen thousands of people claim they were going to switch to Linux. Those that say they’re going to do so because they hate something are less likely to stick around than those who say they’re switching because they like something about Linux. The ones that post first posts about how they’re intellectually drawn to learning how it works are the ones that are still there five years down the road, often helping new people learn the ropes.

The others run into a hurdle and try to solve it like it’d be solved in Windows. When that doesn’t work, they give up. They’ll keep trying it the Windows way and keep getting frustrated. At best, you can spoon feed them commands for a few months before they disappear from the support forums forever.

Instead of trying to make it to the Olympics, they give up when they realize it takes practice and dedication. At the first big stumbling block, they quit. For reasons of their own, they don’t dedicate the time to learn to use Linux. They don’t even make it to the point of being a casual fan.

Who Should Use Linux:

You should use Linux if you’re willing to put the effort in to reach your Linux goals. Your goal doesn’t have to be becoming a kernel maintainer. Your goal may just be becoming a bog-standard end-user with a stable system. Both are fine goals and the latter requires much less effort. Both require effort, however.

If you are willing to put the effort in, then use Linux. When you’re curious about how your computer works, want to customize your experience, or appreciate the things Linux brings to the table, then use Linux! When you want the freedom offered with FOSS, jump on the Linux bandwagon. If you have a goal and you can use Linux to reach that goal, do it!

Again, use Linux because you’re passionate about it – or at least willing to put the effort in to learn how to use it. You need to be willing to read help pages. Searching for help is one of the greatest Linux skills you can learn – search engines are a great help. But, use Linux because you want to learn something different, not because you hate something else. You have to be willing to learn! If you do not learn, you will not succeed.

Even at the most basic level of Linux, it requires a willingness to learn – and to “unlearn” what you learned with your previous computer experience. The person who should be using Linux is the kind of person that values knowledge and understanding. You should be the kind of person that expects the best from yourself and the kind of person willing to put the time in to be exactly that. 

In other words, you should be somewhere along the spectrum that is the Olympics. From dedicated fan to standing on the podium with a medal on your chest, there’s room for all. You don’t have to aim for gold – you can just aim for understanding how the game works. Aiming to be a kernel developer isn’t a requirement, but a willingness to learn how the kernel works will help you truly appreciate and use Linux.

Closure:

I’ve been wanting to write this for a while, but couldn’t ever think of a way to start it, nor could I think of a way that’d not be too preachy. I realize this still comes off as a bit elitist, but pretty much anyone can learn to use Linux well enough to be an end user. It’s not that hard and it only requires a little bit of effort. At the same time, for those that want to put the effort in, the sky is the limit and the proverbial podium awaits.

I kinda like the essay format, but I worry that it is too long for people to read. There are some potential multi-part articles that I’d like to challenge. My goal has been short bites of data that help you become a more proficient Linux user, or something like that. However, there’s room for more than that and the readership varies in preferences. We shall see what happens.

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: 5 Average: 5]

Make Ubuntu Provide Feedback (Asterisks) When Typing Passwords In The Terminal

By default, Ubuntu doesn’t show anything when you type passwords in the terminal. They made this decision for security reasons. Shoulder-surfing is a thing. People looking over your shoulder could see how many characters you entered, thus narrowing down the number of possible passwords.

This article will show you how to show asterisks on the screen, as some folks prefer, when you enter your passwords in the terminal. This tip is actually rather easy and shouldn’t take very long. It’s not even all that advanced, and it can be undertaken by most anyone. You should at least understand the implications before changing the behavior.

Frankly, it’s a perfectly acceptable choice to not show anything when typing sensitive material, but others prefer to have some feedback. It makes it easier for slower typing people to keep track of where they are, for example. On top of that, there are many situations where you really don’t have to worry a whole lot about people shoulder surfing.

When you’re using a computer that’s never going to be out in public, it’s probably not much of an issue if you show asterisks. If it’s a laptop that you use in coffee shops and you’re security conscious, you may want to leave it the way it is. You have a choice. You can leave it the way it is, or you can go ahead and change it. Linux is pretty awesome like that. You get to make the decisions!

Passwords With Asterisk Feedback:

First, let’s crack open the terminal. Press CTRL + ALT + T and your default terminal should open so we can edit the sudoers file. It’s done like this:

Enter your password and hit enter, of course. (Mark it on the calendar! This should be the last time you enter your password in the terminal without some visual feedback!)

Use the down arrow until you’re at the start of the line that says:

Press the ENTER button. This should move that line down and leave a blank line above it. Use the arrow button to move up to that blank line and enter:

Note: This spacing isn’t technically required. It is done for convention and to aid in ease of reading/processing information-dense more accurately and swiftly. You can also probably put the new line anywhere in that file. For some reason, that’s how I have it in my notes.

When you’re done, you will then need to save the file. As this is nano, press CTRL + X, then Y, and then ENTER.

That’s it. That’s everything. You will probably need to close and reopen all of your terminals to notice the difference. Then you can test it by opening a new terminal window and tying in:

Type your password when prompted and you’ll hopefully see some asterisks as feedback. It should look a little like this:

password with asterisk feedback in the terminal
See? Asterisks for passwords feedback in the terminal.

As mentioned above, Ubuntu made this change for security reasons. If you change this, you’re making it so that people can see how many characters you typed when you entered your password. Of course, they can also count how many times you pressed a key on your keyboard. Just be aware of it and decide for yourself.

Closure:

And there you have it, another article published. This one is about the passwords you type and if they’ll give you any feedback by appearing as asterisks on the screen. It’s a decision that you get to make, and the security implications are real – but not universal. You may prefer asterisks when typing your passwords, or you may prefer the defaults.

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: 4.9]

TeamViewer; My Most-Recent Favorite Alternative To VNC.

Today’s article is going to be about my latest favorite VNC alternative, TeamViewer. It’s a surprisingly handy application that just works. Read on to learn more about it!

I’m a pretty big fan of VNC (Virtual Network Computing, from RealVNC). Actually, it’d be a bit more accurate to say that I’m a pretty big fan of remotely managing devices. Among the ways I do this, VNC is a nice way to do so graphically.

Basically, remote administration software such as this forwards the remote desktop to a window on my local desktop and allows me the control as though I was physically seated at the device. I have quite a few devices, and remotely manage the majority of them. I have computers in my house that I seldom physically use, I manage them all remotely. 

SSH is often adequate for anything I want to do, but not always. I can even forward SSH but not all applications work well with that. Sometimes I just want a GUI, as some things are best done in a GUI.

Besides, TeamViewer is free for personal use, and I like TeamViewer because it just works, even over the world wide web without knowing an IP address. I can use it to help friends and relatives by just talking to them long enough to get started.

Frankly, VNC can be a pain in the butt to configure and my favorite VNC client (RealVNC) is proprietary. So, using the proprietary TeamViewer doesn’t bother me. 

If you insist on opensource, this isn’t the tool for you. If you want something that is easy and just works, read on:

Getting and Using TeamViewer:

I’ll explain how to install it with Debian/Ubuntu/etc, but you can easily install TeamViewer for other Linux package management systems. Start by opening your terminal by pressing CTRL + ALT + T.

Once open, let’s grab the latest .deb with wget and install it. If you don’t have wget installed, you can do that with sudo apt install wget and then proceed with:

Copy and paste all three of those lines individually, of course. Press ENTER after each one. The last command should complete the process and would normally be the last step but this is proprietary software so you’ll need to run TeamViewer at least once in order to accept the license agreement. You can just do that in the terminal with:

That should pop up a window where can accept the license and keep on trucking.

Now, you’ll have to install TeamViewer on each device you want to manage and it’ll need to be installed on any device you wish to use to control the rest. Just be careful and read the prompts. It installs and works like a champ.

You’ll need to configure it on each device as well, allowing remote connections and setting up passwords as needed. It can check a centralized server, so the host doesn’t need to know things like ports and passwords.

It’s easily configured the first time, and once you’re done it a remote connection will hopefully look a bit like this:

TeamViewer in action.
This is what a connection might look like. It’s what mine looks like at this minute in time.

You can use this as a single instance or you can configure an account online with the management console to keep track of all your connections from a single point. You’ll spend a confusing amount of time making your browsers and devices ‘trusted’ status. All of this, of course, has obvious privacy implications.

Privacy & Security Concerns:

Again, they’re absolutely going to track your usage. They’ll know your IP addresses and the names of the devices you’re connecting to. They will know when you connect, how long you stay connected, and more. On top of that, they’ll know your email address, if you give it to them.

Having used them for a while, I see no spam from them and they’ve been nothing but acceptably and professionally behaved from my perspective. I don’t even get any regular newsletter emails from them. I think it’s safe to assume they’re currently not doing so. They do a whole lot of email verification steps if you want to trust devices.

Being proprietary, we have no idea what the source code looks like. We have no way to be sure that they’re not being malicious. They’re a business and they’d do poorly if it turned out they were malicious and using this information for spying or anything of that nature. 

If you’re running from an oppressive government, I’d probably not use them. They’re a business and that means they’re likely to respond to lawful requests – and laws around the globe can be pretty terrible.

In fact, if you’re doing anything that’s even remotely secure, I’d suggest not doing so over TeamViewer. Sure, when the application is terminated you can verify that it’s down, but at the same time don’t connect to your remote device to do your banking. That’d just be silly regardless.

As I stated above, I’m quite okay with the potential privacy and security implications. I don’t use Linux because of any philosophical reasons, I use Linux because it just works. If you’re different and object in some way, you should probably just move on and use alternative software to remotely manage your devices.

Closure:

And there you have it! It’s yet another article in the books, another article in the records. Traffic has been high lately, and that’s great. Things are growing in a linear feature and I’m okay with that. Even my Reddit sub is growing – at 50 viewers, up from just a few when I first took the sub over. So, things are going great.

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: 6 Average: 5]

How To: Properly Delete a User’s Account

Today’s article will show you how to properly delete a user’s account. It’s a pretty basic task and an astute observer would note that I’ve not yet written an article about creating user accounts. I may have to write said article at some point, because why not? This promises to be a pretty easy and brief article!

When you install some software, it may add a user. When you remove that software, it may just leave that user behind. You may have multiple people using your devices, or you may be working in a corporate environment. Either way, there comes a time when you may want to clean house and delete user accounts that are no longer necessary.

It can be just a little tricky to properly delete a user’s account, so I figure it’s something worth covering. The tool we’ll be using is ‘userdel‘ and my checking indicates it’s universal. Let’s get to it!

Delete A User:

I’m gonna assume that you already know the name of the user you’d like to remove from your system. With that information in hand, let’s open the terminal by pressing CTRL + ALT + T on your keyboard. 

Once you have the terminal open, you can do a basic user delete with:

If the user has a /home/user directory, you can delete that at the same time with this:

Seems nice and easy, right? Well, before you should run any of those commands you should be sure that the user is both not logged in and has no processes running in their name. If you do have either of those things, you will want to run this command before running either of the userdel commands above:

You can also try the -f (force) option with the userdel, but I’ve never had good luck with that. So, your better using killall before you use userdel. If you’d like to try it, here it is:

And that’s actually everything. There’s likely to also be a graphical way to delete users and that’ll depend on your desktop environment. Rather than play around with learning and documenting all those, you can just do it in the terminal where it’s easy enough and equally effective.

Closure:

And now you know how to delete a user account, and how to do it properly. Indeed, this is another article in the books and hopefully this one will help people for years to come. It’s a good idea to not have pointless users around on your system. If they exist, they can be used.

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: 2 Average: 5]
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
Zoom to top!