Maneira de remover redes Wi-Fi indesejadas / não usadas do Network Indicator Menu? [NÃO é uma duplicata]

0

Essa pergunta original NÃO foi respondida e NÃO é uma pergunta duplicada, por isso estou explicando: Maneira de remover redes Wi-Fi indesejadas / não usadas do Network Indicator Menu?

There should be a way to stop the Network Indicator menu from displaying completely unused/unwanted Wifi network entries in the dropdown.

On my indicator menu, there are more than a dozen networks displayed but I only ever connect to one. Why do I have to do deal with selecting from so many networks when I only ever connect to one? I should be able to configure Network Indicator to only display the one wifi network I connect to (the one wifi network that shows up in Network-Indicator > Edit Connections > Wifi).

How can I hide/remove the networks that I never use?

Se algum dos moderadores se preocupasse em ler a pergunta original e a chamada duplicata, eles entenderiam que não são a mesma pergunta. Não estou perguntando sobre redes às quais me conectei. Estou perguntando sobre a exibição de redes que eu nunca liguei. Redes NUNCA me conectarei. Desejo ocultar essas redes da exibição na lista suspensa Indicador de rede. A pergunta que supostamente é uma duplicata não pergunta sobre isso e nenhuma das respostas dessa pergunta tenta responder ao que estou perguntando.

Os comentários do meu post original desta pergunta delineiam claramente como minha pergunta NÃO é uma duplicata.

see askubuntu.com/questions/227297/… – Rinzwind 21 hours ago

That will not prevent Networkmanager from showing the networks in the list; it will only prevent reconnecting to them if there has ever been a connection. – Jos 21 hours ago

@Jos If they are within scan range, they will appear. If not, say, for example, a network he joined at the cyber cafe, they will be removed. – chili555 21 hours ago

As I understand it, there are more than a dozen networks within scan range, and OP doesn't want to see those. That is not the same as removing networks he has ever joined. – Jos 21 hours ago

Yes, Jos is correct. I have never connected to any of the shown networks. I will never connect to them. And yet they are always displayed. At a minimum it seems there should be a way to move them to the "More networks" folder/container. Most of the networks show up there. But why can't all unused networks show there? The dropdown menu should only display networks I can/want to connect to. – user308393 20 hours ago

      
    
  
    
por user308393 25.02.2015 / 13:47

1 resposta

1

Se você deseja mudar para métodos manuais, sugiro que você abra um terminal e faça:

sudo -H gedit /etc/network/interfaces

Use nano ou kate ou leafpad se você não tiver o editor de texto gedit. Altere o arquivo para:

auto lo
iface lo inet loopback

#auto eth0
iface eth0 inet dhcp

auto wlan0
iface wlan0 inet dhcp
wpa-ssid <your_network>
wpa-psk <your_key_in_clear_text>

Revise cuidadosamente, salve e feche o editor de texto.

Observe que comentei a linha "auto eth0". Isto implica que você usará wireless por padrão. O sistema só irá iniciar sem fio na inicialização. Se você deseja parar sem fio e iniciar a ethernet, em um terminal:

sudo ifdown wlan0 && sudo ifup -v eth0

O -v for verbose mostrará informações suficientes para você ver que o sistema se conecta. Para voltar a wireless, é o contrário.

Eu não acredito que o NM desligue o rádio sem fio; simplesmente se desconecta.

Teste para ter certeza de que está funcionando conforme o esperado.

sudo service network-manager restart
sudo ifdown wlan0 && sudo ifup -v wlan0

Pode ser necessário reiniciar.

Quando estiver satisfeito com a sua correção, você poderá remover o NM:

sudo apt-get purge network-manager
sudo apt-get autoremove
    
por chili555 26.02.2015 / 15:44