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 […]
Archive for the ‘Пингвин’ Category
1 2 3 4 5 6 7 8 9 10 11 |
mkdir Printer cd Printer wget -c --content-disposition http://ubuntuone.com/78fFlyOAtRwESzSkGv7Dnl sudo dpkg -i ia32-libs-multiarch_20090808ubuntu26_i386.deb <strong><em>На ошибку внимание не обращаем, а продолжаем дальше</em></strong> sudo apt-get install -f sudo dpkg -i ia32-libs-multiarch_20090808ubuntu26_i386.deb wget download.support.xerox.com/pub/drivers/3010/drivers/linux/en_GB/xerox-phaser-3010-3040_1.0-28_i386.zip unzip xerox-phaser-3010-3040_1.0-28_i386.zip sudo dpkg -i xerox-phaser-3010-3040_1.0-28_i386.deb |
Далее Параметры системы → Принтеры (Печать) → etc…
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 […]
“A Disk Read Error” while starting Windows after Ubuntu upgrade + Boot Repair
Posted: 22nd Октябрь 2013 by shmyak in Пингвин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 […]
1) При загрузке останавливаем загрузчик на GRUB нажатием любой кнопки. 2) Выбираем нужную строчку и нажимаем e. 3) Выбираем строчку с kernel (kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/) 4) Дописываем в конец строки single и нажимаем Enter 5) Нажимаем b для загрузки системы 6) После загрузки меняем пароль (passwd)
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 […]
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 […]
1 2 3 4 |
#!/bin/bash if [ ! -d "$2" ]; then mkdir -p "$2" fi |
Допиливание fail2ban для pure-ftpd
Posted: 19th Сентябрь 2012 by shmyak in ПингвинTags: fail2ban, pure-ftpd
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 \[.+\]$