![]() ![]() Most of my solutions here are for Raspberry Pi OS Lite. If you have the same issue, just change the crontab with something like sleep 10 ifconfig wlan0 down ![]() I had to add some sleep time before disabling the WLAN interface (I guess Raspberry Pi OS is now starting it after the cron). Note: I tested this recently on the latest Raspberry Pi OS version, and it didn’t work. Or remove the line in the crontab to enable it at each boot. To bring the Wi-Fi up again (temporarily), use the following: Your Wi-Fi adapter will now stop directly at each boot, so be sure to use the Ethernet cable all the time. If you are new to the Nano text editor on Linux, you can read my guide about it, with all the important commands and shortcuts to use it effectively (click on the link to check). Save and exit (CTRL+O and CTRL+X with nano).In the crontab file, add the following line at the ifconfig wlan0 down.If it’s the first time you do this, select your favorite text editor.When you use sudo crontab instead of crontab, you are scheduling the tasks for the root user. ![]() If you are on Raspberry Pi OS Desktop, start by opening a terminal (or jump to the next solution, easier for you).Ĭrontab is something like a tool to configure scheduled tasks, you can learn more here about Linux crons.In the introduction, I gave you one command to temporarily disable your Wi-Fi interface, but crontab can also be used to disable Wi-Fi automatically at each reboot: It’s a 30-day challenge from beginner to master, with step-by-step tutorials and many projects to practice along the way. Most of them will work on any operating system, but I only tested on Raspberry Pi OS.īy the way, if you are interested in improving your skills on Raspberry Pi, I highly recommend checking out my e-book here. In this post, I will show you 7 ways to disable your Wi-Fi forever (until you reverse your changes). The easiest way to disable Wi-Fi on your Raspberry Pi is to turn it off manually with sudo ifconfig wlan0 down, but there are many other solutions that you can use instead. Wi-Fi isn’t necessary when your Raspberry Pi is always connected to an Ethernet cable. That’s to say, how to disable your Wi-Fi adapter and use the Ethernet cable instead. In a recent tutorial, I showed you how to use Wi-Fi on your Raspberry Pi (with 5 different solutions). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |