| |||||
| Dernière réponse | |
|---|---|
| Sujet : jalbum.net et j2re | |
| patrick2 | vi c'est du sport de le photographier !
ce petit fou arrive a atteindre 40 kms / h :) d'ailleur de temps en temps on le fait courir avec la voiture ... il coure devant, on suit ... ( on est a la campagne ) j'ai commence a personnaliser un skin . plutot sympa ce logiciel . et surtout multi OS . |
| Aperçu |
|---|
| Vue Rapide de la discussion |
|---|
| patrick2 | vi c'est du sport de le photographier !
ce petit fou arrive a atteindre 40 kms / h :) d'ailleur de temps en temps on le fait courir avec la voiture ... il coure devant, on suit ... ( on est a la campagne ) j'ai commence a personnaliser un skin . plutot sympa ce logiciel . et surtout multi OS . |
| Data Jim | De rien.
J'ai réinstaller j2re il y a une semaine, alors je m'en souvenait bien. ;) Edit : Marrante la photo du chien :) |
| patrick2 | un test ici :
http://www.photos-click.com/d70/ va falloir que je regarde du cote des skins, ya pas mal de chose qui me derangent .... |
| patrick2 | YOU ARE A WINNER :D c'est nikel . bizzare cette histoire de fichier profile .... je vais tester tout ca . en attendant merci beaucoup . sans toi parti dans une galere d'enfer :sarcastic: |
| Data Jim | bon.
Et sans faire le source ça marche ? On va y arriver :D |
| patrick2 | [patrick@localhost patrick]$ su
Password: test [root@localhost patrick]# source /root/.bashrc bash: TMOUT: readonly variable test [root@localhost patrick]# export declare -x BROWSER="kfmclient openProfile webbrowsing" declare -x COLORTERM="" declare -x DESKTOP="kde" declare -x DESKTOP_SESSION="default" declare -x DISPLAY=":0.0" declare -x ENV="/root/.bashrc" declare -x GCONF_TMPDIR="/tmp" declare -x GS_LIB="/home/patrick/.fonts" declare -x GTK2_RC_FILES="/usr/share/themes/Galaxy/gtk-2.0/gtkrc:/etc/gtk-2.0/gtkrc:/home/patrick/.gtkrc-2.0:/home/patrick/.kde/share/config/gtkrc" declare -x GTK_RC_FILES="/usr/share/themes/Galaxy/gtk/gtkrc:/etc/gtk/gtkrc:/home/patrick/.gtkrc:/home/patrick/.kde/share/config/gtkrc" declare -x G_BROKEN_FILENAMES="1" declare -x HELP_BROWSER="kfmclient openProfile webbrowsing" declare -x HISTCONTROL="ignoredups" declare -x HISTSIZE="1000" declare -x HOME="/root" declare -x HOSTNAME="localhost" declare -x INPUTRC="/etc/inputrc" declare -x JAVA_HOME="/usr/java/j2re1.4.2_02" declare -x KDE_FULL_SESSION="true" declare -x KDE_MULTIHEAD="false" declare -x KONSOLE_DCOP="DCOPRef(konsole-5550,konsole)" declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-5550,session-1)" declare -x LANG="fr_FR" declare -x LANGUAGE="fr_FR:fr" declare -x LC_ADDRESS="fr_FR" declare -x LC_COLLATE="fr_FR" declare -x LC_CTYPE="fr_FR" declare -x LC_IDENTIFICATION="fr_FR" declare -x LC_MEASUREMENT="fr_FR" declare -x LC_MESSAGES="fr_FR" declare -x LC_MONETARY="fr_FR" declare -x LC_NAME="fr_FR" declare -x LC_NUMERIC="fr_FR" declare -x LC_PAPER="fr_FR" declare -x LC_SOURCED="1" declare -x LC_TELEPHONE="fr_FR" declare -x LC_TIME="fr_FR" declare -x LESS="-MM" declare -x LESSKEY="/etc/.less" declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s" declare -x LOGNAME="patrick" declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:" declare -x MAIL="/var/spool/mail/patrick" declare -x OLDPWD declare -x PATH="/usr/java/j2re1.4.2_02/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin" declare -x PWD="/home/patrick" declare -x QTDIR="/usr/lib/qt3/" declare -x SECURE_LEVEL="2" declare -x SESSION_MANAGER="local/localhost:/tmp/.ICE-unix/2818" declare -x SHELL="/bin/bash" declare -x SHLVL="3" declare -x TERM="xterm" declare -x TMP="/root/tmp" declare -x TMPDIR="/root/tmp" declare -x USER="patrick" declare -x USERNAME="root" declare -x WINDOWID="65011717" declare -x XAUTHORITY="/root/.xauthZeJbDp" declare -x XCURSOR_SIZE="" declare -x XCURSOR_THEME="default" declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd" declare -x XMODIFIERS="@im=none" [root@localhost patrick]# j'ai "test" qui apparait apres mon login ! |
| Data Jim | Hum...
Appremment pour root le .bash_profile n'est pas éxecuté chez moi. Essaye de mettre ça dans le .bashrc plutôt. |
| patrick2 | visiblement oui .
declare -x PATH="/usr/java/j2re1.4.2_02/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin" declare -x PWD="/home/patrick" |
| Data Jim |
|
| patrick2 | ca ne peut pas gener le bash profile de mon user :
_______________________________________________________ # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME _______________________________________________________ je l'ai laisse "d'origine" |
| patrick2 | merci [root@localhost patrick]# source /root/.bash_profile bash: TMOUT: readonly variable test [root@localhost patrick]# ma variable test serait lu si je comprends bien . les autres non , ou remodifiees par un autre scrit . |
| Data Jim | source /root/.bash_profile |
| patrick2 | j'ai fait :
__________________________________________________________ # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi mesg n export JAVA_HOME=/usr/java/j2re1.4.2_02 export PATH=$JAVA_HOME/bin:$PATH export PATH echo test unset USERNAME ___________________________________________________ mais je sais pas comment verifier :( |
| Data Jim | Soit ton .bash_profile n'est pas executé, soit un autre fichier executé après écrase le PATH. |
| patrick2 | je comprends rien alors !
on a fait là la meme chose que dans mon .bash_profile j'ai pourtant pris le quatrieme, c'etait bien celui là ? [root@localhost patrick]# locate .bash_profile /etc/skel/.bash_profile /home/patrick/.bash_profile /var/lib/pgsql/.bash_profile /root/.bash_profile [root@localhost patrick]# |
| Data Jim |
|
| patrick2 |
|
| Data Jim |
|
| patrick2 | ca que tu veut ?
[root@localhost patrick]# export declare -x BROWSER="kfmclient openProfile webbrowsing" declare -x COLORTERM="" declare -x DESKTOP="kde" declare -x DESKTOP_SESSION="default" declare -x DISPLAY=":0.0" declare -x ENV="/root/.bashrc" declare -x GCONF_TMPDIR="/tmp" declare -x GS_LIB="/home/patrick/.fonts" declare -x GTK2_RC_FILES="/usr/share/themes/Galaxy/gtk-2.0/gtkrc:/etc/gtk-2.0/gtkrc:/home/patrick/.gtkrc-2.0:/home/patrick/.kde/share/config/gtkrc" declare -x GTK_RC_FILES="/usr/share/themes/Galaxy/gtk/gtkrc:/etc/gtk/gtkrc:/home/patrick/.gtkrc:/home/patrick/.kde/share/config/gtkrc" declare -x G_BROKEN_FILENAMES="1" declare -x HELP_BROWSER="kfmclient openProfile webbrowsing" declare -x HISTCONTROL="ignoredups" declare -x HISTSIZE="1000" declare -x HOME="/root" declare -x HOSTNAME="localhost" declare -x INPUTRC="/etc/inputrc" declare -x KDE_FULL_SESSION="true" declare -x KDE_MULTIHEAD="false" declare -x KONSOLE_DCOP="DCOPRef(konsole-3018,konsole)" declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-3018,session-1)" declare -x LANG="fr_FR" declare -x LANGUAGE="fr_FR:fr" declare -x LC_ADDRESS="fr_FR" declare -x LC_COLLATE="fr_FR" declare -x LC_CTYPE="fr_FR" declare -x LC_IDENTIFICATION="fr_FR" declare -x LC_MEASUREMENT="fr_FR" declare -x LC_MESSAGES="fr_FR" declare -x LC_MONETARY="fr_FR" declare -x LC_NAME="fr_FR" declare -x LC_NUMERIC="fr_FR" declare -x LC_PAPER="fr_FR" declare -x LC_SOURCED="1" declare -x LC_TELEPHONE="fr_FR" declare -x LC_TIME="fr_FR" declare -x LESS="-MM" declare -x LESSKEY="/etc/.less" declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s" declare -x LOGNAME="patrick" declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:" declare -x MAIL="/var/spool/mail/patrick" declare -x OLDPWD declare -x PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin" declare -x PWD="/home/patrick" declare -x QTDIR="/usr/lib/qt3/" declare -x SECURE_LEVEL="2" declare -x SESSION_MANAGER="local/localhost:/tmp/.ICE-unix/2784" declare -x SHELL="/bin/bash" declare -x SHLVL="3" declare -x TERM="xterm" declare -x TMP="/root/tmp" declare -x TMPDIR="/root/tmp" declare -x USER="patrick" declare -x USERNAME="root" declare -x WINDOWID="37748741" declare -x XAUTHORITY="/root/.xauthgGDaqQ" declare -x XCURSOR_SIZE="" declare -x XCURSOR_THEME="default" declare -x XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd" declare -x XMODIFIERS="@im=none" [root@localhost patrick]# sh ./jalbum.bin Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program. [root@localhost patrick]# j'ai vu ca : http://www.linuxquestions.org/questions/history/199647 |
| Data Jim | Je ne vois pas trop alors :/
Fais un export juste avant de lancer le script pour voir si le PATH est bon. |
| patrick2 | [patrick@localhost patrick]$ locate j2re1.4.2_02
/usr/java/j2re1.4.2_02 /usr/java/j2re1.4.2_02/COPYRIGHT /usr/java/j2re1.4.2_02/CHANGES /usr/java/j2re1.4.2_02/THIRDPARTYLICENSEREADME.txt /usr/java/j2re1.4.2_02/ControlPanel.html /usr/java/j2re1.4.2_02/LICENSE /usr/java/j2re1.4.2_02/README /usr/java/j2re1.4.2_02/bin pas mis le reste ....... |
| Data Jim | fais un locate j2re1.4.2_02 |
| patrick2 | vi, pas bien reflechi sur ce coup là :sarcastic: bon je suis sur "mon root" # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi mesg n # User specific environment and startup programs export JAVA_HOME=/usr/java/j2re1.4.2_02 export PATH=$JAVA_HOME/bin:$PATH export PATH unset USERNAME :fou: toujours rien ! j'ai essaye avec : # User specific environment and startup programs export JAVA_HOME=/usr/java/j2re1.4.2_02/bin export PATH=$JAVA_HOME/bin:$PATH mais rien aussi :pfff: comprends rien :( |
| Data Jim | Tu édites les préférences de ton user, et tu execute le script en root, alors forcément ;) |
| patrick2 | non, celui de mon user .
c'est ca qui merde ? zut,je pensais que ca gazerait ... |
| Data Jim | C'est le bash_profile de root que tu as édité là ? |
| patrick2 |
|
| Data Jim | Forcément, tu exportes le path avant de le changer :o |
| Data Jim | Moi j'ai ça :
export JAVA_HOME=/usr/lib/j2re1.4.2_04 export PATH=$JAVA_HOME/bin:$PATH export PATH |
| patrick2 | # .bash_profile
# Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin" |
| patrick2 | merci, mais rien .
je sais peut etre pas faire ou ... ??????????? voilà le fichier en question : ------------------------------------------------------------------ # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin" --------------------------------------------------------------------- j'ai fait quoi de mal ? :fou: j'ai essaye sans le /bin mais rien . faut rester zennnnnnnnn :jap: |
| patrick2 | bonjour !
voilà ... jalbum cherche j2re :( [root@localhost patrick]# sh ./jalbum.bin Preparing to install... Extracting the installation resources from the installer archive... Configuring the installer for this system's environment... No Java virtual machine could be found from your PATH environment variable. You must install a VM prior to running this program. [root@localhost patrick]# locate j2re /usr/java/j2re1.4.2_02 ........ /usr/java/j2re1.4.2_02/bin j'ai cru comprendre qu'il fallait modifier le .bash_profile si c'est lui le voilà : # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME _________________________________________ je rajoute ca en dessous , apres la derniere ligne ? PATH="$PATH:/usr/X11R6/bin:/usr/java/j2re1.4.2_02/bin" est ce que c'est ca ? ou je suis a cote de la plaque ? merci |




