Forfatterarkiv: black

Extend FreeBSD ZFS inside KVM with virsh

## Example details: # Disk is sized 15G, we will extend it to 25G. # RAM is 2G, Swap is also 2G. # First partition is freebsd-boot. # Second and third is eigher freebsd-swap or freebsd-zfs. I will cover both … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base, Zfs | Skriv en kommentar

check if all wordpress installations is updated

This will probably not work, if a non-wordpress webdir contains a directory named ‘wp-includes’. Those webdevelopers were probably smoking pot anyway 🙂 web01:~# find /var/www/virtual -type d -name wp-includes | xargs -n1 -I{} -i bash -c ‘echo {} | cut … Læs resten

Udgivet i Knowledge Base, Linux, Old Base, Wordpress | Skriv en kommentar

ispcp disable mail for a domain

nano /etc/postfix/ispcp/domains comment domain cp /etc/postfix/ispcp/domains /etc/ispcp/postfix/working cd /etc/postfix/ispcp postmap domains !!!!! New and improved version *** It works with the gui: – switch to the user (dom.tld) – delete all mail accounts – switch back to the corresponding reseller … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

OpenVZ recipies

#tcpsockets (must set both upper mem limit and numsockets) VZID=199 SOCKET_MB=5 NUM_SOCKETS=360 \ SOCKET_BAR=$((1024**2*$SOCKET_MB)) \ SOCKET_LIM=$(($SOCKET_BAR+($NUM_SOCKETS*2560))) ; \ vzctl set $VZID \ –numtcpsock $NUM_SOCKETS \ –tcpsndbuf $SOCKET_BAR:$SOCKET_LIM \ –tcprcvbuf $SOCKET_BAR:$SOCKET_LIM \ –save #othersockets, ie mysql etc. (must set both upper … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

USB Serial OSX install

The new unit: Has no label on the unit. Vendor-id: 0x0403 (Future Technology Devices International Limited) Product-id: 0x6001 Download the driver from: http://www.ftdichip.com/Drivers/VCP.htm The old unit: Is labeled Belkin on both sides of the unit. Vendor-id: 0x050d (Belkin Corporation) Product-id: … Læs resten

Udgivet i Knowledge Base, Old Base | Skriv en kommentar

SSL SMTP operation

% perl -MMIME::Base64 -e ‘print encode_base64(“\000base\@example.net\0001234abcd”)’ AGJhc2VAZXhhbXBsZS5uZXQAMTIzNGFiY2Q= % telnet 1.2.3.4 25 220 smtp.example.net NO UCE ESMTP ehlo testing 250-smtp.example.net NO UCE 250-STARTTLS 250-PIPELINING 250 8BITMIME quit % openssl s_client -starttls smtp -crlf -connect 1.2.3.4:25 220 a.mx.jms1.net NO UCE ESMTP ehlo … Læs resten

Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

SSL Imap Operation

openssl s_client -connect hostname:993 a login user@example.com password a1 select inbox a1 fetch 1 full a2 fetch 1 body a3 logout

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Installing VMware Tools in Debian Etch (4.0)

Second method: (a bit easier than the old one) 1. Install software needed by VMware Tools 1.a. Install packages to build the kernel modules aptitude install autoconf automake binutils cpp gcc linux-headers-$(uname -r) make psmisc 1.b. Find out where the … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Fixing eth assignment in copied vmware debian guest

When copying a vmware image with a debian guest os, the mac adress changes, and the next nic is called eth1. To fix this, remove the old declaration and replace it with the correct one in: /etc/udev/rules.d/z25_persistent-net.rules Example: # PCI … Læs resten

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

vmware tools in debian

install vmware-tools in debian: uname -r and use the matching package for your headers: apt-get install gcc make linux-headers-2.6.18-5-486 Insert the cd, mount it and unzip /mnt/cdrom/VMwareTools-1.0.4-56528.tar.gz to /tmp/ run the installer and answer all default questions

Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar