Apache2 port overlap

[warn] _default_ VirtualHost overlap on port 443, the first has precedence
Add this line to the ports.conf:

NameVirtualHost *:443

Reset Firefox preferences to troubleshoot and fix problems

"Resetting preferences (zoom, tabs, privacy, network, encryption, download actions, etc.) is one of many procedures that can be helpful in fixing Firefox issues."

X forwarding on CentOS


If you get this error:

X11 forwarding request failed on channel 0

Install these:

yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils

mount disk image that contains LVM volumes

The easy way:

- install kpartx package (yum install kpartx)
- create device map from the disk image partition table (kpartx -a diskimage.img or kpartx -a /dev/volume-group/volume)
- rescan physical volume in the disks (pvscan)
- makes active the volume (vgchange  -a y /dev/other-volume-group/volume)
- mount it (mount /dev/other-volume-group/volume /path)
Hard way:

MySQL/MariaDB database size

SELECT table_schema "Data Base Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;

Virual machine disk expand in VirtualBox

VBoxManage modifyhd virtual-machine-disk.vdi --resize <new size in MB>


Subscribe to RSS - blogok