www.tuxapuntes.com

Buscar Contacto Colabora... Libro de Visitas
 
Si te gusta la web, colaborara con nuestros anuncios.
.
TuxInicio arrow TuxApuntes arrow Trucos arrow Programar Ubuntu para que se encienda a una hora determinada.
Programar Ubuntu para que se encienda a una hora determinada. PDF Imprimir E-Mail
Escrito por utopianegra, on 08-01-2008 13:00
Visitas 1980
Meneame:
Meneame

 

 

Si estas buscando como encender tu PC a una hora programada aquí te mostrare como hacerlo usando Ubuntu. Primero debes fijarte si tu placa madre lo soporta para ello debes ir al setup del BIOS y en el menú Power verificar si tiene la opción "Power On by RTC Alarm" si tiene esta opción entonces puedes programar el día y la hora de encendido de tu PC.

Pero si quieres hacerlo a través del sistema operativo entonces puedes hacer lo siguiente:
Primero si ya verificaste que tienes la opción de encendido en tu BIOS instalas el programa nvram-wakeup usando lo siguiente:

sudo aptitude install nvram-wakeup

te saldrá una ventana de configuración al momento de instalar a la cual de das Aceptar.

Después ejecutas el comando:
sudo nvram-wakeup

Si te aparece el mensaje:

nvram-wakeup: Your mainboard is currently not supported.
nvram-wakeup: Please try determining the addresses and sending the following
nvram-wakeup: information back to the maintainers:
nvram-wakeup: - The addresses you found out (read README.mb)


entonces ejecutas el siguiente comando:

sudo guess-helper

el cual viene ya con el nvram-wakeup, al momento de ejecutar el comando te pedirá una serie de pasos que debes hacer al reiniciar tu PC y luego la opción (A) de abortar y (r) de reiniciar dale siempre la opción r y debes repetir los pasos hasta que te aparezca este mensaje:

guess-helper
------------

cd: 2: can't cd to /home/chonpo/guess-nvram-module
The nvram-wakeup address detection is finished now.
If everything went well, you will find the detected nvram-wakeup
settings in the file ~/guess-directisa/nvram-wakeup.conf. This file
has been generated using the 'directisa' access method.
Check the files nvram-wakeup.conf and guess-error.log to see if
everything went well. In order to use the generated conf file, you
have to pass it as a command line parameter with the option -C to
nvram-wakeup. Before doing this, you should copy it to /etc.
If the settings in your nvram-wakup.conf seem to work, please send
this file to:

Esta dirección de correo electrónico está protegida contra los robots de spam, necesita tener Javascript activado para poder verla

By doing so, you are helping to keep nvram-wakeup support more boards.


Luego reemplazas el archivo /etc/nvram-wakeup.conf por el de nuestro home.

sudo -s
cp  /home/<tuusuario>/nvram-wakeup.conf /etc/nvram-wakeup.conf


Después ejecutas el comando nvram-wakeup de la siguiente manera

sudo nvram-wakeup -A -C guess-directisa/nvram-wakeup.conf -s $((`date +%s` + 900))

esto hará que se encienda la PC en 15 minutos.


Si al ejecutar este comando te sale un error parecido a este:

/etc/nvram-wakeup.conf Syntax error: unknown variable name

entonces cambias los nombres de las variables rtc_day, rtc_hour, rtc_min y rtc_sec por addr_day, addr_hour, addr_min y addr_sec. Esto último lo tendras que hacer en el fichero de configuración:

sudo gedit /etc/nvram-wakeup.conf

Espero te guste este truco. 

fuente: http://comulinux.blogspot.com 

Revisado el: 05-01-2008 02:25

Publicado el : Manuales (HowTo), Trucos Varios

Comentarios de usuarios (0)

Ningún comentario guardado

Añade tu comentario



mXcomment 1.0.5 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
 
< Anterior   Siguiente >
Ranking de sitios Joomla

Blogalaxia

Si te resulta util esta informacion y quieres contribuir mediante alguna donación para el mantenimiento y mejora de ese site, te dejamos un enlace para que puedas ayudarnos por medio de paypal.

 Muchas gracias.








Menu Principal

Login






¿Recuperar clave?
¿Quiere registrarse? Regístrese aquí
Hay 5 invitados en línea

tuXchat online users

    Translate

    Top WebLinks

    Enlaces - Blogroll
    feed image

    Tux Estadisticas

    OS: Linux h
    PHP: 5.2.6
    MySQL: 5.0.45-community-log
    Hora: 06:44
    Caching: Disabled
    GZIP: Enabled
    Usuarios: 2925
    Noticias: 976
    Enlaces: 49
    Visitantes: 2676665

    TUXrank .. SITES

    Powered by  MyPagerank.Net



    Creative Commons License


    Esta obra está bajo una
    licencia de Creative Commons.

    Tux del Dia

    th_2621.jpg

    Tux Encuesta

    ¿Aconsejas Ubuntu a tús amigos?
     
    ¿Te da problemas Ubuntu 8.04?
     

    ¿Quieres anunciarte aquí?


    [+]
    • Narrow screen resolution
    • Wide screen resolution
    • Auto width resolution
    • Increase font size
    • Decrease font size
    • Default font size
    • default color
    • blue color
    • green color