ls -ld /
does it return
drwx—— 24 root root 4096 Feb 5 16:41 /
then execute this!
chmod 755 /
ls -ld /
does it return
drwx—— 24 root root 4096 Feb 5 16:41 /
then execute this!
chmod 755 /
place the following in /etc/rc.local
sleep 30
xe vm-start tags=autostart –multiple
mark all VMs with autostart tag and they’ll be started!
startup script
in cron
@reboot /etc/path_to_script
script..
#!/bin/bash
echo “connected > /sys/class/net/ib0/mode”
echo “connected > /sys/class/net/ib0/mode”
ibconfig ib0 mtu 65520
ibconfig ib1 mtu 65520
#make sure sdp is loaded… just in case!
/sbin/modprobe ib_sdp
#TCP Tuning for IPOIB
/sbin/sysctl -w net.ipv4.tcp_timestamps=0
/sbin/sysctl -w net.ipv4.tcp_sack=0
/sbin/sysctl -w net.core.netdev_max_backlog=250000
/sbin/sysctl -w net.core.rmem_max=16777216
/sbin/sysctl -w net.core.wmem_max=16777216
/sbin/sysctl -w net.core.rmem_default=16777216
/sbin/sysctl -w net.core.wmem_default=16777216
/sbin/sysctl -w net.core.optmem_max=16777216
/sbin/sysctl -w net.ipv4.tcp_mem=”16777216 16777216 16777216″
/sbin/sysctl -w net.ipv4.tcp_rmem=”4096 87380 16777216″
/sbin/sysctl -w net.ipv4.tcp_wmem=”4096 65536 16777216″
http://www.raido.be/knowledge-center/blog/detail/xenserver-6-auto-start-vms
# AutoStart VM's that are tagged with autostart tag
# Script created by Raido Consultants - http://www.raido.be
TAG="autostart" # helper function
function xe_param()
{
PARAM=$1
while read DATA; do
LINE=$(echo $DATA | egrep "$PARAM")
if [ $? -eq 0 ]; then
echo "$LINE" | awk 'BEGIN{FS=": "}{print $2}'
fi
done
} # Get all VMs
sleep 20
VMS=$(xe vm-list is-control-domain=false | xe_param uuid) for VM in $VMS; do
echo "Raido AutoStart Script : Checking VM $VM"
VM_TAGS="$(xe vm-param-get uuid=$VM param-name=tags)" if [[ $VM_TAGS == *$TAG* ]]
then
echo "starting VM $VM"
sleep 20
xe vm-start uuid=$VM
fi done
or just do this:
sleep 30
xe vm-start tags=autostart –multiple
/etc/xensource-inventory
xenbr0
methods to reset management network.
xe host-management-disable
xe pif-list
xe pif-unplug uuid=
xe pif-forget uuid=uuid of PIF>
xe pif-introduce host-uuid= device= mac=
xe pif-plug uuid=
xe pif-reconfigure-ip uuid= mode=static IP= netmask= gateway= DNS=
xe host-management-reconfigure pif-uuid=
tune2fs -r 0 /dev/xvde1
reset reserved blocks to zero!
Great guide for configuring push notification:
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
User and Group setup
First you will want to establish the sftponly group
groupadd sftponly
Then create the user with the correct home directories and group
useradd -d /var/www/vhosts/bob -s /bin/false -G sftponly bob
Don’t forget at this point to also add password to these new accounts.
SSHd configuration changes
Now we need to make changes in /etc/ssh/sshd_config to enable SFTP chroot jails in SSH.
Comment out the following line in /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/openssh/sftp-server
and replace it with this line:
Subsystem sftp internal-sftp
Then add the following set of lines to the very bottom of the file:
Match Group sftponly
ChrootDirectory /var/www/vhosts/%u
X11Forwarding no
AllowTCPForwarding no
ForceCommand internal-sftp
This creates a special login group that then chroot jailed all users in that group into their own home directory.
Once these file changes are saved you will need to restart SSHd for the changes to take effect, using the following command:
service sshd restart
Permissions cleanup and testing
Last issue to address is the permissions settings, for this example the directories /var/www/vhosts/bob and /var/www/vhosts/ted should both be owned by root. The directory /var/www/vhosts/ted/site1 should be owned by ted and the directory /var/www/vhosts/bob/site1 should be owned by bob.
I searched high and low to get mod-deflate working.
the short answer is.
1. Make sure you are loading mod_deflate!
2. Make sure you have the following within your httpd.conf file to enable compression across all vhosts
AddOutputFilterByType DEFLATE text/html text/plain text/xml
Native support for Areca 188x devices is available in > 2.6.37 linux kernel.
However mainstream kernel is still at 2.6.32, meaning that you need to perform some trickery to install a Areca card onto Debian. The following is my method.
I compiled the latest Areca driver onto a debian system that was already running, download the source from the areca website, and build the driver. Place the driver in a location where it is accessible, the easiest method would be to have the driver on a web accessible url for later retrieval.
Burn a netinstaller ISO to a USB key and boot the desired system.
Following the bouncing ball prompts for installation, when you get to detect drives, escape to a shell and find your way to the following directory
/lib/modules/2.6.32.
delete acrmsr.ko and copy across your newly compiled acrmsr.ko areca driver that you built in the first step.
exit the shell and continue the installation.
When the system finishes installing. DO NOT REBOOT. go back into the shell and chroot into the target directory like this
chroot /target
go to the driver directory
/lib/modules/2.6.32.
delete the driver and re-download the new arcmsr.ko file.
now we just need to update the initramfs
update-initramfs -k all -u
A word of caution, if the kernel is upgraded you must perform these steps again, ensuring that the initramfs is also updated otherwise your system will be unbootable!
Recent Comments