Вам, вероятно, понадобится использовать xmessage
Например: xmessage -center -buttons yes,no Are you connected to the VPN?
Пример скрипта:
#!/bin/bash
xmessage -center -buttons yes,no Are you connected to the VPN?
ans="$?"
if [[ "$ans" == 101 ]]; then
#command to connect to VPN
notify-send "Connecting"
else
notify-send "Not Connecting"
fi
Это вариант Debug::pkgAutoRemove. Из man apt.conf:
Debug::pkgAutoRemove
Log events related to the automatically-installed status of
packages and to the removal of unused packages.
Хотя приведенное выше описание не совсем полезно, вы можете подтвердить, посмотрев на источник apt - в частности, apt-1.3.5/apt-pkg/depcache.cc:
bool const debug_autoremove = _config->FindB("Debug::pkgAutoRemove", false);
if(debug_autoremove)
std::clog << "Marking: " << Pkg.FullName() << " " << Ver.VerStr() << std::endl;
Вы можете отключить его, установив и изменив настройку в файлах /etc/apt.conf или /etc/apt.conf.d/xxx или в командной строке с помощью опции -o, например
sudo apt-get -oDebug::pkgAutoRemove=false install foo
Это вариант Debug::pkgAutoRemove. Из man apt.conf:
Debug::pkgAutoRemove
Log events related to the automatically-installed status of
packages and to the removal of unused packages.
Хотя приведенное выше описание не совсем полезно, вы можете подтвердить, посмотрев на источник apt - в частности, apt-1.3.5/apt-pkg/depcache.cc:
bool const debug_autoremove = _config->FindB("Debug::pkgAutoRemove", false);
if(debug_autoremove)
std::clog << "Marking: " << Pkg.FullName() << " " << Ver.VerStr() << std::endl;
Вы можете отключить его, установив и изменив настройку в файлах /etc/apt.conf или /etc/apt.conf.d/xxx или в командной строке с помощью опции -o, например
sudo apt-get -oDebug::pkgAutoRemove=false install foo
Это вариант Debug::pkgAutoRemove. Из man apt.conf:
Debug::pkgAutoRemove
Log events related to the automatically-installed status of
packages and to the removal of unused packages.
Хотя приведенное выше описание не совсем полезно, вы можете подтвердить, посмотрев на источник apt - в частности, apt-1.3.5/apt-pkg/depcache.cc:
bool const debug_autoremove = _config->FindB("Debug::pkgAutoRemove", false);
if(debug_autoremove)
std::clog << "Marking: " << Pkg.FullName() << " " << Ver.VerStr() << std::endl;
Вы можете отключить его, установив и изменив настройку в файлах /etc/apt.conf или /etc/apt.conf.d/xxx или в командной строке с помощью опции -o, например
sudo apt-get -oDebug::pkgAutoRemove=false install foo