Category: Linux
Posted by: radoozz
cat packages.txt | xargs sudo apt-get install
Category: Linux
Posted by: radoozz
apt -y install gnupg

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -

apt-get install apt-transport-https

echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee /etc/apt/sources.list.d/elastic-7.x.list

apt -y update
apt -y install elasticsearch kibana

systemctl daemon-reload

systemctl enable elasticsearch.service
systemctl enable kibana.service

systemctl start elasticsearch.service
systemctl start kibana.service

#list all index: curl -XGET 'localhost:9200/_cat/indices?v'
#delete index: curl -XDELETE 'localhost:9200/index_name'
#delete all indices: curl -XDELETE 'localhost:9200/_all'
#delete document : curl -XDELETE 'localhost:9200/index_name/type_name/document_id'
#get stats : curl -XGET 'localhost:9200/_stats/'
Category: Linux
Posted by: radoozz
ssh-keygen -i -f old.pub > new.pub
Category: Linux
Posted by: radoozz

'GRUB_CMDLINE_LINUX="net.ifnames=0"' >>/etc/default/grub
grub-mkconfig > /boot/grub/grub.cfg