C'est quoi cette commande export DISPLAY=your.pc.ip.address:

bonjour:

j’ai acheté un petit disque dur réseau nas (readynas by netgear), il tourne sous debian et je découvre linux (j’adore!)

j’essaye d’installer jdownloader sur mon nas en suivant ce tutoriel
readynas.com/forum/viewtopic … 36&t=46318

je suis presque au bout mais il y a une étape que je ne comprends pas bien du tout…

[u] download the official jdownloader install script from here : jdownloader.org/download/index)

  • set up a X11 server on your PC so that you can export your display (Linux : it’s already there, MacOS : X11 included on the second DVD IIRC, Windows : download Xming from here : sourceforge.net/projects/xming/)
  • on the readynas, export your display and run the jd.sh script :[/u]

export DISPLAY=your.pc.ip.address:0 chmod 755 jd.sh ./jd.sh

Donc j’ai réussi à donner la permission nécessaire au fichier jd.sh et je l’ai éxécuté sur mon serveur nas (à la racine…), je n’ai eu aucune erreurs (ouf!!)

je fais quoi après car j’ai bien téléchargé xming pour windows (seven) il y a la petite icone avec cocher "hide root windows"
et je tape ou cette ligne

merci de votre aide!

Salut,

Tu nous donnes un lien qui finiraot par m’emmener sur Fesses/Bouc ==> non merci

Chaque Nas a son propre développement qui certes ressemble à du Linux mais plus ou moins adapté. J’ai pour le moen été obligé de découvrir leur forum pour m’en sortir :blush:

je n’ai rien compris

quel lien va sur facebook ? c’est le forum officiel readynas…

j’ai compris que xming sert à afficher une fenêtre virtuelle mais quand je mets dans putty export DISPLAY=localhost:1
cela ne fait rien du tout…
quelqu’un peut m’aider ?

Cette commande définit et exporte une variable d’environnement qui dit aux applications graphiques locales (clients X) d’utiliser l’affichage de la machine distante dont l’adresse IP est spécifiée plutôt qu’un serveur X local. Mais si on se connecte en SSH avec putty ce n’est pas nécessaire, il suffit d’activer l’option X11 forwarding dans la configuration de putty.

localhost=127.0.0.1=le PC depuis lequel tu lances la commande.

your.pc.ip.address:0

L’adresse du PC distant sous forme de numéro IP ou de nom suivi de la référence de l’affichage (DISPLAY) , ici :0.

Imaginons serveur du nom PC-X11 au numéro IP 192.168.1.11

À partir du NAS
$ export DISPLAY=192.168.1.11:0
ou
$ export DISPLAY=PC-X11:0

À condition que le nom “PC-X11” se résolve par exemple en renseignant le fichier /etc/hosts de son numéro IP.

