Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone!
I'm building a NextCloud server on an old laptop for my daughter, (you would be amazed how many pictures and videos a 14 year old can take!), and I'm having problems with the WiFi. Here are the steps that I'm taking to get the WiFI working:
sudo apt install wireless-tools wpasupplicant -y
wpa_passphrase XXXXXXX XXXXXXXX | sudo tee /etc/wpa_supplicant.conf
sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlp1s0
sudo dhclient wlp1s0
ip addr show wlp1s0
sudo cp /lib/systemd/system/wpa_supplicant.service /etc/systemd/system/wpa_supplicant.service
sudo nano /etc/systemd/system/wpa_supplicant.service
I comment out "#ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant" and Alias=dbus-fi.w1.wpa_supplicant1.service and I replace it with:
After I reboot, I can connect to the WiFi connection via ssh, however, the NIC keeps dropping the connection. At first I thought that maybe I had a bad NIC, but I have tried Broadcom, Atheros and Intel NIC's with the same results.
Does anyone have any suggestions on what the problem is?
You say 'an old laptop'. Are you actually breaking into it and replacing the cards? If not, check and see what chip the wifi is using. Some years ago Broadcom chips had problems dropping periodically. The problem was the driver, but their driver was proprietary. Eventually I think there was one that worked but you had to dig to find it. I'm thinking one of the old Realtech cards had a similar problem but I could be wrong. Broadcom left a bad taste in my mouth and I still avoid them like the plague.
The laptop that I'm using is a Dell Inspiron 7720 w/ an i7-3610QM, 16gb DDR3L, 256gb mSata drive. I use this as my "development" machine. I initially was using a Broadcom WiFi chip, but I noticed that it was creating kernel errors, which I thought was my problem. I then switched to a Atheros AR5B95, but I still had the same problem. Right now I have a Intel 2230 Wireless-N PCi WiFi installed, but it is also giving me the same problem. I'm thinking that I have a configuration error somewhere that is causing the problem, but I can't seem to find it.
Distribution: Ubuntu based stuff for the most part
Posts: 1,177
Rep:
Are other devices having drops as well? You may not being using them as much as the new server so have not noticed.
How old is the router or access point you are using, and can you access logs to see if it has any errors listed?
Hi @uteck. All of the WiFi cards that I have tried work perfectly under Windows 10 and Ubuntu Desktop. My ISP upgraded my router/access point 2 years ago to a "Home Hub 2000". The system logs on the router are fairly useless, they only list PPOE connections to the ISP, nothing else. If I can find the time this week, I'll slap together a pfsense firewall to watch the network connections.
Out of curiosity could heat be the problem? Does the machine seem to get hot? Usually that shows up by the machine shutting down but I suppose it could affect other parts like wifi.
Have you tried installing a different distribution? Mint 19.3 for example? If your current setup isn't working it only costs time to try other distros.
Out of curiosity could heat be the problem? Does the machine seem to get hot? Usually that shows up by the machine shutting down but I suppose it could affect other parts like wifi.
Have you tried installing a different distribution? Mint 19.3 for example? If your current setup isn't working it only costs time to try other distros.
I'm pretty sure that it's not a heat problem. The bottom of the laptop is open and it's sitting on a stand that allow for air flow beneath the laptop. Also, the NIC is cool to touch.
I tried Debian server, however, it really doesn't seem to like WiFi at all. I think that I will try Mint and see how that goes. It's not the best distro for a server build, but it might help me sort out the problem.
So running Linux Mint 19.3 in headless mode gives me the same random disconnects via ssh. I have to assume that there is some type of hardware issue going on here and that when I'm running a GUI, either in Windows or Linux, I'm just not noticing random disconnects.
I'm going to setup some different hardware and try testing again.
That's entirely possible bur I wouldn't totally discount something happening withvthe router. Easy enough to check if your phone can be a hotspot server. Does it still happen if you log on through your phone's hotspot. I assume it does but then you will know for sure. One other router thing to check is the lease time. When you are connected is your ip lease time something reasonable like a couple of hours or more? I'm using the 'if at first you don't succeed use a bigger hammer' approach here but sometimes it isn't a bad thing. If both of these check out then at least you can be sure it is something on your computer. The next thing I would check is to make sure the driver that is loaded is the latest driver. If so, and it probably is, then you are pretty certain is either configuration, which verifies what you are suspecting, or it is something really weird.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.