wireless on an Ubuntu fileserver (no X) - auto connect possible?

Johan Ramm-Ericson ubuntu at ramm-ericson.se
Tue Nov 21 06:40:36 UTC 2006


On Mon, November 20, 2006 23:29, Gabriel Dragffy wrote:
> On Mon, 2006-11-20 at 21:34 +0100, Johan Ramm-Ericson wrote:
>> Just out of curiosity, is there any particular reason why you don't want
>> to use the Ubuntu tools (System -> Administration -> Networking)?
>>
>> Granted, doing it yourself will be a learning experience (hint: look in
>> /etc/init.d , /etc/rc1.d , /etc/rc2.d , /etc/rc3.d ....)
>>
>
> Reasonable question, but I did try to make clear in the mail that this
> machine has no X (desktop glory) and is very simply a fileserver.

Sorry, yes, it's right there in the subject line - my apologies...

As Peter Garret already suggested in a later message - /etc/rc.local is
one place (of many) to put your script in. To be clear; I would put the
code in a seperate script that I then would execute from /etc/rc.local.
That said, styles and tastes vary and you could accomplish this in any
number of ways...  Keep in mind though, that if you put the script in
/etc/rc.local it get's executed _after_ most other things in /etc/rc2.d
("ls /etc/rc2.d" and look at the numbering order..). This _may_ be a
problem if you have set up services that require an active network session
to function.

/johan




More information about the ubuntu-users mailing list