Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Programm startet nur wenn Ethernet-Kabel eingesteckt
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Eisbrecher
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2006
Posts: 84

PostPosted: Sat Jun 16, 2007 7:45 am    Post subject: [solved]Programm startet nur wenn Ethernet-Kabel eingesteckt Reply with quote

Servus allerseits,

ich habe ein Programm zum Erstellen von UML-Diagrammen gesucht und mir wurde argouml empfohlen. Damit komme ich ganz gut zurecht, habe aber ein kleines Problem: es startet nur, wenn ich an meinem Notebook ein Ethernet-Kabel eingesteckt habe. Sobald ich das Kabel entferne, bekomme ich beim Programmstart die Meldung

Code:
ERROR: unable to get localhost information.
java.net.UnknownHostException: wacken: wacken
        at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
        at org.argouml.application.Main.checkHostsFile(Main.java:436)
        at org.argouml.application.Main.main(Main.java:106)
On Unix systems this usually indicates thatyour /etc/hosts file is incorrectly setup.
Stopping execution of ArgoUML.


In der Datei /etc/hosts stehen neben vielen Kommentaren nur die beiden Zeilen
Code:
127.0.0.1       localhost
::1     localhost


Wobei ich die zweite nicht verstehe :?:

Hat jemand eine Idee, woran das liegen könnte?

Ich arbeite an einem Notebook mit Ethernet- und WLan-Anschluss. WLan ist vom BIOS standardmäßig deaktiviert, weil ich es nur sehr selten brauche. Des weiteren habe ich ifplugd installiert, damit bei fehlendem Ethernetstecker beim Booten dhcpcd nicht gestartet wird.

Ändert ifplugd auch etwas, wenn ich im laufenden Betrieb den Ethernetstecker ziehe?


Last edited by Eisbrecher on Sat Jun 16, 2007 1:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sat Jun 16, 2007 7:58 am    Post subject: Reply with quote

Ist net.lo gestartet?
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Eisbrecher
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2006
Posts: 84

PostPosted: Sat Jun 16, 2007 8:09 am    Post subject: Reply with quote

Für den Ethernetanschluss habe ich einen symbolischen Link /etc/init.d/net.eth0 auf net.lo. Das wird beim booten gestartet.

Für den wlan-Anschluss eth1 habe ich keinen Link gemacht. Das führt sonst bei Booten zu einer Fehlermeldung. In diesem Fall wird net.lo dann wohl nicht gestartet :?:
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sat Jun 16, 2007 8:18 am    Post subject: Reply with quote

Du musst immer net.lo starten, alles andere ist optional. Aber net.lo brauchst du, damit Programme, die ein Netzwerk Interface brauchen, eins haben.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
Eisbrecher
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2006
Posts: 84

PostPosted: Sat Jun 16, 2007 9:04 am    Post subject: Reply with quote

Hm, ich habe hier ein bißchen rumprobiert und so wirklich verstehe ich nicht, warum es bei mir nicht funktioniert *grübel*

Mit rc-update show sehe ich unter anderem net.lo | boot. Das scheint ja richtig zu sein. Beim Booten ohne Ethernetkabel bekomme ich folgende Meldung:

Code:
Starting lo
  Bringing up lo
    127.0.0.1/8                             [ok]
  Adding routes
    127.0.0.1/8 ...                         [ok]
Starting eth0
  Starting ifplugd on eth0 ...             [ok]
    Backgrounding ...


Sieht für mich erstmal in Ordnung aus :? Oder was passiert mit net.lo bei dem Punkt "Backgrounding" :?:
Back to top
View user's profile Send private message
TheSmallOne
Guru
Guru


Joined: 22 Jan 2005
Posts: 467
Location: Germany

PostPosted: Sat Jun 16, 2007 12:36 pm    Post subject: Reply with quote

Kann es sein, dass "wacken" der Rechnername ist?
In dem Fall solltest du vielleicht eine Zeile
127.0.0.1 wacken
in die /ets/hosts einfügen, bzw. den Namen an die existierende Zeile anhängen.
Back to top
View user's profile Send private message
Eisbrecher
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2006
Posts: 84

PostPosted: Sat Jun 16, 2007 12:54 pm    Post subject: Reply with quote

@TheSmallOne

Danke, genau das war es. Manchmal sind die Dinge viel einfacher, als man denkt *freu*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum