LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   BCM43225 802.11b/g/n (rev 01) cannot connect to the internet. (https://www.linuxquestions.org/questions/linux-wireless-networking-41/bcm43225-802-11b-g-n-rev-01-cannot-connect-to-the-internet-914478/)

edbarx 12-19-2011 11:40 AM

I succeeded to use sudo to run my custom script. The connection is very stable and till now it has never dropped. I think, wicd was incorrectly assuming a broken connection when a network request was made and it took the router more time than wicd expected.

EDIT:
I copied the custom script to the /sbin directory to forbid it being modified since it is allowed to run and practically it can contain any root command.

Its permissions are:
Code:

-r-xr-xr-x 1 root root 28 Dec 19 22:10 /sbin/start-wifi
What do you think?

Peacedog 12-19-2011 08:36 PM

I believe Debian uses Sys-V init. You can find more about startup scripts here.

http://www.debian-administration.org/articles/28

There is also some documentation on using the CLI for Wifi here.

http://wiki.debian.org/WiFi/HowToUse#Command_Line

Ultimately it's up to you how you administer your system. If you are satisfied with the current setup, security, and performance then that's all that really matters. That's the beauty of a Linux system, it can be customized as you/we see fit.

Good luck. ;-)

edbarx 12-21-2011 12:22 AM

The custom script is hardened in a way that it cannot be modified unless the user is root. I placed it under /sbin for that precise reason. Moreover, I never log in as root apart from using su because there is no need to log in as root as chmod and chown can do miracles in case one may need to edit system files with a graphical editor. I use vim which obviously doesn't run in a gui environment although kwrite is more attractive but kwrite needs the kde libraries and xorg. If something goes wrong with the gui environment I want to be still able to work around and repair my system becaue gnu linux gives me the tools to recover my system whatever happens to it.

My setup is so stable that it can be incorporated into a package. A small systray applet can call the script whenever the connection drops and the timing parameters can be made accessible to the user for fine tuning.


All times are GMT -5. The time now is 12:50 AM.