You are not logged in.

#1 2008-12-16 15:55:13

Zlotnik
Member
Registered: 2008-12-16
Posts: 3

Midnight Commander takes 30 seconds to start [SOLVED]

Yesterday when i tried to start my beloved filehandler/editor Midnight Commander (mc) i noticed that something was wrong. It took something like 30 sec to start.
I decided to restart, but it didnt help. It doesnt matter if i try to start it from within Eterm or console, if im root or user. Same result. I didnt time it exactly but it takes close to 30 sec.
I have not installed anything since it worked last time.
Any clues?

Last edited by Zlotnik (2008-12-16 21:38:21)

Offline

#2 2008-12-16 16:23:34

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Midnight Commander takes 30 seconds to start [SOLVED]

Do you have localhost properly set in /etc/hosts?

Offline

#3 2008-12-16 17:48:11

Zlotnik
Member
Registered: 2008-12-16
Posts: 3

Re: Midnight Commander takes 30 seconds to start [SOLVED]

The problem is, i didn't do any changes to my system when it suddenly started to take time to fire up mc.

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain   localhost

# End of file

Offline

#4 2008-12-16 18:07:30

string
Member
Registered: 2008-11-03
Posts: 286

Re: Midnight Commander takes 30 seconds to start [SOLVED]

Crazy idea: try a `strace` to try to see what causes the delay.

Offline

#5 2008-12-16 21:38:05

Zlotnik
Member
Registered: 2008-12-16
Posts: 3

Re: Midnight Commander takes 30 seconds to start [SOLVED]

Procyon had the answer. I just added my ip to /etc/hosts and it works. Didn't figure it out until string gave the hint on strace. I found loads of references to my external ip.
Thanks guys.

Offline

Board footer

Powered by FluxBB