Pages : 1
#1 Le 13/02/2017, à 08:24
- arlong987
Netkit :
Bonjour,
J'ai installé netkit et quand je fais ./check_configuration.sh j'ai le message READY (donc tout onctionne parfaitement) mais à chaque fois que je redémarre ma machine je dois ré-entrer ces commandes pour faire fonctionner netkit
export NETKIT_HOME='/home/ket/netkit'
export PATH=$PATH:$NETKIT_HOME/bin
export MANPATH=$MANPATH:$NETKIT_HOME/man
J'ai donc mis ces commandes dans un script.sh, j'ai donné le droit d’exécution.
J'ai mis le chemin de script.sh dans /etc/rc.local mais ça n'a pas marché le ./check_configuration.sh me renvoie en autre Error: the environment variable NETKIT_HOME is not set. You should set it to the following value.
Puis je l'ai mis dans le fichier ~/.bashrc, ça ne marche pas non plus.
Dernière modification par arlong987 (Le 13/02/2017, à 08:24)
Hors ligne
#2 Le 13/02/2017, à 15:45
- J5012
Re : Netkit :
les exports sont à mettre directement dans rc.local avant "exit 0" sans utiliser de fichier intermediaire ...
idem pour bashrc
export NETKIT_HOME=$PWD
export PATH=$NEW_PATH
export MANPATH=$NEW_MANPATH
$NEWPATH et $NEW_MANPATH seront definissables parce que NETKIT_HOME sera mis apres autodetection du bon dossier apres execution du premier binaire ... , PWD est le dossier d'execution parent (previous working directory)
Hors ligne
#3 Le 15/02/2017, à 07:59
- arlong987
Re : Netkit :
Bonjour,
J'ai mis ces commandes dans le fichier bashrc en faisant vi ~/.bashrc
export NETKIT_HOME=$PWD
export PATH=$NEW_PATH
export MANPATH=$NEW_MANPATH
et après avoir redémarrer, ça n'a pas marché le ./check_configuration.sh me renvoie Error
./check_configuration.sh
> Checking path correctness... ./check_configuration.sh: 35: check_configuration.d/01-check_path.sh: grep: not found
passed.
> Checking environment... failed!
*** Error: the environment variable NETKIT_HOME currently points at the
wrong directory:
(current value) /home/ket
(should be) /home/ket/netkit
In order to fix this, you can use one of the following commands, depending
on the shell you are using:
(for bash) export NETKIT_HOME=/home/ket/netkit
(for csh) setenv NETKIT_HOME /home/ket/netkit
[ ERROR ] Your system is not configured properly. Please correct the
above errors before starting to use Netkit.
le deuxième problème c'est que je n'arrive plus à accéder au fichier ~/.bashrc
$ vi ~/.bashrc
bash: vi: Aucun fichier ou dossier de ce type
Plus aucune commande ne marche quand je fais ls par exemple j'ai le même problème.
Dernière modification par arlong987 (Le 15/02/2017, à 08:19)
Hors ligne
#4 Le 15/02/2017, à 21:56
- J5012
Re : Netkit :
comme il y a eu une erreur de script avec export , le bashrc de la session utilisateur a ete ...couic...
→ reboot mode recovery ...
je pensais que tu avais lu les instructions de netkit ? ....
j'avais aussi pre-supposé que tu avais cette version : http://netkit-ng.github.io/
le script check configuration servait deja à exporter les variables netkit à partir de tout dossier d'install netkit ...
c'est donc check configuration qu'il fallait appeler dans le bashrc ou dans rc.local ...
si tu n'arrives pas à booter en recovery, utilise un live ...
Hors ligne
#5 Le 16/02/2017, à 13:08
- arlong987
Re : Netkit :
bonjour,
ha ok merci de votre aide
Hors ligne
#6 Le 14/11/2017, à 19:05
- t_gido
Re : Netkit :
Bonjour,
J'ai mis ces commandes dans le fichier bashrc en faisant vi ~/.bashrcexport NETKIT_HOME=$PWD export PATH=$NEW_PATH export MANPATH=$NEW_MANPATH
et après avoir redémarrer, ça n'a pas marché le ./check_configuration.sh me renvoie Error
./check_configuration.sh > Checking path correctness... ./check_configuration.sh: 35: check_configuration.d/01-check_path.sh: grep: not found passed. > Checking environment... failed! *** Error: the environment variable NETKIT_HOME currently points at the wrong directory: (current value) /home/ket (should be) /home/ket/netkit In order to fix this, you can use one of the following commands, depending on the shell you are using: (for bash) export NETKIT_HOME=/home/ket/netkit (for csh) setenv NETKIT_HOME /home/ket/netkit [ ERROR ] Your system is not configured properly. Please correct the above errors before starting to use Netkit.
le deuxième problème c'est que je n'arrive plus à accéder au fichier ~/.bashrc
$ vi ~/.bashrc bash: vi: Aucun fichier ou dossier de ce type
Plus aucune commande ne marche quand je fais ls par exemple j'ai le même problème.
vérifie si ton système est un 64 bit si oui installe des librairies de 32 bit
Hors ligne
Pages : 1