sexta-feira, 23 de agosto de 2013

Disable cache in Node Controller (NC) - Eucalyptus

How I disable or enable cache in NC?

Take a look at the parameter NC_CACHE_SIZE in eucalyptus.conf on the NC. Any value below 10 will disable caching.
By default neither NC_CACHE_SIZE nor NC_WORK_SIZE are set, which causes the NC to pick values based on disk space available when NC is first started. If you end up setting NC_CACHE_SIZE, I recommend setting NC_WORK_SIZE, too, so that you know exactly what to expect.

How I clean the cache in NC?
 
To clean out the cache, you must terminate all running instances on the NC (since the cache is used as part of a copy-on-write clone of the disk image of the instance) first. Then you can just ‘rm -rf’ everything in $INSTANCE_PATH/eucalyptus/cache directory.


restart the two hosts: frontend and node controller 
:)

quinta-feira, 22 de agosto de 2013

TeamView Iniciando junto com o Sistema (linux)

Para fazer com que o TeamView ou qualquer outro programa inicie junto com o sistema, ou seja, antes mesmo que qualquer usuário faça logon na máquina, faça o seguinte:

1 - Abra o seguinte arquivo:
        $ vi /etc/gdm/Init/Default
       Obs. em algumas versões do Ubuntu ele pode estar em:
       /etc/X11/gdm/Init/Default

2 - Após o arquivo ser aberto pelo vi ou gedit (Editor de texto em modo gráfico), localize a linha que contém o texto "exit 0" (geralmente é a última) e insira, antes dela, o texto:
       if [ -x /usr/bin/teamview/tv-bin/Teamviewer ]; then
       /usr/bin/teamview/tv-bin/Teamviewer
       fi

Salve o arquivo e reinicie o computador.