Linux can access internet

How to Solve Internet Problems on Linux

You probably heard from many Linux users on how great the Linux operating system is. How it gives you freedom and lets you do stuff that you’d never even dream on doing on windows. After finally deciding to change platforms. You install a Linux distro. At this point, your expectations are very high, and these expectations come plummeting down the hill, just like the last season of Game of Thrones, when you first start to use it.

Especially when you are new to Linux, things can get quite frustrating if you are not yet comfortable in the Linux environment. How you install software and apps, how you navigate is all different from Windows or MacOS. The most frustrating problems can be internet connectivity problems. In this guide, I will be addressing such common issues. This will help you when you have internet connectivity problems on Linux and just want to get online quicky.

Ubuntu distro:

Linux has a wide range of distros, and it can be a little frustrating to decide which distro to choose. I will be using Ubuntu 18.4 LTS version as it’s by far the most popular and most used distro. Terminal commands may vary for various distros, so in case if a specific command doesn’t work, make sure it’s the correct command for your distro. To check what version of Linux you are on, type the following command in the terminal.

The above command will display the following screen

Some little pre-checks:

Before we move forward with our diagnosis, make sure your network isn’t the one with the problem, i.e., make sure your network has internet access. If you are connected through a cable, make sure the cable is connected correctly. Laptops have keys that turn wifi on and off. Make sure your wifi is turned on. You can also turn wifi on from Linux settings, as explained in the next part.

No Internet Connection

Most of the time, the wifi switch is turned off, and as a result, no internet connection as displayed. To fix this, go to settings, for this click on the down arrow next to the battery icon on the top right of your screen. In the dropdown, click on the screwdriver icon next to the button with a lock icon.

Читайте также:  Add debian repo to astra linux

In the wifi tab, make sure you turn on the wifi switch. Also, make sure the airplane mode is turned off.

If your Linux still isn’t catching wifi signals, make sure your interfaces are up and running. To check whether your interfaces are up, type the following command in terminal

Now you will see the following screen.

In the above figure in the enp0s3 section, you should find “LOWER_UP.” This means your interface is up

Next, you’d want to check your IP and make sure its configured. For this type the following command in the Linux terminal

Your terminal will look like this.

Your ip will be displayed after “innet.” If this is not the case, your IP is not correctly configured.

Check your Drivers

In most cases, the network drivers are not installed or not correctly installed, or your drivers are not up to date. If your hardware is working correctly, this might be the case. Click on the shell button in the right bottom and type “software and updates” in the search bar. Open the software and update the app.

Go to the “Additional Drivers” tab. At this point, either connect an external device like a USB having the setup of the required network drivers or connect your Linux with the internet via Ethernet so that Linux can search the required drivers from the internet or your device. The available drivers will be shown here. Install the appropriate drivers from here. If no drivers are displayed here, this means no drivers are available on Linux for your hardware. In other words, Linux doesn’t support your equipment. But this is an extreme case, and it rarely happens. To check more information about your hardware, and what chipset do you have, type the following command in the terminal

Following will be the output

As my system is currently connected via Ethernet, Linux shows what ethernet hardware do I have. This is a useful command as it gives you all the information on once screen. You can google your chipset name and add the word Linux in front, doing this will show you whether Linux supports your particular hardware or not.

Читайте также:  Специальный файл устройства linux

Some Diagnosing Tools

Linux includes some commands that can help you with the diagnosis of your Internet problem. One such command is following

What this will do is that it will make five connections with the site mentioned after the c5 part, google.com in this case, and will show the details like ping and packet loss of that connection each time. The 5 in “c5.” Part indicates the specifies of times Linux makes the connection with that site. In the end, it also gives you a summary of all the connections, the minimum time, the maximum time, and the average.

With the help of this command, you can determine whether the problem is with your laptop or the site that you’re trying to access or with your Internet Service Provider.

Conclusion

Most of the connectivity problems are just because of wifi switch turned off, or sometimes the airplane mode is on. Here I have mentioned some solutions that you can go through, and hopefully, your problem will be solved. The most important part of this is that you update your drivers as that is the second most common reason that causes the connectivity problem. Updating drivers can be a bit tricky in Linux as the procedure is a lot different than the Windows procedure. But the drivers for network chipsets are proprietary and can be easily installed from the “Software and Updates app.”

Источник

3 Workable Ways of Connecting Linux PC To The Internet.

internet_world_banner_fossnaija

Follow us on Twitter Follow us on Facebook Follow us on Instagram Follow us on LinkedIn Follow us on rss

The internet has become an integral part of our digital life. With the advent of the web browser, along with other web technologies that sprang up as a result of it, staying offline is presently almost impossible.

Sending and receiving emails, media streaming, with the many social networks here and there, there is no doubt there is need for a working internet connection.

In this post I’ll show you various common ways you can connect your Linux system to the internet.

#1 Wired connections.

It simply means you’d have to access the internet by connecting your Linux PC, using cables, through the Ethernet port to a RJ45 port (using DSL) on a wall.

Читайте также:  Astra linux графический вход в систему

Ethernet-port-fossnaija

So it would only work on PCs with Ethernet network interface cards. Data is transmitted over copper telephone lines. Connecting to the internet this way is common in large business, corporate or enterprise environments. It’s mostly likely going to be used at work or your office. And this would be very expensive to set up for individual use.

Wireless Connections.

Wireless connections have in recent times become the most popular people connect their PCs to the internet, and the one that is would be very attractive to the individual computer user. As the name implies “wire-less” connections do not require any network cables to connect to a internet network. Especially now that computers are becoming smaller and mobile with every model iteration. let’s now talk about some wireless connections methods.

#2 Dial-Up Modems.

To use this method, you’d need to connect a USB modem to your PC after which the modem will dial-up to your internet service provider (ISP) network (a sort of proxy to connect to the internet).

etisalat_modem_on_laptop_fossnaija

These modems usually come preconfigured with settings from the ISP. Some modems do not work with a particular Linux distribution because the manufacturers (and ISPs) wont provide Linux drivers and software. You can do a thorough google web search using the modem device name to see how others have solved the problem with that particular modem. But you can check this post to see how to set a ZTE USB modem on ubuntu Linux.

#3 Wi-Fi.

To connect to the internet very easily and fast this is the most popular method available today. You simply scan for available Wi-Fi network form your Linux pc and connect. Most time they are closed (passworded) which will require a password, some might be open (without a password) One of the reason for this is that wireless network devices have become cheap when compared to the cost wiring long distance to provide internet connectivity.

And most importantly many computer and computer-based accessories come with wireless capabilities. Linux is wireless-compatitble out of the box. Check here how you can connect to wifi network. With the proliferation of internet-enabled mobile devices like phones and tablets you can share you mobile internet connection with your Linux PC wirelessly.

There you have it. Try them out.

Happy Linux’NG

Источник

Оцените статью
Adblock
detector