This is my notes for creating a bootable pxe image for freebsd on foreman # wget http://mfsbsd.vx.sk/files/images/11/mfsbsd-se-11.2-RELEASE-amd64.img # mkdir /mnt/loop # mdconfig -a -t vnode -f mfsbsd-se-11.2-RELEASE-amd64.img # mount /dev/md0p2 /mnt/loop # cd /mnt/loop # cp -p mfsroot.gz /tmp/ # cd /tmp # gzip -d mfsroot.gz # mdconfig -a -t vnode -f mfsroot # mkdir…
Category: Linux
How to migrate a linux partition to another server over ssh
In order to migrate a partition/lvm to another server you can run the following command: dd if=/dev/vg/source bs=512M |gzip |ssh root@target “gzip -d | dd of=/dev/vg/dest bs=512M”
How to move a wordpress installation easily
In order to move a WordPress installation, move all web files to the new location and run the following queries in the database: UPDATE wp_options SET option_value = replace(option_value, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE wp_posts SET guid = replace(guid, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.old-domain.com’, ‘http://www.new-domain.com’);
Intressant om Ipv6
Ithelpdesk.se går nu att nå både över Ipv4 och Ipv6. 🙂
Fedora 13
Välkommen till mitt första inlägg. Snart släpps Fedora13.