This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O - http://ossec.alienvault.com/repos/apt/conf/ossec-key.gpg.key | apt-key add - | |
echo "deb http://ossec.alienvault.com/repos/apt/debian wheezy main" > /etc/apt/sources.list.d/ossec.list | |
apt-get update | |
apt-get install ossec-hids-agent ossec-hids |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для нормальной работы на моем Qnap нужно временно поставить сторонний софт | |
ipkg install samba34 | |
ipkg install cups | |
После достижения конечной цели - следует снести! | |
1. Берем ноут с виндой и воткнутым настроенным расшаренным принтером. | |
Заходим в свойства и в разделе "Доступ" -> "Дополнительные драйверы", проставляем галочки на x86 и x64. Кормим диск с дровами. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum localinstall http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-centos91-9.1-4.noarch.rpm | |
yum install postgresql91 postgresql91-server | |
service postgresql-9.1 initdb | |
chkconfig postgresql-9.1 on | |
service postgresql-9.1 start | |
su - postgres | |
/usr/pgsql-9.1/bin/psql | |
mcedit /var/lib/pgsql/9.1/data/pg_hba.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e # fail on any error | |
template="Debian-wheezy_7.6_amd64.tar.gz" | |
hostname="fox.dts.com"; id="102"; ip="155.75.11.23"; swap="0"; disk="20"; cpus="4"; mem="2048" | |
pvesh create /nodes/oss-hn01/openvz -vmid $id \ | |
-hostname $hostname \ | |
-storage local -ostemplate local:vztmpl/$template \ | |
-memory $mem \ | |
-swap $swap \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://doc-0s-1k-docs.googleusercontent.com/docs/securesc/jgt1n40rh1a5v0jkb1ak9ljihv97glhm/3jhj5omch3bgmnlab0952tptudbq874m/1424556000000/08786061292528027406/06273899509421333520/0B-EthI79WXHNZnh3cDBRd1IwUmM?e=download&h=09874388012917686259&nonce=dauiqj7p4vefs&user=06273899509421333520&hash=g6p8ha7fpg8kttn9cj10r3rdhecepb9k |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Site-to-Site OpenVPN routing | |
1. Server | |
89…. White public | |
192.168.1.1(/24) | |
[psychov@home openvpn]$ cat openvpn.conf | |
dev tun | |
ifconfig 10.1.0.1 10.1.0.2 | |
script-security 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Add client feature and attach to remote subvolume | |
volume mp-sas1-imp01 | |
type protocol/client | |
option transport-type tcp | |
option remote-host 213.133.111.249 | |
option remote-port 49994 | |
option remote-subvolume mp-sas1 | |
option username MP | |
option password sPOUwe74w38sdkl | |
end-volume |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Export volume | |
volume mp-sas | |
type storage/posix | |
option directory /mnt/glusterfsd/SAS-DFS | |
end-volume | |
volume mp-sata | |
type storage/posix | |
option directory /mnt/glusterfsd/SATA-DFS | |
end-volume |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Add client feature and attach to remote subvolume | |
volume mp-sas1-imp01 | |
type protocol/client | |
option transport-type tcp | |
option remote-host 213.133.111.249 | |
option remote-port 49994 | |
option remote-subvolume mp-sas1 | |
option username MP | |
option password sPOUwe74w38sdkl | |
end-volume |