WordPress: RSS Widget Bug builtin Widget (class-wp-widget-rss.php)

Details: If you enable the basic builtin RSS Widget Module and set the RSS Feed URL like

http://www.domainname.com/feed/ the widget set the URL only on the little „RSS Icon“ but NOT on the RSS Hyperlink ! The Hyperlink is pulling the Value of $url (www.domainname.com) but not adding „/feed/“ subdir value.

Solution:

  1. go ../wp-includes/widgets/
  2. edit with $nano class-wp-widget-rss.php
  3. go line 81 show title „rsswidget“  href “ ‚  .  esc_url ( $link ) .  #change here $link to $url
  4. exit and save..
  5. check results..

Ubuntu Debian: Installer Messages during Installation Realtime Debug Installer Mode

If you boot your PC on a Setup CD into „live“ mode after some time the Desktop Unity or Gnome starts. After successful testing the PC with the current Drivers and Kernel you can select „Install“ by pressing the icon left on the desktop. But here the Problem appear that you dont see any informations about bugs, crashes, or other major messages during the setup. Without this you are not able to find any errors later, or you cant tell a supporter what happend!

Workaround (#comments!):

  • Always open a gnome-terminal as first step instead of pressing the installer icon!
  • move the gnome-terminal window on lower screen area to 100% width!!!
  • Enter there:

$sudo tail -f /var/log/syslog   # some Linux uses /var/log/messages!

  • Now press Installer icon! and view Log in realtime

Hope this help to fix bugs like freezes of often seen SSD Errors I/O…

Ubuntu 13.04 Bug: gvfs smb Nautilus freeze hangs on copy files from a Samba Share

gvfs-smb Bug #1075923 (seen on Debian+Ubuntu+Centos..more..)

Workaround:

downgrade gvfs-* to Version 1.12 of 12.10 with:

  • add /etc/apt/sources.list

deb http://de.archive.ubuntu.com/ubuntu precise main
deb-src http://de.archive.ubuntu.com/ubuntu precise main

  • run: sudo apt-get update
  • install synaptic: sudo apt-get install synaptic
  • run synaptic: sudo synaptic
  • remove all gvfs-* nautilus with synaptics (REALLY CHECK ALL! see „dpkg -l | grep gvfs“)
  • search gvfs-*, select, press CTRL+E (Force Menu)
  • select: gvfs-* Versions 1.12
  • install by run install button
  • search and install nautilus again..

Voila…Test Nautilus copy 1TB Files without freeze

Hardware Bugs: Seagate ST3000DM001 9YN166 3TB Drives Click Noise

Problem:

  • My brand new Seagate Drives running as Raid1 with two Seagate ST3000DM001-9YN166 on Debian clicks sometimes.

Background:

  • Noise is made by parking heads and spin control by the firmware, often seen on Home NAS
  • (Update 2017: The Firmware of this Generation is buggy, Fault rate 70% after 2 Years)

Solution:

  • go to Manufacter Site and download the firmware update iso
  • burn it to CD
  • reboot the PC on this CD, using Freedos and the Update tool
  • update the firmware and reboot to Linux again
  • edit with sudo vi /etc/rc.conf

/sbin/hdparm -W 0 /dev/sda #Systemdrive disable Cache against Powerloss!
/sbin/hdparm -W 0 /dev/sdb #Raiddrive 1 disable Cache against Powerloss!
/sbin/hdparm -W 0 /dev/sdc #Raiddrive 2 disable Cache against Powerloss!
/sbin/hdparm -S 0 /dev/sdb #Disable Spindown/Poweroff forced!
/sbin/hdparm -S 0 /dev/sdc #Disable Spindown/Poweroff forced!

  • This Parameters should be used on Servers, Performance need running drives not sleeping drives!
  • Every Spindown/Spinup breaks the life of the drives!

Ubuntu 12.04 Bug High Prio : Grub 2 grub-pc hangs on reboot timeout not working

Prio 1: Set to Prio 1 cause it prevent a remote ubuntu Server from Boot without interactive root access to the Grub 2 Boot Screen !!

Problem: If you do a release upgrade to ubuntu 12.04 use grub-pc and have a seperate /boot partition (sda1) then your server won’t boot without you pressing enter at the grub2 grub-pc menu.

Background: this is a older known bug of a header skript template.

Solution:

  1. for Servers you should remove grub2 and install grub
  2. or make changes with

sudo nano /etc/grub.d/00_header

make_timeout ()
{
cat << EOF
if [ "\${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=${2}
fi
EOF
}

change to:
make_timeout ()
{
cat << EOF
set timeout=0
EOF
}

recreate /boot/grub/grub.cfg with:
sudo grub-mkconfig
sudo update-grub

..now cross fingers and reboot the PC/Server..hope it will boot up!

REMARK: MY published security tip against init destroy by crashes setting at /etc/fstab to mount /boot partition readonly should NOT used on ubuntu 12.04 cause a file named grub-env is updated on every boot for a function named failover stamp, which prevent the timeout to auto boot a crashed server (lost power), cause the root must be manual touch the grub to boot a server to repair mode called „single mode“ or „rescue mode“.

Linux Bug: Disable Framebuffer Nvidia free Driver Nouveau for hanging xserver-xorg (for Servers)

Problem: Nouveau the free Version of the Nvidia Display Driver crash if you switch to Console or kill the xserver-xorg.Its enabled by default inside the KERNEL!! this WAS NOT DEFAULT at last DECADES!! (DEBIAN 3.0-5.0 never used it!, cause bugs and hanging Servers)

Solution:

echo 'blacklist nouveau' &gt; /etc/modprobe.d/blacklist-nouveau.conf

then edit with $sudo nano /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2&gt; /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="noquiet nouveau.nomodeset=0"     #on Ubuntu set "nomodeset noplymouth"
...

update grub Loader with
sudo update-grub2

REMARK: THIS MUST BE USED AT SERVERS FOR STABILITY!! REMOVE / BLACKLIST ALL UNEEDED DRIVER MODULES LIKE SOUND!
(DISABLE ALWAYS UNNEEDED CHIPS AT YOUR BIOS AGAINST PROBLEMS AND ENERGY COSTS)

Linux Bug: SATA failed command: WRITE FPDMA QUEUED ata3.00 ncq freeze hang

Problem: If you copy or install Files from Disk to Disk somtimes the fresh installed Debian Ubuntu Linux in Textmode (server minimal setup) current kernel freezes or lost connect to the Disks. Take a CLOSER LOOK the Error often affects ALL DISKS !! If only one Disk  affected replace the Drive to SATA600

Hardware:  Asus M4n75TD NEW with Phenom 1090T X6 and 8GB Ram and

/dev/sda:
Model=Hitachi, FwRev=GM4OA52A, SerialNo=GEA530RF1RDDGA
Config={ HardSect NotMFM HdSw&gt;15uSec Fixed DTR&gt;10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=56
BuffType=DualPortCache, BuffSize=15118kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: unknown:  ATA/ATAPI-2,3,4,5,6,7

/dev/sdb:
Model=ST3320620AS, FwRev=3.AAE, SerialNo=9QF8EZ82
Config={ HardSect NotMFM HdSw&gt;15uSec Fixed DTR&gt;10Mbs RotSpdTol&gt;.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=625142448
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

Errors seen on syslog:

...
Mar 17 20:31:44 phenom kernel: [   45.026839] ata1.00: status: { DRDY }
Mar 17 20:31:44 phenom kernel: [   45.026887] ata1.00: failed command: WRITE FPDMA QUEUED
Mar 17 20:31:44 phenom kernel: [   45.026934] ata1.00: cmd 61/28:20:18:9c:4c/00:00:1d:00:00/40 tag 4 ncq 20480 out
Mar 17 20:31:44 phenom kernel: [   45.027042] ata1.00: status: { DRDY }
Mar 17 20:31:44 phenom kernel: [   45.027087] ata1.00: failed command: WRITE FPDMA QUEUED
Mar 17 20:31:44 phenom kernel: [   45.027134] ata1.00: cmd 61/18:28:d8:d0:4c/00:00:1d:00:00/40 tag 5 ncq 12288 out

Solution Steps:

  • Check SATA Cable and reboot and check
  • Replug all Cables and reboot and check
  • Change the SATA PORTS! Sata1 to Sata2 for Disk0
  • Change the SATA PORTS! Sata3 to Sata4 for Disk1
  • Often the Harddisks are NOT damaged!!
  • Looks like a failed Hardware Control by the SATA 600 Controllers with SATA 300/150
  • take new SATA 600 Drives and recheck

Remark: Windows Systems have same Error without Logs, the Systems seems to hang for seconds!

 

Debian Squeeze Bug: udevd-work: kernel-provided name ‘uinput’ and NAME= ‘input/uinput’ disagree, please use SYMLINK+

Problem: After a fresh Setup and first Reboot of Squeeze the Boot Message

udevd-work[77]: kernel-provided name 'uinput' and NAME= 'input/uinput' disagree, please use SYMLINK+= or change the kernel to provide the proper name

appears
Solution:
edit:
sudo nano /lib/udev/rules.d/50-udev-default.rules

and change,
KERNEL=="uinput", NAME="input/%k"

to:
KERNEL=="uinput", SYMLINK+="input/%k"