Sponsors3

How install Aegir octopus High performance Hostmaster for Drupal

I have tried install BOA-3.0.2 to host my many Drupal sites and I have struggled a lot install it. I am hopping this write up may help someone to have better experience.

This is the description from the smart people who developed this software/script.

BOA is an acronym of high performance Barracuda, Octopus and Aegir LEMP stack.

Includes all-in-one bash scripts (see docs/INSTALL.txt for details) to install
and upgrade high performance Aegir Hosting Systems for Drupal, with Nginx, PHP-FPM, Zend OPcache, MariaDB and Redis.

What is Octopus?

Change Proxmox port number from 8006 to 443

First off this is not secure and it is not recommended on a production environment. There are two ways of doing this. First is by editing /usr/bin/pveproxy.
Somewhere in
my $socket = $self->create_reusable_socket(8006);
Change the port value, 8006 to your desired number, save the modification, and restart pveproxy:

sudo service pveproxy restart

This is may not available on the newer proxmox servers. Therefore, and easy way to do it by using iptables command like this:

Directory /proc/vz not found, assuming non-OpenVZ kernel Container init failed: Cgroup is not mounted TASK ERROR: command 'vzctl destroy 100' failed: exit code 5

Directory /proc/vz not found, assuming non-OpenVZ kernel
Container init failed: Cgroup is not mounted
TASK ERROR: command 'vzctl destroy 100' failed: exit code 5

TO delete just navigate to /etc/pve/nodes/xxxx/openvz/ and delete the file which has the vm number. Mine was 100.conf
$ rm 100.conf
This will completely delete the node.

PDOException: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction: DELETE FROM {cache_bootstrap} WHERE (cid = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => variables

Tags: 

If you see the below error. It is your database telling you restart me
$ service mysqld stop
$ service mysqld start
PDOException: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction: DELETE FROM {cache_bootstrap}
WHERE (cid = :db_condition_placeholder_0) ; Array
(
[:db_condition_placeholder_0] => variables

Downloading large file wget

I was once trying to mirror whole site completely. The site breaks occasionally and needed to start wget and get the rest of the files.
So here what worked for me.

wget --convert-links --random-wait -N -r -p -E -e robots=off -U mozilla http://example.com.
What is important is the -N, this is to see if file is newer to other already downloaded. If cannot file or it is less or more than the one already downloaded it will downloaded again.

how to make bootstrap image responsive

Add this at the end of your custom css usually the file called style.css

img { width: 100%; }
you can also use img{display-block; width:100%;}
or
img {
display: inline-block;
height: auto;
max-width: 100%;
}

or
img {
display:block;
height: auto;
max-width: 100%;
}

Whichever works for you. Display block turns the image to a block element and will put it on its own line. Me; I just use img{width:100%;}

That is all there is to it.

how to delete mac Trash from command line

Type this command
sudo rm -Rf ~/.Trash/*

To delete all Trashes

sudo rm -rf /Volumes/*/.Trashes

Copy and paste it on your command line

Find users disk usage in Mac OSX Server

TO find highest users on folders in command line type:

$ du -xhd1 /Users/
Or whatever folder you're trying to find get the size.
144G /Users/admin
304M /Users/anisam
16K /Users/Shared

You will get something like this. you can delete user the causing the problem

haldaemon- What is this?

If you see this is a monitor that checks on hardware on your server. This is how it is described:
hald is a daemon that maintains a database of the devices connected to the system system in real-time. The daemon connects to the D-Bus system message bus to provide an API that applications can use to discover, monitor and invoke operations on devices. For more information about both the big picture and specific API details, refer to the HAL spec which can be found in /usr/share/doc/hal-0.5.14/spec/hal-spec.html depending on the distribution.

Youtube API gdata to fetch videos

To fetch youtube gdata you need to use the following path
This code is v2 is deprecated by google
http://gdata.youtube.com/feeds/api/videos?q=wahtiskeyword-youlookingfor&...
http://gdata.youtube.com/feeds/api/videos?q=drupal&orderby=published&v=2
With will get up to 25 videos with keyword durpal orderby published date.