Automatically connect Ubuntu to a specific WiFi at startup
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
2
down vote
favorite
I am working with Ubuntu 16.04. I want the system to connect to a particular WiFi network automatically when it boots; it can be a new connection which the system has not connected to earlier.
For example: SSID = wireless; password = abcde
I have tried suggestions from this question but they did not work for me (the system kept connecting to one of the previously known networks).
Please help. Thanks.
networking wireless
add a comment |Â
up vote
2
down vote
favorite
I am working with Ubuntu 16.04. I want the system to connect to a particular WiFi network automatically when it boots; it can be a new connection which the system has not connected to earlier.
For example: SSID = wireless; password = abcde
I have tried suggestions from this question but they did not work for me (the system kept connecting to one of the previously known networks).
Please help. Thanks.
networking wireless
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am working with Ubuntu 16.04. I want the system to connect to a particular WiFi network automatically when it boots; it can be a new connection which the system has not connected to earlier.
For example: SSID = wireless; password = abcde
I have tried suggestions from this question but they did not work for me (the system kept connecting to one of the previously known networks).
Please help. Thanks.
networking wireless
I am working with Ubuntu 16.04. I want the system to connect to a particular WiFi network automatically when it boots; it can be a new connection which the system has not connected to earlier.
For example: SSID = wireless; password = abcde
I have tried suggestions from this question but they did not work for me (the system kept connecting to one of the previously known networks).
Please help. Thanks.
networking wireless
networking wireless
asked Feb 16 at 15:03
Rahul Bohare
266
266
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
You can edit the interface file /etc/network/interfaces
and add the informations about the WiFi you want to connect to :
network=
ssid="testing"
psk="testingPassword"
Also, just to make sure, the ssid and psk are written without the" "
, right?
â Rahul Bohare
Feb 16 at 15:20
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified ininterfaces
file.
â Rahul Bohare
Feb 16 at 15:29
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
You can edit the interface file /etc/network/interfaces
and add the informations about the WiFi you want to connect to :
network=
ssid="testing"
psk="testingPassword"
Also, just to make sure, the ssid and psk are written without the" "
, right?
â Rahul Bohare
Feb 16 at 15:20
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified ininterfaces
file.
â Rahul Bohare
Feb 16 at 15:29
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
add a comment |Â
up vote
0
down vote
You can edit the interface file /etc/network/interfaces
and add the informations about the WiFi you want to connect to :
network=
ssid="testing"
psk="testingPassword"
Also, just to make sure, the ssid and psk are written without the" "
, right?
â Rahul Bohare
Feb 16 at 15:20
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified ininterfaces
file.
â Rahul Bohare
Feb 16 at 15:29
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
add a comment |Â
up vote
0
down vote
up vote
0
down vote
You can edit the interface file /etc/network/interfaces
and add the informations about the WiFi you want to connect to :
network=
ssid="testing"
psk="testingPassword"
You can edit the interface file /etc/network/interfaces
and add the informations about the WiFi you want to connect to :
network=
ssid="testing"
psk="testingPassword"
edited Feb 16 at 15:18
answered Feb 16 at 15:09
Félicien
8471516
8471516
Also, just to make sure, the ssid and psk are written without the" "
, right?
â Rahul Bohare
Feb 16 at 15:20
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified ininterfaces
file.
â Rahul Bohare
Feb 16 at 15:29
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
add a comment |Â
Also, just to make sure, the ssid and psk are written without the" "
, right?
â Rahul Bohare
Feb 16 at 15:20
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified ininterfaces
file.
â Rahul Bohare
Feb 16 at 15:29
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
Also, just to make sure, the ssid and psk are written without the
" "
, right?â Rahul Bohare
Feb 16 at 15:20
Also, just to make sure, the ssid and psk are written without the
" "
, right?â Rahul Bohare
Feb 16 at 15:20
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Mmhh, It works with them , but maibe they are not mandatory
â Félicien
Feb 16 at 15:21
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified in
interfaces
file.â Rahul Bohare
Feb 16 at 15:29
Tried with and then without quotes, it's still connecting to the previously known network, and not the one specified in
interfaces
file.â Rahul Bohare
Feb 16 at 15:29
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
It might have something to do with wifi priority, you could try to 'forget' the known wifi in order to be sure that the added network connection works and, if yes, you can try to change the priority with one of these methods :askubuntu.com/questions/165679/â¦
â Félicien
Feb 16 at 15:42
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006818%2fautomatically-connect-ubuntu-to-a-specific-wifi-at-startup%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password