Categories
Belekas Fun Linux install Linux tarnybos Paskaitos

Install CentOS Linux 8 and similar

Everything here is not mandatory, but nice to have, at least for me 🙂 Partition layout External links https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/index.html

Categories
Fun OpenStack Paskaitos TripleO Trumpi

Build and set root pass for TripleO introspection and overcloud-full.qcow2 image

Build image Please keep in mind, that in the middle of C8 repo filenames were changed… and some package names… so if it fails, double check if all is good. Also I have enabled PowerTools (to help it find rubby, or some libs for rubby) and other openstack-ussuri-release repos… Ok, once everything is built, let’s […]

Categories
Belekas OpenStack

setting up your image for a cloud using cloud-init

Currently, some links on how to create a cloud image. https://cloudinit.readthedocs.io/en/latest/topics/examples.html https://cloudinit.readthedocs.io/en/latest/topics/network-config-format-v1.html#more-examples https://www.lisenet.com/2017/centos-7-server-hardening-guide/ https://rharmonson.github.io/cos7inst.html https://access.redhat.com/discussions/664843 https://ask.openstack.org/en/question/63589/centos-7-password-issue-for-guest-image-kindly-suggest/ https://ask.openstack.org/en/question/60803/any-openstack-centos-image-with-a-set-password-i-can-use/

Categories
Fun Kompai Trumpi

iptables taisykles part2

iptables –A OUTPUT -p tcp -m multiport –dport http,https -i eth0 -o eth1 -m time –timestart 12:00 –-timestop 13:00 –d 31.13.64.0/18 -j ACCEPT iptables -A INPUT -p udp -m time –timestart 02:00 –timestop 03:00 -j DROP iptables –A INPUT –p tcp –syn -m multiport -–dport http,https –m connlimit -–connlimit-above 20 –j REJECT -–reject-with-tcp-reset iptables -L […]

Categories
Fun Kompai Linux tarnybos Paskaitos

postfix pašo serveris [sasl2+dovecot+maildir]

Laba diena, pasigaminau savo pašto serveriuką: Viskas labai paprasta… Domenas: lpic.lt Useris: usernameas Pass: Pass123! Iš esmės mums reikia susidiegti aptitude update && aptitude -y install postfix sasl2-bin dovecot-pop3d dovecot-imapd besidiegiant jūsų klaus klausimų, galite į juos neatsakinėti… arba įrašom betką! Tuomet įmetam į postfix konfigą /etc/postfix/main.cf: myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP biff […]

Categories
Fun Kompai LPIC 1 LPIC 101 Paskaitos Trumpi

bash trumpiniai (shortcuts, hotkeys)

Designator Description !! Skaitoma: bang-bang, si komanda iskviecia paskutine komanda. Sauktukas daznai vadinamas bang Linux ir Unix sistemose. !n Iskviecia n-taja komanda isistorijos. history komandos pagalba galime pamatyti siuos numerius. !-n Kreipiames i pries n enter paspaudimu vykdyta komanda is istorijos. !string Kvieciame paskutine komanda, kuri prasidejo string. !?string iskvieciam paskutine komanda, kurioje buvo pamineta […]

Categories
Kompai Kompiuterių tinklai

iptables router

Sveiki, susilaukiau klausimu, kaip pasidalinti internetu su kitu kompu turint dvi tinklo plokstes. Taigi labai paprasta. Tikriausiai Jus naudojate standartini branduoliuka, del to ten bus visi branduolio moduliai ijungti. Bet del viso ko galite pasibandyti, jei tingit, pereinam prie FW script’uko: lsmod | grep ip_tables lsmod | grep x_tables Jei ten negauname rezultato: ~# lsmod […]

Categories
Fun Kompai Kompiuterių tinklai Trumpi

(!COPY!) How to Hack wifi (and how to avoid being hacked) WEP/WPA/WPA2 (!COPY!)

This guide is meant to show how easy it is to hack wireless networks if the proper security measures are not in place. First I will show how to hack a WEP or WPA/WPA2 Network and then I will give tips on how to avoid getting hacked. This is important information in our techno-savy culture. […]

Categories
Fun Kompai Linux tarnybos Paskaitos Trumpi

swaks tikrinimas autentifikacijos ir laiškų siuntimo per smtp serverius

Tikriname ar siunčia per ssl v2 sesiją: swaks -a -ssl -s smtp.serv.er -au uzername -ap pa5sw0rd –to jusu@ema.il Tikriname ar siunčia per tls v3 sesiją: swaks -a -tls -s smtp.serv.er -au uzername -ap pa5sw0rd –to jusu@ema.il

Categories
Fun Kompai Kompiuterių tinklai Linux tarnybos Paskaitos Trumpi

SNMP reikšmės

snmpwalk -v2c -O n -c local 127.0.0.1 .1.3.6.1.2.1.1.3.0 #- uptime snmpwalk -v2c -O n -c local 127.0.0.1 .1.3.6.1.2.1.25.1.1 #- uptime snmpwalk -v2c -O n -c local 127.0.0.1 .1.3.6.1.2.1.6.13.1.3 # – TCP listenning ir uzmegstos sesijos. snmpwalk -v2c -O n -c local 127.0.0.1 .1.3.6.1.2.1.25.2.3.1.5 #- Total disk space snmpwalk -v2c -O n -c local 127.0.0.1 .1.3.6.1.2.1.25.2.3.1.6 […]