Forum des développeurs  

Le forum de référence en programmation et développement. Articles, cours et tutoriels du débutant au chef de projet et DBA confirmé.
Précédent   Forum des développeurs > Hardware, Systèmes et Logiciels > Linux > Distributions > Ubuntu

Ubuntu Vos questions sur les distributions Ubuntu et dérivées (Kubuntu, Xubuntu... )

Réponse
 
Outils de la discussion
Vieux 03/10/2008, 22h22   #1 (permalink)
Nouveau membre du Club
 
Date d'inscription: avril 2006
Messages: 66
Par défaut Gestion des Runlevels sous Ubuntu

Bonsoir,
Bonjour,
Mon objectif : je souhaiterai exécuter ma session en run level 3, avec le serveur graphique de démarré, mais je souhaite tout gérer via un terminal sans passer par le desktop de gnome. ie lorsque je démarre mon ordi, je ne souhaite pas entrer dans une session graphique.

La commande suivante donne :
$ runlevel
N 2

Puis en regardant sur /etc/rc2.d
Code :
ls -l /etc/rc2.d

total 4
-rw-r--r-- 1 root root 556 2008-04-19 07:05 README
lrwxrwxrwx 1 root root  19 2008-06-06 19:03 S01policykit -> ../init.d/policykit
lrwxrwxrwx 1 root root  17 2007-12-17 10:52 S05vbesave -> ../init.d/vbesave
lrwxrwxrwx 1 root root  15 2007-12-17 10:33 S10acpid -> ../init.d/acpid
lrwxrwxrwx 1 root root  25 2007-12-17 10:53 S10powernowd.early -> ../init.d/powernowd.early
lrwxrwxrwx 1 root root  18 2007-12-17 10:29 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 root root  34 2007-12-17 10:36 S10xserver-xorg-input-wacom -> ../init.d/xserver-xorg-input-wacom
lrwxrwxrwx 1 root root  15 2007-12-17 10:29 S11klogd -> ../init.d/klogd
lrwxrwxrwx 1 root root  14 2008-06-06 18:37 S12dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root  13 2008-03-01 15:43 S16ssh -> ../init.d/ssh
lrwxrwxrwx 1 root root  22 2007-12-17 10:52 S18avahi-daemon -> ../init.d/avahi-daemon
lrwxrwxrwx 1 root root  16 2007-12-17 10:51 S19cupsys -> ../init.d/cupsys
lrwxrwxrwx 1 root root  14 2007-12-17 10:52 S20apmd -> ../init.d/apmd
lrwxrwxrwx 1 root root  16 2007-12-17 10:52 S20apport -> ../init.d/apport
lrwxrwxrwx 1 root root  15 2008-05-20 12:48 S20exim4 -> ../init.d/exim4
lrwxrwxrwx 1 root root  22 2007-12-17 10:53 S20hotkey-setup -> ../init.d/hotkey-setup
lrwxrwxrwx 1 root root  17 2007-12-17 10:28 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root  23 2007-12-17 10:33 S20nvidia-kernel -> ../init.d/nvidia-kernel
lrwxrwxrwx 1 root root  19 2007-12-17 10:53 S20powernowd -> ../init.d/powernowd
lrwxrwxrwx 1 root root  17 2008-02-02 20:27 S20privoxy -> ../init.d/privoxy
lrwxrwxrwx 1 root root  15 2007-12-17 10:52 S20rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root  15 2008-09-02 16:29 S20samba -> ../init.d/samba
lrwxrwxrwx 1 root root  13 2008-02-02 20:03 S20tor -> ../init.d/tor
lrwxrwxrwx 1 root root  17 2008-09-04 20:42 S20vboxdrv -> ../init.d/vboxdrv
lrwxrwxrwx 1 root root  17 2008-09-04 20:42 S20vboxnet -> ../init.d/vboxnet
lrwxrwxrwx 1 root root  16 2008-02-25 21:22 S20xinetd -> ../init.d/xinetd
lrwxrwxrwx 1 root root  13 2008-06-08 20:54 S24hal -> ../init.d/hal
lrwxrwxrwx 1 root root  20 2008-06-06 19:06 S25pulseaudio -> ../init.d/pulseaudio
lrwxrwxrwx 1 root root  13 2007-12-17 10:53 S30gdm -> ../init.d/gdm
lrwxrwxrwx 1 root root  20 2008-07-07 20:15 S50alsa-utils -> ../init.d/alsa-utils
lrwxrwxrwx 1 root root  17 2008-04-26 16:35 S50apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root  15 2008-04-26 16:35 S50inetd -> ../init.d/inetd
lrwxrwxrwx 1 root root  17 2007-12-17 10:51 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root  13 2007-12-17 10:51 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root  14 2007-12-17 10:51 S89cron -> ../init.d/cron
Puis, sur /etc/rc3.d

Code :
lrwxrwxrwx 1 root root  15 2008-05-20 12:48 S20exim4 -> ../init.d/exim4
lrwxrwxrwx 1 root root  22 2007-12-17 10:53 S20hotkey-setup -> ../init.d/hotkey-setup
lrwxrwxrwx 1 root root  17 2007-12-17 10:28 S20makedev -> ../init.d/makedev
lrwxrwxrwx 1 root root  23 2007-12-17 10:33 S20nvidia-kernel -> ../init.d/nvidia-kernel
lrwxrwxrwx 1 root root  19 2007-12-17 10:53 S20powernowd -> ../init.d/powernowd
lrwxrwxrwx 1 root root  17 2008-02-02 20:27 S20privoxy -> ../init.d/privoxy
lrwxrwxrwx 1 root root  15 2007-12-17 10:52 S20rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root  15 2008-09-02 16:29 S20samba -> ../init.d/samba
lrwxrwxrwx 1 root root  13 2008-02-02 20:03 S20tor -> ../init.d/tor
lrwxrwxrwx 1 root root  17 2008-09-04 20:42 S20vboxdrv -> ../init.d/vboxdrv
lrwxrwxrwx 1 root root  17 2008-09-04 20:42 S20vboxnet -> ../init.d/vboxnet
lrwxrwxrwx 1 root root  16 2008-02-25 21:22 S20xinetd -> ../init.d/xinetd
lrwxrwxrwx 1 root root  13 2008-06-08 20:54 S24hal -> ../init.d/hal
lrwxrwxrwx 1 root root  19 2008-06-08 20:28 S25bluetooth -> ../init.d/bluetooth
lrwxrwxrwx 1 root root  20 2008-06-06 19:06 S25pulseaudio -> ../init.d/pulseaudio
lrwxrwxrwx 1 root root  13 2007-12-17 10:53 S30gdm -> ../init.d/gdm
lrwxrwxrwx 1 root root  17 2007-12-17 10:51 S89anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root  13 2007-12-17 10:51 S89atd -> ../init.d/atd
lrwxrwxrwx 1 root root  14 2007-12-17 10:51 S89cron -> ../init.d/cron
lrwxrwxrwx 1 root root  24 2007-12-31 00:55 S90binfmt-support -> ../init.d/binfmt-support
lrwxrwxrwx 1 root root  17 2008-01-05 17:11 S91apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root  17 2007-12-17 10:53 S98usplash -> ../init.d/usplash
lrwxrwxrwx 1 root root  22 2007-12-17 10:52 S99acpi-support -> ../init.d/acpi-support
lrwxrwxrwx 1 root root  21 2007-12-17 10:52 S99laptop-mode -> ../init.d/laptop-mode
lrwxrwxrwx 1 root root  18 2007-12-17 10:29 S99rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root  19 2007-12-17 10:29 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx 1 root root  18 2007-12-17 10:55 S99timidity -> ../init.d/timidity
A partir de là, si j'ai bien compris, il faut que je modifie mes liens en modifiant les S par des K dans mon dossier rc3.d pour les services que je veux éteindre, comme gdm, par exemple?
J'aimerai aussi savoir comment faire, peut-être via grub, pour booter directement sur le run level 3 que j'aurai ainsi modifié...
Auriez-vous des conseils?
Bonne et soirée et à très bientôt !!
figarojuju est déconnecté   Envoyer un message privé Réponse avec citation
Vieux 04/10/2008, 09h59   #2 (permalink)
Nouveau membre du Club
 
