Monthly Archives: January 2013

Convert String to GString in Groovy

groovy-logo-medium
Just use this to convert from string to groovy string:

String someStr = "here must be"
def gstring = "${someStr}"

Set screen resolution in Linux

mythbuntu_300x300

To control screen resolution use xrandr command.

Set default optimal resolution:

xrandr -s 0

To set concrete value:

xrandr -s 1680x1050

See http://xorg.freedesktop.org/wiki/Projects/XRandR
http://manpages.ubuntu.com/manpages/maverick/en/man1/xrandr.1.html

Mount ISO in Linux

6822624841_e5403de3c9
To mount ISO file as CD disk, try mount command:

mount -o loop,ro /home/user/disk.iso /media/cdrom

To unmount:

umount /media/cdrom

For Ubuntu users see https://help.ubuntu.com/community/MountIso

For GUI performing, use Gmount-iso:

gmount-iso_001

sudo apt-get install gmountiso