IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Ubuntu Discussion :

Gestion des Runlevels sous Ubuntu


Sujet :

Ubuntu

  1. #1
    Membre confirmé Avatar de figarojuju
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    133
    Détails du profil
    Informations personnelles :
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations forums :
    Inscription : Avril 2006
    Messages : 133
    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 : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    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 : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    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 !!

  2. #2
    Membre confirmé Avatar de figarojuju
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    133
    Détails du profil
    Informations personnelles :
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations forums :
    Inscription : Avril 2006
    Messages : 133
    Par défaut
    Bonjour,
    j'ai un peu modifié mon dossier rc3.d :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
     
    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

  3. #3
    Membre confirmé Avatar de figarojuju
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    133
    Détails du profil
    Informations personnelles :
    Localisation : France, Hérault (Languedoc Roussillon)

    Informations forums :
    Inscription : Avril 2006
    Messages : 133
    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

Discussions similaires

  1. gestion des exeptions sous delphi6
    Par meghaoui dans le forum Bases de données
    Réponses: 4
    Dernier message: 10/05/2006, 14h30
  2. Gestion des ports sous windows
    Par wass dans le forum Windows
    Réponses: 1
    Dernier message: 19/04/2006, 17h44
  3. Gestion des .log sous Oracle
    Par SANOORA dans le forum Administration
    Réponses: 10
    Dernier message: 08/11/2004, 09h29
  4. Routines de gestion des ports sous Windows XP
    Par wiccanhelios dans le forum Windows
    Réponses: 2
    Dernier message: 14/11/2003, 08h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo