adduser for www
apache-mpm-itk vhost example
<virtualhost 0.0.0.0:80 >
AssignUserID bizz bizz
DocumentRoot /var/www/bizz/data/www
AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
AddType application/x-httpd-php-source .phps
php_admin_value open_basedir "/var/www/bizz/data:."
php_admin_value upload_tmp_dir "/var/www/bizz/data/mod-tmp"
php_admin_value session.save_path "/var/www/bizz/data/mod-tmp"
</virtualhost>
<directory /var/www/bizz/data/www>
Options -ExecCGI -Includes
php_admin_value open_basedir "/var/www/bizz/data:."
php_admin_flag engine on
</directory>
Install VirtualBox Console Extension Pack installation
create new partition on hard drive in command line
Create partition
fdisk /dev/devname
in menu, key: n
write changes, key: w
and exit, key: q
Create file system
mkfs.ext4 /dev/devnameX
fdisk /dev/sda
Command (m for help): m
short keys review:
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition’s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): a
Partition number (1-5):
записка по архивации
Создать RAR архив. Дефолтное сжатие. rar a -r archive.rar files
Создать RAR архив. Быстрое сжатие rar a -r -m1 archive.rar files
Создать RAR архив. Максимальное сжатие rar a -r -m5 archive.rar files
Создать ZIP архив. Дефолтное сжатие zip -r archive.zip files
Создать ZIP архив. Быстрое сжатие zip -r -1 archive.zip files
Создать ZIP архив. Максимальное сжатие zip -r -9 archive.zip files
Создать 7z архив. Дефолтное сжатие 7z a archive.7z files
Создать 7z архив. Быстрое сжатие 7z a -mx=1 archive.7z files
Создать 7z архив. Максимальное сжатие 7z a -mx=9 archive.7z files
Создать bzip2 архив. Максимальное (дефолтное) сжатие tar cfj archive.tar.bz2 files
Создать bzip2 архив. Среднее сжатие tar cf archive.tar files
bzip2 -vc4 archive.tar > archive.tar.bz2
Создать bzip2 архив. Быстрое сжатие tar cf archive.tar files
bzip2 -vc1 archive.tar > archive.tar.bz2
Создать gzip архив. Дефолтное сжатие tar cfz archive.tar.gz files
Создать gzip архив. Максимальное сжатие tar cf archive.tar files
gzip -vc9 archive.tar > archive.tar.gz
Создать gzip архив. Быстрое сжатие tar cf archive.tar files
gzip -vc1 archive.tar > archive.tar.gz
Создать XZ архив. Дефолтное сжатие export XZ_OPT=""
tar cfJ archive.tar.xz files
Создать XZ архив. Быстрое сжатие export XZ_OPT="-1"
tar cfJ archive.tar.xz files
Создать XZ архив. Максимальное сжатие export XZ_OPT="-9 --extreme"
tar cfJ archive.tar.xz files
кусок текста взят тут
спасибо автору
key to pem ELB
install kvm in debian\ubuntu
apt-get update; apt-get upgrade -y; apt-get install -y qemu-kvm bridge-utils libvirt-bin virtinst; echo "net.ipv4.conf.all.forwarding=1" >> /etc/sysctl.conf; echo "net.ipv4.conf.all.proxy_arp=1">> /etc/sysctl.conf; sysctl -p; nano /etc/network/interfaces;reboot
далее создаем интерфейс бриджа
# Bridge network interface
auto eth0
iface eth0 inet manual
auto kvmbr0
iface kvmbr0 inet static
не забудем:
bridge_ports eth0
dns-nameservers 8.8.8.8