Refreshing commands (watch)
- No Comments
- maj, 26, 2018
- siwy
- Useful commands
watch -n 5 cat /proc/test
Read MoreAOMEI partition assistant (partitioning)
- No Comments
- maj, 18, 2018
- siwy
- OS, Useful programs
Source: aomeitech.com Very useful program to partitioning and cloning OS to other HDDs. Program is designet for Windows.
Read MoreOwn DNS (PowerDNS + PowerAdmin)
- No Comments
- maj, 14, 2018
- siwy
- DNS, Linux
Source: zaufanatrzeciastrona.pl blog.crazypi.com I. Install Apache2: sudo aptitude install apache2 II. Install MySQL, PHP and secure: sudo aptitude install mysql-server sudo mysql_install_db sudo mysql_secure_installation sudo aptitude install mysql-client sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php-pear php5-imap php5-mcrypt php5-mhash php5-ming php5-mysql php5-xmlrpc gettext sudo /etc/init.d/mysql restart sudo /etc/init.d/apache2 restart III. Install PowerDNS: sudo […]
Read MoreCRON – example
- No Comments
- maj, 11, 2018
- siwy
- Useful commands
minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names) day of week 0-7 (0 or 7 is Sunday or use names) Every 5 min */5 * * * * root /p/a/t/h/aaaa.sh Every hour, from 9:00 to 18:00 00 09-18 * * * root /p/a/t/h/aaaa.sh Every day, at 9:00 and 18:00 00 09,18 […]
Read Morenetstat – listening ports
- No Comments
- maj, 11, 2018
- siwy
- Useful commands
netstat -tlp netstat -tlpn
Read Morenmap – port scanning
- No Comments
- maj, 11, 2018
- siwy
- Useful commands
nmap -sV –script ssl-enum-ciphers www.bujakiewiczpawel.pl
Read MoreLokalne repozytorium ISO (local ISO image storage repository)
- No Comments
- maj, 06, 2018
- siwy
- XenServer
Source: linuxconfig.org I. Create a store directory: mkdir -p /var/opt/ISO_IMAGES xe sr-create name-label=ISO_IMAGES_LOCAL type=iso device-config:location=/var/opt/ISO_IMAGES device-config:legacy_mode=true content-type=iso The output of last command is UUID you need. If you dont copy UUID, you can call command xe sr-list to find UUID. UUID looks like c395d188-3c1e-c334-748b-dd699420a3b1. II. Auto refresh store: cd /root/ touch refresh-ISO_IMAGES.sh chmod 770 refresh-ISO_IMAGES.sh […]
Read MoreNaprawa konfiguracji startowej (Boot Repair Disk)
- No Comments
- lut, 18, 2018
- siwy
- OS, Useful programs
Źródła z których korzystałem: linuxmagazine.pl boot-repair-cd/home/ Boot Repair Disk Narzędzie ma ogromne możliwości. Osobiście skorzystałem z 2, mianowicie usunięcie systemu operacyjnego oraz zastąpienie GRUBa na MBR. Obraz płyty można ściągnąć z boot-repair-cd. Zalecane jest stworzenie live-USB za pomocą Rufus lub Unetbootin. U mnie zadziałał jedynie Rufus. Warto poczytać o możliwościach jakie daję i zapamiętać nazwę […]
Read MoreKonfiguracja VPN (OpenVPN)
- No Comments
- sty, 29, 2018
- siwy
- Debian, Linux
Źródła z których korzystałem: sekurak.pl forums.openvpn.net 1. Własne centrum certyfikacji I. Instalacja i organizacja CA: sudo aptitude install openvpn sudo cp -a /usr/share/easy-rsa/ /etc/CA II. Edycja pliku /etc/CA/vars: # These are the default values for fields # which will be placed in the certificate. # Don’t leave any of these fields blank. export KEY_COUNTRY=”PL” export […]
Read MoreResetowanie hasła root
- No Comments
- wrz, 12, 2017
- siwy
- Debian, Linux
1. restart 2. Rozpoczęcie edycji pierwszego wpisu GRUB przez wciśnięcie przycisku “e” (na dole są podpowiedzi jeśli to nie “e”). 3. Linia do której będziemy coś dopisywać zaczyna się kernel i kończy ro quiet może trochę się różnić. 4. Dopisujemy do tej linii na koniec rw init=/bin/bash. Zmiany po restarcie nie będą zapisane. 5. Wciskamy […]
Read More