Archive for the ‘Пингвин’ Category

Netgear R8000. Recovery flash in failsafe mode

Posted: 18th Апрель 2015 by shmyak in Пингвин

If you happen to brick your router, do not fear. You can use TFTP file transfer to flash the router with a new firmware. You need: A TFTP client for your computer. There are both command-line tools and GUI versions available. Your computer must have an IP address from the 192.168.1.x network, as the router […]

Xerox Phaser 3010 + Ubuntu (13.10+)

Posted: 1st Май 2014 by shmyak in Пингвин

Далее Параметры системы → Принтеры (Печать) → etc…

cisco 3560 + eltex 3124F qinq

Posted: 27th Январь 2014 by shmyak in Пингвин

Cisco0: Gi0/1 up up uplink Gi0/2 up up dpi_in Gi0/3 up up dpi_out Gi0/4 up up downlink interface GigabitEthernet0/1 description uplink switchport trunk encapsulation dot1q switchport trunk allowed vlan 40,48 switchport mode trunk spanning-tree portfast spanning-tree bpdufilter enable spanning-tree bpduguard enable interface GigabitEthernet0/2 description dpi_in switchport trunk encapsulation dot1q switchport trunk allowed vlan 40,48 switchport […]

Keyboard events

Posted: 20th Январь 2014 by shmyak in Пингвин

Test stand

sudo fdisk -l sudo mount /dev/sdaX /mnt # sdaX is the partition that has Ubuntu for i in /sys /proc /run /dev; do sudo mount —bind «$i» «/mnt$i»; done sudo chroot /mnt update-grub grub-install /dev/sda #(—force) if need sync reboot I had the same problem and I fixed it by standing on the Windows 7 […]

Сброс root password в CentOS

Posted: 9th Август 2013 by shmyak in Пингвин

1) При загрузке останавливаем загрузчик на GRUB нажатием любой кнопки. 2) Выбираем нужную строчку и нажимаем e. 3) Выбираем строчку с kernel (kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/) 4) Дописываем в конец строки single и нажимаем Enter 5) Нажимаем b для загрузки системы 6) После загрузки меняем пароль (passwd)

Сброс рутового пароля в MySQL

Posted: 10th Апрель 2013 by shmyak in Пингвин

1. Останавливаем mysql. service mysqld stop 2. Запускаем mysql следующей командой: /usr/bin/mysqld_safe —skip-grant-tables —user=root & 3. Запускаем клиента mysql mysql -u root 4. Выполняем sql запрос UPDATE mysql.user SET Password=PASSWORD(‘newpwd’) WHERE User=’root’; где newpwd — новый пароль. 5. Применяем изменения FLUSH PRIVILEGES; 6. Выходим из mysql клиента выполнив в нем команду exit 7. Перегружаем mysql […]

How to change Thunderbird default browser

Posted: 28th Февраль 2013 by shmyak in Пингвин

select Preferences from the Edit menu; go to the Advanced tab and push the Config Editor button; swear that you’ll be careful! search for the following entries and set them to true by double-clicking them: network.protocol-handler.warn-external.http, network.protocol-handler.warn-external.https, network.protocol-handler.warn-external.ftp; that’s it! The next time you’ll click on an http link in an email you’ll see a […]

Проверка наличия папки

Posted: 3rd Октябрь 2012 by shmyak in Пингвин

Допиливание fail2ban для pure-ftpd

Posted: 19th Сентябрь 2012 by shmyak in Пингвин
Tags: ,

cat /etc/fail2ban/filter.d/pure-ftpd.conf #__errmsg = (?:Authentication failed for user|Erreur d’authentification pour l’utilisateur) __errmsg = (?:Authentication failed for user|Erreur d’authentification pour l’utilisateur) #failregex = pure-ftpd(?:\[\d+\])?: (.+?@) \[WARNING\] %(__errmsg)s \[.+\]$ failregex = pure-ftpd: \(\?@\) \[WARNING\] %(__errmsg)s \[.+\]$