Pagina 1 di 1

ubuntu e inittab

Inviato: sab 31 dic 2005, 18:41
da grendy
Salve a tutti,
ho la necessità di avviare ubuntu senza la modalità grafica, per l'installazione dei driver nvidia.
non posso utilizzare init1 perchè ricevo un warning
vi posto il mio inittab
potete dirmi cosa devo cambiare

Codice: Seleziona tutto

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3


Inviato: sab 31 dic 2005, 19:09
da kio341
da un mio vecchio post su debianitalia.org
per fare in modo che debian si comporti come le altre distro (sotto questo aspetto )
(es.Fedora-Mandrake ecc.ecc)nelle quali si dice che per disattivare il server X digitare Da root nel terminale telinit 3 o (init 3), per passare dalla modalità grafica alla console,attività richiesta per esempio per installare i driver nvidia !
ebbene io ho notato che la debian-sarge parte nel run-level 2 in modalità grafica ,quindi ho effettuato la seguente modifica :
per disattivare X (il server grafico) al unlevel 2, basta editare il file

/etc/inittab

e modificare la stringa

id:2:initdefault:

in

id:3:initdefault:
poi sono entrato in /etc/rc2.d ho
rinominato il link S99gdm in K99gdm e ho riavviato-chi ha kdm si comporti di conseguenza! :
è la sarge si avvia in modalità grafica ma nel runlevel 3 a questo punto si può tranquillamente passare alla modalità testuale con
debian:~# telinit 2 uccidendo il serverX
e ripassare alla modalità grafica con
#telinit 3
come avviene sulle altre distro!!!!
anche se credo che questa manovra su ubuntu non serva
How to install Graphics Driver (NVIDIA)?

1. Read General Notes
2. Read How to add extra repositories?
3.

sudo apt-get install nvidia-glx
sudo apt-get install nvidia-settings
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo nvidia-glx-config enable
sudo gedit /usr/share/applications/NVIDIA-Settings.desktop

4. Insert the following lines into the new file

[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA Settings
Exec=nvidia-settings
Icon=
Terminal=false
Type=Application
Categories=Application;System;

5. Save the edited file (sample)
6. Read How to restart GNOME without rebooting computer?
7. Applications -> System Tools -> NVIDIA Settings
from
http://ubuntuguide.org/#installnvidiadriver

:wink:

Inviato: dom 1 gen 2006, 1:02
da grendy
Grazie per la pronta risposta,
l'How to ha funzionato a meraviglia :D

Inviato: dom 1 gen 2006, 14:52
da hendrixiano
Oppure con:

Codice: Seleziona tutto

# update-rc.d gdm remove

Inviato: dom 1 gen 2006, 15:59
da ZIOLele
bastava, da shell:

sudo /etc/rc.d/gdm stop

poi installavi il driver,
poi modificavi xorg.conf
poi da shell:

sudo /etc/rc.d/gdm start

e avevi fatto ^^

Ciao

ZIOLele