Register now and start sharing your code snippets.
-->

Quick step by step on creating a xen environment in Debian Etch

Shell Script (Bash) posted about 1 year ago by marko

Jumpstart with Xen out-of-the-box in Debian Etch stable.

   1  sudo apt-get install xen-tools xen-hypervisor linux-image-xen-amd64 bridge-utils iproute sysfsutils
   2  # [reboot into xen kernel now]
   3  sudo xen-create-image --hostname=db2.aktagon.com \
   4  --size=10Gb --swap=256Mb --ip=10.0.0.51 \
   5  --netmask=255.255.255.0 --gateway=10.0.0.2 \
   6  --force --dir=/work/vserver --memory=512Mb \
   7  --arch=i386 --kernel=/boot/vmlinuz-2.6.18-5-xen-amd64 \
   8  --debootstrap --dist=etch \
   9  --mirror=http://ftp.funet.fi/pub/linux/mirrors/debian/ \
  10  --passwd
  11  sudo xm create /etc/xen/db1.aktagon.com.cfg

Tagged xen, debian, etch, stable, virtualisointi, virtualisering

How to change the default editor in Debian

Shell Script (Bash) posted about 1 year ago by marko

This command changes the default editor system wide. It should work in all Debian derivatives.

   1  sudo update-alternatives --config editor

Tagged default editor, debian, ubuntu, standard editor, oletuseditori

Changing the default terminal emulator the Debian way.

Shell Script (Bash) posted about 1 year ago by marko

Use this to change the terminal emulator that comes with the default installation of Debian (and Ubuntu).

   1  sudo update-alternatives --config x-terminal-emulator

Choose your emulator from the list and hit enter.

Tagged default terminal, debian, ubuntu, x11, linux