How do I programmatically disable “Connectivity Checking”?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS).
I can turn off Connectivity Checking through Settings -> Privacy
but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu
? I was able to turn off other privacy settings through gsettings.
Viewing the file list of this package at https://packages.ubuntu.com/bionic/all/network-manager-config-connectivity-ubuntu/filelist indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
) but it does not show any possibility to enable/disable the feature.
Any help is appreciated.
18.04 gsettings
add a comment |
I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS).
I can turn off Connectivity Checking through Settings -> Privacy
but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu
? I was able to turn off other privacy settings through gsettings.
Viewing the file list of this package at https://packages.ubuntu.com/bionic/all/network-manager-config-connectivity-ubuntu/filelist indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
) but it does not show any possibility to enable/disable the feature.
Any help is appreciated.
18.04 gsettings
add a comment |
I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS).
I can turn off Connectivity Checking through Settings -> Privacy
but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu
? I was able to turn off other privacy settings through gsettings.
Viewing the file list of this package at https://packages.ubuntu.com/bionic/all/network-manager-config-connectivity-ubuntu/filelist indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
) but it does not show any possibility to enable/disable the feature.
Any help is appreciated.
18.04 gsettings
I just installed Ubuntu 18.04 and going through all my dotfile-scripts to properly configure Ubuntu automatically as much as possible. Looping through gsettings I was able to configure most settings as I want them but I haven't found anything in gsettings related to "Connectivity Checking" which is new in Ubuntu 18.04 LTS (at least not included in 16.04 LTS).
I can turn off Connectivity Checking through Settings -> Privacy
but how can I do this programmatically? Just uninstall network-manager-config-connectivity-ubuntu
? I was able to turn off other privacy settings through gsettings.
Viewing the file list of this package at https://packages.ubuntu.com/bionic/all/network-manager-config-connectivity-ubuntu/filelist indicates that there is just one settings file (/usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
) but it does not show any possibility to enable/disable the feature.
Any help is appreciated.
18.04 gsettings
18.04 gsettings
edited Mar 29 at 15:07
Ben Page
1034
1034
asked Apr 28 '18 at 7:48
CHolmstedtCHolmstedt
198118
198118
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
There is a flag in the file /var/lib/NetworkManager/NetworkManager-intern.conf that is set to false if you disable the setting in the UI:
[connectivity]
.set.enabled=false
You can use the tool crudini to set the flag using the command line or a script:
sudo crudini --set /var/lib/NetworkManager/NetworkManager-intern.conf "connectivity" ".set.enabled" "false"
For some reason the ui doesn't get updated until a reboot (didn't test logoff/login).
Maybe there is some other command line tool that does the change and ensures that the UI gets updated as well.
btw: I used the following command to get the files that changed recently (only checked /var and ~ so far):
sudo find /var -newermt "-1 minute" -ls
There aren't any changes to gsettings. I monitored the settings using this command:
dconf watch /
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to/etc/NetworkManager/conf.d
. Alternatively, use D-Busbusctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.
– thaller
Feb 20 at 9:41
add a comment |
I just wanted to add that you can also disable the connectivity checking by simply creating an empty file:
sudo touch /etc/NetworkManager/conf.d/20-connectivity-ubuntu.conf
This file will override any settings found in /usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
.
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029108%2fhow-do-i-programmatically-disable-connectivity-checking%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is a flag in the file /var/lib/NetworkManager/NetworkManager-intern.conf that is set to false if you disable the setting in the UI:
[connectivity]
.set.enabled=false
You can use the tool crudini to set the flag using the command line or a script:
sudo crudini --set /var/lib/NetworkManager/NetworkManager-intern.conf "connectivity" ".set.enabled" "false"
For some reason the ui doesn't get updated until a reboot (didn't test logoff/login).
Maybe there is some other command line tool that does the change and ensures that the UI gets updated as well.
btw: I used the following command to get the files that changed recently (only checked /var and ~ so far):
sudo find /var -newermt "-1 minute" -ls
There aren't any changes to gsettings. I monitored the settings using this command:
dconf watch /
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to/etc/NetworkManager/conf.d
. Alternatively, use D-Busbusctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.
– thaller
Feb 20 at 9:41
add a comment |
There is a flag in the file /var/lib/NetworkManager/NetworkManager-intern.conf that is set to false if you disable the setting in the UI:
[connectivity]
.set.enabled=false
You can use the tool crudini to set the flag using the command line or a script:
sudo crudini --set /var/lib/NetworkManager/NetworkManager-intern.conf "connectivity" ".set.enabled" "false"
For some reason the ui doesn't get updated until a reboot (didn't test logoff/login).
Maybe there is some other command line tool that does the change and ensures that the UI gets updated as well.
btw: I used the following command to get the files that changed recently (only checked /var and ~ so far):
sudo find /var -newermt "-1 minute" -ls
There aren't any changes to gsettings. I monitored the settings using this command:
dconf watch /
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to/etc/NetworkManager/conf.d
. Alternatively, use D-Busbusctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.
– thaller
Feb 20 at 9:41
add a comment |
There is a flag in the file /var/lib/NetworkManager/NetworkManager-intern.conf that is set to false if you disable the setting in the UI:
[connectivity]
.set.enabled=false
You can use the tool crudini to set the flag using the command line or a script:
sudo crudini --set /var/lib/NetworkManager/NetworkManager-intern.conf "connectivity" ".set.enabled" "false"
For some reason the ui doesn't get updated until a reboot (didn't test logoff/login).
Maybe there is some other command line tool that does the change and ensures that the UI gets updated as well.
btw: I used the following command to get the files that changed recently (only checked /var and ~ so far):
sudo find /var -newermt "-1 minute" -ls
There aren't any changes to gsettings. I monitored the settings using this command:
dconf watch /
There is a flag in the file /var/lib/NetworkManager/NetworkManager-intern.conf that is set to false if you disable the setting in the UI:
[connectivity]
.set.enabled=false
You can use the tool crudini to set the flag using the command line or a script:
sudo crudini --set /var/lib/NetworkManager/NetworkManager-intern.conf "connectivity" ".set.enabled" "false"
For some reason the ui doesn't get updated until a reboot (didn't test logoff/login).
Maybe there is some other command line tool that does the change and ensures that the UI gets updated as well.
btw: I used the following command to get the files that changed recently (only checked /var and ~ so far):
sudo find /var -newermt "-1 minute" -ls
There aren't any changes to gsettings. I monitored the settings using this command:
dconf watch /
edited Oct 4 '18 at 11:27
answered Oct 4 '18 at 11:19
fnxfnx
263
263
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to/etc/NetworkManager/conf.d
. Alternatively, use D-Busbusctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.
– thaller
Feb 20 at 9:41
add a comment |
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to/etc/NetworkManager/conf.d
. Alternatively, use D-Busbusctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.
– thaller
Feb 20 at 9:41
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
Thanks for the information. I verified that the same file is updated for me and it is. I haven't tried to actually add it to my dotfiles script yet.
– CHolmstedt
Oct 17 '18 at 17:18
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to /etc/NetworkManager/conf.d
. Alternatively, use D-Bus busctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.– thaller
Feb 20 at 9:41
/var/lib/NetworkManager/NetworkManager-intern.conf
is internal, it should not be modified, as the code comment there says. If you'd like to edit the setting via config-files, the it's best to put a snippet to /etc/NetworkManager/conf.d
. Alternatively, use D-Bus busctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 1
which indeed will write the configuration to the internal file.– thaller
Feb 20 at 9:41
add a comment |
I just wanted to add that you can also disable the connectivity checking by simply creating an empty file:
sudo touch /etc/NetworkManager/conf.d/20-connectivity-ubuntu.conf
This file will override any settings found in /usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
.
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
add a comment |
I just wanted to add that you can also disable the connectivity checking by simply creating an empty file:
sudo touch /etc/NetworkManager/conf.d/20-connectivity-ubuntu.conf
This file will override any settings found in /usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
.
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
add a comment |
I just wanted to add that you can also disable the connectivity checking by simply creating an empty file:
sudo touch /etc/NetworkManager/conf.d/20-connectivity-ubuntu.conf
This file will override any settings found in /usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
.
I just wanted to add that you can also disable the connectivity checking by simply creating an empty file:
sudo touch /etc/NetworkManager/conf.d/20-connectivity-ubuntu.conf
This file will override any settings found in /usr/lib/NetworkManager/conf.d/20-connectivity-ubuntu.conf
.
answered Nov 20 '18 at 15:55
Andrew LamarraAndrew Lamarra
1518
1518
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
add a comment |
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
I just tried this on a new Ubuntu 18.10 installation and the connectivity option disappeared completely from the Settings -> Privacy tab. I suppose that means it is off ;)
– CHolmstedt
Jan 12 at 22:51
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1029108%2fhow-do-i-programmatically-disable-connectivity-checking%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown