knife configure client /path/to/tempdir できたファイルをnodeに置く /etc/chef/client.rb /etc/chef/validation.pem で↓のコマンドでOK chef-client参考リンク
http://hivecolor.com/id/46
knife configure client /path/to/tempdir できたファイルをnodeに置く /etc/chef/client.rb /etc/chef/validation.pem で↓のコマンドでOK chef-client参考リンク
8000C 284871170 10382
file sp-sc-auth readelf -h sp-sc-authみたいにするとELF32の実行ファイルだとわかる
dpkg --add-architecture i386 apt-get install ia32-libs-i386
./sp-sc-auth sop://broker.sopcast.com:3912/6001 3908 8908
MS4wMzZ8fDEzNzk3OTY0MDAxNzZ8MTExMTExfDIuODQyMjMzOTk5Mzk0ODU3M2UrMjg7MjQzODM3NDc4MTg4NjU7MjkyNDsxMDsyNjE5MDI0Njc1NzszMTstMTstMTswOzA7MDswOzY1OzI0NzN8MzI5LDMzMiw1MzcwMTczODQ3MiwwOzIwMSwyMDEsMTc4MDEzMDQ4NiwwOzIwMCwyMDAsMjc0MjQ0ODIsMDsyMDMsMjAzLDk5MzA3NDM3LDA7MTY3LDE2NywzMjk4NDc2NzIsMDsxMDYsMTA2LDM5OTE3NjQyNSwwOzEwNywxMDcsMTI2MzM4Njc5NywwOzExOSwxMTksMTY1NTgwODE5NTksMDsxMjUsMTI1LDEzNzU4NjIxMzM3NSwwOzEzNiwxMzYsMTA4OTYwMzI2OTkwOSwwO3w0NTAzNTk5NjI3MzcwNDk1OzQ1MDM1OTk2MjczNzA0OTU7MjI1MTgwMTk2MTE2ODUxMTs0NTAzNTczNzIzNDc4NTI3OzEwNDg1NzV8NDUwMjQ5ODEwMjQ3Njc5OTsxNzUxMTY1MDE2NDczNQ%3D%3D%21END%21
auth sufficient pam_permit.so
apt-get install smartmontools
start_smartd=yes
#DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner /dev/sda -a -d sat -o on -S on -s (S/../.././02|L/../../6/03) -m hoge@example.com
/dev/sda -a -d sat -o on -S on -s (S/../.././02|L/../../6/03) -m hoge@example.com -M test
ethtool -i eth0 lspci | grep Realtek
Match User sftpuser AllowTcpForwarding no ChrootDirectory /home/chroot ForceCommand internal-sftp PasswordAuthentication yes X11Forwarding no
setxkbmap -layout jp
dpkg-reconfigure keyboard-configuration
aptitude install qemu-kvm libvirt-bin virt-managerlibvirtグループへ参加
usermod -a -G libvirt hogeuserネットワーク設定
auto eth0 iface eth0 inet manual auto br0 iface br0 inet static address 192.168.0.100 netmask 255.255.255.0 gateway 192.168.0.1 bridge_ports eth0 bridge_stp off
request_header_access VIA deny all request_header_replace VIA 1.1 Squid3
ssh -o "PubkeyAuthentication no" hogehost ssh -o "StrictHostKeyChecking no" hogehost
mysql> FLUSH LOGS; $ mysqldump --order-by-primary --single-transaction --master-data -uroot -p'passwd' databasename > databasename.dump mysql> show master status;
mysql> stop slave; mysql -uroot -p'passwd' databasename < databasename.dump mysql> start slave; mysql> show slave status;
xrandr --output HDMI-1 --rotate left --primary参考リンク
smtpd_recipient_restrictions = permit_mynetworks , check_client_access hash:/etc/postfix/client_access , permit_sasl_authenticated , reject_unauth_destination smtpd_restriction_classes = spam_restriction spam_restriction = check_recipient_access hash:/etc/postfix/rejectaddress
123.123.123.123 spam_restriction
reject@ REJECT
deb http://www.deb-multimedia.org squeeze main non-free
export EC2_HOME=$HOME/ec2 export PATH=$PATH:$EC2_HOME/bin export EC2_PRIVATE_KEY=/mnt/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem export EC2_CERT=/mnt/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem export PATH=$PATH:$EC2_HOME/bin export EC2_URL=https://ec2.ap-northeast-1.amazonaws.com
ec2-describe-regions
ettercap -Tq -M arp /192.168.0.2/ /192.168.0.11/インターフェイスは-Tのテキスト、-Cのcurses、-GのGtkと選べる
tcpflow -cse -i eth0 dst port 80-c コンソールに出力
git clone git@gist.github.com:1234567
dig [@server] domain [query-type]
a (Aレコード) any (任意の情報) mx (MXレコード) ns (NSレコード) soa (SOAレコード) hinfo (HINFOレコード) axfr (ゾーン転送) txt (TXTレコード)
NOERROR (正常) NXDOMAIN (ドメインは存在しない) SERVFAIL (サーバの応答エラー)
qr (クエリの回答) aa (権威ある回答) tc (TCPフォールバック) ra (フルサービスリゾルバ) rd (再帰要求,+norecオプションで消える)
#%PAM-1.0 @include common-auth account required pam_succeed_if.so user = hogeuser @include common-account @include common-session
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog "|/usr/bin/logger -p local6.info --" combined
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 smtpd_sasl_auth_enable = yes smtpd_sasl_path = smtpd smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destinationmynetworksからはauth無しで許可する場合はコメント外してもOK
submission inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject
adduser postfix sasl
pwcheck_method: saslauthd mech_list: plain login