petak, 29. travnja 2011.

Connecting to your virt-viewer from Windows

First, you have to install Xming, you can dowload it from here.
After install start it with:


>"C:\Program Files\Xming\Xming.exe" -ac -multiwindow -clipboard    or on a 64-bit system...
>"C:\Program Files (x86)\Xming\Xming.exe" -ac -multiwindow -clipboard
  Notes: using -ac is TOTALLY UNSAFE
now, connect to your linux(ubuntu, debian...) machine with ssh.
After that in shell enter:

DISPLAY=your.windows.ip.address:0.0

export DISPLAY

Dont forget to change your.windows.ip.address to your your windows ip address :)


after that you can start any Xwindow application, and for your virtual viewer you can write:


virt-viewer -c qemu:///system your_virtual_machine &

Linux software raid and S.M.A.R.T monitoring

If you want to monitor SMART settings on your debian/ubuntu system you will have to install

apt-get install smartmontools

If your SMART is disabled, use this command to test them

smartctl -s on -t short -d ata /dev/sda
after that you can check status with

smartctl --all /dev/sdb


To check status of your raid you can do

mdadm --detail /dev/md0