list all NM connections: nmcli con
start connection (wifi, vpn, etc): nmcli con up id ConnectionName
down connection: nmcli con down id ConnectionName
list all NM connections: nmcli con
start connection (wifi, vpn, etc): nmcli con up id ConnectionName
down connection: nmcli con down id ConnectionName
yum install pptp
vi /etc/ppp/chap-secrets
my_username vpn.linux4yyou.tk “my_password” *
[username][space][server name][space][password][space][ip address allowed]
vi /etc/ppp/peers/vpn.linux4yyou.tk
pty “pptp vpn.linux4yyou.tk –nolaunchpppd”
name my_username
remotename vpn.linux4yyou.tk
require-mppe-128
file /etc/ppp/options.pptp
ipparam vpn.linux4yyou.tk
modprobe ppp_mppe
vi /etc/ppp/options.pptp
lock
noauth
refuse-pap
refuse-eap
refuse-chap
nobsdcomp
nodeflate
require-mppe-128
pppd call vpn.linux4yyou.tk
ip a | grep ppp
tail -f /var/log/message | grep ppp
vzctl chkpnt 101 –dumpfile /tmp/Dump.101
mv /etc/vz/conf/101.conf /etc/vz/conf/102.conf
mv /vz/private/101 /vz/private/102
mv /vz/root/101 /vz/root/102
vzctl restore 102 –dumpfile /tmp/Dump.101
yum install ploop
apt-get install python-dev libxml2-dev libxslt-dev
postsuper -d ALL
echo “Hello there” | mail -s “testing” -r [email protected] [email protected]
MegaCli -pdlist -a0 | grep “Inquiry Data”
You should check if binary program is the same bit architecture.
arp -d 10.0.0.2
CTID=100
vzctl exec $CTID “mount -t devpts devpts /dev/pts”
vzctl enter $CTID
it works on Debian containers.
vzctl exec 101 /sbin/MAKEDEV tty
vzctl exec 101 /sbin/MAKEDEV pty
vzctl exec 101 mknod –mode=666 /dev/ptmx c 5 2
vzctl enter 101
On RH OS.
sfdisk --dump /dev/sda | sfdisk --force /dev/sdb
dmidecode -t 1
while true; do ping -c1 www.google.com > /dev/null && break; done
or
while ! ping -c1 www.google.com &>/dev/null; do :; done
while true ; do ping -q -i0.2 -c 100 host | grep -A1 “packet loss” | xargs ; done