GNU/Linux >> LINUX-Kenntnisse >  >> Ubuntu

Wie entferne ich den Zugangspunkt aus der gespeicherten Liste?

Betriebssystem:Ubuntu 11.10 mit Gnome-Shell

Ich habe einige Zugriffspunkte auf meiner gespeicherten Liste, die ich entfernen und nie verbinden möchte.
Ich finde anscheinend keine Möglichkeit, diese zu löschen.

Wie sollte ich aus der Liste der gespeicherten Zugangspunkte entfernen (zumindest nicht automatisch verbinden)?

Akzeptierte Antwort:

ctrl + t {for terminal prompt}
cd /etc/NetworkManager/system-connections 
sudo rm {wireless_hotspot_name}

Hoffe das hilft

EIN JAHR SPÄTER BEARBEITEN

Scheint, als wäre dies eine ziemlich beliebte Antwort geworden, also habe ich weitergemacht und ein automatisiertes Skript geschrieben, um dies für alle zu tun. Kopieren Sie einfach das folgende Skript nach /usr/local/bin/wireless und denken Sie daran, den Befehl sudo chmod +x /usr/local/bin/wireless auszuführen

Ich freue mich zu sehen, dass dies anderen *buntu-Benutzern kontinuierlich hilft 😉
die neueste(n) Version(en) werden auf GitHub sein

#!/bin/bash
# Review and Remove Wireless Access Points on DEB based Systems
# Make sure to place script in /usr/local/bin 

# CPR : Jd Daniel :: GabelBombe
# MOD : 2013-12-09 @ 12:27:02

# INP : $ wireless -{flag} {arg}

##===============================================================##
##===============================================================##

clear

# If the user is not root
if [ "$(id -u)" != "0" ]; then
  echo "This script must be run as root" 1>&2 ; exit 1
fi


declare -r VERSION='1.2b'
declare -r net_dir='/etc/NetworkManager/system-connections'


function list ()
{
  cd "${net_dir}"

    export count=$(ls |wc -l) # used in drop function

  files=$(ls) # simple ls

  echo -e "ntFound ${count} wireless connections"

    for f in $files; do
        echo -e "t * $f"
    done
}

function drop ()
{
  # make sure that we have a working file and directory...
  cd "${net_dir}" ; [ -f "$OPTARG" ] || { echo -e "ntConnection does not exist..." ; exit 1; }

  # confirmation for removal
  printf "ntDo you want to delete $OPTARG [y/n] " ; read -r resp

    # strtolower, and rm
    if [ 'y' == "$(echo $resp | awk '{print tolower($0)}')" ]; then
      rm -f ${net_dir}/${OPTARG}
    fi
}

function flush ()
{
  # make sure that we have a directory with files...
  cd "${net_dir}" ; list ; [ 0 -ge "${count}" ] && { echo -e "tExiting, Nothing to flush..." ;  exit 1 ; }

  # confirmation for removing all files
  printf "ntAll Wireless Connections will be removed, continue? [y/n] " ; read -r resp

    # strtolower, and rm
    if [ 'y' == "$(echo $resp | awk '{print tolower($0)}')" ]; then
      rm -f ${net_dir}/*
    fi
}

function version ()
{
  echo -e "ntwireless (GNU wireless network purge) v${VERSION}"
  echo -e "ntCopyright (C) 2013 Hydra Code, LLC."
  echo -e "tLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.ntThis is free software: you are free to change and redistribute it.ntThere is NO WARRANTY, to the extent permitted by law."
  echo -e "nntWritten by Jd Daniel (GabelBombe) http://github.com/GabelBombe"
  exit 0
}

function help ()
{
  echo -e "ntUsage: wireless [OPTION]... [FILE]..."
  echo -e "tList, remove single or flush the contents of your Wireless Network Manager"
  echo -e "ntThe options below may be used to perform the above actions, this program will only"
  echo -e "trun a single flag or parameter at a time. Flag chaining is only available for -d"
  echo -e "t  -l, --list tt List the contents of your 'Network Manager'"
  echo -e "t  -d, --drop [conn] t Drop a single (or multiple) wireless connections"
  echo -e "t  -f, --flush tt Flush all wireless connections."
  echo -e "t      --help tt Display this help menu and exit"
  echo -e "t      --version t Display version information and exit"
  exit 0
}

##===============================================================##
##===============================================================##

# no long-opts supported except --help
while getopts ':ld:f-:' OPT; do
  case $OPT in

    l) list  ;;
    d) dirList="${dirList} $OPTARG" ; drop  ;;
    f) flush ;;
    -) #long option
       case $OPTARG in

          list)     list    ;;
          drop)     drop    ;;
          flush)    flush   ;;
          help)     help    ;;
          version)  version ;;

       esac
   ;;
    : ) echo -e "ntMissing option argument for -$OPTARG" >&2;               exit 1;;
    * ) echo -e "ntUnknown flag supplied ${OPTARG}ntTry wireless --help"; exit 1;;
  esac
done

shift $(($OPTIND - 1))

##===============================================================##
##===============================================================##

Ubuntu
  1. So entfernen Sie ein Git-Remote aus dem Repository

  2. Wie kann ich eine Gruppe hinzufügen / auflisten / entfernen?

  3. So greifen Sie über cPanel auf phpMyAdmin zu

  4. So entfernen Sie das Passwort aus der PDF-Datei in Ubuntu

  5. So entfernen Sie frühere Versionen von .NET Core von Linux (CentOS 7.1)

So entfernen Sie Pakete von Ubuntu &Debian

So teilen Sie einen Ordner auf Ubuntu für den Zugriff von Windows 10

Wie entferne ich ein vorhandenes gebautes Paket von einem Ppa?

Wie greife ich von Ubuntu auf Windows-Dateien zu?

Wie entferne ich Fehlergeräusche vom Pycharm-Terminal?

So entfernen Sie eine IP-Adresse von einer Blacklist