PDA

View Full Version : [RISOLTO] OS Predefinito


Seth26
02-03-2009, 18:55
Mi chiedevo se č possibile (magari attraverso BIOS) impostare il sistema operativo predefinito dato che quando accendo il computer mi appare una schermata in cui posso scegliere OS entro 10 secondi altrimenti parte xubuntu in automatico. Come posso far partire windows in automatico?

masand
02-03-2009, 20:27
Mi chiedevo se č possibile (magari attraverso BIOS) impostare il sistema operativo predefinito dato che quando accendo il computer mi appare una schermata in cui posso scegliere OS entro 10 secondi altrimenti parte xubuntu in automatico. Come posso far partire windows in automatico?

La modifica la potresti fare a mano, ma se non sei pratico, da' questo comando:
sudo apt-get install startupmanager

Una volta installato dā questo comando:
su-to-root -X -c /usr/sbin/startupmanager

Quindi si parirā questa schermata:

http://static.flickr.com/1296/874669919_7338f8f03a.jpg

Clicca su "Default Operating System" (o Sistema Operativo Predefinito se hai il sistema in Italiano) e scegli la stringa che si riferisce a Windows.

Se vuoi modificare il tempo di ritardo di scelta del sistema operativo (di default sono 10 secondi), lo fai sempre dalla stessa schermata cambiando il valore di "Timeout" (nella schermata č 0, ma tu mettila almeno a 3).

Un saluto a tutti...
masand

patel45
03-03-2009, 06:26
su-to-root -X -c /usr/sbin/startupmanager
E' la prima volta che vedo questo comando su-to-root, mi potresti spiegare in cosa differisce dal sudo ?

woomacoder
03-03-2009, 07:45
O anche semplicemente modificando il file di configurazione di GRUB/Lilo, dipende dal tuo bootmanager :D

masand
03-03-2009, 14:28
E' la prima volta che vedo questo comando su-to-root, mi potresti spiegare in cosa differisce dal sudo ?

:stordita: Onestamente io ho semplicemente copiato la stringa che č giā impostata nel lanciatore del programma :stordita:

:D

edit:

Ho trovato questo:


su-to-root is a simple script to give an interactive front-end to su. It can be used in menu entry commands to ask for the root password.

This is extermly useful when you want to use it from menu based shell script. Most menu entries simply start an editor or a game or whatever. But some menu entries would like to give the user the ability to change important settings in the system, that require root privileges. su-to-root script can be used to ask for the root password.
Examples:

To restart Apache web server you need to type command as follows:

$ su-to-root -c "/etc/init.d/apache-perl restart"

Output:

About to execute /etc/init.d/apache-perl restart.
This command needs root privileges to be executed.
enter root passwd:
Password:
Restarting apache-perl 1.3 web server....

If command or password failed it will prompt back user with "Try again? (y/n)" prompt.

$ su-to-root -c "/etc/init.d/apache-perl restart"

Output:

About to execute /etc/init.d/apache-perl restart.
This command needs root privileges to be executed.
enter root passwd:
Password:
su: Authentication failure
Sorry.
Incorrect password or command failed. Try again? (y/n)

This kind of flexibility always needed when you write menubased shell script. If your program/command is a X11 program that do not require a terminal then you need to pass -X option to su-to-root command:

$ su-to-root -c "network-admin"

Where,

* -c COMMAND : The command to execute as a string. This option is mandatory.
* -X : The command is a X11 program that do not require a terminal


Un saluto a tutti...
masand

Seth26
03-03-2009, 16:19
grazie mille ho risolto

vampirodolce1
03-03-2009, 16:37
Se usi grub e' sufficiente modificare la direttiva 'default' in /boot/grub/menu.lst, si sta un attimo.