tous fonctionne parfaitement (J'ai le mot READY) mais à chaque fois que je redémarre ubuntu il faut que je retape les commandes, j'ai donc mis les commandes dans un script
Dans le dossier $HOME j'ai crée un dossier Script avec mon script 'Config_Netkit.sh' dedans. (le dossier netkit se trouve aussi dans $HOME) Quand je lance le script avec la commande $HOME/Script/Config_Netkit.sh j'ai le READY.
Config_Netkit.sh (jai mis le droit d'execution avec sudo chmod +x nomDuScript)
#!/bin/sh
export NETKIT_HOME='/home/user/netkit'
export PATH=$PATH:$NETKIT_HOME/bin
export MANPATH=$MANPATH:$NETKIT_HOME/man
cd /home/user/netkit
./check_configuration.sh
Dans le fichier /etc/rc.local j'ai mis la commande pour lancer mon script $HOME/Script/Config_Netkit.sh, mais quand je rentre dans le dossier netkit et que je fais ./check_configuration.sh il me met ERROR
rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/home/user/Script/Configuration_Netkit.sh
exit 0
j'utilise en mode fenêtre, dans netkit/ExempleDossier je fais lstart dans le terminal et y a des fenêtres qui s'ouvrent.
je fais dans le terminal vi ~/.bashrc et je mets à la fin export NETKIT_HOME='/home/user/netkit' ; export PATH=$PATH:$NETKIT_HOME/bin ; export MANPATH=$MANPATH:$NETKIT_HOME/man ?
je fais dans le terminal vi ~/.bashrc et je mets à la fin export NETKIT_HOME='/home/user/netkit' export PATH=$PATH:$NETKIT_HOME/bin export MANPATH=$MANPATH:$NETKIT_HOME/man ?
oui, c'est ça. au pire, ce ne sera pas préjudiciable, mais vu que tu démarres netkit depuis la console, il y a des chances que ça résolve ton souci.
Validez la réponse utile « Un problème clairement exposé est à moitié résolu. » Pas de MP technique
user@user-VirtualBox:~/netkit$ ./check_configuration.sh
> Checking path correctness... passed.
> Checking environment... passed.
> Checking for availability of man pages... passed.
> Checking for proper directories in the PATH... passed.
> Checking for availability of auxiliary tools:
awk : ok
basename : ok
date : ok
dirname : ok
find : ok
getopt : ok
grep : ok
head : ok
id : ok
kill : ok
ls : ok
lsof : ok
ps : ok
readlink : ok
wc : ok
port-helper : ok
tunctl : ok
uml_mconsole : ok
uml_switch : ok
passed.
> Checking for availability of terminal emulator applications:
xterm : found
konsole : found
gnome-terminal : found
passed.
> Checking filesystem type... passed.
> Checking whether 32-bit executables can run... passed.
[ READY ] Congratulations! Your Netkit setup is now complete!
Enjoy Netkit!
si les commandes n'ont pas été pris en compte ça donne cela
user@user-VirtualBox:~/netkit$ ./check_configuration.sh
> Checking path correctness... passed.
> Checking environment... failed!
*** Error: the environment variable NETKIT_HOME is not set. You should
set it to the following value:
/home/ket/netkit
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.
Donc je suppose que les commandes dans le fichier ~/.bashrc ont fonctionné mais n'ont pas été pris en compte
× Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
× Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
Validez la réponse utile « Un problème clairement exposé est à moitié résolu. » Pas de MP technique
Validez la réponse utile « Un problème clairement exposé est à moitié résolu. » Pas de MP technique
Validez la réponse utile « Un problème clairement exposé est à moitié résolu. » Pas de MP technique