Tuesday, May 20, 2014

debian make convert regular disk to lvm

1. Attach the new disk
2. create lvm
3. dd data from old to new lvm root
4. grub-install /dev/sdb (the new disk)
5. update-grub (in chroot or inside the actual OS)

Friday, May 16, 2014

allow other users in screen session / share screen session

1. sudo chmod +s /usr/bin/screen
2. sudo chmod 755 /usr/bin/screen
3. USER1: screen -S screen1
    USER1: CTRL+A :multiuser on
    USER1: CTRL+A: acladd USER2
4. USER2: screen -x USER1/screen1

set ubnutu linux default terminal encoding to UTF-8

gconftool --set --type=string /apps/gnome-terminal/profiles/Default/encoding UTF-8

Monday, May 12, 2014

debian squeeze change root disk to lvm

  1. create the lvm on the second disk
  2. dd data onto the lvm disk
  3. detach the old disk
  4. reboot with rescue cd and chown into the lvm root
  5. grub-install /dev/sda
  6. update-grub