Salut, mon serveur x démarre avec un autostartx au démarrage:
who
llapingachos tty1 2009-09-19 13:48
Donc ma question est : comment fait-on pour redémarrer x dans ces conditions ?
Salut, mon serveur x démarre avec un autostartx au démarrage:
who
llapingachos tty1 2009-09-19 13:48
Donc ma question est : comment fait-on pour redémarrer x dans ces conditions ?
Salut,
peut être peux tu regarder sous /etc/rc2.d et faire un <<Sxx??? restart>>.
/etc/rc2.d$ ls
README S20keytouch S21hddtemp S23lm-sensors
S01openvpn S20loadcpufreq S21openbsd-inetd S23network-manager
S01transmission-daemon S20preload S21smartmontools S23powersaved
S07hdparm S20rsyslog S22avahi-daemon S23saned
S17portmap S20sudo S22dhcdbd S25bootlogs
S18nfs-common S21acpid S22hal S26laptop-mode
S20acpi-support S21cpufrequtils S22ivman S26rc.local
S20binfmt-support S21cron S22wicd S26rmnologin
S20fam S21dbus S23alsa-utils S26stop-bootlogd
S20fancontrol S21gdomap S23cups
Quel fichier doit être relancé ?
re-salut,
peux tu donner le résultat d’un ps -ef
merci.
Voilà :
$ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 13:47 ? 00:00:01 init [2]
root 2 0 0 13:47 ? 00:00:00 [kthreadd]
root 3 2 0 13:47 ? 00:00:00 [migration/0]
root 4 2 0 13:47 ? 00:00:00 [ksoftirqd/0]
root 5 2 0 13:47 ? 00:00:00 [migration/1]
root 6 2 0 13:47 ? 00:00:00 [ksoftirqd/1]
root 7 2 0 13:47 ? 00:00:00 [rcu_sched_grace]
root 8 2 0 13:47 ? 00:00:00 [events/0]
root 9 2 0 13:47 ? 00:00:00 [events/1]
root 10 2 0 13:47 ? 00:00:00 [cpuset]
root 11 2 0 13:47 ? 00:00:00 [khelper]
root 14 2 0 13:47 ? 00:00:00 [netns]
root 17 2 0 13:47 ? 00:00:00 [async/mgr]
root 72 2 0 13:47 ? 00:00:00 [kblockd/0]
root 73 2 0 13:47 ? 00:00:00 [kblockd/1]
root 75 2 0 13:47 ? 00:00:00 [kacpid]
root 76 2 0 13:47 ? 00:00:00 [kacpi_notify]
root 77 2 0 13:47 ? 00:00:00 [kacpi_hotplug]
root 165 2 0 13:47 ? 00:00:00 [kseriod]
root 218 2 0 13:47 ? 00:00:00 [pdflush]
root 219 2 0 13:47 ? 00:00:00 [pdflush]
root 220 2 0 13:47 ? 00:00:00 [kswapd0]
root 267 2 0 13:47 ? 00:00:00 [aio/0]
root 268 2 0 13:47 ? 00:00:00 [aio/1]
root 272 2 0 13:47 ? 00:00:00 [crypto/0]
root 273 2 0 13:47 ? 00:00:00 [crypto/1]
lap 774 3351 0 15:11 tty1 00:00:00 keytouchd
root 793 2 0 13:47 ? 00:00:00 [ksuspend_usbd]
root 794 2 0 13:47 ? 00:00:00 [kmmcd]
root 795 2 0 13:47 ? 00:00:02 [ata/0]
root 806 2 0 13:47 ? 00:00:00 [khubd]
root 823 2 0 13:47 ? 00:00:00 [ata/1]
root 824 2 0 13:47 ? 00:00:00 [ata_aux]
root 826 2 0 13:47 ? 00:00:04 [scsi_eh_0]
root 827 2 0 13:47 ? 00:00:00 [scsi_eh_1]
root 832 2 0 13:47 ? 00:00:00 [scsi_eh_2]
root 833 2 0 13:47 ? 00:00:00 [scsi_eh_3]
root 834 2 0 13:47 ? 00:00:00 [scsi_eh_4]
root 1018 2 0 13:47 ? 00:00:00 [kjournald]
root 1074 1 0 13:47 ? 00:00:00 udevd --daemon
root 1583 2 0 13:47 ? 00:00:00 [kpsmoused]
root 1686 2 0 13:47 ? 00:00:02 [iwl3945]
root 1688 2 0 13:47 ? 00:00:02 [phy0]
root 1696 2 0 13:47 ? 00:00:00 [hd-audio0]
root 1977 2 0 13:47 ? 00:00:00 [firewire_sbp2]
root 2188 1 0 13:47 ? 00:00:00 /sbin/wpa_supplicant -s -B -P /v
root 2253 1 0 13:48 ? 00:00:00 dhclient3 -pf /var/run/dhclient.
daemon 2302 1 0 13:48 ? 00:00:00 /sbin/portmap
statd 2316 1 0 13:48 ? 00:00:00 /sbin/rpc.statd
root 2556 1 0 13:48 ? 00:00:00 /usr/sbin/rsyslogd -c4
root 2566 2 0 13:48 ? 00:00:00 [kconservative/0]
root 2568 2 0 13:48 ? 00:00:00 [kconservative/1]
root 2575 2 0 13:48 ? 00:00:00 [kondemand/0]
root 2576 2 0 13:48 ? 00:00:00 [kondemand/1]
root 2634 1 0 13:48 ? 00:01:14 /usr/sbin/preload -s /var/lib/pr
root 2667 1 0 13:48 ? 00:00:01 /usr/sbin/acpid
root 2684 1 0 13:48 ? 00:00:00 /usr/sbin/cron
root 2701 1 0 13:48 ? 00:00:00 /usr/sbin/smartd --pidfile /var/
103 2712 1 0 13:48 ? 00:00:07 /usr/bin/dbus-daemon --system
avahi 2742 1 0 13:48 ? 00:00:00 avahi-daemon: running [lap.local
105 2743 1 0 13:48 ? 00:00:09 /usr/sbin/hald
avahi 2744 2742 0 13:48 ? 00:00:00 avahi-daemon: chroot helper
root 2758 1 0 13:48 ? 00:00:00 /usr/sbin/console-kit-daemon
root 2823 2743 0 13:48 ? 00:00:00 hald-runner
lap 2829 1 0 13:48 ? 00:00:00 /usr/bin/ivman
root 2884 2823 0 13:48 ? 00:00:01 /usr/lib/hal/hald-addon-rfkill-k
root 2885 2823 0 13:48 ? 00:00:00 /usr/lib/hal/hald-addon-leds
root 2897 2823 0 13:48 ? 00:00:00 /usr/lib/hal/hald-addon-generic-
root 2914 2823 0 13:48 ? 00:00:01 hald-addon-input: Listening on /
root 2928 2823 0 13:48 ? 00:00:05 hald-addon-storage: polling /dev
root 2934 2823 0 13:48 ? 00:00:00 /usr/lib/hal/hald-addon-cpufreq
105 2938 2823 0 13:48 ? 00:00:00 hald-addon-acpi: listening on ac
root 2988 1 0 13:48 ? 00:00:00 /usr/sbin/powersaved -d -f /var/
root 2994 1 0 13:48 ? 00:00:04 /usr/sbin/NetworkManager
root 3002 1 0 13:48 ? 00:00:00 /sbin/wpa_supplicant -u -s
root 3004 1 0 13:48 ? 00:00:00 /usr/sbin/nm-system-settings --c
root 3005 1 0 13:48 ? 00:00:00 /usr/sbin/cupsd -C /etc/cups/cup
root 3217 1 0 13:48 tty1 00:00:00 /bin/login -f tty1
root 3218 1 0 13:48 tty2 00:00:00 /sbin/getty 38400 tty2
root 3219 1 0 13:48 tty3 00:00:00 /sbin/getty 38400 tty3
root 3220 1 0 13:48 tty4 00:00:00 /sbin/getty 38400 tty4
root 3221 1 0 13:48 tty5 00:00:00 /sbin/getty 38400 tty5
root 3222 1 0 13:48 tty6 00:00:00 /sbin/getty 38400 tty6
lap 3235 3217 0 13:48 tty1 00:00:00 -bash
lap 3238 3235 0 13:48 tty1 00:00:00 /bin/bash /usr/bin/startx
lap 3255 3238 0 13:48 tty1 00:00:00 xinit /etc/X11/xinit/xinitrc --
root 3256 3255 9 13:48 tty7 00:23:12 /usr/bin/X11/X -nolisten tcp
lap 3290 3255 0 13:48 tty1 00:00:00 /usr/bin/ck-launch-session /usr/
lap 3329 3290 0 13:48 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/ck-l
lap 3342 3290 0 13:48 tty1 00:00:00 /bin/bash /usr/bin/keytouchd-lau
lap 3346 1 0 13:48 tty1 00:00:00 /usr/bin/dbus-launch --exit-with
lap 3348 1 0 13:48 ? 00:00:02 /usr/bin/dbus-daemon --fork --pr
lap 3351 3342 0 13:48 tty1 00:00:00 keytouchd
lap 3352 3342 0 13:48 tty1 00:00:06 /usr/bin/openbox
lap 3353 3352 0 13:48 tty1 00:00:00 ivman
lap 3358 3352 0 13:48 tty1 00:00:19 conky
lap 3361 3352 0 13:48 tty1 00:00:01 gnome-power-manager
lap 3364 3352 0 13:48 tty1 00:00:26 parcellite
lap 3371 1 0 13:48 ? 00:00:01 /usr/lib/libgconf2-4/gconfd-2
lap 3373 1 0 13:48 ? 00:00:00 /usr/lib/gvfs/gvfsd
lap 3376 1 0 13:48 ? 00:00:00 gnome-screensaver
root 4780 1 0 13:49 ? 00:00:00 dhclient3 -pf /var/run/dhclient.
root 5838 1 0 15:32 ? 00:00:00 /usr/bin/dbus-daemon --fork --pr
root 5839 1 0 15:32 ? 00:00:00 dbus-launch --autolaunch 8e2fbc9
lap 6577 1 0 13:50 ? 00:00:00 /usr/lib/gvfs/gvfs-hal-volume-mo
lap 6579 1 0 13:50 ? 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volum
root 10515 1 0 14:24 ? 00:00:00 dhclient wlan0
lap 13953 1 0 14:49 ? 00:00:00 /usr/bin/gnome-keyring-daemon --
lap 16101 3352 0 14:50 tty1 00:00:00 /bin/sh /home/lap/iceweasel-star
lap 16105 16101 9 14:50 tty1 00:18:09 /usr/lib/iceweasel/firefox-bin
lap 16127 1 6 14:50 tty1 00:12:55 rhythmbox
lap 17065 1 0 14:50 ? 00:00:00 /usr/lib/gvfs/gvfsd-http --spawn
lap 17827 1 0 16:23 tty1 00:00:14 /usr/lib/openoffice/program/soff
lap 20336 1 0 16:39 tty1 00:00:01 tint2
lap 23161 3352 5 18:02 tty1 00:00:00 urxvt
lap 23162 23161 14 18:02 pts/0 00:00:00 bash
lap 23178 23162 0 18:02 pts/0 00:00:00 ps -ef
lap 26712 1 0 14:54 ? 00:00:03 /usr/lib/notification-daemon/not
re re salut,
C’est lorsque tu te connectes en bash que x est démarrer:
lap 3235 3217 0 13:48 tty1 00:00:00 -bash
lap 3238 3235 0 13:48 tty1 00:00:00 /bin/bash /usr/bin/startx
lap 3255 3238 0 13:48 tty1 00:00:00 xinit /etc/X11/xinit/xinitrc –
le bash de pid 3235 lance startx pid 3238 qui lance ld pid 3255 xinit…
tous ça sur tty1.
startx est un script sous /usr/bin qui paramètre plein de choses…
l’ensemble vient de :
root 3217 1 0 13:48 tty1 00:00:00 /bin/login -f tty1
une connexion sans authentification.
Essais d’actionner les touches : “Alt-Ctrl-<-” touches du clavier: Alt Ctrl et flêche qui pointe vers la gauche (de nom ?).
ensuite tu fais startx.
Donne le résultat, merci.
Salut et merci pour ta patience
[quote]Essais d’actionner les touches : “Alt-Ctrl-<-” touches du clavier: Alt Ctrl et flêche qui pointe vers la gauche (de nom ?).
ensuite tu fais startx.
[/quote]
Aucune combinaison de clavier(comme on peut trouver dans http://doc.ubuntu-fr.org/tutoriel/comment_redemarrer_le_serveur_graphique par exemple) ne fonctionne pour moi car
je suis sous openbox et non pas sous gnome
je n’utilise pas gdm/… (mais ça tu l’a très bien compris)
Bon je découvre openbox,
peux tu aller sous /etc/init.d et faire un grep -i autostart * et donner le résultat.
merci.
Et voici :
/etc/init.d$ grep -i autostart *
openvpn:AUTOSTART="all"
openvpn: # autostart VPNs
openvpn: # check if automatic startup is disabled by AUTOSTART=none
openvpn: if test "x$AUTOSTART" = "xnone" -o -z "$AUTOSTART" ; then
openvpn: log_warning_msg " Autostart disabled."
openvpn: if test -z "$AUTOSTART" -o "x$AUTOSTART" = "xall" ; then
openvpn: for NAME in $AUTOSTART ; do
ton script autostartx est probablement dans /etc/inittab (ligne 1:2345 getty … login -f autostartx)
essaye ctrl alt suppr puis startx
ctr-alt-suppr : ça n’a pas d’effet sous openbox .
Un start x donne
d’aprés le site d’openbox il peut aussi être sous ta session:
The autostart script is located at ~/.config/openbox/autostart.sh. If that file does not exist, then the system-wide default script, located at /etc/xdg/openbox/autostart.sh, is run instead.
icculus.org/openbox/index.php/Help:Autostart
Mais qui lance autostart c’est la question!
J’ai trouvé plusieurs liens intéressants :
http://bbs.archlinux.org/viewtopic.php?id=40254
http://ubuntuforums.org/showthread.php?t=131481
À exploiter…
dans terminal
kill ps -A | grep xinit | cut -d "t" -f1
startx
Tuer ainsi les process c’est pas trés propre non
/me va tester ça
? je ne vois pas pourquoi
bien sur si tu as le mail + office + plein de trucs en écriture c’est pas cool
mais si tu n’a rien …
Bonjour,
il n’y a pas un petit raccourci clavier pour sortir d’openbox?
Tu utilises openbox-session?
En tout cas regarde du coté des actions “Exit” et “SessionLogout” dans ton fichier
de conf, ça devrait faire l’affaire pour quitter, avec un petit xinit ou startx
( selon que tu aies un .xsession ou un .xinitrc dans ton home) par dessus pour relancer x.
kill `ps -A | grep xinit | cut -d "t" -f1`
Ça marche ! Puis un startx… impec’
À défaut d’une meilleure solution, c’est adopté, merci.
@ eol : Oui, j’avais pensé à ça et fait quelques recherches, mais la commande “redémarrer openbox” du menu ne donnait rien …