Date d'inscription: avril 2006
Messages: 66
Par défaut

Bonjour,
j'ai un peu modifié mon dossier rc3.d :
Code :
ls -al /etc/rc3.d/
total 20
drwxr-xr-x   2 root root  4096 2008-10-04 09:25 .
drwxr-xr-x 157 root root 12288 2008-10-04 09:43 ..
lrwxrwxrwx   1 root root    13 2007-12-17 10:53 K30gdm -> ../init.d/gdm
-rw-r--r--   1 root root   556 2008-04-19 07:05 README
lrwxrwxrwx   1 root root    19 2008-06-06 19:03 S01policykit -> ../init.d/policykit
lrwxrwxrwx   1 root root    17 2007-12-17 10:52 S05vbesave -> ../init.d/vbesave
lrwxrwxrwx   1 root root    15 2007-12-17 10:33 S10acpid -> ../init.d/acpid
lrwxrwxrwx   1 root root    18 2007-12-17 10:29 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx   1 root root    34 2007-12-17 10:36 S10xserver-xorg-input-wacom -> ../init.d/xserver-xorg-input-wacom
lrwxrwxrwx   1 root root    15 2007-12-17 10:29 S11klogd -> ../init.d/klogd
lrwxrwxrwx   1 root root    14 2008-06-06 18:37 S12dbus -> ../init.d/dbus
lrwxrwxrwx   1 root root    13 2008-03-01 15:43 S16ssh -> ../init.d/ssh
lrwxrwxrwx   1 root root    23 2008-01-05 19:24 S17mysql-ndb-mgm -> ../init.d/mysql-ndb-mgm
lrwxrwxrwx   1 root root    22 2007-12-17 10:52 S18avahi-daemon -> ../init.d/avahi-daemon
lrwxrwxrwx   1 root root    19 2008-01-05 19:24 S18mysql-ndb -> ../init.d/mysql-ndb
lrwxrwxrwx   1 root root    16 2007-12-17 10:51 S19cupsys -> ../init.d/cupsys
lrwxrwxrwx   1 root root    15 2008-01-05 19:24 S19mysql -> ../init.d/mysql
lrwxrwxrwx   1 root root    14 2007-12-17 10:52 S20apmd -> ../init.d/apmd
lrwxrwxrwx   1 root root    16 2007-12-17 10:52 S20apport -> ../init.d/apport
lrwxrwxrwx   1 root root    15 2008-05-20 12:48 S20exim4 -> ../init.d/exim4
lrwxrwxrwx   1 root root    22 2007-12-17 10:53 S20hotkey-setup -> ../init.d/hotkey-setup
lrwxrwxrwx   1 root root    17 2007-12-17 10:28 S20makedev -> ../init.d/makedev
lrwxrwxrwx   1 root root    23 2007-12-17 10:33 S20nvidia-kernel -> ../init.d/nvidia-kernel
lrwxrwxrwx   1 root root    19 2007-12-17 10:53 S20powernowd -> ../init.d/powernowd
lrwxrwxrwx   1 root root    17 2008-02-02 20:27 S20privoxy -> ../init.d/privoxy
lrwxrwxrwx   1 root root    15 2007-12-17 10:52 S20rsync -> ../init.d/rsync
lrwxrwxrwx   1 root root    15 2008-09-02 16:29 S20samba -> ../init.d/samba
lrwxrwxrwx   1 root root    13 2008-02-02 20:03 S20tor -> ../init.d/tor
lrwxrwxrwx   1 root root    17 2008-09-04 20:42 S20vboxdrv -> ../init.d/vboxdrv
lrwxrwxrwx   1 root root    17 2008-09-04 20:42 S20vboxnet -> ../init.d/vboxnet
lrwxrwxrwx   1 root root    16 2008-02-25 21:22 S20xinetd -> ../init.d/xinetd
lrwxrwxrwx   1 root root    13 2008-06-08 20:54 S24hal -> ../init.d/hal
lrwxrwxrwx   1 root root    19 2008-06-08 20:28 S25bluetooth -> ../init.d/bluetooth
lrwxrwxrwx   1 root root    20 2008-06-06 19:06 S25pulseaudio -> ../init.d/pulseaudio
lrwxrwxrwx   1 root root    17 2007-12-17 10:51 S89anacron -> ../init.d/anacron
lrwxrwxrwx   1 root root    13 2007-12-17 10:51 S89atd -> ../init.d/atd
lrwxrwxrwx   1 root root    14 2007-12-17 10:51 S89cron -> ../init.d/cron
lrwxrwxrwx   1 root root    24 2007-12-31 00:55 S90binfmt-support -> ../init.d/binfmt-support
lrwxrwxrwx   1 root root    17 2008-01-05 17:11 S91apache2 -> ../init.d/apache2
lrwxrwxrwx   1 root root    17 2007-12-17 10:53 S98usplash -> ../init.d/usplash
lrwxrwxrwx   1 root root    22 2007-12-17 10:52 S99acpi-support -> ../init.d/acpi-support
lrwxrwxrwx   1 root root    21 2007-12-17 10:52 S99laptop-mode -> ../init.d/laptop-mode
lrwxrwxrwx   1 root root    18 2007-12-17 10:29 S99rc.local -> ../init.d/rc.local
lrwxrwxrwx   1 root root    19 2007-12-17 10:29 S99rmnologin -> ../init.d/rmnologin
lrwxrwxrwx   1 root root    18 2007-12-17 10:55 S99timidity -> ../init.d/timidity
en plaçant K30gdm à la place de S30gdm.
Puis, lorsque je boot (grub), j'édite en tapant 'e', mon Kernel étant sélectionné, et j'ajoute 3 à la fin de la ligne pour accéder au runlevel 3 que je viens de modifier.
Et là, malheureusement, je tombe toujours sur mon prompt graphique d'identification. Je saisis mon identifiant mot de passe, et me re voilà sur mon bureau gdm
Lorsque je tape runlevel dans un terminal, j'ai toujours N 2 qui s'affiche ...
Raté !!
J'ai tenté la même manœuvre en passant par grub, mais j'ai le même résultat

Si vous avez des idées, je suis tout à fait preneur !!
Merci à vous et bon WE

Dernière modification par figarojuju ; 04/10/2008 à 10h30
figarojuju est déconnecté   Envoyer un message privé Réponse avec citation
Vieux 06/10/2008, 08h14   #3 (permalink)
Nouveau membre du Club
 
Date d'inscription: avril 2006
Messages: 66
Par défaut

Bonjour,
j'ai modifié mon fichier /etc/event.d/rc-default pour booter en runlevel 3 et ça marche.
Seulement, je ne peux lancer aucune application graphique...même si je démarre x11-common.
Ma question est : est-ce possible d'avoir le serveur X de démarré sans gdm de démarré, cela afin d'avoir les applications graphiques utilisables sans le Desktop Gnome ?

Merci et à bientôt
figarojuju est déconnecté   Envoyer un message privé Réponse avec citation
Réponse

Précédent   Forum des développeurs > Hardware, Systèmes et Logiciels > Linux > Distributions > Ubuntu



Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are non
Pingbacks are non
Refbacks are non
Navigation rapide