WordPress: Change Editor Font Size without Plugins

Problem: If you use wordpress and use a high resolution Screen on your Laptop or Workstation the dehault font size is too small.

Solution:

Edit with:

#sudo nano ../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css

change value 13 to 16 or 19 at:
body {
font: 16px/19px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
margin: 10px;
color: #000;
}

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=
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 FreeBSD: Protect your Disc Data against power loss

Problem: If you use IDE or SATA Disc Drives inside your Workstation or Server without a additional uninterruppted power supply after a power loss your Disc Drives can lose data, do not boot clean up agian or damage the drive headers and sectors.

Background: SATA or IDE Drives uses “Disc Cached Controllers”, the count of this disc cache reach from 8 to 64 megabytes. In case of data write to disc, the disc controllers do cache some data who are often used. A Raid 1 Disc Mirror is affected too by this problem. SCSI od SAS are not using Cache by default.

Solution:

Install the software tool called hdparm to set the cache parameters to disabled, cause most of operating systems have enabled by default.

  1. at Debian/ubuntu do : # sudo aptitude install hdparm
  2. at Centos/Redhat do:  #sudo yum install hdparm

now lets show discs which are installed:

  1. at Debian/ubuntu do: # sudo fdisk -l
  2. at Centos/Redhat do: #sudo  /sbin/sfdisk -l
  3. at FreeBSD do: # fdisk -l

yet lets take settings to disable the cache on every boot:

  1. at all linux do: sudo nano /etc/rc.local
  2. insert for every drive
    hdarm -W 0 /dev/sdX
    (X is for a to …)
  3. at FreeBSD  do : #vi /etc/loader.conf
  4. insert once for all drives 
    hw.ata.wc="0"

Remarks:

  1. If you have two drives with same physical size inside your PC config a mdadm Software Raid 1 additional on your System.
  2. Set the PC Bios Settings to auto boot ofter power failure and plug off the power on you testing System, check the results. There should not be needed a check disk called fsck after the Test, but its better to do it.
  3. Hardware Raid Controllers do often have RAM Cache too, size 128MB up to 2GB, at power loss these Data lost, this can only be surpressed by a addtition RAM Cache Backup Battery connected to the Hardware Raid Controller

 

Google Search: Goodby Google Search

Wenn Sie auch nach negativen Erfahrungen Google nicht mehr nutzen möchten kann ich Ihnen diese URL als Alternative anbieten:
If you want to use a other Internet Search as Google try this URL as Homepage for your Browser

http://de.search.yahoo.com/

goodby google search