<![CDATA[Forum Ubuntu-fr.org / Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?id=1532621 Sat, 05 Apr 2014 09:11:47 +0000 FluxBB <![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16502111#p16502111 Bonjour tout le monde,
Je me permets un petit up car je n'ai toujours pas trouvé de solution.
Si quelqu'un peu m'aider.

]]>
Sat, 05 Apr 2014 09:11:47 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16502111#p16502111
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16442001#p16442001 Oui, pardon, c'est bien dans /home/mortimer que je l'ai mis.

]]>
Sun, 30 Mar 2014 09:32:20 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16442001#p16442001
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16441961#p16441961 Bonjour $mortimer.pw
ce n est pas dans /home que tu dois mettre le script, mais dans /home/mortimer n'est ce pas ?

]]>
Sun, 30 Mar 2014 09:29:07 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16441961#p16441961
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16441461#p16441461 salut,

et dans /etc/gmd3/ ?il y a des répertoires contenant des fichiers Default dans lesquels on peut inscrire (avant le `exit 0' final wink ) quelques scripts.

]]>
Sun, 30 Mar 2014 08:46:21 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16441461#p16441461
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16441321#p16441321 Bonjour à tous,

RIEN NE MARCHE !

J'ai essayé de mettre mon script dans /etc/X11/Xsession.d, ça ne marche pas
J'ai essayé de le mettre dans /home et de l'appeler dans .profile, ça ne marche pas

Si dessous les lignes de mon script :
#!/bin/sh
/usr/bin/synclient vertedgescroll=1
/usr/bin/synclient vertscrolldelta=100
exit 0

Les droits sur le fichier :
-rwxr-xr-x  1 mortimer mortimer   92 mars  28 17:41 monscript.sh

Est-ce que j'ai raté quelque chose ?

]]>
Sun, 30 Mar 2014 08:34:12 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16441321#p16441321
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16437151#p16437151 tiens ça c est pas mal : http://www.gnu.org/software/bash/manual … Files.html

]]>
Sat, 29 Mar 2014 17:40:52 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16437151#p16437151
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16436821#p16436821 ha daccords $serged mais tu as testé ?
parceque à priori ça marche pas comme ça sur ma 13.10...
As tu essayé la manip que j ai fais en post19 ?

]]>
Sat, 29 Mar 2014 17:12:11 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16436821#p16436821
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16436321#p16436321 Josepe36 a écrit :

on parle bien de $HOME/.profile et non de /etc/profile serged ?

$HOME/.profile est exécuté au démarrage d'un terminal de l'utilisateur. /etc/profile est exécuté au démarrage d'un terminal de tous les utilisateurs.

(idem pour $HOME/.bashrc et /etc/bash.bashrc)

]]>
Sat, 29 Mar 2014 16:15:54 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16436321#p16436321
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16432401#p16432401 on parle bien de $HOME/.profile et non de /etc/profile serged ?

]]>
Sat, 29 Mar 2014 09:35:14 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16432401#p16432401
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16431571#p16431571 Josepe36 a écrit :
.profile (qui est lancé au démarrage d'un terminal).

FAUX
C'est .bashrc qui est lançé au démarage d'un terminal.

Si, si.
.profile est lancé par tout les shells de type bourne-shell (bash, dash, zsh... mais pas tcsh), .bashrc n'est lancé que par bash (et .zshrc par zsh...).

]]>
Sat, 29 Mar 2014 08:08:29 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16431571#p16431571
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16428211#p16428211 conrétement, il est aisé de faire le test sur ces deux fichiers afin de voir le comportement.
.bashrc va préparer le shell lors de l ouverture d un terminal, alias, etc...
si j ecris a la fin de .bashrc:
echo "salut" $USER
A l ouverture d un terminal celui ci vous dira salut.

Si je fais la meme chose dans .profile  et que j ouvre un terminal rien ne se passe.

@mortimer.pw
tu peux meme tout simplement mettre ton script dans ton home, le rendre executable et ecrire dans .profile:
$HOME/ton_script.sh &

]]>
Fri, 28 Mar 2014 19:19:14 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16428211#p16428211
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16427691#p16427691 Josepe36 a écrit :
.profile (qui est lancé au démarrage d'un terminal).

FAUX
C'est .bashrc qui est lançé au démarage d'un terminal.

euh en fait c'est .profile et .bashrc qui sont lus SI tu utilises bash.

]]>
Fri, 28 Mar 2014 18:13:38 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16427691#p16427691
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16427561#p16427561
.profile (qui est lancé au démarrage d'un terminal).

FAUX
C'est .bashrc qui est lançé au démarage d'un terminal.

]]>
Fri, 28 Mar 2014 17:55:25 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16427561#p16427561
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16427501#p16427501 oui, en vérifiant qu'il a bien l'option executable (+x)

]]>
Fri, 28 Mar 2014 17:47:24 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16427501#p16427501
<![CDATA[Réponse à : Exécution shell au démarrage]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=16426891#p16426891 je dois juste mettre le script dans le répertoire ?

]]>
Fri, 28 Mar 2014 16:40:16 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=16426891#p16426891