Slow role ssh brute force
Discovered this slow roll ssh attack from looking at bandwidth graphs on a new hardly used server (6 bytes per second). The attached file is actually just ascii… bar.
funky networking bug
Able to download at 8-20 Mbps, only able to upload at 300kbps. Advertised rate is more than 10x that. It was on all uploads I tried (ssh, ftp, http). Aside: it is nearly impossible to do anything on Charter’s website but get stuck in their endless “help pages”. Finally called Read more
xcp add disk
xe sr-list #gives you a list of sr’s from which to pick a sr-uuid xe vdi-create sr-uuid= name-label= type=user virtual-size= #the above vdi-create outputs a vdi-uuid xe vm-list # gives you a list of vm’s from which to pick a vm-uuid xe vbd-create vm-uuid= vdi-uuid= bootable=false mode=RW type=Disk device= #pick Read more
new vps with centos 6 for tinydns secondary
yum update -y ; vi /etc/sysconfig/iptables; #configuring iptables is an exercise for the reader iptables-restore /etc/sysconfig/iptables; /etc/init.d/httpd stop; chkconfig –del httpd; /etc/init.d/sendmail stop; chkconfig –del sendmail; /etc/init.d/xinetd stop; chkconfig –del xinetd; #install daemontools (djb does crazy things with symlinks – trust me when I say you want this package installed Read more
backup to warm-swapable disk
#physically insert disk # on this next line the hostN number may be different echo “- – -” > /sys/class/scsi_host/host5/scan mount /dev/sdc1 /mnt rsync -aHxv /boot /mnt rsync -aHxv /dev /mnt rsync -aHxv / /mnt #this is for a special home directory mount –bind / /media rsync -axv /media/home/user /mnt/home/ Read more
djbdns dnscache
This is great simple way to get off of your ISP’s dns, e.g. stop them redirecting you to their search partner when you typo. And very handy if you’re working with DNS or changing webhosts, in that a quick sudo killall dnscache clears out your cache so you can see Read more
xcp resize memory
xe vm-memory-limits-set static-min=512MiB dynamic-min=512MiB dynamic-max=512MiB static-max=512MiB uuid=
xcp resize disk
xe vm-shutdown vm= xe vbd-list vm-uuid= xe vdi-list uuid= xe vdi-resize uuid= disk-size=xGiB xe vm-start vm= # resize4fs /dev/xvda
oh Nvidia 6150se how I hate thee
I have been battling with you since I purchased you 4 years ago on a BIOSTAR MCP6P M2+ motherboard. The many dozens of hours of tweaking to keep you and ubuntu playing nicely. The iterative search for the right combination of nvidia drivers each time I changed anything. The final Read more