Enregistrer un fichier avec un terminal
Résolu
bab212
Messages postés
2488
Date d'inscription
Statut
Membre
Dernière intervention
-
bab212 Messages postés 2488 Date d'inscription Statut Membre Dernière intervention -
bab212 Messages postés 2488 Date d'inscription Statut Membre Dernière intervention -
Bonjour, alors déjà merci beaucoup d'avance car je pense que ce problème a déjà été évoquer
Alors voila, j'ai voulu installer un programme pou activer le pavé numérique au démarrage sous Fedora 13. J'ai installer ce programme, mais au moment de modifier le fichier, je dois enregistrer les modifications :
j'ai suivi ce tuto
https://doc.fedora-fr.org/wiki/Numlockx_:_Activer_le_clavier_num%c3%a9rique_au_d%c3%a9marrage
mais au moment ou il dit d'enregistrer le fichier, je ne sais pas comment faire.
merci beaucoup d'avance
Alors voila, j'ai voulu installer un programme pou activer le pavé numérique au démarrage sous Fedora 13. J'ai installer ce programme, mais au moment de modifier le fichier, je dois enregistrer les modifications :
j'ai suivi ce tuto
https://doc.fedora-fr.org/wiki/Numlockx_:_Activer_le_clavier_num%c3%a9rique_au_d%c3%a9marrage
mais au moment ou il dit d'enregistrer le fichier, je ne sais pas comment faire.
merci beaucoup d'avance
A voir également:
- Kdmflush
- Comment réduire la taille d'un fichier - Guide
- Comment ouvrir un fichier epub ? - Guide
- Fichier bin - Guide
- Audacity enregistrer son pc - Guide
- Fichier rar - Guide
8 réponses
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
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
[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
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
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
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
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 !
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