-
history -c history -w
-
# apt-get install <package> -
# apt-get remove <package> -
# apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get autoclean && apt-get clean && apt-get autoremove
-
# apt-get install qemu-kvm libvirt-bin -
# adduser <youruser> kvm # adduser <youruser> libvirt
-
# apt-get install virt-manager
-
# apt-get install libguestfs-tools -
# virt-sparsify --compress <source image> <destination image> -
# virt-sparsify --compress arch.qcow2 archbox.qcow2
This is a Vagrant plugin that adds an Libvirt provider to Vagrant, allowing Vagrant to control and provision machines via Libvirt toolkit. You can find this plugin on Github https://github.com/pradels/vagrant-libvirt.
-
Download the Debian package : https://www.vagrantup.com/downloads.html
-
# dpkg -i vagrant_1.8.1_x86_64.deb
-
# apt-get install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev -
# vagrant plugin install vagrant-libvirt
-
# find / -name <filename> -
# du -hs /* -
# rm -rf ~/.local/share/Trash/* -
# who -
# pkill -9 -u <username> -
-
0 4 * * * /usr/sbin/backup-manager > /dev/null 2>&1 @reboot /etc/emailReboot.sh
-
-
-
sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT -
iptables -A INPUT -s xx.xx.xx.xx -j DROP -
iptables -A INPUT -p tcp -s xx.xx.xx.xx --dport PORT -j DROP -
iptables -A INPUT -s xx.xx.xx.xx -j ACCEPT iptables -A OUTPUT -d xx.xx.xx.xx -j ACCEPT -
iptables -A INPUT -p tcp -s xx.xx.xx.xx --dport PORT -j ACCEPT
-
create_box.sh ubuntu14.qcow2
vagrant box add archbox.box --name archbox
mkdir archbox
cd archbox
vagrant init archbox vagrant up
virsh pool-list virsh pool-refresh tmp