Coté serveur X11, il faudra bien entendu disposer d’un serveur X et qu’il soit lancé.
Sous Microsoft, j’ai plus l’habitude de vnc mais ça devrait ressembler à ce qui se fait sous linux/*BSD/MacOSX …
Depuis la session X on spécifie le numéro IP ou nom du système dont on accepte la connexion à X :

$ xhost + numéro-IP-ou-Nom_du_NAS
par exemple imaginons que NAS soit appelé NAS et qu’il ait le numéro IP 192.168.1.12
$ xhost +NAS
ou
$ xhost +192.168.1.12
ce qui renvoie
192.168.1.12 being added to access control list
Pour l’enlever :
$ xhost -192.168.1.12

ACHTUNG :
Accepter n’importe quelle connexion
$ xhost +

bon bah je reviens

donc par rapport à mon tutoriel que j’essaye de suivre, j’en suis toujours bloqué à l’étape d’affichage de mon bureau virtuel

je précise que je veux installer jdownload sur mon serveur nas qui a debian et que je dois passer par mon pc pour installer jdownload avec une interface graphique! (xming)

voici l’erreur que j’ai et dont je ne sais absolument pas l’origine (java, mauvaise adresse ip, jdownload)

donc j’ai d’abord entré une ip pour virtualiser le graphisme de debian de mon nas
export DISPLAY=localhost:0
chmod 755 jd.sh
./jd.sh

[code]JD Installation found: No valid JDownloader.jar exist!
Start JD-Updater
JAR
00s.009 - FINEST [jd.utils.JDUtilities(getJDClassLoader)] -> Create Classloader: for: /root/.jd
00s.023 - FINEST [jd.JDClassLoader()] -> rootDir:/root/.jd
/root/.jd
null
00s.156 - FINER [jd.config.DatabaseConnector()] -> Loading database
00s.792 - WARNING [jd.config.DatabaseConnector(getData)] -> Database not available. Create new one: WEBUP DATE
00s.792 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [SELECT * FROM config]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at jd.config.DatabaseConnector.getData(DatabaseConnector.java:216)
at jd.config.SubConfiguration.(SubConfiguration.java:77)
at jd.config.SubConfiguration.getConfig(SubConfiguration.java:106)
at jd.update.WebUpdater.getConfig(WebUpdater.java:74)
at jd.update.Main.main(Main.java:121)
First save WEBUPDATE
00s.803 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: WEBUPDATE
00s.803 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.config.SubConfiguration.getConfig(SubConfiguration.java:109)
at jd.update.WebUpdater.getConfig(WebUpdater.java:74)
at jd.update.Main.main(Main.java:121)
/root/.jd/config/WEBUPDATE.cfg (No such file or directory)
First save WEBUPDATE
00s.816 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: WEBUPDATE
00s.816 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.update.WebUpdater.getConfig(WebUpdater.java:81)
at jd.update.Main.main(Main.java:121)
First save WEBUPDATE
00s.818 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: WEBUPDATE
00s.818 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.update.WebUpdater.getConfig(WebUpdater.java:81)
at jd.update.Main.main(Main.java:124)
First save WEBUPDATE
00s.819 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: WEBUPDATE
00s.819 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.update.WebUpdater.getConfig(WebUpdater.java:81)
at jd.update.Main.main(Main.java:125)
{}

00s.820 - WARNING [jd.config.DatabaseConnector(getData)] -> Database not available. Create new one: PACKA GEMANAGER
00s.821 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [SELECT * FROM config]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at jd.config.DatabaseConnector.getData(DatabaseConnector.java:216)
at jd.config.SubConfiguration.(SubConfiguration.java:77)
at jd.config.SubConfiguration.getConfig(SubConfiguration.java:106)
at jd.update.WebUpdater.getConfig(WebUpdater.java:74)
at jd.update.Main.main(Main.java:126)
First save PACKAGEMANAGER
00s.822 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: PACKAGEMANAGER
00s.822 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.config.SubConfiguration.getConfig(SubConfiguration.java:109)
at jd.update.WebUpdater.getConfig(WebUpdater.java:74)
at jd.update.Main.main(Main.java:126)
/root/.jd/config/PACKAGEMANAGER.cfg (No such file or directory)
First save PACKAGEMANAGER
00s.824 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: PACKAGEMANAGER
00s.825 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.update.WebUpdater.getConfig(WebUpdater.java:81)
at jd.update.Main.main(Main.java:126)
{}

First save PACKAGEMANAGER
00s.826 - WARNING [jd.config.DatabaseConnector(saveConfiguration)] -> Database save error: PACKAGEMANAGER
00s.826 - FINEST [jd.controlling.JDLogger(exception)] -> FINEST Exception occurred
java.sql.SQLException: Table not found in statement [INSERT INTO config VALUES (?,?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.(Unknown Source)
at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
at jd.config.DatabaseConnector.saveConfiguration(DatabaseConnector.java:285)
at jd.config.SubConfiguration.save(SubConfiguration.java:87)
at jd.update.WebUpdater.getConfig(WebUpdater.java:81)
at jd.update.Main.main(Main.java:127)
Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11Graphics Environment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.(XToolkit.java:89)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:122)
at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1554)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:130)
at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1589)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:514)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:554)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1317)
at javax.swing.UIManager.initialize(UIManager.java:1406)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1394)
at javax.swing.UIManager.getInstalledLookAndFeels(UIManager.java:394)
at jd.update.Main.initGUI(Main.java:419)
at jd.update.Main.main(Main.java:129)
nas-8B-0B-22:~# Could not initialize class sun.awt.X11Graphics Environment
-bash: Could: command not found
[/code]

merci énormément de vos réponses les gars :038

up!

je crois que c’est un problème de java mais bon sang, je sais pas comment le règler!

Exception in thread “main” java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

P’têt parce que l’accès au serveur X ne marche pas. Pourquoi avoir mis “localhost” dans DISPLAY ? localhost c’est le NAS, et il n’a pas de serveur X.

donc je dois mettre l’ip de mon pc qui a xming ?

mon nas a cette adresse 192.168.0.23

svp je suis débutant :slightly_smiling:

le PC est localhost, le NAS est localhost, mon PC est aussi localhost …
localhost ça veut dire “le présent système”, lorsque tu lances la commande depuis NAS, tu n’exportes en rien l’affichage, tu le lui délègues à lui même.

Si je te donne rendez-vous “ici” sans autre précisions, “ici” ça peut être Tbilissi, Buenos-Aires, Pretoria ou Tokyo …

serveur= PC , client= NAS

Sur NAS tu spécifies que tu veux l’affichage sur PC, tu donnes donc le numéro IP du PC

$ export DISPLAY=Numéro_IP_du_PC:0

Sur PC tu spécifies que tu acceptes les connexions provenant de NAS, tu donnes donc le numéro IP de NAS

$ xhost +numéro_IP_de_NAS

A noter que si on utilise le forwarding X11 de SSH, on n’a pas besoin de tout ça (quand on se connecte depuis le PC sur lequel l’affichage doit être déporté).

j’utilise le forwading de putting x11 mais comme vous voyez il me met des problèmes donc je sais pas c’est quoi le problème au final…