aws iam update-user –user-name suse-dev –new-user-name sqs-dev
nJoy π
aws iam update-user –user-name suse-dev –new-user-name sqs-dev
nJoy π
tcpdump -s 0 -l -w - dst port 3306 | strings
nJoy π
sudo yum --enablerepo epel-testing install s3cmd
njoy π
In recent CentOS version 6.3 is an unresolved bug, which causes the network card to freeze the server.
Following message appears in /var/log/messages
kernel
To work around the problem you will need to turn off Active-State Power Management (ASPM)
(Feature that saves power in the Peripheral Component Interconnect Express (PCI Express or PCIe) subsystem by setting a lower power state for PCIe links when the devices to which they connect are not in use)
For GRUB bootloader edit the following file: /boot/grub/grub.conf and append pcie_aspm=off to the end of kernel boot line.
For example:
kernel /vmlinuz-2.6.32-279.el6.x86_64 ro root=UUID=81e9e0a2-0a51-4d75-955d-909aaf848192 rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_NO_DM rd_MD_UUID=c6855f45:016a63bb:2d79bfb2:07371ed8 rd_NO_LVM rd_MD_UUID=5d5a434e:6c20cfcd:51340c3f:29c29151 pcie_aspm=off
To verify the change, reboot the server and run the following command:
dmesg | grep PCIe PCIe ASPM is disabled
If your output is different, the change in grub.conf did not take an effect.
vim /etc/sysconfig/clock
ZONE=”Europe/London”
ln -sf /usr/share/zoneinfo/Europe/London /etc/localtime
done..
nJoy π
echo 100 > /sys/module/ipmi_si/parameters/kipmid_max_busy_us
nJoy π
yum install rsyslog -y
Add the following to rsyslog.conf on the client system
############ $ModLoad imfile $InputFileName /var/log/elasticsearch/elasticsearch.log $InputFileTag elasticsearch $InputFileStateFile stat-elasticsearch $InputFileSeverity Info $InputFileFacility daemon $InputRunFileMonitor #local3.* hostname:<portnumber> daemon.* @192.168.1.66:514 ############
Also if you want all logs to go through to syslog server:
*.* @192.168.1.66
at the end of the file.
Issue a :
service rsyslog restart
and watch the logs flow in.
nJoy π
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
nJoy ;-)
After installing elastic search it is useful for testing and training to load some sample data.
1) create mapping :
curl -XPUT http://localhost:9200/shakespeare -d '
{
"mappings" : {
"_default_" : {
"properties" : {
"speaker" : {"type": "string", "index" : "not_analyzed" },
"play_name" : {"type": "string", "index" : "not_analyzed" },
"line_id" : { "type" : "integer" },
"speech_number" : { "type" : "integer" }
}
}
}
}
';
2) Load the data using the bulk api:
wget "https://github.com/ropensci/elastic_data/blob/master/data/shakespeare_data.json?raw=true" -O shakespeare.json curl -XPUT localhost:9200/_bulk --data-binary @shakespeare.json
nJoy π
Might need Epel or other repo
For CentOS 6 :
yum install epel-release -y yum install net-tools man screen htop vim-enhanced wget iotop iftop sysstat usbutils nfs-utils bind-utils ntp tcpdump telnet tree mlocate zip unzip pciutils git -y
For Ubuntu
apt-get install -y glances language-pack-en net-tools man screen htop vim wget iotop iftop sysstat usbutils ntp tcpdump telnet tree mlocate zip unzip pciutils git npm sysv-rc-conf
nJoy π