Enregistrer un fichier avec un terminal
Résolu/Fermé
bab212
Messages postés
2487
Date d'inscription
samedi 13 juin 2009
Statut
Membre
Dernière intervention
29 décembre 2013
-
25 juil. 2010 à 01:22
bab212 Messages postés 2487 Date d'inscription samedi 13 juin 2009 Statut Membre Dernière intervention 29 décembre 2013 - 25 juil. 2010 à 13:02
bab212 Messages postés 2487 Date d'inscription samedi 13 juin 2009 Statut Membre Dernière intervention 29 décembre 2013 - 25 juil. 2010 à 13:02
A voir également:
- Kdmflush
- Fichier rar - Guide
- Comment ouvrir un fichier epub ? - Guide
- Comment réduire la taille d'un fichier - Guide
- Ouvrir un fichier .bin - Guide
- Audacity enregistrer son pc - Guide
8 réponses
lami20j
Messages postés
21331
Date d'inscription
jeudi 4 novembre 2004
Statut
Modérateur, Contributeur sécurité
Dernière intervention
30 octobre 2019
3 567
25 juil. 2010 à 01:26
25 juil. 2010 à 01:26
Salut,
Tu utilises GDM ou KDM?
Affiche le résultat de
Tu utilises GDM ou KDM?
Affiche le résultat de
ps aux | grep -i '[gk]dm'
karirovax
Messages postés
3221
Date d'inscription
dimanche 17 janvier 2010
Statut
Membre
Dernière intervention
22 juin 2016
203
25 juil. 2010 à 01:30
25 juil. 2010 à 01:30
salut
je crois qu'il est claire ;)
aprés les deux fichier ouvert par l'editeur vi (vous pouvez aussi par le gedit ):
vi /etc/gdm/Init/Default
vi /etc/kde/kdm/Xsetup
ajouter dans les deux fichier (a la fin ) la commande suivante :
# Active le pavé numérique au démarrage
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
je crois qu'il est claire ;)
aprés les deux fichier ouvert par l'editeur vi (vous pouvez aussi par le gedit ):
vi /etc/gdm/Init/Default
vi /etc/kde/kdm/Xsetup
ajouter dans les deux fichier (a la fin ) la commande suivante :
# Active le pavé numérique au démarrage
if [ -x /usr/bin/numlockx ]; then
/usr/bin/numlockx on
fi
lami20j
Messages postés
21331
Date d'inscription
jeudi 4 novembre 2004
Statut
Modérateur, Contributeur sécurité
Dernière intervention
30 octobre 2019
3 567
25 juil. 2010 à 01:31
25 juil. 2010 à 01:31
Re,
Je vois que tu as ouvert ce fichier 2 fois
root 2389 0.0 0.1 5516 1656 pts/0 S+ 01:00 0:00 vi /etc/gdm/Init/Default
root 2507 0.0 0.1 5516 1688 pts/1 S+ 01:07 0:00 vi /etc/gdm/Init/Default
Ferme les deux sans rien enregistrer et affiche à nouveau le résultat de la commande précedente
Je vois que tu as ouvert ce fichier 2 fois
root 2389 0.0 0.1 5516 1656 pts/0 S+ 01:00 0:00 vi /etc/gdm/Init/Default
root 2507 0.0 0.1 5516 1688 pts/1 S+ 01:07 0:00 vi /etc/gdm/Init/Default
Ferme les deux sans rien enregistrer et affiche à nouveau le résultat de la commande précedente
bab212
Messages postés
2487
Date d'inscription
samedi 13 juin 2009
Statut
Membre
Dernière intervention
29 décembre 2013
260
25 juil. 2010 à 01:36
25 juil. 2010 à 01:36
[bastien@localhost ~]$ root 407 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
bash: root: command not found
[bastien@localhost ~]$ root 414 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
bash: root: command not found
[bastien@localhost ~]$ root 945 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
bash: root: command not found
[bastien@localhost ~]$ root 1470 0.0 0.2 16484 2208 ? Ssl 00:45 0:00 /usr/sbin/gdm-binary -nodaemon
bash: root: command not found
[bastien@localhost ~]$ root 1490 0.0 0.3 20328 3500 ? Sl 00:45 0:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
bash: root: command not found
[bastien@localhost ~]$ root 1493 2.2 3.5 66536 36064 tty1 Ss+ 00:45 0:53 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-13DB4k/database -nolisten tcp vt1
bash: root: command not found
[bastien@localhost ~]$ gdm 1577 0.0 0.0 3568 792 ? S 00:45 0:00 /usr/bin/dbus-launch --exit-with-session
** (gdm-binary:2634): WARNING **: Failed to acquire org.gnome.DisplayManager: Connection ":1.78" is not allowed to own the service "org.gnome.DisplayManager" due to security policies in the configuration file
** (gdm-binary:2634): WARNING **: Could not acquire name; bailing out
[bastien@localhost ~]$ gdm 1636 0.0 0.6 20824 7120 ? S 00:45 0:00 /usr/libexec/polkit-gnome-authentication-agent-1
** (gdm-binary:2639): WARNING **: Failed to acquire org.gnome.DisplayManager: Connection ":1.79" is not allowed to own the service "org.gnome.DisplayManager" due to security policies in the configuration file
** (gdm-binary:2639): WARNING **: Could not acquire name; bailing out
[bastien@localhost ~]$ root 1653 0.0 0.3 19008 3360 ? Sl 00:45 0:00 pam: gdm-password
bash: root: command not found
[bastien@localhost ~]$ root 2389 0.0 0.1 5516 1656 pts/0 S+ 01:00 0:00 vi /etc/gdm/Init/Default
bash: root: command not found
[bastien@localhost ~]$ root 2507 0.0 0.1 5516 1688 pts/1 S+ 01:07 0:00 vi /etc/gdm/Init/Default
bash: root: command not found
bash: root: command not found
[bastien@localhost ~]$ root 414 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
bash: root: command not found
[bastien@localhost ~]$ root 945 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
bash: root: command not found
[bastien@localhost ~]$ root 1470 0.0 0.2 16484 2208 ? Ssl 00:45 0:00 /usr/sbin/gdm-binary -nodaemon
bash: root: command not found
[bastien@localhost ~]$ root 1490 0.0 0.3 20328 3500 ? Sl 00:45 0:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
bash: root: command not found
[bastien@localhost ~]$ root 1493 2.2 3.5 66536 36064 tty1 Ss+ 00:45 0:53 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-13DB4k/database -nolisten tcp vt1
bash: root: command not found
[bastien@localhost ~]$ gdm 1577 0.0 0.0 3568 792 ? S 00:45 0:00 /usr/bin/dbus-launch --exit-with-session
** (gdm-binary:2634): WARNING **: Failed to acquire org.gnome.DisplayManager: Connection ":1.78" is not allowed to own the service "org.gnome.DisplayManager" due to security policies in the configuration file
** (gdm-binary:2634): WARNING **: Could not acquire name; bailing out
[bastien@localhost ~]$ gdm 1636 0.0 0.6 20824 7120 ? S 00:45 0:00 /usr/libexec/polkit-gnome-authentication-agent-1
** (gdm-binary:2639): WARNING **: Failed to acquire org.gnome.DisplayManager: Connection ":1.79" is not allowed to own the service "org.gnome.DisplayManager" due to security policies in the configuration file
** (gdm-binary:2639): WARNING **: Could not acquire name; bailing out
[bastien@localhost ~]$ root 1653 0.0 0.3 19008 3360 ? Sl 00:45 0:00 pam: gdm-password
bash: root: command not found
[bastien@localhost ~]$ root 2389 0.0 0.1 5516 1656 pts/0 S+ 01:00 0:00 vi /etc/gdm/Init/Default
bash: root: command not found
[bastien@localhost ~]$ root 2507 0.0 0.1 5516 1688 pts/1 S+ 01:07 0:00 vi /etc/gdm/Init/Default
bash: root: command not found
lami20j
Messages postés
21331
Date d'inscription
jeudi 4 novembre 2004
Statut
Modérateur, Contributeur sécurité
Dernière intervention
30 octobre 2019
3 567
25 juil. 2010 à 01:38
25 juil. 2010 à 01:38
Re,
C'était ça la commande précédente
C'était ça la commande précédente
ps aux | grep -i '[gk]dm'
karirovax
Messages postés
3221
Date d'inscription
dimanche 17 janvier 2010
Statut
Membre
Dernière intervention
22 juin 2016
203
25 juil. 2010 à 01:39
25 juil. 2010 à 01:39
Re,
donc vous etes sur gdm
donc vous etes sur gdm
lami20j
Messages postés
21331
Date d'inscription
jeudi 4 novembre 2004
Statut
Modérateur, Contributeur sécurité
Dernière intervention
30 octobre 2019
3 567
25 juil. 2010 à 01:37
25 juil. 2010 à 01:37
Re,
Ensuite il suffit de faire en root
Ensuite il suffit de faire en root
echo "# Active le pavé numérique au démarrage" >> /etc/gdm/Init/Default echo "if [ -x /usr/bin/numlockx ]; then" >> /etc/gdm/Init/Default echo " /usr/bin/numlockx on" >> /etc/gdm/Init/Default echo "fi" >> /etc/gdm/Init/Default
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
bab212
Messages postés
2487
Date d'inscription
samedi 13 juin 2009
Statut
Membre
Dernière intervention
29 décembre 2013
260
25 juil. 2010 à 01:51
25 juil. 2010 à 01:51
bon alors si j'ai bien compris :
je tape la comande suivante : ps aux | grep -i '[gk]dm' (en fait a quoi sert elle ? )
j'obtient ca
root 397 0.0 0.0 0 0 ? S 01:37 0:00 [kdmflush]
root 404 0.0 0.0 0 0 ? S 01:37 0:00 [kdmflush]
root 933 0.0 0.0 0 0 ? S 01:38 0:00 [kdmflush]
root 1458 0.0 0.2 16484 2204 ? Ssl 01:38 0:00 /usr/sbin/gdm-binary -nodaemon
root 1478 0.0 0.3 20328 3500 ? Sl 01:38 0:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
root 1481 3.3 3.7 69192 38456 tty1 Ss+ 01:38 0:08 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-1K2GQ7/database -nolisten tcp vt1
gdm 1565 0.0 0.0 3568 796 ? S 01:38 0:00 /usr/bin/dbus-launch --exit-with-session
gdm 1624 0.0 0.6 20824 7120 ? S 01:38 0:00 /usr/libexec/polkit-gnome-authentication-agent-1
root 1641 0.0 0.3 19008 3360 ? Sl 01:38 0:00 pam: gdm-password
mais après je ne comprend plus ce qu'il faut faire : je tape la comande
vi /etc/gdm/Init/Default
puis après la commande echo "# Active le pavé numérique au démarrage" >> /etc/gdm/Init/Default
echo "if [ -x /usr/bin/numlockx ]; then" >> /etc/gdm/Init/Default
echo " /usr/bin/numlockx on" >> /etc/gdm/Init/Default
echo "fi" >> /etc/gdm/Init/Default
ou alors j'ai rien compris ? :p
enfait je voudrais savoir comment marche ce que je suis en train de faire pour le recommencer plus tard
je tape la comande suivante : ps aux | grep -i '[gk]dm' (en fait a quoi sert elle ? )
j'obtient ca
root 397 0.0 0.0 0 0 ? S 01:37 0:00 [kdmflush]
root 404 0.0 0.0 0 0 ? S 01:37 0:00 [kdmflush]
root 933 0.0 0.0 0 0 ? S 01:38 0:00 [kdmflush]
root 1458 0.0 0.2 16484 2204 ? Ssl 01:38 0:00 /usr/sbin/gdm-binary -nodaemon
root 1478 0.0 0.3 20328 3500 ? Sl 01:38 0:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
root 1481 3.3 3.7 69192 38456 tty1 Ss+ 01:38 0:08 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-1K2GQ7/database -nolisten tcp vt1
gdm 1565 0.0 0.0 3568 796 ? S 01:38 0:00 /usr/bin/dbus-launch --exit-with-session
gdm 1624 0.0 0.6 20824 7120 ? S 01:38 0:00 /usr/libexec/polkit-gnome-authentication-agent-1
root 1641 0.0 0.3 19008 3360 ? Sl 01:38 0:00 pam: gdm-password
mais après je ne comprend plus ce qu'il faut faire : je tape la comande
vi /etc/gdm/Init/Default
puis après la commande echo "# Active le pavé numérique au démarrage" >> /etc/gdm/Init/Default
echo "if [ -x /usr/bin/numlockx ]; then" >> /etc/gdm/Init/Default
echo " /usr/bin/numlockx on" >> /etc/gdm/Init/Default
echo "fi" >> /etc/gdm/Init/Default
ou alors j'ai rien compris ? :p
enfait je voudrais savoir comment marche ce que je suis en train de faire pour le recommencer plus tard
lami20j
Messages postés
21331
Date d'inscription
jeudi 4 novembre 2004
Statut
Modérateur, Contributeur sécurité
Dernière intervention
30 octobre 2019
3 567
Modifié par lami20j le 25/07/2010 à 01:54
Modifié par lami20j le 25/07/2010 à 01:54
Re,
La commande c'était pour voir ce que tu utilises gdm ou kdm
mais après je ne comprend plus ce qu'il faut faire : je tape la comande
vi /etc/gdm/Init/Default
Plus besoin.
Tu tapes dans la console une par une les commandes echo, mais n'oublie pas d'être root.
Les lignes concernées seront écrites dans le fichier
GNU/Linux:Linux is Not Ubuntu! Quel linux choisir ne veut pas dire votre Distribution préférée,
106485010510997108
La commande c'était pour voir ce que tu utilises gdm ou kdm
mais après je ne comprend plus ce qu'il faut faire : je tape la comande
vi /etc/gdm/Init/Default
Plus besoin.
Tu tapes dans la console une par une les commandes echo, mais n'oublie pas d'être root.
Les lignes concernées seront écrites dans le fichier
GNU/Linux:Linux is Not Ubuntu! Quel linux choisir ne veut pas dire votre Distribution préférée,
106485010510997108
bob031
Messages postés
8158
Date d'inscription
samedi 7 août 2004
Statut
Membre
Dernière intervention
1 septembre 2014
472
Modifié par bob031 le 25/07/2010 à 08:53
Modifié par bob031 le 25/07/2010 à 08:53
Bonjour,
1) voici une doc succincte sur les commandes basiques de vi et notamment comment enregistrer un fichier.
http://matrix.samizdat.net/pratique/documentation/guide-survie-VI.html
http://wiki.linux-france.org/wiki/Utilisation_de_vi
2) La méthode de lami20j consiste à écrire directement dans un fichier, sans passer par un éditeur de texte comme vi. La commande echo permet cela et il n'y a plus besoin, après modification du fichier, de passer par une étape d'enregistrement du fichier.
^ ^
un penguin sur la banquise !
1) voici une doc succincte sur les commandes basiques de vi et notamment comment enregistrer un fichier.
http://matrix.samizdat.net/pratique/documentation/guide-survie-VI.html
http://wiki.linux-france.org/wiki/Utilisation_de_vi
2) La méthode de lami20j consiste à écrire directement dans un fichier, sans passer par un éditeur de texte comme vi. La commande echo permet cela et il n'y a plus besoin, après modification du fichier, de passer par une étape d'enregistrement du fichier.
^ ^
un penguin sur la banquise !
bab212
Messages postés
2487
Date d'inscription
samedi 13 juin 2009
Statut
Membre
Dernière intervention
29 décembre 2013
260
25 juil. 2010 à 13:02
25 juil. 2010 à 13:02
d'accord merci beaucoup tut le monde
25 juil. 2010 à 01:28
root 407 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
root 414 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
root 945 0.0 0.0 0 0 ? S 00:45 0:00 [kdmflush]
root 1470 0.0 0.2 16484 2208 ? Ssl 00:45 0:00 /usr/sbin/gdm-binary -nodaemon
root 1490 0.0 0.3 20328 3500 ? Sl 00:45 0:00 /usr/libexec/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1 --force-active-vt
root 1493 2.2 3.5 66536 36064 tty1 Ss+ 00:45 0:53 /usr/bin/Xorg :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-13DB4k/database -nolisten tcp vt1
gdm 1577 0.0 0.0 3568 792 ? S 00:45 0:00 /usr/bin/dbus-launch --exit-with-session
gdm 1636 0.0 0.6 20824 7120 ? S 00:45 0:00 /usr/libexec/polkit-gnome-authentication-agent-1
root 1653 0.0 0.3 19008 3360 ? Sl 00:45 0:00 pam: gdm-password
root 2389 0.0 0.1 5516 1656 pts/0 S+ 01:00 0:00 vi /etc/gdm/Init/Default
root 2507 0.0 0.1 5516 1688 pts/1 S+ 01:07 0:00 vi /etc/gdm/Init/Default