Saving bash history in OpenVZ VE
Just add the following line to your ~/.bashrc and restart bash:
HISTFILE=~/.bash_history
Just add the following line to your ~/.bashrc and restart bash:
HISTFILE=~/.bash_history
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
It’s that simple:
kill -HUP $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')
On destination host :
cd /dir_to_receive
nc -l 4747 | tar -xvf -
On source host:
cd /dir_to_send
tar c /dir_to_send | nc destination_host 4747
There’s a bug in rpm package: https://bugzilla.redhat.com/show_bug.cgi?id=304121
It causes the following error while building rpm packages:
/usr/lib/rpm/debugedit: canonicalization unexpectedly shrank by one character
As a workaround you can use this command:
rpmbuild -bb rpmbuild/SPECS/package.spec -D 'debug_package %{nil}'
It will disable building of debug package and that’s it.
DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python.
If you get this deprecation warning and you can’t upgrade to a newer Python version, it’s possible to disable this warning:
import warnings warnings.filterwarnings("ignore", category=DeprecationWarning)
To enable bash completion on Ubuntu 14 make sure you have bash-completion installed:
apt-get install bash-completion
If so open /etc/bash.bashrc:
vim /etc/bash.bashrc
Then comment out the following lines:
# enable bash completion in interactive shells if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi
And restart you bash:
exec $SHELL
Server-Name-Indication, or SNI, is an official extension to SSL where the client tells the server what hostname it is contacting. It allows to host multiple SSL enabled website on one IP. To get SNI working with requests 2.2.1 you would need the following steps.
To install next packages:
If it works for you, that’s great. But if doesn’t, you might want to make sure:
Once you have all these packages you should be able to use Requests which is able to talk to SNI enabled servers.
sudo yum install cmake git clone https://github.com/zrax/pycdc.git cd pycdc cmake ./ make ./pycdc app.pyc > app.py
virsh destroy <VM> virsh udefine <VM> --managed-save
After you are done you can safely remove all images manually.