Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 12-19-2011, 11:40 AM   #46
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 20

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.

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:
-r-xr-xr-x 1 root root 28 Dec 19 22:10 /sbin/start-wifi
What do you think?

Last edited by edbarx; 12-19-2011 at 03:31 PM. Reason: To add more info
Old 12-19-2011, 08:36 PM   #47
LQ Guru
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

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

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

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. ;-)
Old 12-21-2011, 12:22 AM   #48
Registered: Sep 2010
Distribution: Used Debian since Sarge. (~2005)
Posts: 373

Original Poster
Rep: Reputation: 20
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.

Last edited by edbarx; 12-21-2011 at 12:25 AM. Reason: To correct errors


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcom Corporation BCM4313 802.11b/g LP-PHY (rev 01) f14 on dell laptop navets Fedora 5 05-16-2011 04:17 AM
wifi networks not visible thru Broadcom BCM43225 802.11b/g/n on Acer 5745G mithuns Linux - Wireless Networking 3 12-12-2010 08:11 PM
Intel 4965 AGN - can't connect to wireless 802.11b router, can connect to 11g siodine Linux - Wireless Networking 3 12-01-2007 07:36 AM
ipw2100 on Sony Vaio TR2AP (Rev 04 802.11b Intel 2100) Problems Cabe24 Linux - Laptop and Netbook 1 02-05-2006 11:46 AM
How to connect to internet using the internal 802.11b/g wireless LAN in laptop bin75 Linux - Wireless Networking 1 04-21-2005 09:48 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration